Title: mcpx: the darwin skip override in dezren39/nix keys on this repo's check-phase line with a silent replaceStrings — no automated guard against drift · Issue #418 · developing-today/code · GitHub
Open Graph Title: mcpx: the darwin skip override in dezren39/nix keys on this repo's check-phase line with a silent replaceStrings — no automated guard against drift · Issue #418 · developing-today/code
X Title: mcpx: the darwin skip override in dezren39/nix keys on this repo's check-phase line with a silent replaceStrings — no automated guard against drift · Issue #418 · developing-today/code
Description: Finding PR #417 changed the canonical mcpx check-phase line in this repo from go test $pkgs to go test -timeout 30m $pkgs, and correctly updated this repo's own guard. But the same exact string is also the search pattern for the darwin t...
Open Graph Description: Finding PR #417 changed the canonical mcpx check-phase line in this repo from go test $pkgs to go test -timeout 30m $pkgs, and correctly updated this repo's own guard. But the same exact string is ...
X Description: Finding PR #417 changed the canonical mcpx check-phase line in this repo from go test $pkgs to go test -timeout 30m $pkgs, and correctly updated this repo's own guard. But the same exact string...
Opengraph URL: https://github.com/developing-today/code/issues/418
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"mcpx: the darwin skip override in dezren39/nix keys on this repo's check-phase line with a silent replaceStrings — no automated guard against drift","articleBody":"## Finding\n\nPR #417 changed the canonical mcpx check-phase line in this repo from `go test $pkgs` to `go test -timeout 30m $pkgs`, and correctly updated this repo's own guard. But the same exact string is also the search pattern for the darwin test-skip override in dezren39/nix, where it is applied with `builtins.replaceStrings` — which silently returns its input unchanged when the pattern does not match. Nothing automated in either repo fails if the two drift apart again; the downstream retarget in dezren39/nix PR #513 was verified only by a manual `nix eval` noted in that PR's body.\n\nThis is one cross-repo finding (one issue, per the set rule). Affected repos:\n\n- **developing-today/code** (this repo, PR reviewed): `pkgs/mcpx/package.nix:122` now runs `go test -timeout 30m $pkgs` (main `86a2aa9e648e530e0fdeadc4566e5dd28256ae00`, PR #417, commits `eaa2018d550e5ef6cc39064f1cac02e869811a25` + `f27752c539f338719a902b3e96da439f52637262`). Its guard `pkgs/mcpx/internal/buildcheck/checkphase_test.go:86-87` requires that exact line — so this repo is protected against its own line changing unnoticed, but nothing signals the downstream consumer.\n- **dezren39/nix**: `flake.nix:317-320` (main `b70c39a95ac96ee80c1769dd8e674192ca1c76cf`) rewrites the darwin `checkPhase` with `builtins.replaceStrings [ \"go test -timeout 30m $pkgs\" ] [ \"go test -timeout 30m -skip='${mcpxDarwinSkip}' $pkgs\" ]`. The skip list at `flake.nix:323` names 21 takeover/handoff tests that fail on darwin.\n\n## Evidence\n\n- `builtins.replaceStrings` is a silent no-op on a missing pattern — verified directly: `nix eval --expr 'builtins.replaceStrings [\"go test -timeout 99m $pkgs\"] [\"REPLACED\"] \"go test -timeout 30m $pkgs\"'` returns `\"go test -timeout 30m $pkgs\"` unchanged, no error.\n- The override block itself shows the safer pattern exists a few lines above: the darwin `postPatch` at dezren39/nix `flake.nix:310-311` uses `substituteInPlace --replace-fail`, which fails the build loudly when its pattern is absent. Only the checkPhase rewrite lacks that property.\n- No automated guard exists today: dezren39/nix's flake `checks` are formatting, tidy, flake-tidy-tests, plugins-tests, opencode-db-pids-tests, skill-tests (plus darwin-only sidepulse checks) — none asserts the darwin mcpx checkPhase contains `-skip=`; its `mcpx-nixbuild` workflow builds only `.#packages.x86_64-linux.mcpx`, where the darwin override is not applied. This repo's buildcheck guard reads only this repo's `package.nix`.\n- PR #417's own body named this coupling as a manual follow-up (\"its darwin `-skip` replaceStrings pattern updated to the new canonical line\"), and nix PR #513 discharged it by hand-checking `nix eval .#packages.aarch64-darwin.mcpx.checkPhase`. The next canonical-line change (a different timeout, an added flag) will need the same manual catch, with no failure if it is missed.\n\n## Why it matters\n\nIf the pattern drifts, a routine mcpx-src pin bump in dezren39/nix merges with Linux CI green while the darwin override silently does nothing: the 21 skipped takeover/handoff tests run on darwin and fail there (the flake.nix comment at dezren39/nix:296-302 records that these tests cannot pass on darwin), so the darwin mcpx build breaks — first surfacing on a Mac rebuild, with the skip list still visibly present in flake.nix, which makes the cause non-obvious. This is distinct from dezren39/nix#471, which tracks a one-time manual aarch64-darwin build verification at the current pin; that build passes today precisely because the pattern currently matches, and it would not catch the next drift.\n\n## Acceptance criteria\n\n- [ ] An automated check (in either repo, covering the set) fails when the darwin checkPhase in dezren39/nix does not contain the `-skip=` rewrite — e.g. a flake check or CI step that evaluates `.#packages.aarch64-darwin.mcpx.checkPhase` and asserts the skip is present, or a fail-on-mismatch construction replacing the bare `replaceStrings`.\n- [ ] The check demonstrably ablates: with the search pattern reverted to the pre-#417 line (`go test $pkgs`) it fails, and on the current mains of both repos it passes.\n- [ ] The check runs automatically on changes that can break it (a canonical-line change in this repo's `pkgs/mcpx/package.nix`, or an mcpx-src pin bump / `flake.nix` change in dezren39/nix), not only as a manual step recorded in a PR body.\n\nFound by the pr-diff-review job while reviewing https://github.com/developing-today/code/pull/417.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-20T14:08:58Z","url":"https://github.com/developing-today/code/issues/418"}
| 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:dba4f566-b283-fa6e-1dd3-feacb293a504 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D574:30F58B:8710EC:AF2241:6B062D38 |
| html-safe-nonce | 6a73fdae7193b6d4d924a7acbd68213dd0e63e56098d38df7bc6927a0f916688 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTc0OjMwRjU4Qjo4NzEwRUM6QUYyMjQxOjZCMDYyRDM4IiwidmlzaXRvcl9pZCI6IjQyNDg4NDY5NjcyODg3NDI5NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 139a5264b4247214d0e13b488e5f6e7097a1bcc4552e9e67b04a2cdb89b8c5fa |
| hovercard-subject-tag | issue:5943172922 |
| 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/418/issue_layout |
| twitter:image | https://opengraph.githubassets.com/755dd9d020518189a6a210a632623d02938b1f533ac4d37496b8cd9a610fedc3/developing-today/code/issues/418 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/755dd9d020518189a6a210a632623d02938b1f533ac4d37496b8cd9a610fedc3/developing-today/code/issues/418 |
| og:image:alt | Finding PR #417 changed the canonical mcpx check-phase line in this repo from go test $pkgs to go test -timeout 30m $pkgs, and correctly updated this repo's own guard. But the same exact string is ... |
| 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