uranusjr commented on code in PR #71757:
URL: https://github.com/apache/airflow/pull/71757#discussion_r4346951112
##########
scripts/ci/prek/lang_sdk_compat_matrix.py:
##########
@@ -43,17 +43,30 @@
SUPPORTED_MARK = "✓"
UNSUPPORTED_MARK = "✗"
-NA_MARK = "n/a" # a gated native-Dag capability while native-dag-authoring is
unsupported
+NA_MARK = "n/a" # a gated Dag-definition capability while dag-definition
itself is unsupported
NO_VERSION_MARK = "–" # "Since" placeholder for a dimension that is not
supported
-# The umbrella capability that gates the conditional native-Dag capabilities:
when an SDK does
-# not support it, every gated native-Dag capability is "not applicable" rather
than unsupported.
-NATIVE_DAG_GATE = "native-dag-authoring"
+# An authoring mode: a Dag declared in the SDK's own language, or a stub
TaskHandler implementing a
+# task of a Python Dag. A shared capability applies to both and is declared
once per mode, as
+# ``<capability>: {dag-definition: <entry>, stub-task-handler: <entry>}``.
+Mode = Literal["dag-definition", "stub-task-handler"]
+RowKind = Literal["state", "capability"]
+Tier = Literal["MUST", "SHOULD", "MAY"]
+Group = Literal["runtime", "dag-definition", "stub-task-handler", "shared"]
+EntryKey = tuple[str, Mode | None]
+
+DAG_DEFINITION_MODE: Final[Mode] = "dag-definition"
+STUB_TASK_HANDLER_MODE: Final[Mode] = "stub-task-handler"
+AUTHORING_MODES: Final[tuple[Mode, ...]] = (DAG_DEFINITION_MODE,
STUB_TASK_HANDLER_MODE)
+
+# The umbrella capability that gates the conditional Dag-definition
capabilities: when an SDK does
+# not support it, every gated capability is "not applicable" rather than
unsupported.
+DAG_DEFINITION_GATE: Final = "dag-definition"
Review Comment:
This string literal is the same as the mode selector. It works, but might be
slightly confusing.
--
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]