Skip to content

Move known_airflow_exceptions.txt out of scripts/ into generated/#69057

Merged
potiuk merged 1 commit into
apache:mainfrom
potiuk:move-known-airflow-exceptions-out-of-scripts
Jun 26, 2026
Merged

Move known_airflow_exceptions.txt out of scripts/ into generated/#69057
potiuk merged 1 commit into
apache:mainfrom
potiuk:move-known-airflow-exceptions-out-of-scripts

Conversation

@potiuk

@potiuk potiuk commented Jun 26, 2026

Copy link
Copy Markdown
Member

Problem

The check-no-new-airflow-exceptions hook keeps its allowlist baseline at scripts/ci/prek/known_airflow_exceptions.txt. That file is updated by any PR that legitimately adds, removes, or moves a raise AirflowException — typically provider or core changes with nothing to do with dev tooling.

Because it lived under scripts/, boring-cyborg matched it against the scripts/**/* glob and auto-applied area:dev-tools and — the real problem — backport-to-v3-3-test, triggering wrong automated backports of unrelated provider PRs (e.g. the false backport flagged on #69019).

Fix

Move the generated allowlist to generated/known_airflow_exceptions.txt. No boring-cyborg rule matches generated/, so editing the baseline no longer looks like a dev-tools change and won't auto-label/backport. The hook script now reads/writes it from the repo-root generated/ directory (via the existing REPO_ROOT). .txt files carry no license header (no insert-license hook covers .txt), so nothing else changes.

Pure rename + 4 path-reference updates in the hook script; verified the hook still passes and --generate writes to the new location.

Worth backporting to v3-3-test so the same false trigger is fixed there.


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

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

The check-no-new-airflow-exceptions hook keeps its allowlist baseline in
scripts/ci/prek/known_airflow_exceptions.txt. That file is touched by any PR
that legitimately adds, removes, or moves a raise AirflowException -- typically
provider or core changes that have nothing to do with dev tooling. Because it
lived under scripts/, boring-cyborg matched it against the scripts/**/* glob and
auto-applied area:dev-tools and, worse, backport-to-v3-3-test, triggering wrong
automated backports of unrelated provider PRs.

Move the generated allowlist to generated/known_airflow_exceptions.txt, which no
boring-cyborg rule matches, so editing it no longer looks like a dev-tools change.
The hook script reads/writes it from the repo-root generated/ directory; .txt
files carry no license header, so nothing else changes.
@potiuk
potiuk merged commit 78263d0 into apache:main Jun 26, 2026
61 checks passed
@potiuk
potiuk deleted the move-known-airflow-exceptions-out-of-scripts branch June 26, 2026 20:34
@github-actions

Copy link
Copy Markdown
Contributor

Backport successfully created: v3-3-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-3-test PR Link

github-actions Bot pushed a commit to aws-mwaa/upstream-to-airflow that referenced this pull request Jun 26, 2026
…nerated/ (apache#69057)

The check-no-new-airflow-exceptions hook keeps its allowlist baseline in
scripts/ci/prek/known_airflow_exceptions.txt. That file is touched by any PR
that legitimately adds, removes, or moves a raise AirflowException -- typically
provider or core changes that have nothing to do with dev tooling. Because it
lived under scripts/, boring-cyborg matched it against the scripts/**/* glob and
auto-applied area:dev-tools and, worse, backport-to-v3-3-test, triggering wrong
automated backports of unrelated provider PRs.

Move the generated allowlist to generated/known_airflow_exceptions.txt, which no
boring-cyborg rule matches, so editing it no longer looks like a dev-tools change.
The hook script reads/writes it from the repo-root generated/ directory; .txt
files carry no license header, so nothing else changes.
(cherry picked from commit 78263d0)

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
aws-airflow-bot pushed a commit to aws-mwaa/upstream-to-airflow that referenced this pull request Jun 26, 2026
…nerated/ (apache#69057)

The check-no-new-airflow-exceptions hook keeps its allowlist baseline in
scripts/ci/prek/known_airflow_exceptions.txt. That file is touched by any PR
that legitimately adds, removes, or moves a raise AirflowException -- typically
provider or core changes that have nothing to do with dev tooling. Because it
lived under scripts/, boring-cyborg matched it against the scripts/**/* glob and
auto-applied area:dev-tools and, worse, backport-to-v3-3-test, triggering wrong
automated backports of unrelated provider PRs.

Move the generated allowlist to generated/known_airflow_exceptions.txt, which no
boring-cyborg rule matches, so editing it no longer looks like a dev-tools change.
The hook script reads/writes it from the repo-root generated/ directory; .txt
files carry no license header, so nothing else changes.
(cherry picked from commit 78263d0)

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>

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

Thanks

vatsrahul1001 added a commit that referenced this pull request Jun 29, 2026
…nerated/ (#69057) (#69060)

The check-no-new-airflow-exceptions hook keeps its allowlist baseline in
scripts/ci/prek/known_airflow_exceptions.txt. That file is touched by any PR
that legitimately adds, removes, or moves a raise AirflowException -- typically
provider or core changes that have nothing to do with dev tooling. Because it
lived under scripts/, boring-cyborg matched it against the scripts/**/* glob and
auto-applied area:dev-tools and, worse, backport-to-v3-3-test, triggering wrong
automated backports of unrelated provider PRs.

Move the generated allowlist to generated/known_airflow_exceptions.txt, which no
boring-cyborg rule matches, so editing it no longer looks like a dev-tools change.
The hook script reads/writes it from the repo-root generated/ directory; .txt
files carry no license header, so nothing else changes.
(cherry picked from commit 78263d0)

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
Co-authored-by: Rahul Vats <43964496+vatsrahul1001@users.noreply.github.com>
karenbraganz pushed a commit to karenbraganz/airflow that referenced this pull request Jun 30, 2026
…ache#69057)

The check-no-new-airflow-exceptions hook keeps its allowlist baseline in
scripts/ci/prek/known_airflow_exceptions.txt. That file is touched by any PR
that legitimately adds, removes, or moves a raise AirflowException -- typically
provider or core changes that have nothing to do with dev tooling. Because it
lived under scripts/, boring-cyborg matched it against the scripts/**/* glob and
auto-applied area:dev-tools and, worse, backport-to-v3-3-test, triggering wrong
automated backports of unrelated provider PRs.

Move the generated allowlist to generated/known_airflow_exceptions.txt, which no
boring-cyborg rule matches, so editing it no longer looks like a dev-tools change.
The hook script reads/writes it from the repo-root generated/ directory; .txt
files carry no license header, so nothing else changes.
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