Skip to content

Move operator-init exemptions list to generated/#70361

Closed
shahar1 wants to merge 4 commits into
apache:mainfrom
shahar1:cyborg-skip-init-exemptions-backport
Closed

Move operator-init exemptions list to generated/#70361
shahar1 wants to merge 4 commits into
apache:mainfrom
shahar1:cyborg-skip-init-exemptions-backport

Conversation

@shahar1

@shahar1 shahar1 commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

validate_operators_init_exemptions.txt lived under scripts/, which is one of the
paths that earns a backport-to-v3-3-test label. Every PR that moves template-field
logic out of an operator's __init__ and drops that operator's line from the list
therefore got flagged for a backport that never applies — the burn-down
(#70296) only ever happens on main.

Moving the file to generated/ fixes that without touching the labeller: generated/
matches no rule in boring-cyborg.yml. It also puts the two prek allowlists in the
same place, next to known_airflow_exceptions.txt.

The hook itself is unchanged apart from the path, which now comes from
AIRFLOW_ROOT_PATH like the other prek scripts. The stale-exemption error message
prints the repo-relative path instead of the bare filename, since the file no longer
sits next to the script.

Verified: prek run validate-operators-init --all-files passes, and the loader still
reads all 80 exempted classes across 62 files from the new location.


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

…test

The operator-init exemptions list lives under scripts/, so every PR that fixes
an operator and drops its line from the list gets a backport-to-v3-3-test label.
Those removals track work that only happens on main and are never backported, so
the label is pure noise for the release manager triaging the backport queue.
shahar1 added 2 commits July 24, 2026 09:51
The list lived under scripts/, which is one of the paths that earns a
backport-to-v3-3-test label, so every PR that fixes an operator and drops its
line was flagged for a backport that never applies — the burn-down only happens
on main. Sitting next to known_airflow_exceptions.txt also puts the two prek
allowlists in the same place.
@shahar1 shahar1 changed the title Stop labelling operator-init exemption removals for backport to v3-3-test Move operator-init exemptions list to generated/ Jul 24, 2026
@shahar1

shahar1 commented Jul 24, 2026

Copy link
Copy Markdown
Contributor Author

I'll merge this PR once handling most of the open PRs in #70359

@shahar1 shahar1 removed the backport-to-v3-3-test Backport to v3-3-test label Jul 24, 2026
@shahar1

shahar1 commented Jul 24, 2026

Copy link
Copy Markdown
Contributor Author

At this rate we'll get done with the changes even before we get his merged, closing for now - I'll handle the labels manually.

@shahar1 shahar1 closed this Jul 24, 2026
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.

1 participant