Skip to content

Hold back only build-info changes in fork CI and stop drafting them - #76282

Merged
potiuk merged 2 commits into
mainfrom
fork-ci-gate-narrow-ci-defining
Nov 3, 2026
Merged

potiuk merged 2 commits into
mainfrom
fork-ci-gate-narrow-ci-defining

Conversation

@potiuk

@potiuk potiuk commented Nov 2, 2026

Copy link
Copy Markdown
Member

A docs-only change under dev/breeze/ (#76272) drafted the pull request and waited for a maintainer as if it changed CI. Only files that change the build-info outputs (which jobs run, and on which runners) let a pull request steer its own CI: the workflows and actions, the breeze sources, the breeze installation, and scripts/ci/prek/, whose provider dependencies script selective checks runs.

  • Only those files hold a gated pull request's runs and mark a green fork run green_unverified.
  • A green_unverified pull request is no longer drafted. It keeps a pending status and needs project ci, so it still cannot merge until a maintainer runs project CI.
  • Changes to the other files CI uses (the rest of dev/breeze/ and scripts/ci/, scripts/docker/, scripts/in_container/, Dockerfiles, prek configuration) are not held, but a one-time comment points them out to the reviewer.
  • The provider dependencies script runs with uv run --no-config, so a pull request cannot point its dependency installation at another index through pyproject.toml or uv.toml.

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

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

🤖 Generated with Claude Code

@shahar1 shahar1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Narrowing the hold to build-info inputs is sound (the dropped paths still fail auto-approval via ENVIRONMENT_FILES and gated PRs only run the gate), but three docs outside the diff still describe the old rule and the ci-modification note should tell a gated PR's reviewer that the fork run executed the listed files.

Smaller observations

  • dev/breeze/doc/ci/05_workflows.md — Lines 110-113 ("Automatic approval of workflow runs") are not in this diff and still describe the previous rule. After this change changes_ci_definition holds only .github/, dev/breeze/src/, dev/breeze/pyproject.toml, dev/breeze/uv.lock, scripts/ci/install_breeze.sh and scripts/ci/prek/, and the files it drops now get the new note comment instead of the need workflow approval hold. Suggest replacing the list and adding one sentence about the <!-- workflow-approval: ci-modification --> note for the rest.
  • contributing-docs/25_maintainer_pr_triage.md — Lines 261-263 and 278-280 are not in this diff. With this change release() undrafts a green_unverified pull request the bot drafted and only withholds ready for maintainer review, so "stay in draft" is now wrong in both places and would send a maintainer looking for drafts that no longer exist. Suggest: not drafted, no ready for maintainer review, pending Fork CI / Tests (AMD) without CI passed, labelled needs project ci until a maintainer adds use project ci.
  • contributing-docs/18_contribution_workflow.rst — Lines 185-187 are not in this diff and still name dev/breeze/ and scripts/ci/ as files that define what CI runs. A contributor editing dev/breeze/doc/ or scripts/ci/testing/ would now expect to be held and is not. Suggest the wording of the new green_unverified message: files that decide which CI jobs run and where, such as .github/, the breeze sources or scripts/ci/prek/.
  • See inline comments on dev/breeze/src/airflow_breeze/utils/fork_ci_messages.py:159, dev/breeze/src/airflow_breeze/utils/fork_ci_reconcile.py:141, dev/breeze/src/airflow_breeze/utils/fork_ci_messages.py:306.

Drafted-by: Claude Code (Claude Fable 5.1); reviewed by shahar1 before posting


This review was drafted by an AI-assisted tool and
confirmed by an Apache Airflow maintainer. The findings
below are observations, not blockers; an Apache Airflow
maintainer — a real person — will take the next look at the
PR. If you think a finding is mis-applied, please reply on
the PR and a maintainer will weigh in.

More on how Apache Airflow handles maintainer review:
Contributing guide.

@shahar1 shahar1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM — narrowing the hold to build-info inputs is sound (the dropped paths still fail auto-approval via ENVIRONMENT_FILES, gated PRs only run the gate, breeze is installed --locked and the provider-deps script now runs --no-config); real CI is green. The docs drift and the note wording are in the inline comments of my previous review, none of them blocking.

Drafted-by: Claude Code (Claude Fable 5.1); reviewed by shahar1 before posting


This review was drafted by an AI-assisted tool and
confirmed by an Apache Airflow maintainer. The maintainer
approving this PR has read the findings and signed off. If
something feels off, please reply on the PR and a maintainer
will follow up.

More on how Apache Airflow handles maintainer review:
Contributing guide.

potiuk and others added 2 commits November 3, 2026 19:52
A docs-only change under dev/breeze/ drafted the pull request and waited for a maintainer as if it changed CI, although only the files that decide which jobs run and on which runners (workflows, breeze sources, the breeze installation, and scripts/ci/prek/ whose provider dependencies script selective checks runs) can let a pull request steer its own CI. Such pull requests still wait for a maintainer to run project CI, but are no longer drafted, so they stay visible for review. Changes to the other files CI uses are no longer held, but are still pointed out to the reviewer in a one-time comment. The provider dependencies script now ignores uv configuration from the checkout, so a pull request cannot redirect where its dependencies come from.

Generated-by: Claude Opus 5
The contributor and maintainer guides, the workflows doc and the ADR still described the previous rule, which held any change under dev/breeze/ or scripts/ci/ and kept such pull requests in draft. The green_unverified message also omitted scripts/ci/prek/, so a contributor whose only held change was there could not see why the pull request waited.

The ci-modification note is the only hint that a gated pull request's green fork run executed the CI files it changed, so it now says so. The note was also lost when every waiting run had started before a label or base change, because the replacement decision did not carry it.

Generated-by: Claude Code (Claude Fable 5.1)
@shahar1
shahar1 force-pushed the fork-ci-gate-narrow-ci-defining branch from ce3445c to 9c5529e Compare November 3, 2026 17:53
@shahar1

shahar1 commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Took over and pushed fixes according to the threads :)

@github-actions

github-actions Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ 4 job(s) of attempt 1 were stopped because AWS reclaimed their EC2 Spot instances. These are not test failures.

RunsOn re-runs them automatically when the run finishes; no action is needed.

@potiuk
potiuk merged commit 3edd052 into main Nov 3, 2026
288 of 293 checks passed
@potiuk
potiuk deleted the fork-ci-gate-narrow-ci-defining branch November 3, 2026 19:14
@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

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

You can attempt to backport this manually by running:

cherry_picker 3edd052 v3-4-test

This should apply the commit to the v3-4-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 pushed a commit to shahar1/airflow that referenced this pull request Nov 4, 2026
…pache#76282)

A docs-only change under dev/breeze/ drafted the pull request and waited for a maintainer as if it changed CI, although only the files that decide which jobs run and on which runners (workflows, breeze sources, the breeze installation, and scripts/ci/prek/ whose provider dependencies script selective checks runs) can let a pull request steer its own CI. Such pull requests still wait for a maintainer to run project CI, but are no longer drafted, so they stay visible for review. Changes to the other files CI uses are no longer held, but are still pointed out to the reviewer in a one-time comment. The provider dependencies script now ignores uv configuration from the checkout, so a pull request cannot redirect where its dependencies come from.

Generated-by: Claude Opus 5
(cherry picked from commit 3edd052)
shahar1 pushed a commit to shahar1/airflow that referenced this pull request Nov 4, 2026
…pache#76282)

A docs-only change under dev/breeze/ drafted the pull request and waited for a maintainer as if it changed CI, although only the files that decide which jobs run and on which runners (workflows, breeze sources, the breeze installation, and scripts/ci/prek/ whose provider dependencies script selective checks runs) can let a pull request steer its own CI. Such pull requests still wait for a maintainer to run project CI, but are no longer drafted, so they stay visible for review. Changes to the other files CI uses are no longer held, but are still pointed out to the reviewer in a one-time comment. The provider dependencies script now ignores uv configuration from the checkout, so a pull request cannot redirect where its dependencies come from.

Generated-by: Claude Opus 5
(cherry picked from commit 3edd052)
shahar1 pushed a commit to shahar1/airflow that referenced this pull request Nov 4, 2026
…pache#76282)

A docs-only change under dev/breeze/ drafted the pull request and waited for a maintainer as if it changed CI, although only the files that decide which jobs run and on which runners (workflows, breeze sources, the breeze installation, and scripts/ci/prek/ whose provider dependencies script selective checks runs) can let a pull request steer its own CI. Such pull requests still wait for a maintainer to run project CI, but are no longer drafted, so they stay visible for review. Changes to the other files CI uses are no longer held, but are still pointed out to the reviewer in a one-time comment. The provider dependencies script now ignores uv configuration from the checkout, so a pull request cannot redirect where its dependencies come from.

Generated-by: Claude Opus 5
(cherry picked from commit 3edd052)
shahar1 pushed a commit to shahar1/airflow that referenced this pull request Nov 6, 2026
…pache#76282)

A docs-only change under dev/breeze/ drafted the pull request and waited for a maintainer as if it changed CI, although only the files that decide which jobs run and on which runners (workflows, breeze sources, the breeze installation, and scripts/ci/prek/ whose provider dependencies script selective checks runs) can let a pull request steer its own CI. Such pull requests still wait for a maintainer to run project CI, but are no longer drafted, so they stay visible for review. Changes to the other files CI uses are no longer held, but are still pointed out to the reviewer in a one-time comment. The provider dependencies script now ignores uv configuration from the checkout, so a pull request cannot redirect where its dependencies come from.

Generated-by: Claude Opus 5
(cherry picked from commit 3edd052)
shahar1 added a commit that referenced this pull request Nov 6, 2026
…fting them (#76282) (#76394)

A docs-only change under dev/breeze/ drafted the pull request and waited for a maintainer as if it changed CI, although only the files that decide which jobs run and on which runners (workflows, breeze sources, the breeze installation, and scripts/ci/prek/ whose provider dependencies script selective checks runs) can let a pull request steer its own CI. Such pull requests still wait for a maintainer to run project CI, but are no longer drafted, so they stay visible for review. Changes to the other files CI uses are no longer held, but are still pointed out to the reviewer in a one-time comment. The provider dependencies script now ignores uv configuration from the checkout, so a pull request cannot redirect where its dependencies come from.

Generated-by: Claude Opus 5
(cherry picked from commit 3edd052)

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
vatsrahul1001 pushed a commit that referenced this pull request Nov 9, 2026
…fting them (#76282) (#76394)

A docs-only change under dev/breeze/ drafted the pull request and waited for a maintainer as if it changed CI, although only the files that decide which jobs run and on which runners (workflows, breeze sources, the breeze installation, and scripts/ci/prek/ whose provider dependencies script selective checks runs) can let a pull request steer its own CI. Such pull requests still wait for a maintainer to run project CI, but are no longer drafted, so they stay visible for review. Changes to the other files CI uses are no longer held, but are still pointed out to the reviewer in a one-time comment. The provider dependencies script now ignores uv configuration from the checkout, so a pull request cannot redirect where its dependencies come from.

Generated-by: Claude Opus 5
(cherry picked from commit 3edd052)

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants