Repository navigation
Fix airflowctl list argument parsing - #72454
Merged
Merged
Conversation
auyua9
requested review from
bugraoz93,
dheerajturaga,
henry3260 and
potiuk
as code owners
September 2, 2026 19:51
potiuk
approved these changes
Sep 7, 2026
Contributor
Backport successfully created: airflow-ctl/v0-1-testNote: As of Merging PRs targeted for Airflow 3.X In matter of doubt please ask in #release-management Slack channel.
|
aws-airflow-bot
pushed a commit
to aws-mwaa/upstream-to-airflow
that referenced
this pull request
Sep 7, 2026
…72454) (cherry picked from commit 093c1ca) Co-authored-by: auyua9 <[email protected]> Co-authored-by: auyua9 <[email protected]>
regarmukesh3g
pushed a commit
to regarmukesh3g/airflow
that referenced
this pull request
Sep 27, 2026
Co-authored-by: auyua9 <[email protected]>
This was referenced Oct 30, 2026
shahar1
added a commit
that referenced
this pull request
Oct 30, 2026
…#76045) (cherry picked from commit 093c1ca) Co-authored-by: auyua9 <[email protected]> Co-authored-by: auyua9 <[email protected]>
shahar1
added a commit
that referenced
this pull request
Nov 19, 2026
…#76045) (cherry picked from commit 093c1ca) Co-authored-by: auyua9 <[email protected]> Co-authored-by: auyua9 <[email protected]>
28 of 67 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Use Airflow's existing
string_list_typeparser whenairflowctlgenerates arguments for OpenAPIlistparameters.Add a focused regression test for comma-separated values.
Why
The generated CLI currently maps
listto Python's built-inlist. In an argparsetype=callback, that turnsdag1,dag2into a list of characters rather than two DAG IDs. The repository already usesstring_list_typefor comma-separated list arguments, and the adjacentdictmapping was recently corrected to usejson_dict_typein PR #68985.Tests
uv run --project /Users/ming/code/apache/airflow-pr-attempt50/airflow-ctl pytest airflow-ctl/tests/airflow_ctl/ctl/test_cli_config.py -quv run --project /Users/ming/code/apache/airflow-pr-attempt50/airflow-ctl ruff check airflow-ctl/src/airflowctl/ctl/cli_config.py airflow-ctl/tests/airflow_ctl/ctl/test_cli_config.pyuv run --project /Users/ming/code/apache/airflow-pr-attempt50/airflow-ctl ruff format --check airflow-ctl/src/airflowctl/ctl/cli_config.py airflow-ctl/tests/airflow_ctl/ctl/test_cli_config.pyReal behavior proof
airflowctllist parameters now preserve comma-separated item boundaries instead of splitting each value into characters.mainat commit38401f8704162b4dfcdc642cd15150677f0fd14bin an isolated worktree.test_cli_config.pysuite was run withuv, followed by Ruff checks._python_type_from_string("list")("dag1, dag2")returns["dag1", "dag2"].airflowctl dags get-statsrequest were not run locally.