Skip to content

[airflow-ctl/v0-1-test] Fix airflowctl operations create command validation error (#69317) - #76116

Merged
shahar1 merged 2 commits into
apache:airflow-ctl/v0-1-testfrom
shahar1:backport-69317-v0-1-test
Oct 31, 2026
Merged

shahar1 merged 2 commits into
apache:airflow-ctl/v0-1-testfrom
shahar1:backport-69317-v0-1-test

Conversation

@shahar1

@shahar1 shahar1 commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Backport of #69317 to airflow-ctl/v0-1-test, plus its companion test fix #76092.

The automatic backport failed on a context-only conflict: the hunk next to the new _allows_none helper contains _find_subgroup_suffix, which comes from the operation subgroups change that is not on this branch. That method stays out; the fix itself applies unchanged (same +/- lines as the original commit, 3 files, +74/-5).

Second commit: cherry-pick of #76092. On main, #69317 together with #75177 changed how a missing required option surfaces (argparse now rejects it before the friendly-message path runs); the branch has #75177 as #76089, so without #76092 test_create_command_without_required_option_exits_with_friendly_message fails on the merge result, which is why CI was red on the first push. The branch is rebased on the current tip (35fe4f5f47).

Tested on the rebased sources: full airflowctl unit suite, 580 passed.


Was generative AI tooling used to co-author this PR?

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

shahar1 and others added 2 commits October 31, 2026 09:34
…dation error (apache#69317)

The only conflict was context: _find_subgroup_suffix from the operation subgroups change is not on this branch and stays out. The fix itself applies unchanged.

(cherry picked from commit 1c3b3de)

Co-authored-by: Pratiksha Badheka <[email protected]>
…he#76092)

apache#69317 made required request-body fields required in argparse, and
apache#75177 added a test expecting the post-parse validation to report a
missing --conn-type. Each passed on its own, but together argparse
rejects the command during parsing, so the test failed on main. The
argparse error is the intended behaviour; the test now checks it.

(cherry picked from commit 9c164b5)
@shahar1
shahar1 force-pushed the backport-69317-v0-1-test branch from 7cc5199 to 00b43e7 Compare October 31, 2026 07:35
@shahar1
shahar1 merged commit 0a118a8 into apache:airflow-ctl/v0-1-test Oct 31, 2026
13 checks passed
@shahar1
shahar1 deleted the backport-69317-v0-1-test branch October 31, 2026 07:39
shahar1 added a commit that referenced this pull request Nov 19, 2026
…dation error (#69317) (#76116)

* [airflow-ctl/v0-1-test] Fix airflowctl operations create command validation error (#69317)

The only conflict was context: _find_subgroup_suffix from the operation subgroups change is not on this branch and stays out. The fix itself applies unchanged.

(cherry picked from commit 1c3b3de)

Co-authored-by: Pratiksha Badheka <[email protected]>

* Fix airflowctl required-option test broken by concurrent merges (#76092)

#69317 made required request-body fields required in argparse, and
#75177 added a test expecting the post-parse validation to report a
missing --conn-type. Each passed on its own, but together argparse
rejects the command during parsing, so the test failed on main. The
argparse error is the intended behaviour; the test now checks it.

(cherry picked from commit 9c164b5)

---------

Co-authored-by: Pratiksha Badheka <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant