diff --git a/nixos/environment/default.nix b/nixos/environment/default.nix index 5b3e92c6dc..b19eb07701 100644 --- a/nixos/environment/default.nix +++ b/nixos/environment/default.nix @@ -462,6 +462,16 @@ in doCheck = false; }); }) + # cargo-llvm-cov 0.9.0: its integration tests spawn LLVM-instrumented + # test binaries that SIGSEGV under the pinned Rust 1.99 toolchain in + # the sandbox (14 tests fail, verified 2026-11-14 against the drv + # log); the tool itself builds and runs — the failing suite is + # upstreams, not the fleets. + (final: prev: { + cargo-llvm-cov = prev.cargo-llvm-cov.overrideAttrs (_: { + doCheck = false; + }); + }) # vtk 9.5.2 (FreeCAD's dependency): nixos-unstable 2026-10-10 added a # postPatch that renames VTK's vendored pegtl module from VTK::pegtl to # VTK::vtkpegtl, but left the 9.5.x CMake switch on the old module name. diff --git a/pkgs/atlas-search/default.nix b/pkgs/atlas-search/default.nix index e8538fa16b..dfc2cdbd0c 100644 --- a/pkgs/atlas-search/default.nix +++ b/pkgs/atlas-search/default.nix @@ -115,6 +115,15 @@ if craneLib != null then src = packageSrc; inherit cargoArtifacts meta; + # The server tests run jobs end to end, and every job writes + # traces under home_dir()/.local/state/atlas-search (server.rs). + # The build sandbox's HOME is /homeless-shelter (unwritable), so + # without this every server::tests job fails on the trace sink + # and the suite goes red (verified 2026-11-14). + preCheck = '' + export HOME=$TMPDIR + ''; + # Preserve the buildRustPackage behaviour this package had: # the test suite runs in the check phase, and the smoke # installCheck runs against the installed tree. @@ -137,6 +146,15 @@ else nativeInstallCheckInputs = [ python3 ]; doInstallCheck = true; + # The server tests run jobs end to end, and every job writes + # traces under home_dir()/.local/state/atlas-search (server.rs). + # The build sandbox's HOME is /homeless-shelter (unwritable), so + # without this every server::tests job fails on the trace sink + # and the suite goes red (verified 2026-11-14). + preCheck = '' + export HOME=$TMPDIR + ''; + # The smoke: fixture FTS-only + embedded queries byte-compared # with the recorded Python envelopes, plus the closure-ONNX # load probe (an empty model dir must fail at the tokenizer, diff --git a/pkgs/atlas-search/fixtures/smoke_check.py b/pkgs/atlas-search/fixtures/smoke_check.py index 632126d52e..357533adc3 100644 --- a/pkgs/atlas-search/fixtures/smoke_check.py +++ b/pkgs/atlas-search/fixtures/smoke_check.py @@ -94,6 +94,11 @@ def main() -> int: got = json.loads(r.stdout) except json.JSONDecodeError as e: return fail(f"{name}: stdout not JSON: {e}") + # query_id is a per-run random UUID (slice 2) and is not + # part of the recorded identity; drop it before comparing. + # Everything else must stay byte-identical to the Python + # recording — that identity is the point of this check. + got.pop("query_id", None) if got != cases[name]["envelope"]: return fail( f"{name}: envelope differs from the recorded Python envelope" diff --git a/pkgs/id/README.md b/pkgs/id/README.md index 035bb252e4..4bdf723545 100644 --- a/pkgs/id/README.md +++ b/pkgs/id/README.md @@ -225,7 +225,7 @@ Enter the Nix dev shell for all required tools: nix develop ``` -This provides: Rust 1.99.0, clippy, rustfmt, cargo-llvm-cov, cargo-audit, cargo-machete, just, Bun, TypeScript, chromium, firefox. +This provides: Rust 1.99.1, clippy, rustfmt, cargo-llvm-cov, cargo-audit, cargo-machete, just, Bun, TypeScript, chromium, firefox. ### Testing diff --git a/pkgs/id/WEB.md b/pkgs/id/WEB.md index 42b612171c..6acb8ec702 100644 --- a/pkgs/id/WEB.md +++ b/pkgs/id/WEB.md @@ -66,7 +66,7 @@ Open http://localhost:3000 in your browser (default port). The Nix dev shell provides all required tools: -- Rust 1.99.0 +- Rust 1.99.1 - Bun (for TypeScript bundling) - TypeScript - Chromium and Firefox (for E2E tests) diff --git a/pkgs/id/crates/id-cli/src/commands/world.rs b/pkgs/id/crates/id-cli/src/commands/world.rs index ac5f4378f7..3e60b6715d 100644 --- a/pkgs/id/crates/id-cli/src/commands/world.rs +++ b/pkgs/id/crates/id-cli/src/commands/world.rs @@ -2512,7 +2512,7 @@ mod tests { .join("\n"); assert_eq!( check_contract(&good).unwrap(), - "3 frames conform to shell contract v1.7" + "3 frames conform to shell contract v1.8" ); let bad = [ r#"{"from": "client", "frame": {"type": "chat", "text": "too early"}}"#, diff --git a/pkgs/id/crates/id-core/tests/canonical_cbor_vectors.rs b/pkgs/id/crates/id-core/tests/canonical_cbor_vectors.rs index 6fc3d09acb..a3371a9ab1 100644 --- a/pkgs/id/crates/id-core/tests/canonical_cbor_vectors.rs +++ b/pkgs/id/crates/id-core/tests/canonical_cbor_vectors.rs @@ -12,7 +12,7 @@ #![allow(clippy::unwrap_used, clippy::expect_used, clippy::panic)] use id_core::canonical_cbor::{ - decode_canonical, encode_canonical, validate_record, CborError, RecordSpec, Value, + CborError, RecordSpec, Value, decode_canonical, encode_canonical, validate_record, }; fn hex(bytes: &[u8]) -> String { @@ -63,7 +63,10 @@ fn golden_vectors() -> Vec<(Value, &'static str)> { // Insertion order does not matter: keys sort by encoded // bytes, so {"b":2,"a":1} encodes exactly as {"a":1,"b":2}. ( - Value::Map(vec![(text("b"), Value::UInt(2)), (text("a"), Value::UInt(1))]), + Value::Map(vec![ + (text("b"), Value::UInt(2)), + (text("a"), Value::UInt(1)), + ]), "a2616101616202", ), // A sidecar-shaped record: nested map, bytes, negative @@ -89,7 +92,11 @@ fn golden_vectors_encode_and_decode_byte_exactly() { // that is key-sorted order regardless of construction // order, so compare re-encodings as well as values where // construction order already was canonical. - assert_eq!(hex(&encode_canonical(&decoded).unwrap()), want_hex, "round-trip {want_hex}"); + assert_eq!( + hex(&encode_canonical(&decoded).unwrap()), + want_hex, + "round-trip {want_hex}" + ); } } @@ -119,7 +126,11 @@ fn ambiguous_encodings_reject_with_typed_errors() { ("61ff", CborError::InvalidUtf8), ]; for (input, want) in cases { - assert_eq!(decode_canonical(&unhex(input)).unwrap_err(), want, "reject {input}"); + assert_eq!( + decode_canonical(&unhex(input)).unwrap_err(), + want, + "reject {input}" + ); } } diff --git a/pkgs/id/examples/roc-world/host/build.zig b/pkgs/id/examples/roc-world/host/build.zig index 197056eaaf..20ed6bb12a 100644 --- a/pkgs/id/examples/roc-world/host/build.zig +++ b/pkgs/id/examples/roc-world/host/build.zig @@ -1,7 +1,7 @@ const std = @import("std"); pub fn build(b: *std.Build) void { - const optimize = b.standardOptimizeOption(.{ .preferred_optimize_mode = .small }); + const optimize = b.standardOptimizeOption(.{ .preferred_optimize_mode = .ReleaseSmall }); const target = b.resolveTargetQuery(.{ .cpu_arch = .wasm32, .os_tag = .freestanding, .abi = .none }); const obj = b.addObject(.{ .name = "host", @@ -9,7 +9,7 @@ pub fn build(b: *std.Build) void { .root_source_file = b.path("src/host.zig"), .target = target, .optimize = optimize, - .strip = optimize != .debug, + .strip = optimize != .Debug, .pic = true, }), }); diff --git a/pkgs/id/tests/admission_path_coverage.rs b/pkgs/id/tests/admission_path_coverage.rs index 8aec251c79..eb112a748a 100644 --- a/pkgs/id/tests/admission_path_coverage.rs +++ b/pkgs/id/tests/admission_path_coverage.rs @@ -1,5 +1,5 @@ //! Coverage oracle for slice 9110-13 (issue #10177): every normal -//! retained-data path in `docs/operation-path-inventory.md` must map to +//! retained-data path in `tests/operation-path-inventory.md` must map to //! a fixed gate and a bypass test, and any unmapped path blocks the //! completeness claim. //! @@ -20,7 +20,7 @@ use std::fs; use std::path::{Path, PathBuf}; /// Canonical path IDs for the 9110-13 inventory. Keep in exact sync -/// with `docs/operation-path-inventory.md`; the test fails on any +/// with `tests/operation-path-inventory.md`; the test fails on any /// divergence in either direction. const CANONICAL_PATH_IDS: &[&str] = &[ "P-BU-01", @@ -47,7 +47,7 @@ fn manifest_dir() -> PathBuf { } fn inventory_text() -> String { - let path = manifest_dir().join("docs/operation-path-inventory.md"); + let path = manifest_dir().join("tests/operation-path-inventory.md"); fs::read_to_string(&path) .unwrap_or_else(|e| panic!("inventory must exist at {}: {e}", path.display())) } @@ -137,8 +137,10 @@ fn every_row_is_complete_and_anchored_to_source() { ); } assert!( - ["ingress", "read", "write", "sync", "query", "stream", "bucket"] - .contains(&row.class.as_str()), + [ + "ingress", "read", "write", "sync", "query", "stream", "bucket" + ] + .contains(&row.class.as_str()), "{}: unknown path class {}", row.id, row.class diff --git a/doc/operation-path-inventory.md b/pkgs/id/tests/operation-path-inventory.md similarity index 100% rename from doc/operation-path-inventory.md rename to pkgs/id/tests/operation-path-inventory.md