Title: ci(id): PR gate's hard-coded flake-check list can silently drift from pkgs/id/flake.nix — new checks get no PR coverage · Issue #300 · developing-today/code · GitHub
Open Graph Title: ci(id): PR gate's hard-coded flake-check list can silently drift from pkgs/id/flake.nix — new checks get no PR coverage · Issue #300 · developing-today/code
X Title: ci(id): PR gate's hard-coded flake-check list can silently drift from pkgs/id/flake.nix — new checks get no PR coverage · Issue #300 · developing-today/code
Description: Summary Since PR #295, the PR gate in .github/workflows/id-check.yml builds an explicit, hard-coded list of flake checks (22 names in a bash array) instead of running the full nix flake check. Any new check added to pkgs/id/flake.nix wil...
Open Graph Description: Summary Since PR #295, the PR gate in .github/workflows/id-check.yml builds an explicit, hard-coded list of flake checks (22 names in a bash array) instead of running the full nix flake check. Any ...
X Description: Summary Since PR #295, the PR gate in .github/workflows/id-check.yml builds an explicit, hard-coded list of flake checks (22 names in a bash array) instead of running the full nix flake check. Any ...
Opengraph URL: https://github.com/developing-today/code/issues/300
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ci(id): PR gate's hard-coded flake-check list can silently drift from pkgs/id/flake.nix — new checks get no PR coverage","articleBody":"## Summary\n\nSince PR #295, the PR gate in `.github/workflows/id-check.yml` builds an **explicit, hard-coded list** of flake checks (22 names in a bash array) instead of running the full `nix flake check`. Any **new** check added to `pkgs/id/flake.nix` will silently stay out of the PR gate until someone remembers to edit the workflow list; only the nightly full `nix flake check` in `id-e2e-nightly.yml` would catch a failure in it. There is no drift guard comparing the two lists.\n\n## Evidence\n\nVerified 2026-10-18 against current `main`:\n\n- `.github/workflows/id-check.yml` (\"Run PR checks\" step) hard-codes: `cargo-fmt-check rustfmt-check web-fmt-check prettier-check nix-fmt-check treefmt-check biome-check shellcheck-check shfmt-check statix-check taplo-check clippy-lint web-lint cargo-check test test-unit test-int test-web test-web-unit test-web-typecheck crash-gate doc` and builds `./pkgs/id#checks.x86_64-linux.\u003cname>` for each.\n- `pkgs/id/flake.nix` `checks` defines exactly those 22, plus the `default` aggregate (intentionally unlisted — it re-runs the same set in one derivation) and the heavy set the comment names as nightly-only: `test-e2e`, `nixos-serve`, `nixos-e2e`, `nixos-playwright-e2e`, `nixos-integration`.\n- So **today the lists match exactly** — this is a guard against future drift, not a report of a currently-missing check. The failure mode is silent: a PR adding e.g. a new lint or test check to `flake.nix` goes green on the PR gate while the new check never runs there, and nobody is notified when the nightly eventually fails on it.\n\n## Why it matters\n\nThe split in #292/#295 bought a much faster PR gate (~minutes instead of ~2h) by enumerating checks. Enumeration without a guard trades that speed for a silent-coverage hole that grows with every future check added to the flake — the exact class of problem the mcpx side of #295 ran into in reverse (#297: a check that existed only in a bot job).\n\n## Suggested fix\n\nAdd a lightweight drift guard, e.g.:\n\n- a step in `id-check.yml` (or a small dedicated workflow/job) that lists `nix flake show ./pkgs/id --json` check names, subtracts the documented exclusions (`default`, `test-e2e`, the four `nixos-*` checks), and fails if the remainder differs from the workflow's array in either direction; **or**\n- generate the array from the flake at runtime (`nix eval --json .#checks...` keys minus exclusions) so there is no second list to drift.\n\nKeep the exclusion list in exactly one place, named with the same wording as the existing comment in `id-check.yml`.\n\n## Acceptance criteria\n\n- [ ] Adding a new check to `pkgs/id/flake.nix` without touching the workflow makes the PR gate fail with a message naming the unlisted check (verified by a throwaway check or a test of the guard script).\n- [ ] Removing/renaming a check that the workflow lists also fails the guard instead of failing obscurely (or silently passing) in the build step.\n- [ ] The current main state passes the guard: the 22 listed checks match the flake's non-excluded checks exactly.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-18T18:17:37Z","url":"https://github.com/developing-today/code/issues/300"}
| 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:9a4d81e6-bf4d-5778-25b4-6b527f89f6c3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C9E0:3C042B:91BF7A:BD19B4:6B063203 |
| html-safe-nonce | bd632ca358c077d8edcfc031f2cc2e77723f1fe9fc072f49049e5b8fffe628bf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOUUwOjNDMDQyQjo5MUJGN0E6QkQxOUI0OjZCMDYzMjAzIiwidmlzaXRvcl9pZCI6IjI0NjcwNjA2MzAwMDg3NzEwNzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a3421ba0557f052f4c8effe542d69c42e9376573b409f14c01475a833f7644bb |
| hovercard-subject-tag | issue:5912628426 |
| 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/300/issue_layout |
| twitter:image | https://opengraph.githubassets.com/99c3995dd104cb2b502471c9aca72bf92d1e00bfccb3baa0d6e1b1084bbb5f25/developing-today/code/issues/300 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/99c3995dd104cb2b502471c9aca72bf92d1e00bfccb3baa0d6e1b1084bbb5f25/developing-today/code/issues/300 |
| og:image:alt | Summary Since PR #295, the PR gate in .github/workflows/id-check.yml builds an explicit, hard-coded list of flake checks (22 names in a bash array) instead of running the full nix flake check. Any ... |
| 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 | c3584c853cd39700ecff6e2cf8364295ffdb5313e571046c41cd2479270f7df0 |
| 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 | 9eb3bb1597d09170a5f282cd38ae376dee1a5ec1 |
| 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