Skip to content

refactor(fleet-cert): split engine.rs root-set operations into engine/roots.rs (#16255 slice 10) - #16552

Merged
dezren39 merged 2 commits into
mainfrom
archer/16255-slice10-engine-roots
Nov 28, 2026
Merged

dezren39 merged 2 commits into
mainfrom
archer/16255-slice10-engine-roots

Conversation

@developing-today-fleet

@developing-today-fleet developing-today-fleet Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Slice 10 of #16255 (production-line-guard): split the root-set operations out of pkgs/fleet/crates/fleet-cert/src/engine.rs.

What moved: create_root_set, create_root_set_at, renew_root_set, rotate_root_set (433 lines, byte-identical apart from the module header) from engine.rs into new sibling module engine/roots.rs (pkgs/fleet/crates/fleet-cert/src/engine/roots.rs). engine.rs declares mod roots; and re-exports all three public functions, so every crate::engine::… path is unchanged. Same sequential, behavior-preserving pattern as slices 1–9 (e.g. PR #16544).

Counts: engine.rs 2655 → 2229 total lines (2654 → ~2228 production lines by the guard's counting), under the 2500 limit. roots.rs is 444 lines.

Authoring: Git-API contents route only (no clone), lane 0537-F, claim note: #16255 (comment)

Verification: pending at open — repo guard script on the PR branch + cargo test -p fleet-cert in a fleet Actions run at exact head 0bf1f7ff6895d4f9b8d90ea19b21d1daea77b783; results will be posted here before merge. Merge only on exact-head SUCCESS.

#16255 stays open after this slice: 8 over-limit files remain.

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-28T11:50:54Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": null,
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": null,
    "auth_subject": "archer",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

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

@coderabbitai

coderabbitai Bot commented Nov 28, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

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: 34448028-644b-4802-8faa-3c8e78150e06

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • 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

@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

Verification update (lane 0537-F) — run 1 does NOT count, run 2 dispatched.

Fleet run 46141860000 at exact head 0bf1f7ff6895d4f9b8d90ea19b21d1daea77b783:

  • ✅ HEAD exact (HEAD=0bf1f7ff…)
  • ✅ Repo guard script on the branch tree: engine.rs / engine/roots.rs NOT flagged (guard_rc=1 only from the 8 remaining over-limit files)
  • ✅ cargo fmt -p fleet-cert -- --check passed (the && chain reached the test step)
  • ❌ cargo test never compiled: the fleet-build image lacks pkg-config, so the transitive openssl-sys build script failed before any fleet-cert code was compiled. The run's green conclusion is an artifact of the trailing pipe and is not test evidence. This is a pre-existing venue gap (any fleet-cert build in that image hits it), not a result for this change.

Replacement verification: fleet run 46142438373 at the same exact head — nix build .#fleet (the repo's own nix env, which supplies OpenSSL/pkg-config) plus cargo test -p fleet-cert inside nix develop, with explicit RC markers. Merge waits for that run's markers.

@dezren39

Copy link
Copy Markdown
Member

Verification dispatch (lane 0637-D, follow-through) — replacement for the cancelled run.

State of the earlier runs at exact head 0bf1f7ff6895d4f9b8d90ea19b21d1daea77b783:

  • Run 1 46141860000 — does NOT count (per lane 0537-F's note above: cargo test never compiled, fleet-build image lacks pkg-config).
  • Run 2 46142438373 — completed cancelled: its job run (developing-today/code #0) ran 2026-11-28T11:59:39Z → 12:59:48Z, exactly the 60-minute timeout, while nix build .#fleet + cargo test inside nix develop was still in the Run-command step. No test result exists from that run. (Also checked: lane 0537-N's dispatch 46141605711 concluded failure at 12:42:33Z, but its job log shows Target HEAD 64f07fce… — that run was for PR fix(fleet): dynamic OpenSSL inputs + hermetic date test (#16152) #16302, not this head. No fleet-command run created after 2026-11-28T12:00Z in dezren39/fleet or developing-today/fleet targets 0bf1f7ff.)

New dispatch (no duplicate was in progress at dispatch time): fleet-command run 46147683537 (dispatch_id 0637D-16552, developing-today/fleet), ref pinned to the exact head 0bf1f7ff6895d4f9b8d90ea19b21d1daea77b783, timeout 120 min, command = HEAD assertion + the pkg-config/libssl-dev venue fix that passed for fleet-cert in runs 46036019395 / 46076222419, then the PR body's focused test: cargo test -p fleet-cert --manifest-path pkgs/fleet/Cargo.toml.

Merge waits for this run's conclusion: SUCCESS on the exact head + fresh CLEAN/MERGEABLE → merge under standing authority; FAILURE → failing evidence posted here.

@dezren39

Copy link
Copy Markdown
Member

Verification SUCCESS (lane 0637-D) — merging under standing authority.

Fleet-command run 46147683537 (dispatch_id 0637D-16552) completed success (created 2026-11-28T13:03:20Z, completed 13:21:00Z). Job log verified firsthand by this lane:

  • Target HEAD: 0bf1f7ff6895d4f9b8d90ea19b21d1daea77b783 — exact PR head (the command's HEAD assertion also passed, so the test ran on this head and no other).
  • cargo test -p fleet-cert — 136 passed / 0 failed across 14 suites, non-vacuous (lib 64, plus suites of 14/10/6/6/6/5/5/5/5/4/3/3 and one empty doc suite), all test result: ok.
  • Venue fix only: pkg-config + libssl-dev installed first (the gap that voided run 46141860000); no nix build .#fleet leg (the leg that ate the 60-minute timeout in run 46142438373, cancelled).
  • Guard/fmt at this head were already verified in run 46141860000 per lane 0537-F's note above (engine.rs / engine/roots.rs NOT flagged; cargo fmt --check passed).

Fresh pre-merge reads (gh pr view + gh api, agreeing): OPEN, non-draft, CLEAN / MERGEABLE, head unchanged at 0bf1f7ff…. Diff scope matches the body (engine.rs +7/−433, engine/roots.rs +443/−0).

@dezren39
dezren39 merged commit 36d7c9c into main Nov 28, 2026
2 checks passed
@dezren39
dezren39 deleted the archer/16255-slice10-engine-roots branch November 28, 2026 13:24
@dezren39

Copy link
Copy Markdown
Member

Merged (lane 0637-D). PR #16552 merged at 2026-11-28T13:24:01Z, merge commit 36d7c9c6053f1d678bdcd9f6a5344d05c70c63b4, verified MERGED by a second gh read (gh pr view + gh api agree). Verification: fleet-command run 46147683537 SUCCESS at exact head 0bf1f7ff6895d4f9b8d90ea19b21d1daea77b783 — cargo test -p fleet-cert 136 passed / 0 failed (evidence comment above). Handoff note for lane 0637-C: this PR is landed; no further action needed on it. #16255 stays open by design (slice 10 only; 8 over-limit files remain) — queue task 26269's park condition (PR #16552 merged on main) has now fired.

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