uranusjr commented on code in PR #77388: URL: https://github.com/apache/airflow/pull/77388#discussion_r4677166363
########## go-sdk/README.md: ########## @@ -107,46 +107,26 @@ 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. + +<!-- +Generated from capabilities.yaml by the update-go-sdk-readme-matrix prek hook: edit the manifest, not the table. +The conformance dimensions and tiers are defined in +contributing-docs/30_new_language_sdk.rst ("Conformance"). +--> Review Comment: The tables still show `MUST`, `SHOULD`, `MAY`, and `†`, and dimension names such as `task-test` and `timetable`, but the only pointer to where they are defined is now in an HTML comment. A reader of the README cannot find out what "SHOULD †" or `task-test` means. ########## contributing-docs/30_new_language_sdk.rst: ########## @@ -543,8 +549,14 @@ 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 †) + A single task of a Dag definition can be run locally without a running Airflow deployment, + the equivalent of ``airflow tasks test``. Calling a task function directly from a unit test + with a hand-built context does not count on its own. + ``dag-test`` (SHOULD †) - A Dag definition can be exercised locally with ``airflow dags test``. + A whole Dag definition can be run locally without a running Airflow deployment, the + equivalent of ``airflow dags test`` or Python's ``dag.test()``. Review Comment: This changes the wording from "with `airflow dags test`" to "the equivalent of", which means an SDK-native runner now counts. That is a semantic change. ########## contributing-docs/30_new_language_sdk.rst: ########## @@ -496,6 +496,12 @@ 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 a timetable object, such as the equivalents of Python's + ``CronTriggerTimetable`` with its own timezone, ``DeltaTriggerTimetable``, + ``MultipleCronTriggerTimetable`` or ``EventsTimetable``, not only by a cron expression or preset + passed as the schedule (which ``dag-args`` covers). Review Comment: This should just say “built-in tiemtable classes” and also mention whether non-core timetables are covered. ########## go-sdk/capabilities.yaml: ########## @@ -174,6 +177,9 @@ capabilities: sdk_version: "1.0.0" human-in-the-loop: supported: false + task-test: + supported: false + note: "a Go task can be unit-tested by calling it with a Context from airflow.NewContext; airflow tasks test does not take a Go Dag" Review Comment: Does this mean `airflow tasks test` cannot run against a Go Dag right now, or it _should not_ take one going forward. Also this strips the Markdown syntax and is pretty confusing to read. Maybe it should say _the “airflow tasks test” command_ (with quotes). ########## contributing-docs/30_new_language_sdk.rst: ########## @@ -543,8 +549,14 @@ 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 †) + A single task of a Dag definition can be run locally without a running Airflow deployment, + the equivalent of ``airflow tasks test``. Calling a task function directly from a unit test + with a hand-built context does not count on its own. Review Comment: What must an SDK provide to mark it ✓? This uses a moving target that an SDK cannot check statically. ########## scripts/tests/ci/prek/test_lang_sdk_compat_matrix.py: ########## @@ -241,13 +241,28 @@ def test_rows_cover_every_dimension(self, capabilities_doc): assert f"| capability: `{cap.name}` |" in rendered assert "supervisor schema: 2026-06-16" in rendered + def test_parts_render_dag_definition_first_and_states_last(self): Review Comment: This overlaps with `test_parts_split_dimensions_by_authoring_mode`. ########## java-sdk/capabilities.yaml: ########## @@ -170,6 +173,8 @@ capabilities: sdk_version: "1.0.0" human-in-the-loop: supported: false + task-test: + supported: false Review Comment: Why does this not have a note? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
