Skip to content

Fix static checks failing on every PR after the click 8.5 release - #72106

Merged
potiuk merged 1 commit into
apache:mainfrom
rjgoyln:fix/breeze-command-hash-click-drift
Aug 26, 2026
Merged

potiuk merged 1 commit into
apache:mainfrom
rjgoyln:fix/breeze-command-hash-click-drift

Conversation

@rjgoyln

@rjgoyln rjgoyln commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Summary

click 8.5.0, released today, adds a help field to click.Argument.to_info_dict() — the dict breeze hashes to detect command drift. Every breeze command that declares a positional argument therefore hashes differently than when the stored values were generated, and because update-breeze-cmd-output runs with pass_filenames: false, CI evaluates it tree-wide and fails static checks on every open PR regardless of what that PR touches.

Regenerating is the maintenance action this drift calls for. The 38 files here are exactly the commands taking a positional argument; no group-level hash moved, and SHOW_ARGUMENTS = False keeps the new field out of the rendered help, so the screenshots are untouched.


Was generative AI tooling used to co-author this PR?
  • Yes — Claude Code (Opus 5)

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

Click 8.5.0 added a `help` field to `click.Argument.to_info_dict()`, and
breeze derives its command hashes from that info dict. Every breeze command
that takes a positional argument therefore hashes differently than when the
files were last generated, so the `update-breeze-cmd-output` hook rewrites
them on any all-files run and fails static checks on PRs that never touched
breeze.

The rendered help output itself is unchanged, so the screenshots stay as
they are.
@potiuk
potiuk merged commit 9be7b60 into apache:main Aug 26, 2026
37 of 38 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

Backport failed to create: v3-3-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
❌ v3-3-test Commit Link

You can attempt to backport this manually by running:

cherry_picker 9be7b60 v3-3-test

This should apply the commit to the v3-3-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.

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