Skip to content

THROWAWAY treatment for #2767 — do not merge - #3304

Closed
kovtcharov-amd wants to merge 2 commits into
tmp/2767-verify-basefrom
tmp/2767-verify-head
Closed

kovtcharov-amd wants to merge 2 commits into
tmp/2767-verify-basefrom
tmp/2767-verify-head

Conversation

@kovtcharov-amd

Copy link
Copy Markdown
Collaborator

Throwaway. Treatment arm for #2767: the same stacked PR WITH the fix applied. Expect the email/unit/lint checks to appear. Closing shortly.

Ovtcharov 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.
@github-actions github-actions Bot added documentation Documentation changes devops DevOps/infrastructure changes tests Test changes security Security-sensitive changes cpp agent::email Email agent changes labels Sep 2, 2026
@kovtcharov-amd

Copy link
Copy Markdown
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.

@kovtcharov-amd
kovtcharov-amd deleted the tmp/2767-verify-head branch September 2, 2026 17:07
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent::email Email agent changes cpp devops DevOps/infrastructure changes documentation Documentation changes security Security-sensitive changes tests Test changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant