Repository navigation
Closed
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)Package/app: id (pkgs/ or apps/ in this repo)effort/mMedium: expected under 1 day of workMedium: expected under 1 day of workkind/testTest coverage, test infrastructure, or test-only fixesTest coverage, test infrastructure, or test-only fixesmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedIntake review done: acceptance criteria, links, and normalized labels addedpriority/criticalDrop everything: main broken, security exposure, repo-wide outageDrop everything: main broken, security exposure, repo-wide outagesource/humanFiled directly by a humanFiled directly by a humanstatus/needs-triageNot yet triaged; needs a first lookNot yet triaged; needs a first look
Description
Found 2026-11-04 during the switch attempt-4 pre-flight: the FULL amd toplevel was built green from origin/main @ 85c0e0b (incl. #5275 fix), but after reconciling the primary to origin/main @ 1433b92 + the ae5d592093 fork pin (e40744f), the toplevel build fails on a NEW id derivation.
Root failure (only one)
/nix/store/425f7vmgp9vlkkd6w55b90p73znr8624-id-0.1.0.drv — check phase, builder exit 101:
test structured_logging_tests::test_structured_logging_text_file_is_plain_text has been running for over 60 seconds
test structured_logging_tests::test_structured_logging_text_file_is_plain_text ... FAILED
thread 'structured_logging_tests::test_structured_logging_text_file_is_plain_text' (66620) panicked at tests/cli_integration.rs:4928:9:
file destination should record events in text mode too
error: test failed, to rerun pass `-p id --test cli_integration`
Everything else in the suite passed. Cascade: unit-id-primary.service → system-units → etc → toplevel /nix/store/bjgqdgfvh0qf2mllxjn1bl77zzymrgfl-nixos-system-amd-26.11.20261102.f9887a8.drv. Full log: laptop /home/user/toplevel-primary.log (failure at line 842 ff.).
Context
- The id drv that PASSED the same pre-flight hours earlier was
8zsvmlvjj4kgq32hcmh7sbawzpbmw5b1-id-0.1.0.drv(tree @ 85c0e0b, check phase green end-to-end, ~30 min). Between that tree and 1433b92, pkgs/id changed via several queue merges (incl. fix(id): verify uploaded bytes against the declared image type (#5342) #5357/id(web): /api/upload trusts the declared multipart Content-Type — uploaded bytes are never checked against the image type they are stored and served as #5342 upload byte check, fix(id): bound clap derive stack use in CLI parse path #5329 CLI parse stack, test(id): schedule fire joiner-visibility + ceiling proving tests (#5239, #796 item 10-2) #5298) — the drv hash changed accordingly. - The failing test waited >60 s before failing, so a timing/interaction component is plausible (cf. the pkgs/id tests: bound the unbounded network awaits (live-iroh connects/receives) so a wedged test cannot hang a nix check phase #5218 family of unbounded waits in the id test surface), but this is a first-party failure on its face and the switch line does not fix first-party packages — it is filed here for the owning line.
- Until this is green at the primary tree, the fleet switch cannot launch: the switch consumes exactly this toplevel.
Generation remains the 2026-11-01 build (system-526); nothing activated.
Acceptance criteria
structured_logging_tests::test_structured_logging_text_file_is_plain_text(tests/cli_integration.rs) passes reliably in the pkgs/id check phase at the primary tree — no >60s hang.- Root cause identified and stated on this issue: whether the failure is a timing/unbounded-wait interaction (cf. the pkgs/id tests: bound the unbounded network awaits (live-iroh connects/receives) so a wedged test cannot hang a nix check phase #5218 family) or a real text-mode logging regression introduced between tree 85c0e0b and 1433b92.
- The full amd toplevel builds green from origin/main including the id derivation, unblocking the fleet switch pre-flight.
Metadata
Metadata
Assignees
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)Package/app: id (pkgs/ or apps/ in this repo)effort/mMedium: expected under 1 day of workMedium: expected under 1 day of workkind/testTest coverage, test infrastructure, or test-only fixesTest coverage, test infrastructure, or test-only fixesmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedIntake review done: acceptance criteria, links, and normalized labels addedpriority/criticalDrop everything: main broken, security exposure, repo-wide outageDrop everything: main broken, security exposure, repo-wide outagesource/humanFiled directly by a humanFiled directly by a humanstatus/needs-triageNot yet triaged; needs a first lookNot yet triaged; needs a first look
Activity
dezren39 commentedon Nov 4, 2026
Intake review — fleet monitor, 2026-11-04.
Related: filed from the switch attempt-4 pre-flight (Drew, 2026-11-04); the same test passed end-to-end on tree 85c0e0b hours earlier, so this is a regression window between 85c0e0b and 1433b92 — pkgs/id changed via #5357/#5342 (upload byte check), #5329 (CLI parse stack), #5298 in that window. Cf. #5218 family of unbounded waits in the id test surface.
Notes: First-party check-phase failure, single test, everything else green. The >60s wait before the panic is the strongest clue: the assertion ("file destination should record events in text mode too") fired only after a long wait, which points at an event-flush/wait interaction rather than wrong content.
Risks: blocks the fleet switch (the switch consumes exactly this toplevel); generation remains the 2026-11-01 build until this is green. Priority set critical for that reason.
Suggested approach: bisect the pkgs/id changes in the window against this one test in CI; check whether the text-file destination path now waits on a condition the test's setup no longer satisfies, before touching timeouts.
Merge pull request #5406 from developing-today/fix/5374-empty-rust-log
dezren39 commentedon Nov 4, 2026
Root cause — class (i): real product bug (fixed in #5406, merged
2a08f0ae0410)resolve_log_level(pkgs/id/src/main.rs) keyedRUST_LOGhandling on mere presence. A set-but-emptyRUST_LOGreturned the empty sentinel, and the caller then used the empty string itself as the base tracing filter. A filter with no global directive leaves only the appended per-module caps (mainline::rpc=info,rustls=info, …) in effect — every other target is muted, including the serve startup warnings the structured-logging file destination exists to record. The documentedwarndefault was silently discarded.nixpkgs' cargo hooks export
RUST_LOG=(empty) into every buildRustPackage derivation (visible verbatim in this package's.drvenv), so the check phase deterministically ran this test against a muted server. The sibling JSON test passed only because it pinsID_LOG_FILE_LEVEL=debug, bypassing the inherited filter.Evidence
nix build .#id-web(check phase, same single failure, 60 s poll exhausted each time).RUST_LOG=(empty) → 0 bytes; unset /warn→ the 142-byteserve: app discovery failedwarning;error→ 0 bytes (correctly). With the fix: empty → 142 bytes again;error/debugspecs still honored exactly.Fix (#5406)
Empty or whitespace-only
RUST_LOG(and, by the same principle,LOG_LEVEL) is treated as unset and falls through to the remaining sources and thewarndefault — mirroring how the same function already treats an emptyDEBUG. The pinned precedence-table unit test was updated to the corrected semantics; the integration test itself is unchanged (its assertion was right all along).Gate
nix build .#id-webat the PR tree (main8854bf748+ fix): green — 45 test suites ok, 0 failed;test_structured_logging_text_file_is_plain_text ... okin ~2 s (previously a 60 s timeout failure).Note for operators: any environment that exports
RUST_LOG=empty (a common CI/nix artifact) was muting this binary's logging entirely; that is fixed by the same change. Closing as fixed.