Repository navigation
Make required airflowctl body fields positional - #68014
ibobgunardi wants to merge 3 commits into
Conversation
|
Thanks for the airflowctl improvements, @ibobgunardi — picking these up together since the three PRs (this, #68000, #67912) overlap and there are a couple of concrete fixes needed before they land. #68000 vs this PR — conflict. These two edit the same two call sites in This PR — e2e test will break. Once required scalar body fields become positional, the existing invocations in
Worth a line in the PR body noting this is a breaking CLI change, so the release manager captures it under "Significant Changes". #67912 — crash when None of these are big — mostly coordination plus two small fixes. Happy to take another look once they're reconciled. Drafted-by: Claude Code (Opus 4.8); reviewed by @potiuk before posting |
|
Thanks for the concrete notes. I pushed the follow-ups:
Local checks:
|
|
@ibobgunardi — the Static checks job (plus some failing tests) is failing here — the static checks need a code fix on your side, and the test failures are worth a look too. You can reproduce and fix locally with: Once those pass and CI is green, it'll be ready for a maintainer to pick up. Thanks! See the PR quality criteria. Automated first-pass triage note drafted by an AI-assisted tool — may get things wrong; once addressed, a real Apache Airflow maintainer takes the next look. (why automated) Drafted-by: Claude Code (Opus 4.8); reviewed by @potiuk before posting |
|
@ibobgunardi This PR has a few issues that need to be addressed before it can be reviewed — please see our Pull Request quality criteria. Issues found:
What to do next:
There is no rush — take your time and work at your own pace. We appreciate your contribution and are happy to wait for updates. If you have questions, feel free to ask on the Airflow Slack. Note: This comment was drafted by an AI-assisted triage tool and may contain mistakes. Once you have addressed the points above, an Apache Airflow maintainer — a real person — will take the next look at your PR. We use this two-stage triage process so that our maintainers' limited time is spent where it matters most: the conversation with you. |
Related to #60142.
Required scalar fields from generated request-body models are now emitted as positional arguments. That makes commands like
airflow connections create test_conn postgresline up with the existing positional handling for required operation parameters, while nullable/defaulted fields stay as options.Breaking CLI change: generated airflowctl commands that used required scalar request-body fields as options now take those values positionally instead, for example
connections create test_con mysqlinstead ofconnections create --connection-id=test_con --conn-type=mysql.Tested with:
PYTHONPATH='airflow-ctl\src;airflow-core\src' .venv\Scripts\python.exe -m pytest airflow-ctl\tests\airflow_ctl\ctl\test_cli_config.py -q --confcutdir=airflow-ctl\tests\airflow_ctl\ctl.venv\Scripts\python.exe -m py_compile airflow-ctl\src\airflowctl\ctl\cli_config.py airflow-ctl\tests\airflow_ctl\ctl\test_cli_config.pypython -m py_compile airflow-ctl-tests\tests\airflowctl_tests\test_airflowctl_commands.pygit diff --checkWas generative AI tooling used to co-author this PR?
Yes. I used editor assistance while inspecting the command factory and running the local checks.
Important
🛠️ Maintainer triage note for @ibobgunardi · by
@potiuk· 2026-07-02 17:38 UTCHelpful heads-up from the maintainers — please address before this PR can be reviewed (see the Pull Request quality criteria):
CI image checks / Static checks. Run them locally withpre-commit/prekand push the fixes.The ball is in your court — you've been assigned to this PR. Fix the above, then mark it Ready for review.
Automated triage — may be imperfect; a maintainer takes the next look.