Skip to content

Fix fork CI gate validation on release branches - #77571

Merged
aaron-y-chen merged 3 commits into
apache:mainfrom
aaron-y-chen:fix-fork-ci-gate-check-on-release-branches
Dec 1, 2026
Merged

aaron-y-chen merged 3 commits into
apache:mainfrom
aaron-y-chen:fix-fork-ci-gate-check-on-release-branches

Conversation

@aaron-y-chen

Copy link
Copy Markdown
Contributor

Static checks on v3-4-test rejected ten existing pilot entries after their November 16 join date had passed. With no GITHUB_BASE_REF, the hook fell back to main, where those entries have different dates. It flagged them as changes to the release branch. The same failure occurred in a manual run. Pilot backport · Failed push job · Failed manual job

Push, scheduled, and manual runs in apache/airflow validate the checked-out configuration and check that the pilot list matches .asf.yaml. This keeps an already merged pilot entry from failing static checks after its join date passes.

Fork CI checks date changes against the base commit it merged with. For fork runs without a synthetic merge, Breeze's AIRFLOW_BRANCH identifies the upstream branch. This keeps release-branch pilot dates from being treated as edits and still catches backdated entries before merge.

Backport this fix with the backport-to-v3-4-test label.

Validation

  • All 50 tests in scripts/tests/ci/prek/test_check_fork_ci_gate_config.py passed.
  • In a shallow checkout, the original failing v3-4-test push passed. Fork runs with and without a synthetic merge also passed, including a run whose upstream branch tip differed from the selected base commit.
  • A simulated official push and manual run passed after a pilot entry was merged late. Fork CI rejected the same date before merge, and a scheduled run rejected a mismatched .asf.yaml pilot list.
  • prek run check-fork-ci-gate-config --all-files, prek run mypy-scripts --all-files, and Ruff formatting and lint checks passed.

Was generative AI tooling used to co-author this PR?
  • Yes — Claude Code (Opus 5.5) and OpenAI Codex (GPT-6)

Generated-by: Claude Code (Opus 5.5) and OpenAI Codex (GPT-6) following the guidelines

@github-actions github-actions Bot added the fork ci required Gated by AIP-120: CI must pass in the contributor's fork. Managed by the fork CI reconciler. label Nov 25, 2026
@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Project CI in use. A maintainer added the use project ci label, so CI for this pull request runs in apache/airflow. It starts on the next push, or when a maintainer closes and reopens this pull request.


This comment was posted automatically by the fork CI monitor from templates drafted with an AI-assisted tool, so it may contain mistakes. An Apache Airflow maintainer, a real person, will review the pull request once its fork CI is green. Why the first pass is automated.

@github-actions

Copy link
Copy Markdown
Contributor

Your CI change needs a maintainer. CI for this pull request runs in your fork, and the workflow runs it starts in apache/airflow are approved automatically while they only run the fork CI gate. This pull request changes files that define what CI runs:

  • scripts/ci/prek/check_fork_ci_gate_config.py

Such a change can make project CI run on the project's runners, so its workflow runs in apache/airflow wait for a maintainer to review the change and approve them. CI in your fork is not affected, and its result stays visible on this pull request. Pull requests from contributors run their CI in the contributor's own fork. GitHub Actions is free and has no minute limit on public forks, while the CI capacity of the Apache Software Foundation is shared by every ASF project and is finite.


This comment was posted automatically by the fork CI monitor from templates drafted with an AI-assisted tool, so it may contain mistakes. An Apache Airflow maintainer, a real person, will review the pull request once its fork CI is green. Why the first pass is automated.

@aaron-y-chen

Copy link
Copy Markdown
Contributor Author

Hi @potiuk, could you take a look at this fix in the fork CI gate check?

Since 2026-11-16 00:00 UTC, static checks have failed on every push and workflow_dispatch run of v3-4-test, starting with this run. Without GITHUB_BASE_REF, check-fork-ci-gate-config compared the configuration with main. The ten pilot entries that #77105 gave a 2026-11-16 join instant on v3-4-test have earlier instants on main, so once that date passed the hook took them for new entries in the past.

With this PR, push, scheduled and manual runs in apache/airflow validate the checked-out configuration, since their entries were already checked by their pull requests. Fork CI compares with the base commit it merged with, or the upstream branch from AIRFLOW_BRANCH. This also covers pilot pull requests against v3-4-test, whose fork CI would have failed the same way.

The hook's tests pass and fork CI is green. The PR changes scripts/ci/prek/, so it needs a maintainer to run project CI.

@github-actions github-actions Bot added the needs project ci Green fork CI, but CI files changed: a maintainer reviews and adds use project ci. label Nov 25, 2026

@Andrushika Andrushika 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! Left some nits

@amoghrajesh amoghrajesh 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.

One comment, otherwise LGTM

@github-actions github-actions Bot removed the needs project ci Green fork CI, but CI files changed: a maintainer reviews and adds use project ci. label Nov 25, 2026
@amoghrajesh amoghrajesh added the use project ci Committer override: run project CI for a PR that fork CI would otherwise gate. label Nov 25, 2026
@github-actions github-actions Bot added need workflow approval and removed fork ci required Gated by AIP-120: CI must pass in the contributor's fork. Managed by the fork CI reconciler. need workflow approval labels Nov 25, 2026
@aaron-y-chen
aaron-y-chen merged commit e24990d into apache:main Dec 1, 2026
65 checks passed
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Backport successfully created: v3-4-test

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 PR Link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:dev-tools backport-to-v3-4-test Backport to v3-4-test use project ci Committer override: run project CI for a PR that fork CI would otherwise gate.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants