jason810496 commented on code in PR #77388: URL: https://github.com/apache/airflow/pull/77388#discussion_r4691516231
########## 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: Just moved the inline description before the table and include the link to conformance definition. ########## 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: I defer the "How" - e.g. using `airflow dags test` or having dedicated CLI, etc. Just mentioning the tasks are executed in order. ########## 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: Rephrase this part based on our offline discussion last Friday. ########## 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: Note added. ########## 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: Rephrase this part similar as the Dag test. ########## 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: Unified both test cases. ########## 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: I also included the custom timetable. -- 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]
