This is an automated email from the ASF dual-hosted git repository.
jason810496 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 8ce045b3e26 Reorder Language SDK compatibility matrix and add
Dag-definition rows (#77388)
8ce045b3e26 is described below
commit 8ce045b3e262bd9bcbc9c81b79a04e00515ab8ff
Author: Jason(Zhe-You) Liu <[email protected]>
AuthorDate: Mon Nov 30 17:41:09 2026 +0800
Reorder Language SDK compatibility matrix and add Dag-definition rows
(#77388)
* Reorder Language SDK compatibility matrix and add Dag-definition rows
Show the Dag definition part of each Language SDK compatibility matrix
first, then Python Dag with stub TaskHandler, then the parts common to
both modes, with TaskInstance states last.
Add three Dag-definition dimensions: timetable, and local testing split
into task-test (task level) and dag-test (Dag level). No SDK supports
them yet; the manifests say what exists instead (cron or preset
schedules only, and unit-test helpers in Go and TypeScript).
Keep the text above each matrix for users. The note on how the table is
generated and where dimensions are defined moves into a comment.
* Address review of Language SDK compatibility matrix
Show readers where tiers and rows are defined: a visible link to the
conformance spec above each matrix, and a legend that explains MUST,
SHOULD and MAY. Only the note on how the table is generated stays in a
comment.
Define task-test and dag-test without tying them to a command: any
documented way to run a task or a whole Dag locally counts (an airflow
command, an SDK CLI, or the bundle run by its own runtime). dag-test
runs the tasks in dependency order.
Scope timetable to Airflow's built-in timetable classes plus a way to
define a custom timetable in the SDK.
Give every SDK a note on task-test and dag-test, quoting the CLI
commands, and merge the overlapping part-order test.
* Show the compatibility matrix legend before the tables
Readers meet the marks and tiers in the first table row, but the legend
that explains them came after the last table. Render it before the
tables instead, in each SDK's README matrix and in the consolidated
matrix in the Language SDKs docs.
* Clarify that unit-test helpers do not satisfy the task-test capability
* Describe the timetable capability as referencing, not defining, a
timetable
* Share the tier legend sentence between the compatibility matrix scripts
* Drop redundant Dag-definition rows test
* Keep the code-formatted dagger in the central matrix legend
* Limit the timetable capability to time-based timetables
Asset-triggered timetables are already covered by asset-scheduling, so
counting every built-in timetable here overlapped with it.
---
.../language-sdks/index.rst | 213 +++++++++++----------
contributing-docs/30_new_language_sdk.rst | 18 +-
go-sdk/README.md | 70 +++----
go-sdk/capabilities.yaml | 9 +
java-sdk/README.md | 68 ++++---
java-sdk/capabilities.yaml | 7 +
java-sdk/sdk/module.md | 66 ++++---
scripts/ci/prek/lang_sdk_compat_matrix.py | 34 ++--
scripts/ci/prek/update_lang_sdk_central_matrix.py | 19 +-
.../tests/ci/prek/test_lang_sdk_compat_matrix.py | 21 +-
.../ci/prek/test_update_lang_sdk_central_matrix.py | 9 +
ts-sdk/README.md | 68 ++++---
ts-sdk/capabilities.yaml | 9 +
13 files changed, 359 insertions(+), 252 deletions(-)
diff --git a/airflow-core/docs/authoring-and-scheduling/language-sdks/index.rst
b/airflow-core/docs/authoring-and-scheduling/language-sdks/index.rst
index 78720f2e2df..fb7926880d2 100644
--- a/airflow-core/docs/authoring-and-scheduling/language-sdks/index.rst
+++ b/airflow-core/docs/authoring-and-scheduling/language-sdks/index.rst
@@ -445,13 +445,20 @@ Compatibility matrix
--------------------
Language SDKs mature independently, so they do not all support the same
features yet. The tables below show
-what each Language SDK supports: the features common to both authoring modes,
the features of a
-:ref:`Dag definition <language-sdks/dag-definition>`, and the features of a
-:ref:`Python Dag with stub TaskHandler <language-sdks/stub-taskhandler>`. A
supported feature shows the SDK
-release that shipped it. See the legend below the tables for what each mark
means.
+the minimum Airflow version of each Language SDK, then what it supports in a
+:ref:`Dag definition <language-sdks/dag-definition>`, in a
+:ref:`Python Dag with stub TaskHandler <language-sdks/stub-taskhandler>`, and
in both. A supported feature
+shows the SDK release that shipped it. Each row and its tier (MUST, SHOULD,
MAY) is defined in the
+`Language SDK conformance spec
<https://github.com/apache/airflow/blob/main/contributing-docs/30_new_language_sdk.rst#conformance>`__.
+
+..
+ Generated from each SDK's capabilities.yaml by the
update-lang-sdk-central-matrix prek hook: edit the
+ manifests, not the tables.
.. BEGIN AUTO-GENERATED LANG-SDK COMPAT MATRIX
+*Marks:* ``✓`` supported (with the SDK release that shipped it, when known) ·
``✗`` not supported · ``n/a`` not applicable · ``n/p`` not published. Tiers:
MUST is required, SHOULD is expected, MAY is optional. A tier marked ``†``
applies only when ``dag-definition-authoring`` is supported.
+
.. list-table:: Language SDK versions
:header-rows: 1
:widths: 30 15 15 15
@@ -469,7 +476,7 @@ release that shipped it. See the legend below the tables
for what each mark mean
- 2027-02-28
- 2027-02-28
-.. list-table:: Common to both authoring modes
+.. list-table:: Dag definition
:header-rows: 1
:widths: 30 15 15 15
@@ -477,100 +484,100 @@ release that shipped it. See the legend below the
tables for what each mark mean
- Go
- Java
- TypeScript
- * - **TaskInstance states**
- -
- -
- -
- * - ``success`` (MUST)
- - ✓ 1.0.0
- - ✓ 1.0.0
- - ✓ 1.0.0
- * - ``failed`` (MUST)
- - ✓ 1.0.0
- - ✓ 1.0.0
- - ✓ 1.0.0
- * - ``up_for_retry`` (MUST)
+ * - ``dag-definition-authoring`` (SHOULD)
- ✓ 1.0.0
- ✓ 1.0.0
- ✓ 1.0.0
- * - ``skipped`` (SHOULD)
+ * - ``dag-args`` (MUST †)
- ✓ 1.0.0
- ✓ 1.0.0
- ✓ 1.0.0
- * - ``deferred`` (MAY)
+ * - ``timetable`` (MAY †)
+ - ✗
+ - ✗
+ - ✗
+ * - ``task-args`` (MUST †)
- ✓ 1.0.0
- ✓ 1.0.0
- ✓ 1.0.0
- * - ``up_for_reschedule`` (MAY)
+ * - ``dag-params`` (MUST †)
- ✗
- ✗
- ✗
- * - ``awaiting_input`` (MAY)
+ * - ``dag-callbacks`` (MAY †)
- ✗
- ✗
+ - ✗
+ * - ``explicit-dependencies`` (MUST †)
- ✓ 1.0.0
- * - ``removed`` (MAY)
- ✓ 1.0.0
- ✓ 1.0.0
+ * - ``edge-labels`` (MAY †)
- ✓ 1.0.0
- * - **Task runtime**
- -
- -
- -
- * - ``task-logging`` (MUST)
- ✓ 1.0.0
- ✓ 1.0.0
+ * - ``taskflow-dependencies`` (MUST †)
- ✓ 1.0.0
- * - ``xcom-read-write`` (MUST)
- ✓ 1.0.0
- ✓ 1.0.0
+ * - ``task-group`` (MAY †)
- ✓ 1.0.0
- * - ``custom-xcom-backend`` (MAY)
- ✓ 1.0.0
- ✓ 1.0.0
+ * - ``task-loops`` (MAY †)
+ - ✗
+ - ✗
+ - ✗
+ * - ``if-else-branching`` (SHOULD †)
- ✓ 1.0.0
- * - ``connection-read`` (MUST)
- ✓ 1.0.0
- ✓ 1.0.0
+ * - ``switch-case-branching`` (SHOULD †)
- ✓ 1.0.0
- * - ``variable-read-write`` (MUST)
- ✓ 1.0.0
- ✓ 1.0.0
+ * - ``trigger-dag-run`` (MAY †)
- ✓ 1.0.0
- * - ``self-contained-bundle`` (MUST)
- ✓ 1.0.0
- ✓ 1.0.0
+ * - ``dynamic-dag-generation`` (MAY †)
- ✓ 1.0.0
- * - ``retry-policy`` (MAY)
- - ✗
- - ✗
- - ✗
- * - ``task-state-store`` (MAY)
- ✓ 1.0.0
- ✓ 1.0.0
+ * - ``human-in-the-loop`` (MAY †)
+ - ✗
+ - ✗
- ✓ 1.0.0
- * - ``asset-state-store`` (MAY)
+ * - ``task-test`` (SHOULD †)
- ✗
- ✗
- ✗
- * - ``asset-event-emit`` (MAY)
+ * - ``dag-test`` (SHOULD †)
- ✗
- ✗
- ✗
- * - ``asset-event-read`` (MAY)
+ * - ``asset-definition`` (MAY †)
- ✗
- ✗
- ✗
- * - ``object-store`` (MAY)
+ * - ``asset-scheduling`` (MAY †)
- ✗
- ✗
- ✗
- * - ``listeners`` (MAY)
+ * - ``mapped-tasks`` (MAY †)
+ - ✗
+ - ✗
+ - ✗
+ * - ``asset-inlets-outlets`` (MAY †)
+ - ✗
+ - ✗
+ - ✗
+ * - ``task-callbacks`` (MAY †)
- ✗
- ✗
- ✗
-.. list-table:: Dag definition
+.. list-table:: Python Dag with stub TaskHandler
:header-rows: 1
:widths: 30 15 15 15
@@ -578,121 +585,127 @@ release that shipped it. See the legend below the
tables for what each mark mean
- Go
- Java
- TypeScript
- * - ``dag-definition-authoring`` (SHOULD)
- - ✓ 1.0.0
- - ✓ 1.0.0
- - ✓ 1.0.0
- * - ``dag-args`` (MUST †)
+ * - ``mixed-lang-stub-target`` (MUST)
- ✓ 1.0.0
- ✓ 1.0.0
- ✓ 1.0.0
- * - ``task-args`` (MUST †)
+ * - ``taskflow-binding`` (MUST)
- ✓ 1.0.0
- ✓ 1.0.0
- ✓ 1.0.0
- * - ``dag-params`` (MUST †)
+ * - ``mapped-tasks`` (MAY)
- ✗
- ✗
- ✗
- * - ``dag-callbacks`` (MAY †)
+ * - ``asset-inlets-outlets`` (MAY)
- ✗
- ✗
- ✗
- * - ``explicit-dependencies`` (MUST †)
- - ✓ 1.0.0
- - ✓ 1.0.0
- - ✓ 1.0.0
- * - ``edge-labels`` (MAY †)
- - ✓ 1.0.0
- - ✓ 1.0.0
- - ✓ 1.0.0
- * - ``taskflow-dependencies`` (MUST †)
+ * - ``task-callbacks`` (MAY)
+ - ✗
+ - ✗
+ - ✗
+
+.. list-table:: Common to both authoring modes
+ :header-rows: 1
+ :widths: 30 15 15 15
+
+ * - Dimension
+ - Go
+ - Java
+ - TypeScript
+ * - **Task runtime**
+ -
+ -
+ -
+ * - ``task-logging`` (MUST)
- ✓ 1.0.0
- ✓ 1.0.0
- ✓ 1.0.0
- * - ``task-group`` (MAY †)
+ * - ``xcom-read-write`` (MUST)
- ✓ 1.0.0
- ✓ 1.0.0
- ✓ 1.0.0
- * - ``task-loops`` (MAY †)
- - ✗
- - ✗
- - ✗
- * - ``if-else-branching`` (SHOULD †)
- - ✓ 1.0.0
+ * - ``custom-xcom-backend`` (MAY)
- ✓ 1.0.0
- ✓ 1.0.0
- * - ``switch-case-branching`` (SHOULD †)
- ✓ 1.0.0
+ * - ``connection-read`` (MUST)
- ✓ 1.0.0
- ✓ 1.0.0
- * - ``trigger-dag-run`` (MAY †)
- ✓ 1.0.0
+ * - ``variable-read-write`` (MUST)
- ✓ 1.0.0
- ✓ 1.0.0
- * - ``dynamic-dag-generation`` (MAY †)
- ✓ 1.0.0
+ * - ``self-contained-bundle`` (MUST)
- ✓ 1.0.0
- ✓ 1.0.0
- * - ``human-in-the-loop`` (MAY †)
- - ✗
- - ✗
- ✓ 1.0.0
- * - ``dag-test`` (SHOULD †)
+ * - ``retry-policy`` (MAY)
- ✗
- ✗
- ✗
- * - ``asset-definition`` (MAY †)
+ * - ``task-state-store`` (MAY)
+ - ✓ 1.0.0
+ - ✓ 1.0.0
+ - ✓ 1.0.0
+ * - ``asset-state-store`` (MAY)
- ✗
- ✗
- ✗
- * - ``asset-scheduling`` (MAY †)
+ * - ``asset-event-emit`` (MAY)
- ✗
- ✗
- ✗
- * - ``mapped-tasks`` (MAY †)
+ * - ``asset-event-read`` (MAY)
- ✗
- ✗
- ✗
- * - ``asset-inlets-outlets`` (MAY †)
+ * - ``object-store`` (MAY)
- ✗
- ✗
- ✗
- * - ``task-callbacks`` (MAY †)
+ * - ``listeners`` (MAY)
- ✗
- ✗
- ✗
-
-.. list-table:: Python Dag with stub TaskHandler
- :header-rows: 1
- :widths: 30 15 15 15
-
- * - Dimension
- - Go
- - Java
- - TypeScript
- * - ``mixed-lang-stub-target`` (MUST)
+ * - **TaskInstance states**
+ -
+ -
+ -
+ * - ``success`` (MUST)
- ✓ 1.0.0
- ✓ 1.0.0
- ✓ 1.0.0
- * - ``taskflow-binding`` (MUST)
+ * - ``failed`` (MUST)
- ✓ 1.0.0
- ✓ 1.0.0
- ✓ 1.0.0
- * - ``mapped-tasks`` (MAY)
- - ✗
- - ✗
- - ✗
- * - ``asset-inlets-outlets`` (MAY)
- - ✗
+ * - ``up_for_retry`` (MUST)
+ - ✓ 1.0.0
+ - ✓ 1.0.0
+ - ✓ 1.0.0
+ * - ``skipped`` (SHOULD)
+ - ✓ 1.0.0
+ - ✓ 1.0.0
+ - ✓ 1.0.0
+ * - ``deferred`` (MAY)
+ - ✓ 1.0.0
+ - ✓ 1.0.0
+ - ✓ 1.0.0
+ * - ``up_for_reschedule`` (MAY)
- ✗
- ✗
- * - ``task-callbacks`` (MAY)
- ✗
+ * - ``awaiting_input`` (MAY)
- ✗
- ✗
-
-*Marks:* ``✓`` supported (with the SDK release that shipped it, when known) ·
``✗`` not supported · ``n/a`` not applicable · ``n/p`` not published. A tier
marked ``†`` applies only when ``dag-definition-authoring`` is supported.
+ - ✓ 1.0.0
+ * - ``removed`` (MAY)
+ - ✓ 1.0.0
+ - ✓ 1.0.0
+ - ✓ 1.0.0
.. END AUTO-GENERATED LANG-SDK COMPAT MATRIX
diff --git a/contributing-docs/30_new_language_sdk.rst
b/contributing-docs/30_new_language_sdk.rst
index d5dc69cf48c..8566439e524 100644
--- a/contributing-docs/30_new_language_sdk.rst
+++ b/contributing-docs/30_new_language_sdk.rst
@@ -496,6 +496,14 @@ in its own language they are *not applicable* (``n/a``)
rather than unsupported.
``dag-args`` (MUST †)
Dag-level arguments (schedule, tags, default queue, and so on) can be set
on a Dag definition.
+``timetable`` (MAY †)
+ A Dag definition can be scheduled by any of Airflow's built-in time-based
timetables, such as
+ ``CronTriggerTimetable``, ``DeltaDataIntervalTimetable`` or
``EventsTimetable``, including
+ hybrids such as ``AssetOrTimeSchedule``. A cron expression or preset
passed as the schedule
+ is not enough. The SDK can also reference a custom timetable from an
Airflow plugin.
+ Scheduling only on asset events is ``asset-scheduling``. A timetable runs
in the scheduler,
+ so a Language SDK never defines one.
+
``task-args`` (MUST †)
Task-level arguments (retries, pool, queue, and so on) can be set on a
task of a Dag definition.
@@ -543,8 +551,16 @@ in its own language they are *not applicable* (``n/a``)
rather than unsupported.
``human-in-the-loop`` (MAY †)
A Dag definition can declare a task that waits for human input.
+``task-test`` (SHOULD †)
+ The SDK provides a documented way to run one task of a Dag definition
locally the way Airflow
+ runs it, as ``airflow tasks test`` does for a Python Dag. A unit-test
helper that calls the
+ task code directly does not count. The mechanism is not prescribed: an
``airflow`` CLI command,
+ a CLI of the SDK, or a subcommand of the bundle run by its own runtime
(``java``, ``node``, the
+ Go binary) all count.
+
``dag-test`` (SHOULD †)
- A Dag definition can be exercised locally with ``airflow dags test``.
+ The SDK provides a documented way to run a whole Dag definition locally,
with any of the
+ mechanisms ``task-test`` allows, running the tasks in the order their
dependencies define.
``asset-definition`` (MAY †)
Assets can be declared in the target language: the equivalents of Python's
``Asset``,
diff --git a/go-sdk/README.md b/go-sdk/README.md
index 876f836715a..c0258c6d3c3 100644
--- a/go-sdk/README.md
+++ b/go-sdk/README.md
@@ -107,46 +107,28 @@ See [`example/`](./example) for working projects.
## Compatibility matrix
-Which Airflow TaskInstance states and capabilities this SDK supports. This
table is generated from
-[`capabilities.yaml`](capabilities.yaml); the conformance dimensions are
defined in the
-[Language SDK conformance
spec](https://github.com/apache/airflow/blob/main/contributing-docs/30_new_language_sdk.rst).
-The minimum version applies to the current SDK source, while "Since" records
when each capability
-first became available and can therefore be earlier than the current minimum.
-Do not edit the table by hand — edit `capabilities.yaml` and let the
`update-go-sdk-readme-matrix`
-prek hook regenerate it.
+Which features the Go SDK supports, and the Airflow and SDK versions that
first shipped each one.
+The minimum Airflow version applies to the current SDK release, so a feature's
"Since (Airflow)"
+can be earlier.
+Each row and its tier (MUST, SHOULD, MAY) is defined in the
+[Language SDK conformance
spec](https://github.com/apache/airflow/blob/main/contributing-docs/30_new_language_sdk.rst#conformance).
+
+<!--
+Generated from capabilities.yaml by the update-go-sdk-readme-matrix prek hook:
edit the manifest, not the table.
+-->
<!-- BEGIN AUTO-GENERATED LANG-SDK COMPAT MATRIX -->
*Min. Airflow version: 3.5.0 · supervisor schema: 2027-02-28*
+*Marks: ✓ supported · ✗ not supported · n/a not applicable. Tiers: MUST is
required, SHOULD is expected, MAY is optional. A tier marked † applies only
when `dag-definition-authoring` is supported.*
+
| Dimension | Tier | Supported | Since (Airflow) | Since (SDK) | Notes |
|---|---|---|---|---|---|
-| **TaskInstance states** | | | | | |
-| state: `success` | MUST | ✓ | 3.4.0 | 1.0.0 | |
-| state: `failed` | MUST | ✓ | 3.4.0 | 1.0.0 | |
-| state: `up_for_retry` | MUST | ✓ | 3.4.0 | 1.0.0 | RetryTask |
-| state: `skipped` | SHOULD | ✓ | 3.4.0 | 1.0.0 | airflow.TriggerDagRun with
SkipWhenAlreadyExists only |
-| state: `deferred` | MAY | ✓ | 3.4.0 | 1.0.0 | airflow.TriggerDagRun with
Deferrable only; resumes in the Go runtime |
-| state: `up_for_reschedule` | MAY | ✗ | – | – | runtime does not emit
RescheduleTask yet |
-| state: `awaiting_input` | MAY | ✗ | – | – | runtime does not emit
AwaitInputTask yet |
-| state: `removed` | MAY | ✓ | 3.4.0 | 1.0.0 | |
-| **Task runtime** | | | | | |
-| capability: `task-logging` | MUST | ✓ | 3.4.0 | 1.0.0 | slog records
streamed over the logs socket |
-| capability: `xcom-read-write` | MUST | ✓ | 3.4.0 | 1.0.0 | PushXCom /
GetXCom |
-| capability: `custom-xcom-backend` | MAY | ✓ | 3.5.0 | 1.0.0 | the supervisor
runs the configured [core] xcom_backend |
-| capability: `connection-read` | MUST | ✓ | 3.4.0 | 1.0.0 | GetConnection |
-| capability: `variable-read-write` | MUST | ✓ | 3.4.0 | 1.0.0 | |
-| capability: `self-contained-bundle` | MUST | ✓ | 3.4.0 | 1.0.0 | AFBNDL01
native binary via airflow-go-pack |
-| capability: `retry-policy` | MAY | ✗ | – | – | no task-facing retry-policy
API yet |
-| capability: `task-state-store` | MAY | ✓ | 3.4.0 | 1.0.0 | |
-| capability: `asset-state-store` | MAY | ✗ | – | – | no task-facing asset
state-store API yet |
-| capability: `asset-event-emit` | MAY | ✗ | – | – | runtime does not emit
asset events yet |
-| capability: `asset-event-read` | MAY | ✗ | – | – | no task-facing
asset-event API yet |
-| capability: `object-store` | MAY | ✗ | – | – | no object-storage API yet |
-| capability: `listeners` | MAY | ✗ | – | – | no hook into the Python listener
API, so a task emits no OpenLineage facets of its own |
| **Dag definition** | | | | | |
| capability: `dag-definition-authoring` | SHOULD | ✓ | 3.4.0 | 1.0.0 |
airflow.Dag |
| capability: `dag-args` | MUST † | ✓ | 3.4.0 | 1.0.0 | |
+| capability: `timetable` | MAY † | ✗ | – | – | a schedule is a cron
expression or preset only |
| capability: `task-args` | MUST † | ✓ | 3.4.0 | 1.0.0 | |
| capability: `dag-params` | MUST † | ✗ | – | – | |
| capability: `dag-callbacks` | MAY † | ✗ | – | – | |
@@ -160,7 +142,8 @@ prek hook regenerate it.
| capability: `trigger-dag-run` | MAY † | ✓ | 3.4.0 | 1.0.0 |
airflow.TriggerDagRun |
| capability: `dynamic-dag-generation` | MAY † | ✓ | 3.4.0 | 1.0.0 | |
| capability: `human-in-the-loop` | MAY † | ✗ | – | – | |
-| capability: `dag-test` | SHOULD † | ✗ | – | – | |
+| capability: `task-test` | SHOULD † | ✗ | – | – | a task can be unit-tested
with a Context from airflow.NewContext, but there is no local task runner yet;
the "airflow tasks test" command does not take a Go Dag |
+| capability: `dag-test` | SHOULD † | ✗ | – | – | no local Dag runner yet; the
"airflow dags test" command does not take a Go Dag |
| capability: `asset-definition` | MAY † | ✗ | – | – | |
| capability: `asset-scheduling` | MAY † | ✗ | – | – | |
| capability: `mapped-tasks` | MAY † | ✗ | – | – | |
@@ -172,8 +155,29 @@ prek hook regenerate it.
| capability: `mapped-tasks` | MAY | ✗ | – | – | Airflow does not bind
arguments to mapped stubs yet |
| capability: `asset-inlets-outlets` | MAY | ✗ | – | – | runtime does not
report task outlets yet |
| capability: `task-callbacks` | MAY | ✗ | – | – | a Python-declared task
callback does not run for a stub task |
-
-*Marks: ✓ supported · ✗ not supported · n/a not applicable. A tier marked †
applies only when `dag-definition-authoring` is supported.*
+| **Task runtime** | | | | | |
+| capability: `task-logging` | MUST | ✓ | 3.4.0 | 1.0.0 | slog records
streamed over the logs socket |
+| capability: `xcom-read-write` | MUST | ✓ | 3.4.0 | 1.0.0 | PushXCom /
GetXCom |
+| capability: `custom-xcom-backend` | MAY | ✓ | 3.5.0 | 1.0.0 | the supervisor
runs the configured [core] xcom_backend |
+| capability: `connection-read` | MUST | ✓ | 3.4.0 | 1.0.0 | GetConnection |
+| capability: `variable-read-write` | MUST | ✓ | 3.4.0 | 1.0.0 | |
+| capability: `self-contained-bundle` | MUST | ✓ | 3.4.0 | 1.0.0 | AFBNDL01
native binary via airflow-go-pack |
+| capability: `retry-policy` | MAY | ✗ | – | – | no task-facing retry-policy
API yet |
+| capability: `task-state-store` | MAY | ✓ | 3.4.0 | 1.0.0 | |
+| capability: `asset-state-store` | MAY | ✗ | – | – | no task-facing asset
state-store API yet |
+| capability: `asset-event-emit` | MAY | ✗ | – | – | runtime does not emit
asset events yet |
+| capability: `asset-event-read` | MAY | ✗ | – | – | no task-facing
asset-event API yet |
+| capability: `object-store` | MAY | ✗ | – | – | no object-storage API yet |
+| capability: `listeners` | MAY | ✗ | – | – | no hook into the Python listener
API, so a task emits no OpenLineage facets of its own |
+| **TaskInstance states** | | | | | |
+| state: `success` | MUST | ✓ | 3.4.0 | 1.0.0 | |
+| state: `failed` | MUST | ✓ | 3.4.0 | 1.0.0 | |
+| state: `up_for_retry` | MUST | ✓ | 3.4.0 | 1.0.0 | RetryTask |
+| state: `skipped` | SHOULD | ✓ | 3.4.0 | 1.0.0 | airflow.TriggerDagRun with
SkipWhenAlreadyExists only |
+| state: `deferred` | MAY | ✓ | 3.4.0 | 1.0.0 | airflow.TriggerDagRun with
Deferrable only; resumes in the Go runtime |
+| state: `up_for_reschedule` | MAY | ✗ | – | – | runtime does not emit
RescheduleTask yet |
+| state: `awaiting_input` | MAY | ✗ | – | – | runtime does not emit
AwaitInputTask yet |
+| state: `removed` | MAY | ✓ | 3.4.0 | 1.0.0 | |
<!-- END AUTO-GENERATED LANG-SDK COMPAT MATRIX -->
diff --git a/go-sdk/capabilities.yaml b/go-sdk/capabilities.yaml
index be3df5fc972..e0258b1805b 100644
--- a/go-sdk/capabilities.yaml
+++ b/go-sdk/capabilities.yaml
@@ -124,6 +124,9 @@ capabilities:
supported: true
since: "3.4.0"
sdk_version: "1.0.0"
+ timetable:
+ supported: false
+ note: "a schedule is a cron expression or preset only"
task-args:
supported: true
since: "3.4.0"
@@ -174,8 +177,14 @@ capabilities:
sdk_version: "1.0.0"
human-in-the-loop:
supported: false
+ task-test:
+ supported: false
+ note: >-
+ a task can be unit-tested with a Context from airflow.NewContext, but
there is no local task
+ runner yet; the "airflow tasks test" command does not take a Go Dag
dag-test:
supported: false
+ note: 'no local Dag runner yet; the "airflow dags test" command does not
take a Go Dag'
asset-definition:
supported: false
asset-scheduling:
diff --git a/java-sdk/README.md b/java-sdk/README.md
index 213a76c8f72..5bc0c5fcbe5 100644
--- a/java-sdk/README.md
+++ b/java-sdk/README.md
@@ -141,44 +141,28 @@ See [`example/`](example/) for a working project.
## Compatibility matrix
-Which Airflow TaskInstance states and capabilities this SDK supports. This
table is generated from
-[`capabilities.yaml`](capabilities.yaml); the conformance dimensions are
defined in the
-[Language SDK conformance
spec](https://github.com/apache/airflow/blob/main/contributing-docs/30_new_language_sdk.rst).
-Do not edit the table by hand — edit `capabilities.yaml` and let the
`update-java-sdk-readme-matrix`
-prek hook regenerate it.
+Which features the Java SDK supports, and the Airflow and SDK versions that
first shipped each one.
+The minimum Airflow version applies to the current SDK release, so a feature's
"Since (Airflow)"
+can be earlier.
+Each row and its tier (MUST, SHOULD, MAY) is defined in the
+[Language SDK conformance
spec](https://github.com/apache/airflow/blob/main/contributing-docs/30_new_language_sdk.rst#conformance).
+
+<!--
+Generated from capabilities.yaml by the update-java-sdk-readme-matrix prek
hook: edit the manifest, not the table.
+-->
<!-- BEGIN AUTO-GENERATED LANG-SDK COMPAT MATRIX -->
*Min. Airflow version: 3.5.0 · supervisor schema: 2027-02-28*
+*Marks: ✓ supported · ✗ not supported · n/a not applicable. Tiers: MUST is
required, SHOULD is expected, MAY is optional. A tier marked † applies only
when `dag-definition-authoring` is supported.*
+
| Dimension | Tier | Supported | Since (Airflow) | Since (SDK) | Notes |
|---|---|---|---|---|---|
-| **TaskInstance states** | | | | | |
-| state: `success` | MUST | ✓ | 3.4.0 | 1.0.0 | |
-| state: `failed` | MUST | ✓ | 3.4.0 | 1.0.0 | |
-| state: `up_for_retry` | MUST | ✓ | 3.4.0 | 1.0.0 | RetryTask |
-| state: `skipped` | SHOULD | ✓ | 3.4.0 | 1.0.0 | a TriggerDagRun task that
skips an existing run |
-| state: `deferred` | MAY | ✓ | 3.4.0 | 1.0.0 | a TriggerDagRun task that
waits with deferrable |
-| state: `up_for_reschedule` | MAY | ✗ | – | – | runtime does not emit
RescheduleTask yet |
-| state: `awaiting_input` | MAY | ✗ | – | – | runtime does not emit
AwaitInputTask yet |
-| state: `removed` | MAY | ✓ | 3.4.0 | 1.0.0 | |
-| **Task runtime** | | | | | |
-| capability: `task-logging` | MUST | ✓ | 3.4.0 | 1.0.0 | SLF4J + JPL bridged
to the task log |
-| capability: `xcom-read-write` | MUST | ✓ | 3.4.0 | 1.0.0 | |
-| capability: `custom-xcom-backend` | MAY | ✓ | 3.5.0 | 1.0.0 | the supervisor
runs the configured [core] xcom_backend |
-| capability: `connection-read` | MUST | ✓ | 3.4.0 | 1.0.0 | |
-| capability: `variable-read-write` | MUST | ✓ | 3.4.0 | 1.0.0 | |
-| capability: `self-contained-bundle` | MUST | ✓ | 3.4.0 | 1.0.0 | Airflow
metadata embedded in the jar artifact |
-| capability: `retry-policy` | MAY | ✗ | – | – | no task-facing retry-policy
API yet |
-| capability: `task-state-store` | MAY | ✓ | 3.4.0 | 1.0.0 |
Client.getTaskStateStore() get/set/delete/clear |
-| capability: `asset-state-store` | MAY | ✗ | – | – | no task-facing asset
state-store API yet |
-| capability: `asset-event-emit` | MAY | ✗ | – | – | runtime does not emit
asset events yet |
-| capability: `asset-event-read` | MAY | ✗ | – | – | no task-facing
asset-event API yet |
-| capability: `object-store` | MAY | ✗ | – | – | no object-storage API yet |
-| capability: `listeners` | MAY | ✗ | – | – | no hook into the Python listener
API, so a task emits no OpenLineage facets of its own |
| **Dag definition** | | | | | |
| capability: `dag-definition-authoring` | SHOULD | ✓ | 3.4.0 | 1.0.0 | |
| capability: `dag-args` | MUST † | ✓ | 3.4.0 | 1.0.0 | |
+| capability: `timetable` | MAY † | ✗ | – | – | a schedule is a cron
expression or preset only |
| capability: `task-args` | MUST † | ✓ | 3.4.0 | 1.0.0 | |
| capability: `dag-params` | MUST † | ✗ | – | – | |
| capability: `dag-callbacks` | MAY † | ✗ | – | – | |
@@ -192,7 +176,8 @@ prek hook regenerate it.
| capability: `trigger-dag-run` | MAY † | ✓ | 3.4.0 | 1.0.0 | TriggerDagRun |
| capability: `dynamic-dag-generation` | MAY † | ✓ | 3.4.0 | 1.0.0 | |
| capability: `human-in-the-loop` | MAY † | ✗ | – | – | |
-| capability: `dag-test` | SHOULD † | ✗ | – | – | |
+| capability: `task-test` | SHOULD † | ✗ | – | – | no local task runner yet;
the "airflow tasks test" command does not take a Java Dag |
+| capability: `dag-test` | SHOULD † | ✗ | – | – | no local Dag runner yet; the
"airflow dags test" command does not take a Java Dag |
| capability: `asset-definition` | MAY † | ✗ | – | – | |
| capability: `asset-scheduling` | MAY † | ✗ | – | – | |
| capability: `mapped-tasks` | MAY † | ✗ | – | – | |
@@ -204,8 +189,29 @@ prek hook regenerate it.
| capability: `mapped-tasks` | MAY | ✗ | – | – | Airflow does not bind
arguments to mapped stubs yet |
| capability: `asset-inlets-outlets` | MAY | ✗ | – | – | runtime does not
report task outlets yet |
| capability: `task-callbacks` | MAY | ✗ | – | – | a Python-declared task
callback does not run for a stub task |
-
-*Marks: ✓ supported · ✗ not supported · n/a not applicable. A tier marked †
applies only when `dag-definition-authoring` is supported.*
+| **Task runtime** | | | | | |
+| capability: `task-logging` | MUST | ✓ | 3.4.0 | 1.0.0 | SLF4J + JPL bridged
to the task log |
+| capability: `xcom-read-write` | MUST | ✓ | 3.4.0 | 1.0.0 | |
+| capability: `custom-xcom-backend` | MAY | ✓ | 3.5.0 | 1.0.0 | the supervisor
runs the configured [core] xcom_backend |
+| capability: `connection-read` | MUST | ✓ | 3.4.0 | 1.0.0 | |
+| capability: `variable-read-write` | MUST | ✓ | 3.4.0 | 1.0.0 | |
+| capability: `self-contained-bundle` | MUST | ✓ | 3.4.0 | 1.0.0 | Airflow
metadata embedded in the jar artifact |
+| capability: `retry-policy` | MAY | ✗ | – | – | no task-facing retry-policy
API yet |
+| capability: `task-state-store` | MAY | ✓ | 3.4.0 | 1.0.0 |
Client.getTaskStateStore() get/set/delete/clear |
+| capability: `asset-state-store` | MAY | ✗ | – | – | no task-facing asset
state-store API yet |
+| capability: `asset-event-emit` | MAY | ✗ | – | – | runtime does not emit
asset events yet |
+| capability: `asset-event-read` | MAY | ✗ | – | – | no task-facing
asset-event API yet |
+| capability: `object-store` | MAY | ✗ | – | – | no object-storage API yet |
+| capability: `listeners` | MAY | ✗ | – | – | no hook into the Python listener
API, so a task emits no OpenLineage facets of its own |
+| **TaskInstance states** | | | | | |
+| state: `success` | MUST | ✓ | 3.4.0 | 1.0.0 | |
+| state: `failed` | MUST | ✓ | 3.4.0 | 1.0.0 | |
+| state: `up_for_retry` | MUST | ✓ | 3.4.0 | 1.0.0 | RetryTask |
+| state: `skipped` | SHOULD | ✓ | 3.4.0 | 1.0.0 | a TriggerDagRun task that
skips an existing run |
+| state: `deferred` | MAY | ✓ | 3.4.0 | 1.0.0 | a TriggerDagRun task that
waits with deferrable |
+| state: `up_for_reschedule` | MAY | ✗ | – | – | runtime does not emit
RescheduleTask yet |
+| state: `awaiting_input` | MAY | ✗ | – | – | runtime does not emit
AwaitInputTask yet |
+| state: `removed` | MAY | ✓ | 3.4.0 | 1.0.0 | |
<!-- END AUTO-GENERATED LANG-SDK COMPAT MATRIX -->
diff --git a/java-sdk/capabilities.yaml b/java-sdk/capabilities.yaml
index 6c92e5c52eb..ebf4e584006 100644
--- a/java-sdk/capabilities.yaml
+++ b/java-sdk/capabilities.yaml
@@ -121,6 +121,9 @@ capabilities:
supported: true
since: "3.4.0"
sdk_version: "1.0.0"
+ timetable:
+ supported: false
+ note: "a schedule is a cron expression or preset only"
task-args:
supported: true
since: "3.4.0"
@@ -170,8 +173,12 @@ capabilities:
sdk_version: "1.0.0"
human-in-the-loop:
supported: false
+ task-test:
+ supported: false
+ note: 'no local task runner yet; the "airflow tasks test" command does not
take a Java Dag'
dag-test:
supported: false
+ note: 'no local Dag runner yet; the "airflow dags test" command does not
take a Java Dag'
asset-definition:
supported: false
asset-scheduling:
diff --git a/java-sdk/sdk/module.md b/java-sdk/sdk/module.md
index 0906453e6e0..2c64d0f7f6b 100644
--- a/java-sdk/sdk/module.md
+++ b/java-sdk/sdk/module.md
@@ -102,42 +102,28 @@ a Dag declared in Java can do.
## Language SDK compatibility matrix
-Which Airflow TaskInstance states and capabilities the Java SDK currently
supports. The normative
-meaning of each dimension is defined in the
-[Language SDK conformance
specification](https://github.com/apache/airflow/blob/main/contributing-docs/30_new_language_sdk.rst).
+Which features the Java SDK supports, and the Airflow and SDK versions that
first shipped each one.
+The minimum Airflow version applies to the current SDK release, so a feature's
"Since (Airflow)"
+can be earlier.
+Each row and its tier (MUST, SHOULD, MAY) is defined in the
+[Language SDK conformance
spec](https://github.com/apache/airflow/blob/main/contributing-docs/30_new_language_sdk.rst#conformance).
+
+<!--
+Generated from java-sdk/capabilities.yaml by the update-java-sdk-readme-matrix
prek hook: edit the manifest, not the table.
+-->
<!-- BEGIN AUTO-GENERATED LANG-SDK COMPAT MATRIX -->
*Min. Airflow version: 3.5.0 · supervisor schema: 2027-02-28*
+*Marks: ✓ supported · ✗ not supported · n/a not applicable. Tiers: MUST is
required, SHOULD is expected, MAY is optional. A tier marked † applies only
when `dag-definition-authoring` is supported.*
+
| Dimension | Tier | Supported | Since (Airflow) | Since (SDK) | Notes |
|---|---|---|---|---|---|
-| **TaskInstance states** | | | | | |
-| state: `success` | MUST | ✓ | 3.4.0 | 1.0.0 | |
-| state: `failed` | MUST | ✓ | 3.4.0 | 1.0.0 | |
-| state: `up_for_retry` | MUST | ✓ | 3.4.0 | 1.0.0 | RetryTask |
-| state: `skipped` | SHOULD | ✓ | 3.4.0 | 1.0.0 | a TriggerDagRun task that
skips an existing run |
-| state: `deferred` | MAY | ✓ | 3.4.0 | 1.0.0 | a TriggerDagRun task that
waits with deferrable |
-| state: `up_for_reschedule` | MAY | ✗ | – | – | runtime does not emit
RescheduleTask yet |
-| state: `awaiting_input` | MAY | ✗ | – | – | runtime does not emit
AwaitInputTask yet |
-| state: `removed` | MAY | ✓ | 3.4.0 | 1.0.0 | |
-| **Task runtime** | | | | | |
-| capability: `task-logging` | MUST | ✓ | 3.4.0 | 1.0.0 | SLF4J + JPL bridged
to the task log |
-| capability: `xcom-read-write` | MUST | ✓ | 3.4.0 | 1.0.0 | |
-| capability: `custom-xcom-backend` | MAY | ✓ | 3.5.0 | 1.0.0 | the supervisor
runs the configured [core] xcom_backend |
-| capability: `connection-read` | MUST | ✓ | 3.4.0 | 1.0.0 | |
-| capability: `variable-read-write` | MUST | ✓ | 3.4.0 | 1.0.0 | |
-| capability: `self-contained-bundle` | MUST | ✓ | 3.4.0 | 1.0.0 | Airflow
metadata embedded in the jar artifact |
-| capability: `retry-policy` | MAY | ✗ | – | – | no task-facing retry-policy
API yet |
-| capability: `task-state-store` | MAY | ✓ | 3.4.0 | 1.0.0 |
Client.getTaskStateStore() get/set/delete/clear |
-| capability: `asset-state-store` | MAY | ✗ | – | – | no task-facing asset
state-store API yet |
-| capability: `asset-event-emit` | MAY | ✗ | – | – | runtime does not emit
asset events yet |
-| capability: `asset-event-read` | MAY | ✗ | – | – | no task-facing
asset-event API yet |
-| capability: `object-store` | MAY | ✗ | – | – | no object-storage API yet |
-| capability: `listeners` | MAY | ✗ | – | – | no hook into the Python listener
API, so a task emits no OpenLineage facets of its own |
| **Dag definition** | | | | | |
| capability: `dag-definition-authoring` | SHOULD | ✓ | 3.4.0 | 1.0.0 | |
| capability: `dag-args` | MUST † | ✓ | 3.4.0 | 1.0.0 | |
+| capability: `timetable` | MAY † | ✗ | – | – | a schedule is a cron
expression or preset only |
| capability: `task-args` | MUST † | ✓ | 3.4.0 | 1.0.0 | |
| capability: `dag-params` | MUST † | ✗ | – | – | |
| capability: `dag-callbacks` | MAY † | ✗ | – | – | |
@@ -151,7 +137,8 @@ meaning of each dimension is defined in the
| capability: `trigger-dag-run` | MAY † | ✓ | 3.4.0 | 1.0.0 | TriggerDagRun |
| capability: `dynamic-dag-generation` | MAY † | ✓ | 3.4.0 | 1.0.0 | |
| capability: `human-in-the-loop` | MAY † | ✗ | – | – | |
-| capability: `dag-test` | SHOULD † | ✗ | – | – | |
+| capability: `task-test` | SHOULD † | ✗ | – | – | no local task runner yet;
the "airflow tasks test" command does not take a Java Dag |
+| capability: `dag-test` | SHOULD † | ✗ | – | – | no local Dag runner yet; the
"airflow dags test" command does not take a Java Dag |
| capability: `asset-definition` | MAY † | ✗ | – | – | |
| capability: `asset-scheduling` | MAY † | ✗ | – | – | |
| capability: `mapped-tasks` | MAY † | ✗ | – | – | |
@@ -163,7 +150,28 @@ meaning of each dimension is defined in the
| capability: `mapped-tasks` | MAY | ✗ | – | – | Airflow does not bind
arguments to mapped stubs yet |
| capability: `asset-inlets-outlets` | MAY | ✗ | – | – | runtime does not
report task outlets yet |
| capability: `task-callbacks` | MAY | ✗ | – | – | a Python-declared task
callback does not run for a stub task |
-
-*Marks: ✓ supported · ✗ not supported · n/a not applicable. A tier marked †
applies only when `dag-definition-authoring` is supported.*
+| **Task runtime** | | | | | |
+| capability: `task-logging` | MUST | ✓ | 3.4.0 | 1.0.0 | SLF4J + JPL bridged
to the task log |
+| capability: `xcom-read-write` | MUST | ✓ | 3.4.0 | 1.0.0 | |
+| capability: `custom-xcom-backend` | MAY | ✓ | 3.5.0 | 1.0.0 | the supervisor
runs the configured [core] xcom_backend |
+| capability: `connection-read` | MUST | ✓ | 3.4.0 | 1.0.0 | |
+| capability: `variable-read-write` | MUST | ✓ | 3.4.0 | 1.0.0 | |
+| capability: `self-contained-bundle` | MUST | ✓ | 3.4.0 | 1.0.0 | Airflow
metadata embedded in the jar artifact |
+| capability: `retry-policy` | MAY | ✗ | – | – | no task-facing retry-policy
API yet |
+| capability: `task-state-store` | MAY | ✓ | 3.4.0 | 1.0.0 |
Client.getTaskStateStore() get/set/delete/clear |
+| capability: `asset-state-store` | MAY | ✗ | – | – | no task-facing asset
state-store API yet |
+| capability: `asset-event-emit` | MAY | ✗ | – | – | runtime does not emit
asset events yet |
+| capability: `asset-event-read` | MAY | ✗ | – | – | no task-facing
asset-event API yet |
+| capability: `object-store` | MAY | ✗ | – | – | no object-storage API yet |
+| capability: `listeners` | MAY | ✗ | – | – | no hook into the Python listener
API, so a task emits no OpenLineage facets of its own |
+| **TaskInstance states** | | | | | |
+| state: `success` | MUST | ✓ | 3.4.0 | 1.0.0 | |
+| state: `failed` | MUST | ✓ | 3.4.0 | 1.0.0 | |
+| state: `up_for_retry` | MUST | ✓ | 3.4.0 | 1.0.0 | RetryTask |
+| state: `skipped` | SHOULD | ✓ | 3.4.0 | 1.0.0 | a TriggerDagRun task that
skips an existing run |
+| state: `deferred` | MAY | ✓ | 3.4.0 | 1.0.0 | a TriggerDagRun task that
waits with deferrable |
+| state: `up_for_reschedule` | MAY | ✗ | – | – | runtime does not emit
RescheduleTask yet |
+| state: `awaiting_input` | MAY | ✗ | – | – | runtime does not emit
AwaitInputTask yet |
+| state: `removed` | MAY | ✓ | 3.4.0 | 1.0.0 | |
<!-- END AUTO-GENERATED LANG-SDK COMPAT MATRIX -->
diff --git a/scripts/ci/prek/lang_sdk_compat_matrix.py
b/scripts/ci/prek/lang_sdk_compat_matrix.py
index 66fb08ba16d..3aef3d412d0 100644
--- a/scripts/ci/prek/lang_sdk_compat_matrix.py
+++ b/scripts/ci/prek/lang_sdk_compat_matrix.py
@@ -105,6 +105,7 @@ CAPABILITY_DIMENSIONS: list[Capability] = [
Capability("listeners", "MAY", "runtime", False),
Capability(DAG_DEFINITION_GATE, "SHOULD", "dag-definition", False),
Capability("dag-args", "MUST", "dag-definition", True),
+ Capability("timetable", "MAY", "dag-definition", True),
Capability("task-args", "MUST", "dag-definition", True),
Capability("dag-params", "MUST", "dag-definition", True),
Capability("dag-callbacks", "MAY", "dag-definition", True),
@@ -118,6 +119,7 @@ CAPABILITY_DIMENSIONS: list[Capability] = [
Capability("trigger-dag-run", "MAY", "dag-definition", True),
Capability("dynamic-dag-generation", "MAY", "dag-definition", True),
Capability("human-in-the-loop", "MAY", "dag-definition", True),
+ Capability("task-test", "SHOULD", "dag-definition", True),
Capability("dag-test", "SHOULD", "dag-definition", True),
Capability("asset-definition", "MAY", "dag-definition", True),
Capability("asset-scheduling", "MAY", "dag-definition", True),
@@ -131,9 +133,13 @@ CAPABILITY_DIMENSIONS: list[Capability] = [
CAPABILITY_NAMES = {cap.name for cap in CAPABILITY_DIMENSIONS}
SHARED_CAPABILITY_NAMES = {cap.name for cap in CAPABILITY_DIMENSIONS if
cap.group == "shared"}
+TIER_LEGEND = (
+ "Tiers: MUST is required, SHOULD is expected, MAY is optional. "
+ "A tier marked {dagger} applies only when {gate} is supported."
+)
LEGEND = (
f"Marks: {SUPPORTED_MARK} supported · {UNSUPPORTED_MARK} not supported · "
- f"{NA_MARK} not applicable. A tier marked † applies only when
`{DAG_DEFINITION_GATE}` is supported."
+ f"{NA_MARK} not applicable. " + TIER_LEGEND.format(dagger="†",
gate=f"`{DAG_DEFINITION_GATE}`")
)
@@ -163,9 +169,9 @@ class MatrixPart(NamedTuple):
class MatrixParts(NamedTuple):
- common: MatrixPart
dag_definition: MatrixPart
stub_task_handler: MatrixPart
+ common: MatrixPart
def _build_capability_rows(groups: tuple[Group, ...], mode: Mode | None) ->
list[MatrixRow]:
@@ -186,16 +192,6 @@ def _build_capability_rows(groups: tuple[Group, ...],
mode: Mode | None) -> list
def build_matrix_parts() -> MatrixParts:
"""Split the dimensions into the parts both renderers publish, in display
order."""
return MatrixParts(
- MatrixPart(
- "Common to both authoring modes",
- [
- MatrixGroup(
- "TaskInstance states",
- [MatrixRow("state", state, tier, False, None) for state,
tier in STATE_DIMENSIONS],
- ),
- MatrixGroup("Task runtime",
_build_capability_rows(("runtime",), None)),
- ],
- ),
MatrixPart(
"Dag definition",
[
@@ -214,6 +210,16 @@ def build_matrix_parts() -> MatrixParts:
)
],
),
+ MatrixPart(
+ "Common to both authoring modes",
+ [
+ MatrixGroup("Task runtime",
_build_capability_rows(("runtime",), None)),
+ MatrixGroup(
+ "TaskInstance states",
+ [MatrixRow("state", state, tier, False, None) for state,
tier in STATE_DIMENSIONS],
+ ),
+ ],
+ ),
)
@@ -410,6 +416,8 @@ def render_markdown_table(doc: Capabilities) -> list[str]:
f"*Min. Airflow version: {doc.min_airflow_version} · "
f"supervisor schema: {doc.supervisor_schema_version}*\n",
"\n",
+ f"*{LEGEND}*\n",
+ "\n",
"| Dimension | Tier | Supported | Since (Airflow) | Since (SDK) |
Notes |\n",
"|---|---|---|---|---|---|\n",
]
@@ -424,6 +432,4 @@ def render_markdown_table(doc: Capabilities) -> list[str]:
f"{_format_note(entry)} |\n"
)
lines.append("\n")
- lines.append(f"*{LEGEND}*\n")
- lines.append("\n")
return lines
diff --git a/scripts/ci/prek/update_lang_sdk_central_matrix.py
b/scripts/ci/prek/update_lang_sdk_central_matrix.py
index 8db82e4913b..3b6d89a0fb1 100755
--- a/scripts/ci/prek/update_lang_sdk_central_matrix.py
+++ b/scripts/ci/prek/update_lang_sdk_central_matrix.py
@@ -102,7 +102,15 @@ def _get_cell(sdk: SdkCapabilities, row: matrix.MatrixRow)
-> str:
def render_central_table(sdk_capabilities: Sequence[SdkCapabilities]) ->
list[str]:
"""Render the consolidated cross-SDK RST ``list-table`` for each part of
the matrix."""
- lines = _render_table_header("Language SDK versions", sdk_capabilities,
first_column="Version")
+ lines = [
+ "\n",
+ f"*Marks:* ``{matrix.SUPPORTED_MARK}`` supported (with the SDK release
that shipped it, when known) · "
+ f"``{matrix.UNSUPPORTED_MARK}`` not supported · ``{matrix.NA_MARK}``
not applicable · "
+ f"``{ABSENT_MARK}`` not published. "
+ + matrix.TIER_LEGEND.format(dagger="``†``",
gate=f"``{matrix.DAG_DEFINITION_GATE}``")
+ + "\n",
+ ]
+ lines += _render_table_header("Language SDK versions", sdk_capabilities,
first_column="Version")
lines += _render_row(
"Min. Airflow version",
[sdk.doc.min_airflow_version if sdk.doc else ABSENT_MARK for sdk in
sdk_capabilities],
@@ -121,14 +129,7 @@ def render_central_table(sdk_capabilities:
Sequence[SdkCapabilities]) -> list[st
f"``{row.name}`` ({matrix.format_tier(row)})",
[_get_cell(sdk, row) for sdk in sdk_capabilities],
)
- lines += [
- "\n",
- f"*Marks:* ``{matrix.SUPPORTED_MARK}`` supported (with the SDK release
that shipped it, when known) · "
- f"``{matrix.UNSUPPORTED_MARK}`` not supported · ``{matrix.NA_MARK}``
not applicable · "
- f"``{ABSENT_MARK}`` not published. A tier marked ``†`` applies only
when "
- f"``{matrix.DAG_DEFINITION_GATE}`` is supported.\n",
- "\n",
- ]
+ lines.append("\n")
return lines
diff --git a/scripts/tests/ci/prek/test_lang_sdk_compat_matrix.py
b/scripts/tests/ci/prek/test_lang_sdk_compat_matrix.py
index 05690fd6d1a..e593fa2c77b 100644
--- a/scripts/tests/ci/prek/test_lang_sdk_compat_matrix.py
+++ b/scripts/tests/ci/prek/test_lang_sdk_compat_matrix.py
@@ -241,13 +241,26 @@ class TestRenderMarkdownTable:
assert f"| capability: `{cap.name}` |" in rendered
assert "supervisor schema: 2026-06-16" in rendered
- def test_parts_split_dimensions_by_authoring_mode(self):
- common, dag_definition, stub_task_handler = matrix.build_matrix_parts()
+ def test_legend_renders_before_the_table(self, capabilities_doc):
+ rendered = "".join(
+
matrix.render_markdown_table(matrix.parse_capabilities(capabilities_doc(),
source="test"))
+ )
+
+ assert rendered.index(matrix.LEGEND) < rendered.index("| Dimension |")
+
+ def test_parts_split_dimensions_by_authoring_mode_in_display_order(self):
+ parts = matrix.build_matrix_parts()
+ dag_definition, stub_task_handler, common = parts
dag_definition_names = [row.name for row in
dag_definition.groups[0].rows]
stub_names = [row.name for row in stub_task_handler.groups[0].rows]
- assert [group.label for group in common.groups] == ["TaskInstance
states", "Task runtime"]
- assert "object-store" in [row.name for row in common.groups[1].rows]
+ assert [part.title for part in parts] == [
+ "Dag definition",
+ "Python Dag with stub TaskHandler",
+ "Common to both authoring modes",
+ ]
+ assert [group.label for group in common.groups] == ["Task runtime",
"TaskInstance states"]
+ assert "object-store" in [row.name for row in common.groups[0].rows]
assert dag_definition_names[0] == matrix.DAG_DEFINITION_GATE
assert stub_names == [
"mixed-lang-stub-target",
diff --git a/scripts/tests/ci/prek/test_update_lang_sdk_central_matrix.py
b/scripts/tests/ci/prek/test_update_lang_sdk_central_matrix.py
index 0d831cac415..8571daadd54 100644
--- a/scripts/tests/ci/prek/test_update_lang_sdk_central_matrix.py
+++ b/scripts/tests/ci/prek/test_update_lang_sdk_central_matrix.py
@@ -102,6 +102,15 @@ class TestRenderCentralTable:
assert " * - Min. Airflow version\n - 3.3\n" in rendered
assert "2026-06-16" in rendered
+ def test_legend_renders_before_the_tables(self, capabilities_doc):
+ rendered = "".join(
+ hook.render_central_table(
+ [hook.SdkCapabilities("Go",
matrix.parse_capabilities(capabilities_doc(), source="test"))]
+ )
+ )
+
+ assert rendered.index("*Marks:*") < rendered.index(".. list-table::")
+
def test_supported_mark_shows_sdk_version_when_present(self,
capabilities_doc, capabilities_entry):
doc = capabilities_doc()
doc["capabilities"]["xcom-read-write"] = capabilities_entry(True,
since="3.4.0", sdk_version="1.0.0")
diff --git a/ts-sdk/README.md b/ts-sdk/README.md
index ffed6fa5698..e21bfc6c329 100644
--- a/ts-sdk/README.md
+++ b/ts-sdk/README.md
@@ -92,44 +92,28 @@ See
[`example/`](https://github.com/apache/airflow/tree/main/ts-sdk/example) for
## Compatibility matrix
-Which Airflow TaskInstance states and capabilities this SDK supports. This
table is generated from
-[`capabilities.yaml`](https://github.com/apache/airflow/blob/main/ts-sdk/capabilities.yaml);
-the conformance dimensions are defined in the
-[Language SDK conformance
spec](https://github.com/apache/airflow/blob/main/contributing-docs/30_new_language_sdk.rst).
-Do not edit the table by hand. Update the manifest and run the
`update-ts-sdk-readme-matrix` prek hook.
+Which features the TypeScript SDK supports, and the Airflow and SDK versions
that first shipped each one.
+The minimum Airflow version applies to the current SDK release, so a feature's
"Since (Airflow)"
+can be earlier.
+Each row and its tier (MUST, SHOULD, MAY) is defined in the
+[Language SDK conformance
spec](https://github.com/apache/airflow/blob/main/contributing-docs/30_new_language_sdk.rst#conformance).
+
+<!--
+Generated from capabilities.yaml by the update-ts-sdk-readme-matrix prek hook:
edit the manifest, not the table.
+-->
<!-- BEGIN AUTO-GENERATED LANG-SDK COMPAT MATRIX -->
*Min. Airflow version: 3.5.0 · supervisor schema: 2027-02-28*
+*Marks: ✓ supported · ✗ not supported · n/a not applicable. Tiers: MUST is
required, SHOULD is expected, MAY is optional. A tier marked † applies only
when `dag-definition-authoring` is supported.*
+
| Dimension | Tier | Supported | Since (Airflow) | Since (SDK) | Notes |
|---|---|---|---|---|---|
-| **TaskInstance states** | | | | | |
-| state: `success` | MUST | ✓ | 3.4.0 | 1.0.0 | |
-| state: `failed` | MUST | ✓ | 3.4.0 | 1.0.0 | |
-| state: `up_for_retry` | MUST | ✓ | 3.4.0 | 1.0.0 | RetryTask |
-| state: `skipped` | SHOULD | ✓ | 3.4.0 | 1.0.0 | triggerDagRun with
skipWhenAlreadyExists only |
-| state: `deferred` | MAY | ✓ | 3.4.0 | 1.0.0 | triggerDagRun with deferrable
only |
-| state: `up_for_reschedule` | MAY | ✗ | – | – | runtime does not emit
RescheduleTask yet |
-| state: `awaiting_input` | MAY | ✓ | 3.4.0 | 1.0.0 | approval() / hitl() in a
Dag definition |
-| state: `removed` | MAY | ✓ | 3.4.0 | 1.0.0 | |
-| **Task runtime** | | | | | |
-| capability: `task-logging` | MUST | ✓ | 3.4.0 | 1.0.0 | structured records
over the log socket |
-| capability: `xcom-read-write` | MUST | ✓ | 3.4.0 | 1.0.0 | getXCom / setXCom
|
-| capability: `custom-xcom-backend` | MAY | ✓ | 3.5.0 | 1.0.0 | the supervisor
runs the configured [core] xcom_backend |
-| capability: `connection-read` | MUST | ✓ | 3.4.0 | 1.0.0 | getConnection |
-| capability: `variable-read-write` | MUST | ✓ | 3.4.0 | 1.0.0 | getVariable /
setVariable / deleteVariable |
-| capability: `self-contained-bundle` | MUST | ✓ | 3.4.0 | 1.0.0 | Airflow
metadata embedded in the bundle |
-| capability: `retry-policy` | MAY | ✗ | – | – | no task-facing retry-policy
API yet |
-| capability: `task-state-store` | MAY | ✓ | 3.4.0 | 1.0.0 |
taskStateStore.get / set / delete / clear |
-| capability: `asset-state-store` | MAY | ✗ | – | – | no task-facing asset
state-store API yet |
-| capability: `asset-event-emit` | MAY | ✗ | – | – | runtime does not emit
asset events yet |
-| capability: `asset-event-read` | MAY | ✗ | – | – | no task-facing
asset-event API yet |
-| capability: `object-store` | MAY | ✗ | – | – | no object-storage API yet |
-| capability: `listeners` | MAY | ✗ | – | – | no hook into the Python listener
API, so a task emits no OpenLineage facets of its own |
| **Dag definition** | | | | | |
| capability: `dag-definition-authoring` | SHOULD | ✓ | 3.4.0 | 1.0.0 | new
Dag |
| capability: `dag-args` | MUST † | ✓ | 3.4.0 | 1.0.0 | |
+| capability: `timetable` | MAY † | ✗ | – | – | a schedule is a cron
expression or preset only |
| capability: `task-args` | MUST † | ✓ | 3.4.0 | 1.0.0 | |
| capability: `dag-params` | MUST † | ✗ | – | – | |
| capability: `dag-callbacks` | MAY † | ✗ | – | – | |
@@ -143,7 +127,8 @@ Do not edit the table by hand. Update the manifest and run
the `update-ts-sdk-re
| capability: `trigger-dag-run` | MAY † | ✓ | 3.4.0 | 1.0.0 | triggerDagRun |
| capability: `dynamic-dag-generation` | MAY † | ✓ | 3.4.0 | 1.0.0 | |
| capability: `human-in-the-loop` | MAY † | ✓ | 3.4.0 | 1.0.0 | approval() /
hitl() |
-| capability: `dag-test` | SHOULD † | ✗ | – | – | |
+| capability: `task-test` | SHOULD † | ✗ | – | – | a handler can be
unit-tested through bundle.getTaskHandler(), but there is no local task runner
yet; the "airflow tasks test" command does not take a TypeScript Dag |
+| capability: `dag-test` | SHOULD † | ✗ | – | – | no local Dag runner yet; the
"airflow dags test" command does not take a TypeScript Dag |
| capability: `asset-definition` | MAY † | ✗ | – | – | |
| capability: `asset-scheduling` | MAY † | ✗ | – | – | |
| capability: `mapped-tasks` | MAY † | ✗ | – | – | |
@@ -155,8 +140,29 @@ Do not edit the table by hand. Update the manifest and run
the `update-ts-sdk-re
| capability: `mapped-tasks` | MAY | ✗ | – | – | Airflow does not bind
arguments to mapped stubs yet |
| capability: `asset-inlets-outlets` | MAY | ✗ | – | – | runtime does not
report task outlets yet |
| capability: `task-callbacks` | MAY | ✗ | – | – | a Python-declared task
callback does not run for a stub task |
-
-*Marks: ✓ supported · ✗ not supported · n/a not applicable. A tier marked †
applies only when `dag-definition-authoring` is supported.*
+| **Task runtime** | | | | | |
+| capability: `task-logging` | MUST | ✓ | 3.4.0 | 1.0.0 | structured records
over the log socket |
+| capability: `xcom-read-write` | MUST | ✓ | 3.4.0 | 1.0.0 | getXCom / setXCom
|
+| capability: `custom-xcom-backend` | MAY | ✓ | 3.5.0 | 1.0.0 | the supervisor
runs the configured [core] xcom_backend |
+| capability: `connection-read` | MUST | ✓ | 3.4.0 | 1.0.0 | getConnection |
+| capability: `variable-read-write` | MUST | ✓ | 3.4.0 | 1.0.0 | getVariable /
setVariable / deleteVariable |
+| capability: `self-contained-bundle` | MUST | ✓ | 3.4.0 | 1.0.0 | Airflow
metadata embedded in the bundle |
+| capability: `retry-policy` | MAY | ✗ | – | – | no task-facing retry-policy
API yet |
+| capability: `task-state-store` | MAY | ✓ | 3.4.0 | 1.0.0 |
taskStateStore.get / set / delete / clear |
+| capability: `asset-state-store` | MAY | ✗ | – | – | no task-facing asset
state-store API yet |
+| capability: `asset-event-emit` | MAY | ✗ | – | – | runtime does not emit
asset events yet |
+| capability: `asset-event-read` | MAY | ✗ | – | – | no task-facing
asset-event API yet |
+| capability: `object-store` | MAY | ✗ | – | – | no object-storage API yet |
+| capability: `listeners` | MAY | ✗ | – | – | no hook into the Python listener
API, so a task emits no OpenLineage facets of its own |
+| **TaskInstance states** | | | | | |
+| state: `success` | MUST | ✓ | 3.4.0 | 1.0.0 | |
+| state: `failed` | MUST | ✓ | 3.4.0 | 1.0.0 | |
+| state: `up_for_retry` | MUST | ✓ | 3.4.0 | 1.0.0 | RetryTask |
+| state: `skipped` | SHOULD | ✓ | 3.4.0 | 1.0.0 | triggerDagRun with
skipWhenAlreadyExists only |
+| state: `deferred` | MAY | ✓ | 3.4.0 | 1.0.0 | triggerDagRun with deferrable
only |
+| state: `up_for_reschedule` | MAY | ✗ | – | – | runtime does not emit
RescheduleTask yet |
+| state: `awaiting_input` | MAY | ✓ | 3.4.0 | 1.0.0 | approval() / hitl() in a
Dag definition |
+| state: `removed` | MAY | ✓ | 3.4.0 | 1.0.0 | |
<!-- END AUTO-GENERATED LANG-SDK COMPAT MATRIX -->
diff --git a/ts-sdk/capabilities.yaml b/ts-sdk/capabilities.yaml
index ce464f06c05..f0d58ce1381 100644
--- a/ts-sdk/capabilities.yaml
+++ b/ts-sdk/capabilities.yaml
@@ -128,6 +128,9 @@ capabilities:
supported: true
since: "3.4.0"
sdk_version: "1.0.0"
+ timetable:
+ supported: false
+ note: "a schedule is a cron expression or preset only"
task-args:
supported: true
since: "3.4.0"
@@ -181,8 +184,14 @@ capabilities:
since: "3.4.0"
sdk_version: "1.0.0"
note: "approval() / hitl()"
+ task-test:
+ supported: false
+ note: >-
+ a handler can be unit-tested through bundle.getTaskHandler(), but there
is no local task
+ runner yet; the "airflow tasks test" command does not take a TypeScript
Dag
dag-test:
supported: false
+ note: 'no local Dag runner yet; the "airflow dags test" command does not
take a TypeScript Dag'
asset-definition:
supported: false
asset-scheduling: