Skip to content

[v3-2-test] Breeze: make breeze down discover and stop every compose project (#66311)#66928

Open
vatsrahul1001 wants to merge 2 commits into
v3-2-testfrom
backport-322-66311
Open

[v3-2-test] Breeze: make breeze down discover and stop every compose project (#66311)#66928
vatsrahul1001 wants to merge 2 commits into
v3-2-testfrom
backport-322-66311

Conversation

@vatsrahul1001
Copy link
Copy Markdown
Contributor

@vatsrahul1001 vatsrahul1001 commented May 14, 2026

Cherry-pick of #66311
needs #66927 to be merged first

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

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

kaxil and others added 2 commits May 14, 2026 15:20
#65223)

Chain both extraction scripts in a single uv run invocation to avoid
creating two ephemeral environments per version.

(cherry picked from commit cda493d)
…66311)

Discovers running docker compose projects via the
`com.docker.compose.project` label and brings down every one matching
a known breeze prefix (`breeze`, `prek`, `docker-compose`, `docs`, `db`,
`providers`, plus `breeze-`, `airflow-test`, `constraints-`, `providers-`).
One `breeze down` now leaves the host clean regardless of which breeze
commands, prek hooks, or CI steps were running.

Two new flags: `--all-projects` also catches compose projects that don't
match any known breeze prefix (off by default to avoid wiping unrelated
host projects); `--project-name <name>` restricts cleanup to a single
project (useful in CI).

Single-use cleanup gaps fixed:
- `run_command_via_breeze_shell` (used by every breeze-shell-based prek
  hook) now wraps the subprocess in try/finally and passes `--volumes`
  to the down call, so prek runs no longer leak DB volumes between hooks
  and KeyboardInterrupt no longer skips cleanup.
- `breeze registry extract-data` and `breeze registry backfill-data`
  added try/finally cleanup of their unique compose projects (previously
  leaked `breeze-registry-*` and `breeze-backfill-*` on every invocation).
- `breeze doctor` now uses the same label-based cleanup.

(cherry picked from commit 2635495)
@vatsrahul1001 vatsrahul1001 added this to the Airflow 3.2.2 milestone May 14, 2026
@vatsrahul1001 vatsrahul1001 changed the base branch from backport-322-65223 to v3-2-test May 14, 2026 10:11
@vatsrahul1001 vatsrahul1001 requested a review from kaxil as a code owner May 14, 2026 10:11
@vatsrahul1001 vatsrahul1001 added the changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) label May 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:dev-tools area:registry changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..)

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

3 participants