Skip to content

default devShell unbuildable: cargo-llvm-cov 0.9.0 test suite fails under cargo 1.99.0 #4818

Closed

Description

@dezren39

Found 2026-11-03 during laptop verification of #4815 (pre-existing; unrelated to that PR): nix develop (the default devShell) fails on x86_64-linux — cargo-llvm-cov-0.9.0.drv fails to build because its own test suite fails under cargo 1.99.0 (14 failing tests), which cascades into nix-shell-env.drv and aborts the shell entry before any tool runs.\n\nImpact: the default shell is the front door for new contributors and for verification workflows; every default-shell consumer is blocked until this is fixed or the dependency leaves the shell.\n\nWorkarounds that work today: the lean shells substitute fine — nix develop .#fleet (go 1.27.3, treefmt) and .#mcpx-lint were both used successfully for the #4815 verification.\n\nFix directions (not prescribed): bump or pin cargo-llvm-cov to a release whose tests pass under cargo 1.99.0, drop it from the default shell into a dedicated coverage shell, or mark its check phase off if the package is only needed as a binary.

Activity

  1. added
    source/creatorFiled by the new-issue-creator job
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 3, 2026
  2. dezren39 commented on Nov 3, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    state: triaged (coverage pass)
    Coverage pass 2026-11-03: reviewed in the fleet-wide per-issue pass (drift / overlap / already-handled / stale / blockers / ordering). Verdict: still live; queued in repo-health-code-pilot as triage at priority 30 (priority/none). If this is already handled at current main, the triage closes it with evidence; if it needs splitting, the triage files the split.
    Found via: coverage pass 2026-11-03

  3. dezren39 commented on Nov 3, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off

  4. dezren39 commented on Nov 3, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    state: triaged
    verdict: live — fix path scoped, not already handled

    Verification at current main

    Checked at main = 1c1aa4a799fc8e11ff208118230de955996e509c (local HEAD and gh api repos/developing-today/code/commits/main agree; nix-common.nix at ref=main still lists cargo-llvm-cov at line 98).

    • Toolchain is still 1.99.0 (pkgs/id/rust-toolchain.toml), so the conflict described in the issue is unchanged.
    • The default devShell still pulls cargo-llvm-cov via nix-common.nix:98 (devTools), which flake.nix (devShells.default) and shell.nix both import.
    • The pinned nixpkgs still provides cargo-llvm-cov 0.9.0 (only 0.9.0 derivations exist in the local store).
    • The check-enabled derivation built against cargo 1.99.0 fails its own test suite. Local build log for /nix/store/8xgy92jfs2h355z6ravzc36800acj6b6-cargo-llvm-cov-0.9.0.drv (doCheck=1, cargo-1.99.0): test result: FAILED. 6 passed; 14 failed; 3 ignored — e.g. crate1 unittests die with SIGSEGV: invalid memory reference, and bin_crate, build_dir, cargo_config, clean_profraw_only, clean_ws, instantiations, issue303, issue361, merge_failure_mode_all, no_test, open_report, real1, virtual1, workspace_with_bin fail.
    • Control: the same package with doCheck=1 built against cargo 1.98.1 succeeded (drv 0cp8nl6p…, output 4y8qxx0… present). So the break is the 1.99.0 toolchain, not the package source or a corrupt store.

    Not reproduced as a full nix develop entry in this triage (evaluation/fetch was slow); the failure is evidenced at the failing derivation and its build log, which is what aborts nix-shell-env and the shell entry. No open PR or newer issue supersedes this: gh pr list --search cargo-llvm-cov returns only the unrelated nixpkgs bump #4519.

    Fix path (scoped, ordered)

    The package is only consumed as a binary (cargo llvm-cov in src/id/justfile:395-405, id/check-all:114, id/.cargo/config.toml); its own test suite is not part of this repo's workflows.

    1. Smallest unblock — override doCheck = false for cargo-llvm-cov in the devShell pkgs (an overlay next to the id-rust-overlay import in lib/default.nix and shell.nix, or a single pkgs.cargo-llvm-cov.overrideAttrs in nix-common.nix so both shells share it). Rationale is already in the issue: the tests validate the tool, not this repo. Cost: one local rebuild of the 0.9.0 derivation (a doCheck=false variant is not substitutable).
    2. Alternative — move cargo-llvm-cov out of the default shell into a dedicated coverage shell. Precedent exists: pkgs/id has its own shell that already lists the package (pkgs/id/nix-common.nix:79). Larger change; makes coverage a separate nix develop .#coverage step.
    3. Upstream — bump/pin cargo-llvm-cov to a release whose tests pass under 1.99.0, or wait for nixpkgs to move it. Re-check nixpkgs bump PR chore(deps): nixpkgs update 2026-10-30 #4519 before doing (1): if it already carries a fixed version, no overlay is needed.

    Recommendation: (1) now, as a nix-common.nix override so nix develop, nix-shell, and the system profile stay in sync; keep (3) as the cleanup that removes the override once the toolchain in nixpkgs carries a passing version.

    Blockers and ordering

    • No hard blocker; this is immediately actionable.
    • Ordering: if chore(deps): nixpkgs update 2026-10-30 #4519 lands first, re-check the pinned cargo-llvm-cov version/tests before applying the override, so the workaround is not carried longer than needed.
    • Workaround available to everyone today (also in the issue): the lean shells nix develop .#fleet and .#mcpx-lint build and were used for mcpx: regenerate ops.gen.ts as part of treefmt (auto-format) #4815 verification.
    • Acceptance for the fix: nix develop enters the default shell on x86_64-linux, and cargo llvm-cov runs from that shell.

    Kept open and marked status/triaged; queued as an implementation task.

  5. added
    status/triagedTriaged and routed (see agent note)
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    and removed on Nov 3, 2026
  6. dezren39 commented on Nov 4, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off

  7. 15 remaining items

  8. added
    queue/claimedQueue worker lifecycle state
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    and removed
    queue/claimedQueue worker lifecycle state
    task/triageQueue packet kind: verify, reproduce, and route this item
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/triagedTriaged and routed (see agent note)
    on Nov 8, 2026
  9. dezren39 commented on Nov 8, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up

  10. dezren39 commented on Nov 8, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · PR opened / task done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

source/creatorFiled by the new-issue-creator jobtask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions