Skip to content

[airflow-ctl/v0-1-test] Add DagRunType for operator (#63733) - #76076

Merged
shahar1 merged 1 commit into
apache:airflow-ctl/v0-1-testfrom
shahar1:backport-ed51aff-airflow-ctl/v0-1-test
Oct 30, 2026
Merged

shahar1 merged 1 commit into
apache:airflow-ctl/v0-1-testfrom
shahar1:backport-ed51aff-airflow-ctl/v0-1-test

Conversation

@shahar1

@shahar1 shahar1 commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

Backport of #63733 to airflow-ctl/v0-1-test (cherry picked from ed51aff, path-limited).

Airflow 3.3+ servers create runs with run_type: operator_triggered (from TriggerDagRunOperator). airflowctl 0.1.x's DagRunType lacks the value, so dagrun list/get, dags trigger and dags list/get fail validation on those runs. This adds the enum value; nothing changes for 3.2.x servers, which never send it.

Left out: the execution API route change and its test (airflow-core does not ship from this branch).

Checks: pytest airflow-ctl/tests 386 passed (the one failure, test_server_connection_refused, also fails on the unchanged branch locally); new airflowctl test fails without the change; airflow-core/tests/unit/api/common/test_trigger_dag.py 3 passed; UI tsc --noEmit clean.

Generated files were regenerated on this branch rather than copied from main (codegen versions differ): the v2 spec, _private_ui.yaml and the simple-auth spec via scripts/in_container/run_generate_openapi_spec.py on Python 3.12, the airflowctl and task-sdk datamodels via the branch's codegen group, and the UI openapi-gen via pnpm codegen. On the unchanged branch these reproduce the committed files byte for byte. CI on this branch only runs the airflow-ctl tests, so please re-run the generators when reviewing.


Was generative AI tooling used to co-author this PR?
  • Yes — Claude Code (Opus 5.5)

Generated-by: Claude Code (Opus 5.5) following the guidelines

🤖 Generated with Claude Code

* Execution API: Enforce OPERATOR run type for operator-triggered DAG runs

* naming operator as operator_triggered

* Fix trigger_dag syntax error after rebase

* address unrelated changes

Only the DagRunType value and what is generated from it are backported, so airflowctl 0.1.x can read runs that Airflow 3.3+ servers create through TriggerDagRunOperator. The execution API route change and its test are left out: airflow-core is not released from this branch. The spec, _private_ui.yaml, UI openapi-gen, task-sdk and airflowctl datamodels were regenerated with this branch's generators. Adds an airflowctl test for the new value.

(cherry picked from commit ed51aff)
@shahar1
shahar1 requested a review from ashb as a code owner October 30, 2026 18:02
@boring-cyborg boring-cyborg Bot added area:airflow-ctl area:API Airflow's REST/HTTP API area:task-sdk area:UI Related to UI/UX. For Frontend Developers. labels Oct 30, 2026
@shahar1
shahar1 enabled auto-merge (squash) October 30, 2026 18:03
@shahar1
shahar1 merged commit 290f022 into apache:airflow-ctl/v0-1-test Oct 30, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:airflow-ctl area:API Airflow's REST/HTTP API area:task-sdk area:UI Related to UI/UX. For Frontend Developers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants