overlays: deselect mcp-nixos 3.0.1's subprocess-timeout checkPhase test (nix-config#857) #1875
No reviewers
Labels
No labels
backlog
bug
enhancement
in-progress
library
needs-rebase
review
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ymrtech/nix-config!1875
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "kb/NCFG-857-flake-mcp-nixos"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
nix-config#857 — the weekly flake-update gate reds inside nixpkgs'
mcp-nixos-3.0.1checkPhase, not in our code.Step one (usage check) — mcp-nixos IS used here, so the drop path is out:
hosts/vpn/default.nix:2347— the hermes-agent unit'sextraPackagescarriesmcp-nixosonto the unit PATH.hosts/vpn/default.nix:3052— the profile declaresmcpServers.nixos = { command = "mcp-nixos"; }.~/.hermes/config.yaml:79-82,~/.hermes/profiles/coding/config.yaml:83-85) readsnixos: {command: mcp-nixos, enabled: true}, and themcp__nixos__*tools are exposed to the coding profile in-session.hosts/giga/default.nix:71) and package (:273).Why an overlay, and why one
disabledTestsentry:tests/test_env_file_safety.py::test_startup_survives_non_utf8_dotenvspawns a FRESH interpreter and importsmcp_nixos.server(fastmcp + pydantic) under a hardsubprocess.run(..., timeout=60). On the contended aarch64-under-qemu build host that first import loses a wall-clock race; the failing drv is byte-identical across all three freeze rungs, so the ladder can never clear it.Measured, same host, two arms (vpn, aarch64 native,
nix-store --realise):/nix/store/13llkgvx…-mcp-nixos-3.0.1.drvtests/test_env_file_safety.py::test_startup_survives_non_utf8_dotenv PASSED…415 passed in 6.70s/nix/store/p1f9bk5i…-mcp-nixos-3.0.1.drvpytest flags: -m pytest --ignore-glob=tests/test_integration.py -k not\ \(test_startup_survives_non_utf8_dotenv\)/collected 415 items / 1 deselected / 414 selected/414 passed, 1 deselected in 5.48sOnly the one wall-clock-bound test is deselected; the two sibling fresh-interpreter tests in that file (
timeout=30) still run.flake.overlays.defaultyields the same drv onaarch64-linux(p1f9bk5i…) andx86_64-linux(4smym06d…), i.e. the overlay really reaches every host'spkgs.Upstream: the timeout literal is
https://github.com/utensils/mcp-nixos/blob/v3.0.1/tests/test_env_file_safety.py#L55(upstream's regression test for utensils/mcp-nixos#144). No upstream issue covers this flake yet (searched 2026-10-12: zero hits for the test name, the file,subprocess,flaky), and there is no GitHub credential on the fleet to file one, so the link is to the exact offending line. Drop this override when upstream relaxes the timeout or quiets the test.Not in scope: rolling the nixpkgs flake input back.