Skip to content

id: build hygiene — build-variants as a cargo artifact, justfile formatting in CI, just ci duplicated test blocks #1797

Closed

Description

@dezren39

Split from rollup #1294 (TODO.md backlog), triage task 2544, judged at main HEAD e561ab5.

Scope (build hygiene, pkgs/id)

  • Build variants: can the build-variants file be produced by the cargo build itself (a build artifact) instead of by justfile/build.sh?
  • Justfile formatting: pkgs/id/treefmt.toml drives nix fmt/just fmt for many formats but lists no justfile formatter — add justfile formatting with --check in CI and fmt in the fix path (per https://just.systems/man/en/formatting-and-dumping-justfiles.html).
  • just ci runs duplicated test blocks (the TODO observed the 237-test block repeating, possibly also the smaller 54/14 groups): audit the justfile CI recipe and de-duplicate without losing coverage; check whether subcomponent test recipes need --all-features.

Acceptance criteria

  • Each sub-item is resolved or explicitly dropped with a reason on this issue.
  • CI stays green; no test coverage is silently dropped by the de-duplication.

Activity

  1. added
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    on Oct 28, 2026
  2. developing-today commented on Oct 28, 2026

    @developing-today
    Contributor
  3. added
    kind/ciCI/CD pipelines, workflows, and build automation
    source/queue-workerFiled or worked by the queue/worker pilot
    priority/normalOrdinary priority (the default)
    effort/mMedium: expected under 1 day of work
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Oct 28, 2026
  4. dezren39 commented on Oct 28, 2026

    @dezren39
    MemberAuthor

    Intake review

    🤖 Agent note · filed

    • Agent: fleet monitor
    • Session / ID: repo-fleet-monitor run 2026-10-28 15:19 CDT
    • Found via: monitor reconciliation
    • Task: Intake enrichment — labels normalized, live status verified
    • Expectation: effort/m; done = labels + this review + meta/enriched applied
  5. added
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 3, 2026
  6. 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 40 (priority/normal). 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

  7. 13 remaining items

  8. dezren39 commented on Nov 3, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up

  9. dezren39 commented on Nov 3, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done (implementation) — task 8130 terminal state follows CI on PR #5071

    Sub-item 1 (justfile formatting in treefmt/CI): IMPLEMENTED — PR #5071.
    [formatter.just] added to pkgs/id/treefmt.toml (just was already in fmtBins, so the fix path and treefmt-check cover it), a dedicated justfmt-check flake derivation added and listed in .github/scripts/id-pr-checks.txt, and the justfile reformatted with just --fmt (16 lines of interpolation spacing/indent, no recipe changes). Verified on the laptop before push: just --fmt --check pass, treefmt --ci on the justfile pass (0 changed), just --list parses.

    Sub-item 2a (build-variant marker as a cargo artifact): DROPPED, with reason.
    The marker's contract is post-success state: scripts/build.sh writes target/.build-variant[-release] only AFTER cargo build succeeds, and reads it to detect that the last successful build was the other variant. A build.rs cannot express that: it runs before the link, on every fingerprint change (including a feature-only switch with no source edits). If that build then fails, the marker would claim the new variant while the binary is still the old one — and since no source mtimes changed, build.sh's timestamp scan would find nothing newer and wrongly report "up to date", skipping the rebuild. Cargo has no post-build-success hook; the shell wrapper is the only correct writer. The idea is dropped rather than implemented with a known correctness hole. (The assets variant is moot either way: it exits before cargo and never reads or writes the marker.)

    Sub-item 2b (build.sh dedupe): ALREADY DONE — no change needed.
    pkgs/id/build.sh is a symlink to scripts/build.sh (git mode 120000, verified at current main d51d7be); the justfile invokes ./scripts/build.sh. There is exactly one copy of the script. The triage evidence "diff is clean (identical)" was the symlink being followed.

  10. added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    and removed
    queue/claimedQueue worker lifecycle state
    on Nov 3, 2026
  11. dezren39 commented on Nov 3, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · parked

  12. dezren39 commented on Nov 3, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done

    • Agent: queue worker (repo-worker-code), lane code-c shift (resumed task 8130 at awaiting_ci; implementation by lane code-h)
    • Session / ID: task 8130
    • Found via: queue claim · resume per the parked checkpoint (claim recovered after a fabricated display hid it; see sweep record)
    • Task: Residual fix for this issue's three sub-items — all now disposed, so this issue closes:
      1. Justfile formatting — DONE: PR feat(id): enforce justfile formatting in treefmt + CI (#1797) #5071 merged (squash 7657b97): [formatter.just] in treefmt.toml, justfmt-check flake check added to the id-pr-checks matrix, justfile reformatted. Verified before push: just --fmt --check passes after the reformat (failed before), treefmt --ci clean, just --list parses. Codex review on the PR completed with zero findings.
      2. Build-variants as a cargo artifact — DROPPED with reason: build.rs runs before the link and cannot express the marker's post-success semantics; a failed build would leave the marker claiming the new variant and the next build.sh run could skip a needed rebuild (reason recorded here and in PR feat(id): enforce justfile formatting in treefmt + CI (#1797) #5071).
      3. just ci duplicated test blocks — DROPPED with evidence by triage task 7725 (verdict comment 6607031729 on this issue).
      • build.sh dedupe (part of the residual packet): already done — pkgs/id/build.sh is a symlink (git mode 120000) to scripts/build.sh; one copy exists.
    • Expectation: met — acceptance ("each sub-item resolved or explicitly dropped with a reason on this issue") is satisfied for all three.
    • Links: PR feat(id): enforce justfile formatting in treefmt + CI (#1797) #5071
  13. removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    work/assignedQueue worker lifecycle state
    on Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/mMedium: expected under 1 day of workkind/ciCI/CD pipelines, workflows, and build automationmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)source/queue-workerFiled or worked by the queue/worker pilotstatus:in-reviewtask/triageQueue packet kind: verify, reproduce, and route this item

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions