Skip to content

Require rich-argparse 1.4.0 for airflowctl - #76661

Merged
henry3260 merged 1 commit into
apache:mainfrom
shahar1:fix-airflowctl-rich-argparse-floor
Nov 7, 2026
Merged

henry3260 merged 1 commit into
apache:mainfrom
shahar1:fix-airflowctl-rich-argparse-floor

Conversation

@shahar1

@shahar1 shahar1 commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

airflowctl imports HelpPreviewAction from rich_argparse at startup, and that name only exists from rich-argparse 1.4.0. The declared floor of >=1.0.0 lets a resolver keep an older release, for example when another package already pins it. Every airflowctl command then fails on start:

ImportError: cannot import name 'HelpPreviewAction' from 'rich_argparse'

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-core declares the same floor but does not import HelpPreviewAction, 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 the rich-argparse specifier 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?
  • Yes — Claude Code (Opus 5.5)

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

🤖 Generated with Claude Code

https://claude.ai/code/session_01BVx6g7KmWF85LLcp9bDDGL

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
@henry3260
henry3260 merged commit cb35686 into apache:main Nov 7, 2026
69 checks passed
@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Backport failed to create: airflow-ctl/v0-1-test. View the failure log Run details

Note: As of Merging PRs targeted for Airflow 3.X
the committer who merges the PR is responsible for backporting the PRs that are bug fixes (generally speaking) to the maintenance branches.

In matter of doubt please ask in #release-management Slack channel.

Status Branch Result
❌ airflow-ctl/v0-1-test Commit Link

You can attempt to backport this manually by running:

cherry_picker cb35686 airflow-ctl/v0-1-test

This should apply the commit to the airflow-ctl/v0-1-test branch and leave the commit in conflict state marking
the files that need manual conflict resolution.

After you have resolved the conflicts, you can continue the backport process by running:

cherry_picker --continue

If you don't have cherry-picker installed, see the installation guide.

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]>
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.

2 participants