Repository navigation
Require rich-argparse 1.4.0 for airflowctl - #76661
Merged
Merged
Conversation
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. Claude-Session: https://claude.ai/code/session_01BVx6g7KmWF85LLcp9bDDGL
shahar1
requested review from
dheerajturaga,
henry3260 and
potiuk
as code owners
November 7, 2026 06:26
This was referenced Nov 7, 2026
henry3260
approved these changes
Nov 7, 2026
Contributor
Backport failed to create: airflow-ctl/v0-1-test. View the failure log Run detailsNote: As of Merging PRs targeted for Airflow 3.X In matter of doubt please ask in #release-management Slack channel.
You can attempt to backport this manually by running: cherry_picker cb35686 airflow-ctl/v0-1-testThis should apply the commit to the airflow-ctl/v0-1-test branch and leave the commit in conflict state marking After you have resolved the conflicts, you can continue the backport process by running: cherry_picker --continueIf you don't have cherry-picker installed, see the installation guide. |
1 task done
shahar1
added a commit
that referenced
this pull request
Nov 7, 2026
…76661) (#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]>
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]>
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.
airflowctlimportsHelpPreviewActionfromrich_argparseat startup, and that name only exists from rich-argparse 1.4.0. The declared floor of>=1.0.0lets a resolver keep an older release, for example when another package already pins it. Everyairflowctlcommand then fails on start:The floor is the same on
airflow-ctl/v0-1-test, so this needs to reach the 0.1.6 release through the backport label.airflow-coredeclares the same floor but does not importHelpPreviewAction, so it is left alone.Checks run on this branch:
python -m airflowctl --help: fails with the error above on rich-argparse 1.3.0, works on 1.4.0.uv run --project airflow-ctl pytest airflow-ctl/tests: 915 passed, both on the locked version and with rich-argparse pinned to 1.4.0.uv lock: only therich-argparsespecifier line changes.There is no new test: nothing in the suite installs the lowest allowed dependency versions, so a test here would not fail without this change.
Was generative AI tooling used to co-author this PR?
Generated-by: Claude Code (Opus 5.5) following the guidelines
🤖 Generated with Claude Code
https://claude.ai/code/session_01BVx6g7KmWF85LLcp9bDDGL