Skip to content

Run breeze from the locked dev/breeze environment - #72113

Merged
potiuk merged 1 commit into
mainfrom
breeze-install-from-lock
Sep 9, 2026
Merged

potiuk merged 1 commit into
mainfrom
breeze-install-from-lock

Conversation

@potiuk

@potiuk potiuk commented Aug 26, 2026

Copy link
Copy Markdown
Member

Breeze was installed by resolving dev/breeze/pyproject.toml against the package index on every fresh environment — uvx --from ./dev/breeze in the shim, uv tool install --editable ./dev/breeze in CI. Neither reads dev/breeze/uv.lock, and neither applies the [tool.uv] exclude-newer buffer declared beside it, which governs project operations only. The committed lock recorded nothing, so an upstream release could change what breeze runs with no commit in this repository.

click 8.5.0 showed the cost (#72106): it added a help field to the argument info dict breeze hashes to detect command drift, so within the hour of its release every CI job resolved it, every command taking a positional argument hashed differently from its committed value, and static checks went red on every open PR regardless of what it touched. The lock said click 8.4.2 throughout, and the four-day exclude-newer buffer never applied.

The shim now runs uv run --project <worktree>/dev/breeze --locked breeze, and CI runs uv sync --project ./dev/breeze/ --locked instead of installing a global uv tool. Per-worktree isolation (ADR 0017) is unchanged; what changes is that dependencies come from the lock. ADR 0017 is amended in place.

The 38 command-output files move back to the hashes the locked click 8.4.2 produces — the exact content from before #72106, which is what a lock-honouring install regenerates. click 8.5.0 reaches breeze when the lock upgrade admits it (exclude-newer clears 2026-08-30), regenerating those files in the same PR as the bump.

Note for contributors: the shim body changed, so # breeze-shim-version moves to 2 — re-run ./scripts/tools/setup_breeze once after this merges.


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

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

Breeze was installed by resolving dev/breeze/pyproject.toml against the package
index on every fresh environment — `uvx --from ./dev/breeze` in the shim, `uv tool
install --editable ./dev/breeze` in CI. Neither reads dev/breeze/uv.lock, and
neither applies the `[tool.uv] exclude-newer` buffer declared beside it, which
governs project operations only. The committed lock recorded nothing, so an
upstream release could change what breeze runs with no commit in this repository.

click 8.5.0 showed the cost. It added a `help` field to the argument info dict
breeze hashes to detect command drift, so within the hour of its release every CI
job resolved it, every command taking a positional argument hashed differently
from its committed value, and static checks went red on every open PR regardless
of what it touched. The lock said click 8.4.2 throughout.

The command-output files move back to the versions the lock produces; the next
lock upgrade regenerates them together with the dependency bump that causes them.
@potiuk
potiuk force-pushed the breeze-install-from-lock branch from 96cb273 to 3bd320a Compare September 8, 2026 19:03

@omkar-foss omkar-foss left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR changes look good to me, approving. I think it might be a good idea to add a newsfragment for this change as it needs setup_breeze to be re-run after merge.

@potiuk

potiuk commented Sep 9, 2026

Copy link
Copy Markdown
Member Author

PR changes look good to me, approving. I think it might be a good idea to add a newsfragment for this change as it needs setup_breeze to be re-run after merge.

Newsfragments are for user (airflow users) facing changes. There is a warning printed automatically that you should upgrade when there is a new version, so that should be even better.

@potiuk
potiuk merged commit b42de70 into main Sep 9, 2026
157 checks passed
@potiuk
potiuk deleted the breeze-install-from-lock branch September 9, 2026 12:21
@github-actions

github-actions Bot commented Sep 9, 2026

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

potiuk added a commit that referenced this pull request Sep 9, 2026
#72806)

Breeze was installed by resolving dev/breeze/pyproject.toml against the package
index on every fresh environment — `uvx --from ./dev/breeze` in the shim, `uv tool
install --editable ./dev/breeze` in CI. Neither reads dev/breeze/uv.lock, and
neither applies the `[tool.uv] exclude-newer` buffer declared beside it, which
governs project operations only. The committed lock recorded nothing, so an
upstream release could change what breeze runs with no commit in this repository.

click 8.5.0 showed the cost. It added a `help` field to the argument info dict
breeze hashes to detect command drift, so within the hour of its release every CI
job resolved it, every command taking a positional argument hashed differently
from its committed value, and static checks went red on every open PR regardless
of what it touched. The lock said click 8.4.2 throughout.

The command-output files move back to the versions the lock produces; the next
lock upgrade regenerates them together with the dependency bump that causes them.
(cherry picked from commit b42de70)
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.

3 participants