Repository navigation
[airflow-ctl/v0-1-test] Require rich-argparse 1.4.0 for airflowctl (#76661) - #76668
Merged
shahar1 merged 1 commit intoNov 7, 2026
Conversation
…pache#76661) airflowctl imports HelpPreviewAction at startup, which rich-argparse only provides from 1.4.0. The declared floor of 1.0.0 lets a resolver keep an older release, and then every airflowctl command fails with ImportError. (cherry picked from commit cb35686) Conflict resolution: this branch declares structlog>=25.4.0 where main has >=26.1.0, and the two floors sit on adjacent lines, so the hunk conflicted. Only the rich-argparse floor is taken; structlog keeps this branch's value. uv.lock was regenerated with the uv version this branch pins (0.11.8) rather than merged by hand, which leaves the same one-line specifier change as on main.
henry3260
requested review from
bugraoz93,
dheerajturaga and
potiuk
as code owners
November 7, 2026 09:05
shahar1
approved these changes
Nov 7, 2026
shahar1
added a commit
to shahar1/airflow
that referenced
this pull request
Nov 7, 2026
…pache#76661) (apache#76668) airflowctl imports HelpPreviewAction at startup, which rich-argparse only provides from 1.4.0. The declared floor of 1.0.0 lets a resolver keep an older release, and then every airflowctl command fails with ImportError. (cherry picked from commit cb35686) Conflict resolution: this branch declares structlog>=25.4.0 where main has >=26.1.0, and the two floors sit on adjacent lines, so the hunk conflicted. Only the rich-argparse floor is taken; structlog keeps this branch's value. uv.lock was regenerated with the uv version this branch pins (0.11.8) rather than merged by hand, which leaves the same one-line specifier change as on main. Co-authored-by: Shahar Epstein <[email protected]>
1 task done
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.
Manual backport of #76661 to
airflow-ctl/v0-1-test. The automated backport failed to apply (run details).Why
airflow-ctl/src/airflowctl/ctl/cli_parser.pyimportsHelpPreviewActionfromrich_argparseat module level, andadd_preview_actionuses it every time a parser is built.HelpPreviewActiononly exists from rich-argparse 1.4.0, but this branch still declaresrich-argparse>=1.0.0, so a resolver is free to keep an older release — for instance when another installed package already pins one. Everyairflowctlcommand then fails on start:airflow-coredeclares the same floor but does not importHelpPreviewAction, so it is left alone here, as onmain.What
airflow-ctl/pyproject.toml:rich-argparse>=1.0.0→>=1.4.0.uv.lock: the matchingrequires-distspecifier line.Conflict resolution
The cherry-pick conflicted in both files.
airflow-ctl/pyproject.toml: this branch declaresstructlog>=25.4.0wheremainhas>=26.1.0, and the two floors sit on adjacent lines. Only therich-argparsefloor is taken;structlogkeeps this branch's value. No othermain-only floor was brought across.uv.lock: regenerated rather than merged by hand, using the uv version this branch pins (0.11.8, perdev/breeze/src/airflow_breeze/global_constants.pyandDockerfile.ci). A newer uv rewrites the lock header and re-sorts[options.exclude-newer-package], which would have added ~280 lines of unrelated churn to a release branch. The result is the same one-line specifier change as onmain, and the lock header stays atrevision = 3.No
RELEASE_NOTES.rstentry and no newsfragment: that file is populated at release time, and the release manager builds the notes fromgit log.Merge order
This needs to land before #76663 (
Prepare airflow-ctl 0.1.6rc1 release) and before the 0.1.6rc1 tag. #76663 already listsRequirerich-argparse1.4.0 or later (#76661)under Significant Changes, but its diff touches onlyRELEASE_NOTES.rst, the deleted newsfragment andairflowctl/__init__.py— not the dependency floor. The files do not overlap, so GitHub will not enforce the order; if #76663 merges first, 0.1.6rc1 ships release notes that do not match its metadata.Checks
rich-argparse==1.3.0:from rich_argparse import HelpPreviewActionraisesImportError.rich-argparse==1.4.0: the import succeeds.uv lock --checkpasses at this commit under uv 0.11.8, and restoring the base lock and re-runninguv lockreproduces this one byte for byte.prek run --from-ref d0c6496289 --to-ref HEAD --stage pre-commit: all hooks pass, includingUpdate uv.lock.Was generative AI tooling used to co-author this PR?
Generated-by: Claude Code (Claude Opus 5) following the guidelines
🤖 Generated with Claude Code