Skip to content

fix: repair main after #124 (rustfmt 1.96.0 + userland_code test ctors + clippy)#127

Merged
NathanFlurry merged 1 commit into
mainfrom
fix/repair-main-after-124
Jun 25, 2026
Merged

fix: repair main after #124 (rustfmt 1.96.0 + userland_code test ctors + clippy)#127
NathanFlurry merged 1 commit into
mainfrom
fix/repair-main-after-124

Conversation

@NathanFlurry

@NathanFlurry NathanFlurry commented Jun 25, 2026

Copy link
Copy Markdown
Member

Why

PR #124 (perf: cut create-session latency via agent-SDK heap snapshot, merged in 2e95d518) landed while its CI was red, leaving main failing on three gates:

  • rustfmt 1.96.0embedded_runtime.rs, snapshot.rs, sidecar/execution.rs unformatted under the pinned toolchain.
  • clippy -D warningsmanual_div, is_multiple_of, while let, and a source-included dead-code false positive.
  • test-compile — 13 BinaryFrame/SessionMessage/RuntimeCommand constructors missing the new userland_code field; one hand-built WarmSnapshot byte test still on the old 1-field wire layout.

Every open PR's CI inherits this via the merge commit, so main was blocking the whole repo.

What

  • Reformat the 3 files with the pinned rustfmt 1.96.0.
  • Add userland_code (empty = bridge-only, the documented default) to the 11 ipc_binary test frames + 2 embedded_runtime_session frames; update the WarmSnapshot trailing-byte test for the 2-field (bridge_code + userland_code) wire layout.
  • clippy: checked_div (queue_tracker), is_multiple_of (sidecar/execution), while let (js backpressure test), #[allow(dead_code)] on the host_dir test's include!d module (SessionModuleReader is used elsewhere in the crate).

Verification (local)

cargo fmt --check (rustfmt 1.96.0) clean · cargo clippy --workspace --all-targets -- -D warnings clean · ipc_binary (51), embedded_runtime_session, javascript_v8_suite (incl. the #122/#123 regression tests), queue_tracker, kernel gauges, sidecar completion all pass.

…t ctors + clippy)

#124 (perf: agent-SDK heap snapshot) landed while its CI was red, leaving main
failing on fmt, clippy, and 13 missing-field/unused test-compile errors. Repair:

- rustfmt 1.96.0: reformat embedded_runtime.rs, snapshot.rs, sidecar/execution.rs,
  javascript_v8.rs (chain/closure collapse the pinned toolchain expects).
- userland_code: add the WarmSnapshot/Execute snapshot field (#124) to 11
  ipc_binary BinaryFrame test constructors + 2 embedded_runtime_session frames
  (empty = bridge-only, the documented default); update the hand-built
  WarmSnapshot trailing-byte test for the new 2-field wire layout.
- clippy -D warnings: checked_div in queue_tracker, is_multiple_of in
  sidecar/execution, while-let in the js backpressure test, and allow(dead_code)
  on the host_dir test's source-included module (SessionModuleReader is used
  elsewhere in the crate).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@railway-app railway-app Bot temporarily deployed to secure-exec / secure-exec-pr-127 June 25, 2026 09:09 Destroyed
@railway-app railway-app Bot temporarily deployed to rivet-frontend / secure-exec-pr-127 June 25, 2026 09:09 Destroyed
@NathanFlurry NathanFlurry merged commit 3d18ea0 into main Jun 25, 2026
0 of 3 checks passed
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