Title: ci(id): every main run builds the pkgs/id checks twice — the PR-tier matrix and the full flake check both run on push/schedule since the main-only trigger change · Issue #3045 · developing-today/code · GitHub
Open Graph Title: ci(id): every main run builds the pkgs/id checks twice — the PR-tier matrix and the full flake check both run on push/schedule since the main-only trigger change · Issue #3045 · developing-today/code
X Title: ci(id): every main run builds the pkgs/id checks twice — the PR-tier matrix and the full flake check both run on push/schedule since the main-only trigger change · Issue #3045 · developing-today/code
Description: ci(id): every main run builds the pkgs/id checks twice — the PR-tier matrix and the full flake check both run on push/schedule since the main-only trigger change Evidence (main 0f84fe08, verified this run) .github/workflows/id-check.yml ...
Open Graph Description: ci(id): every main run builds the pkgs/id checks twice — the PR-tier matrix and the full flake check both run on push/schedule since the main-only trigger change Evidence (main 0f84fe08, verified t...
X Description: ci(id): every main run builds the pkgs/id checks twice — the PR-tier matrix and the full flake check both run on push/schedule since the main-only trigger change Evidence (main 0f84fe08, verified t...
Opengraph URL: https://github.com/developing-today/code/issues/3045
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ci(id): every main run builds the pkgs/id checks twice — the PR-tier matrix and the full flake check both run on push/schedule since the main-only trigger change","articleBody":"# ci(id): every main run builds the pkgs/id checks twice — the PR-tier matrix and the full flake check both run on push/schedule since the main-only trigger change\n\n## Evidence (main `0f84fe08`, verified this run)\n\n`.github/workflows/id-check.yml` has had no `pull_request` trigger since `814c5146` (\"ci: main-only workflow triggers, cancel-in-progress everywhere\", 2026-10-30, Drew's main-only order). Its `on:` block (id-check.yml:44-58) is now: `push` to main (paths `pkgs/id/**` + the workflow/guard files), a nightly `schedule` (41 8 * * *), and `workflow_dispatch`. But the job graph still contains BOTH tiers, and nothing gates either one off for push/schedule events:\n\n- **PR tier:** `guard` (\"basic: guard PR check list\") → `check_each`, a matrix over the **26 checks** in `.github/scripts/id-pr-checks.txt` → the `check` aggregator (\"nix flake check\"). No `if:` on `guard` or `check_each`.\n- **Main tier:** `full-flake-check` (\"full (main tier): nix flake check\"), whose only gate is `if: github.event_name != 'pull_request'` — a dead condition, since the workflow can no longer receive that event. It has no `needs:` on the matrix, so it starts in parallel and cannot reuse the matrix jobs' cache uploads from the same run.\n\nThe matrix set is a subset of the full check by construction: the guard script `check-id-pr-checks.sh` exists to keep `id-pr-checks.txt` in sync with `pkgs/id/flake.nix`'s checks (every flake check is either listed or explicitly excluded as heavy), and the workflow's own comment on `full-flake-check` says the full check is the PR set \"including the heavy checks the PR list excludes\". So every push-to-main run — and every nightly schedule run — builds each of the 26 fast derivations twice: once as its own matrix job, once inside the full flake check.\n\nLive confirmation: run `41183833194` (push, 2026-10-31T08:15Z) — the jobs API shows, in one run, `basic: guard PR check list`, all 26 `basic: nix flake check (\u003cname>)` matrix jobs, and `full (main tier): nix flake check` (28 jobs at query time; the aggregator is created once the matrix completes, for 29). The 2026-10-31 nightly main-broken report (#3038) likewise names both a `basic:` matrix failure and the full `nix flake check` failure from the same tree.\n\nThe docs still describe the pre-814c5146 world: the workflow header says it \"Runs on push to main and PRs that touch pkgs/id/ files\", the concurrency comment explains how \"Pull-request runs keep sharing a per-ref group\", and `.github/ci-policy.md`'s table still lists the id PR tier as \"guard + affected-crate matrix (`id-pr-checks.txt`)\" — a tier that can never run on a PR again.\n\n## Why it matters\n\nThe matrix split (#869) and the PR-tier slimming (#1781) existed to stop paying for the same derivations repeatedly; the main-only trigger change silently reintroduced the duplication on the one event that now fires most — every merge to main that touches pkgs/id. That is ~26 extra Nix builds per merge (plus the guard and aggregator jobs), competing for the same runner pool the fleet already queues on (#1599), and doubling the surface for flaky-check noise on main (a matrix flake and the same check inside the full run can disagree, producing two differently-named failures for one tree, as #3038 shows). This is not a request to restore PR triggers — the main-only order stands — it is about making the job graph match it.\n\n## Acceptance criteria\n\n- [ ] A push-to-main (and schedule) run of the `id` workflow builds each pkgs/id check derivation at most once: e.g. the PR-tier jobs (`guard`/`check_each`/`check`) are removed or gated off for push/schedule, OR `full-flake-check` is restructured so it no longer re-runs the matrix set — with the chosen shape recorded in the workflow header.\n- [ ] The drift guards (`check-id-pr-checks.sh`, `check-crash-gate-coverage.sh`) still run exactly once per main run, in whichever job survives.\n- [ ] The dead `github.event_name != 'pull_request'` condition on `full-flake-check` is resolved, and the workflow header comment + `.github/ci-policy.md`'s id row describe the main-only reality (no PR tier that cannot fire).\n- [ ] Evidence on the closing PR: the job list of a post-change push run, showing no check name appearing in both a matrix job and the full-tier job.\n\nDistinct from: #3039 (host-eval job not a required check in nix-ci), #2936 / #1579 (pm-stack paths with no PR CI at all), #1780/#1781 (the original tier design, closed), #1599 (runner queueing — this issue reduces load, it is not the queueing bug).\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-31T12:20:12Z","url":"https://github.com/developing-today/code/issues/3045"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:24dd6c11-a9b8-47c3-3187-a8f0bb6eb6fe |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E960:11DCCF:7B28DC:A07DA2:6B062C53 |
| html-safe-nonce | 48efc803ee136e9a5d42ca52b3480637a50d5c819c1055b5361bd12e9bff0d8b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOTYwOjExRENDRjo3QjI4REM6QTA3REEyOjZCMDYyQzUzIiwidmlzaXRvcl9pZCI6IjY2NTIzMjIwNzg4NzgyMTUyNTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | eb99ef58e7de3f4ac32455d01312807dc47a5d2ab8f47697d420455576f8aae2 |
| hovercard-subject-tag | issue:6134726503 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/3045/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b97a9e013d5c44111c397448428d2c14b13d630ae4c3d590200953e61c5a688e/developing-today/code/issues/3045 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b97a9e013d5c44111c397448428d2c14b13d630ae4c3d590200953e61c5a688e/developing-today/code/issues/3045 |
| og:image:alt | ci(id): every main run builds the pkgs/id checks twice — the PR-tier matrix and the full flake check both run on push/schedule since the main-only trigger change Evidence (main 0f84fe08, verified t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dezren39 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7f961de5dd5c5d4aca24d33f8b3ffb3fb8b2ef53d0a4f32f01f0a790e512f6d3 |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 494ea0bb1e0feef734a83e2628697647755e8864 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width