Skip to content

ci(rs): the gate builds moq-net's fuzz feature on its own - #9665

Merged
kixelated merged 2 commits into
mainfrom
quest/m0/ci/fuzz-feature-check
Nov 26, 2026
Merged

kixelated merged 2 commits into
mainfrom
quest/m0/ci/fuzz-feature-check

Conversation

@kixelated

@kixelated kixelated commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

Finishes quest/m0/ci/fuzz-feature-check.md.

Problem

Every gate build of moq-net gets test-support from another crate (its own dev-dependency, or a dependent's), so a fuzz module call into a test-support-only door compiles green and breaks only builds that enable fuzz alone: every Nightly fuzz job, and -p moq-mux on macOS. #9467 did this (origin::Config::new from rs/moq-net/src/fuzz/session.rs, Nightly run 45459585582). It was the third fuzz-build break after #9505 and #9555.

Approach

  • New just rs net-fuzz: cargo clippy --locked -p moq-net --features fuzz --lib -- -D warnings. It uses clippy, not cargo check, because the gate's other Rust builds use clippy, and rs/justfile notes the two use different rustc wrappers: cargo check would compile the dependencies again.
  • sh/rs/select.sh runs it next to no-async, under the same condition (wants moq-net, so moq-net or any dependency of it changed) and in the same check/check-test/lint actions. The gate runs lint from just 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.yml runs just ci either way.
  • sh/rs/select.test.py pins it: selected for moq-net, kio (a dependency), and Cargo.lock; not for moq-auth; not in the test/fix lanes.

Gate cost

Measured locally on a warm target, with moq-net's source edited so the crate recompiles: just rs net-fuzz took 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-async took 31s on the same edit. It runs only when the selection holds moq-net, and it is serial in the check rs lane, which took 38s in total on this branch's just ci run.

Impact

  • No public API or wire change.
  • CI: the merge gate fails a PR that breaks moq-net --features fuzz on its own, about 16s longer for diffs that select moq-net.

Alternatives

  • Checking every test-only crate alone: rejected at planning (more gate time for breaks not yet seen).
  • Relying on Nightly: rejected; three breaks reached main this way.
  • cargo check as 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

Validation

  • Reproduced: putting origin::Config::new(...) back into fuzz/session.rs fails just rs net-fuzz with E0599, while just rs no-async still passes.
  • python3 sh/rs/select.test.py: 33 tests pass.
  • just ci origin/main passes, and its log shows the new clippy step running in check rs (38s lane). The first run failed in test rs on moq-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

  • None added. Unfiled observation: moq-ffi's server_client_run_end_draft18 waits 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 review after 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-fd454016fd84

  • Risk file: bb7b1c0de60b

  • Reviewer: Codex, gpt-6.2-sol, medium effort

  • Session: 01a215a9-f11f-7001-af84-ca48fa255a2c, round 1

  • Score: 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

kixelated and others added 2 commits November 25, 2026 17:33
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>
@kixelated kixelated changed the title Pull requests build moq-net's fuzz feature on its own ci(rs): the gate builds moq-net's fuzz feature on its own Nov 26, 2026
@kixelated
kixelated marked this pull request as ready for review November 26, 2026 02:24
@coderabbitai

coderabbitai Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The change adds a net-fuzz recipe that runs Clippy on the moq-net library with the fuzz feature and denies warnings. The selected lint path runs this recipe for moq-net changes when no earlier lint step has failed. Tests cover when the recipe is selected and when it is not.

Merge Risk: Minimal · up to a6c97

This change adds a CI lint for moq-net's fuzz feature and does not touch runtime behavior. No merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: the CI gate now builds moq-net's fuzz feature on its own. The changeset adds a just rs net-fuzz recipe, wires it into the select.sh lint path, and adds selection tes…
Description check Passed The description states the problem (fuzz-only builds of moq-net are not covered by gate builds), the new just rs net-fuzz recipe, the select.sh wiring, the select.test.py coverage, measured gate cos…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: the CI gate now builds moq-net's fuzz feature on its own. The changeset adds a just rs net-fuzz recipe, wires it into the select.sh lint path, and adds selection tests. The title is specific and accurate, so it passes.

Full details: Description check

Explanation

The description states the problem (fuzz-only builds of moq-net are not covered by gate builds), the new just rs net-fuzz recipe, the select.sh wiring, the select.test.py coverage, measured gate cost, and validation. It is closely related to the changeset, so it passes.

Finishing Touches

Simplify code

  • Commit to this branch
  • Create a new PR
  • 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

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4e79ef25-71e3-4d50-88fe-b9cf80b8fe3c
Commits

Reviewing files that changed from the base of the PR and between c53243d and a6c9723.

Files selected for processing: 4

  • quest/m0/ci/fuzz-feature-check.md
  • rs/justfile
  • sh/rs/select.sh
  • sh/rs/select.test.py
Files with no reviewable changes: 1

  • quest/m0/ci/fuzz-feature-check.md

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 0 remain after this review.

@kixelated
kixelated added this pull request to the merge queue Nov 26, 2026
Merged via the queue into main with commit 9901b71 Nov 26, 2026
7 checks passed
@kixelated
kixelated deleted the quest/m0/ci/fuzz-feature-check branch November 26, 2026 02:39
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