Repository navigation
THROWAWAY treatment for #2767 — do not merge - #3304
Closed
kovtcharov-amd wants to merge 2 commits into
Closed
kovtcharov-amd wants to merge 2 commits into
kovtcharov-amd wants to merge 2 commits into
Conversation
added 2 commits
September 2, 2026 09:15
`on.pull_request.branches` matches the PR's BASE branch, not its head, so `branches: [ main ]` meant "only when merging into main". Every PR stacked on a feature branch fell outside the filter and the jobs were never created — nothing failed, nothing showed as skipped, the checks page was simply missing them. #2599 merged email-agent changes with zero email tests, zero unit tests and zero lint behind a green page. Drops the filter from the 34 workflows that carried it. `paths:` filters and `push:` triggers are untouched, so a workflow still only runs for the code it covers and still only runs on main for pushes. `util/check_workflow_triggers.py` (wired into `lint.py --all`) fails the build if the filter comes back; lint.yml now watches `.github/workflows/**` so a workflows-only PR actually runs that gate.
Collaborator
Author
|
Closing — throwaway verification PR, not intended to merge. The #2767 investigation it belonged to was stopped: stacked-branch CI coverage is by design, so there is nothing to fix. |
5 tasks done
kovtcharov
pushed a commit
to kovtcharov/gaia
that referenced
this pull request
Sep 12, 2026
…md#3372) Before: a pull request based on any branch other than `main` ran no unit tests, no lint and no agent suites, and its checks page looked healthy the whole time — nothing failed, nothing showed as skipped, the jobs simply never existed. amd#2599 merged email-agent changes that way, with zero email tests, zero unit tests and zero lint behind a green page. After: those workflows run on every pull request regardless of base, so a stacked PR is held to the same bar as one opened against `main`. This matters right now because 42 open PRs are sitting on CI results that can't be trusted until it lands. The cause is that `on.pull_request.branches` matches the PR's **base** branch, not its head, so `branches: [ main ]` meant "only when merging into main". 34 workflows carried it, including `lint`, `test_unit`, `test_security` and `dependency-review`. Nothing is left main-only. Scoping stays where it belongs — every `paths:` filter is preserved byte-for-byte, so a workflow still only runs for the code it covers, and the 5 workflows whose `branches:` filter sits under `push:` are untouched, since restricting *pushes* to `main` is correct. A PR into the `release` branch would now run CI too; that is the desired behaviour and costs nothing today, because `release` is force-pushed from a tag by `update-release-branch.yml` and has never once been a PR target. Excluding it would just recreate this bug for the first backport anyone opens. To stop it regressing, `util/check_workflow_triggers.py` fails the build if the filter reappears, and `lint.yml` now watches `.github/workflows/**` so a workflows-only PR actually runs that gate — without it the guard would itself be invisible on the change most likely to trip it. Fixes amd#2767 ## Test plan - [x] Stacked-PR A/B on a throwaway base branch, same touched file in both arms. Control (no fix, amd#3303): 10 checks, none of them lint, unit or email. Treatment (this fix, amd#3304): 56 checks including `Run Code Quality Checks`, `Unit Tests`, `Test Email Agent`, `Skill Audit` and `Dependency Review`. Both were drafts, so every job then short-circuited on its existing `draft == false` guard — the point is that the check runs exist at all, which in the control they do not. - [x] `python util/check_workflow_triggers.py` passes on all 72 workflows, and fails with the file name and issue number when the filter is reintroduced. - [x] `python -m pytest tests/unit/test_check_workflow_triggers.py` — 12 passed. - [x] `python util/lint.py` — black, isort, flake8, security suppressions, agent conventions, dependabot, workflow triggers, doc versions all pass. (Pylint reports 9 pre-existing `os.killpg`/`os.geteuid` no-member errors on untouched files; those are Windows-only false positives and CI runs Linux.) - [x] Every touched workflow re-parsed with `yaml.safe_load`; confirmed all 35 `push:` triggers are still scoped to `main` and no `paths:` filter changed. Co-authored-by: Ovtcharov <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Throwaway. Treatment arm for #2767: the same stacked PR WITH the fix applied. Expect the email/unit/lint checks to appear. Closing shortly.