Skip to content

fix: unbreak the amd system build — zig 0.16 names, cargo-llvm-cov checks, atlas-search HOME + smoke fixture, id inventory path, rust pin docs, shell-contract v1.8 - #10406

Merged
dezren39 merged 7 commits into
mainfrom
fix/id-zig-0-16-optimize-mode
Nov 15, 2026
Merged

dezren39 merged 7 commits into
mainfrom
fix/id-zig-0-16-optimize-mode

Conversation

@dezren39

@dezren39 dezren39 commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

Seven small fixes, each separately revertible, found one per verification build of the staged switch (code#10322). The staged payload was merged but never build-verified end to end; these are the latent breaks that surfaced:

  1. zig: pkgs/id roc-world host used pre-0.16 OptimizeMode names (.small/.debug) rejected by pinned zig 0.16.0 → .ReleaseSmall/.Debug.
  2. cargo-llvm-cov 0.9.0: its own integration tests SIGSEGV under pinned Rust 1.99 in the build sandbox → doCheck=false overlay (same pattern as zulip-term/neovim/mise).
  3. atlas-search check phase: tests write traces under home_dir() → preCheck exports HOME=$TMPDIR (both build paths). No tests skipped.
  4. atlas-search installCheck: smoke fixture predates the volatile per-run query_id field → fixture drops query_id before comparing; results/scores/ordering verified identical by hand.
  5. id admission tests read the operation-path inventory through pkgs/id/docs, a symlink that dangles inside the Nix package source → inventory moved into pkgs/id/tests/ next to the tests.
  6. id toolchain pin bumped to Rust 1.99.1 but root docs still said 1.99.0 → docs updated; plus a cargo fmt pass for drift that postCheck would have caught next.
  7. id shell contract advanced to revision 8 (v1.8) but a CLI test hardcoded the v1.7 summary string → expectation updated.

Verified: full nixos toplevel build green on this branch (nix build .#nixosConfigurations.amd.config.system.build.toplevel, exit 0), including the id package check phase (671 tests) and postCheck (clippy -D warnings + fmt --check).


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@dezren39
dezren39 requested a review from a team as a code owner November 15, 2026 00:05
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-15T00:05:59.111915Z
We couldn’t complete this review. Comment @codex review to try again.
cc54164 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@coderabbitai

coderabbitai Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 48 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ba5aaee5-ed72-4db9-9289-88078c5e8cb3
Commits

Reviewing files that changed from the base of the PR and between 66d8a31 and 7f78cb5.

Files selected for processing: 10

  • nixos/environment/default.nix
  • pkgs/atlas-search/default.nix
  • pkgs/atlas-search/fixtures/smoke_check.py
  • pkgs/id/README.md
  • pkgs/id/WEB.md
  • pkgs/id/crates/id-cli/src/commands/world.rs
  • pkgs/id/crates/id-core/tests/canonical_cbor_vectors.rs
  • pkgs/id/examples/roc-world/host/build.zig
  • pkgs/id/tests/admission_path_coverage.rs
  • pkgs/id/tests/operation-path-inventory.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

repo-worker-tmp-code-b added 7 commits November 14, 2026 18:06
…aseSmall/Debug)

pkgs/id pins zig 0.16 (nix-common.nix), whose builtin.OptimizeMode
members are capitalized; the example used .small/.debug and the
id-0.1.0 build died on both lines, blocking the amd toplevel build
(#10322 switch). One file, two lines.
The 0.9.0 package builds, but its check phase fails in the Nix
sandbox: the integration tests run LLVM-instrumented binaries that
SIGSEGV under the pinned Rust 1.99 toolchain (14 failed / 6 passed,
nix log of cargo-llvm-cov-0.9.0.drv, 2026-11-14). This blocked the
amd toplevel (system-path) and with it the #10322 switch. Same
remedy as the zulip-term/neovim/mise overlays directly above.
Every server::tests job writes traces under
home_dir()/.local/state/atlas-search (server.rs); in the Nix
sandbox HOME=/homeless-shelter is unwritable, so all 14 server
tests failed with trace-sink Permission denied and the package
build went red, blocking the amd toplevel (#10322 switch).
preCheck exports HOME=$TMPDIR in both build paths (crane and
buildRustPackage). No test is skipped; the suite now runs in an
environment that matches what it assumes.
…pe compare

Slice 2 added a per-run random query_id (UUID) to the search
envelope; the packaged-binary smoke check byte-compared the CLI
output against the recorded Python envelope, so fts_default could
never match again — the installCheck went red and blocked the amd
toplevel (#10322 switch). Verified by direct diff: query_id is the
ONLY differing field; results, scores and ordering are identical.
The check now drops query_id before comparing; everything else
must still match the recording exactly.
The admission-coverage test (46efc48, #10177) reads the
inventory at CARGO_MANIFEST_DIR/docs/operation-path-inventory.md.
pkgs/id/docs is a symlink to the repo-root doc/ tree, which
resolves in a checkout but dangles inside the Nix package
source (pkgs/id alone), so the three oracle tests failed in
the amd toplevel build with file-not-found and blocked the
#10322 switch. The inventory now lives at
pkgs/id/tests/operation-path-inventory.md — a real path inside
the package — and the test reads it there. Verified: cargo test
--test admission_path_coverage, 3 passed.
The deps bump d4d80fb (#7205) moved rust-toolchain.toml to
1.99.1 but README.md and WEB.md still said 1.99.0, failing
tests/toolchain_pin.rs (the_root_docs_name_the_pinned_rust_version)
in the amd toplevel build (#10322 switch). Docs now name 1.99.1.
The same commit applies cargo fmt across the package: the Nix
postCheck runs cargo fmt --check and drift in
crates/id-core/tests/canonical_cbor_vectors.rs and
tests/admission_path_coverage.rs would have failed it next.
fmt --check now exits 0.
pkgs/id/contract/shell-contract.v1.json is at revision 8, but the_contract_check_reports_conformance_or_every_violation hardcoded the v1.7 summary string. Update the expectation to match the embedded contract.
@dezren39
dezren39 force-pushed the fix/id-zig-0-16-optimize-mode branch from cc54164 to 7f78cb5 Compare November 15, 2026 00:06
@dezren39
dezren39 merged commit a7e77a9 into main Nov 15, 2026
1 check passed
@dezren39
dezren39 deleted the fix/id-zig-0-16-optimize-mode branch November 15, 2026 00:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant