Repository navigation
ci(rs): the gate builds moq-net's fuzz feature on its own - #9665
Conversation
Quest-Claim: 1a4c7c313d39b83b
Every other build unifies `test-support` into moq-net, which hid a fuzz module call into a test-only constructor until Nightly. `just rs net-fuzz` lints `-p moq-net --features fuzz --lib`, and the lint lane runs it whenever the selection holds moq-net (moq-net or a dependency changed). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. WalkthroughThe change adds a Merge Risk:
|
Finishes quest/m0/ci/fuzz-feature-check.md.
Problem
Every gate build of
moq-netgetstest-supportfrom another crate (its own dev-dependency, or a dependent's), so afuzzmodule call into atest-support-only door compiles green and breaks only builds that enablefuzzalone: every Nightly fuzz job, and-p moq-muxon macOS. #9467 did this (origin::Config::newfromrs/moq-net/src/fuzz/session.rs, Nightly run 45459585582). It was the third fuzz-build break after #9505 and #9555.Approach
just rs net-fuzz:cargo clippy --locked -p moq-net --features fuzz --lib -- -D warnings. It uses clippy, notcargo check, because the gate's other Rust builds use clippy, and rs/justfile notes the two use different rustc wrappers:cargo checkwould compile the dependencies again.sh/rs/select.shruns it next tono-async, under the same condition (wants moq-net, so moq-net or any dependency of it changed) and in the samecheck/check-test/lintactions. The gate runslintfromjust ci, so this needs no workflow edit and doesn't conflict with ci(queue): the merge queue builds through main's queue-build.yml, which posts Queue #9659 / ci(queue): queue-build.yml posts the required Queue context #9660:queue-build.ymlrunsjust cieither way.sh/rs/select.test.pypins it: selected formoq-net,kio(a dependency), andCargo.lock; not formoq-auth; not in thetest/fixlanes.Gate cost
Measured locally on a warm target, with
moq-net's source edited so the crate recompiles:just rs net-fuzztook 15.5s of cargo time (a second run, partly incremental, took 3.9s). Its dependencies are shared with the other gate builds and were all cache hits. For comparison,no-asynctook 31s on the same edit. It runs only when the selection holds moq-net, and it is serial in thecheck rslane, which took 38s in total on this branch'sjust cirun.Impact
moq-net --features fuzzon its own, about 16s longer for diffs that select moq-net.Alternatives
cargo checkas the quest worded it: it compiles the dependency graph a second time under a different wrapper; clippy is a superset and reuses the gate's build.Caused by
fuzz-alone builds from the gate. feat(net)!: lite-07 NodeId drops Start, a Relay ID names one run #9467 is the latest break it let through, and that break was already fixed.Validation
origin::Config::new(...)back intofuzz/session.rsfailsjust rs net-fuzzwith E0599, whilejust rs no-asyncstill passes.python3 sh/rs/select.test.py: 33 tests pass.just ci origin/mainpasses, and its log shows the new clippy step running incheck rs(38s lane). The first run failed intest rsonmoq-ffi test::server_client_run_end_draft18("timed out waiting for frame" after its real-clock 10s timeout) while the host was loaded with other agents; this diff doesn't touch moq-ffi, and the rerun passed.Follow-ups
moq-ffi'sserver_client_run_end_draft18waits on a real-clock 10s timeout and timed out once under host load.Models
Size: S
Implementer: Claude Code, claude-opus-5-5, unknown (arm A)
🤖 Generated with Claude Code
(Written by Claude Opus 5.5)
Review
Rewritten by
quest reviewafter each round.Head: a6c9723
Base: origin/main at 7d3665d
Risk: medium,
If the new `net-fuzz` gate step or its select.sh wiring is wrong, a broken moq-net fuzz build or a missed gate selection reaches `main` only until the repo's own checks or contributors catch it, and reverting the four files undoes it fully, so no shipped API, wire format, or release script is affected.Classified: medium by Claude Code, claude-haiku-5-5, low effort, session
286a86ea-8a75-4c23-9e39-fd454016fd84Risk file: bb7b1c0de60b
Reviewer: Codex, gpt-6.2-sol, medium effort
Session:
01a215a9-f11f-7001-af84-ca48fa255a2c, round 1Score: 9/10,
The Rust gate checks the standalone `fuzz` library without unifying in `test-support`, with one unnecessary build on test-only changes.Rounds: 1; first round 0; findings 0: fixed 0, refuted 0, open 0
Findings: none
Notes, the author's to take or leave:
sh/rs/select.sh:254:Match the exact moq-net package for the fuzz build