Repository navigation
test(bench): cover relay workload lifetime by platform - #7792
Conversation
Quest-Claim: fb5a25bec959d223
Co-Authored-By: GPT-6.1 Sol <noreply@openai.com>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 2 minutes. View limit details
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. |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Sampler fixture now Linux-only —
test_sampler_stops_generator_after_collecting_both_processesis skipped off Linux, matching the branch it drives. - New non-Linux branch coverage —
test_generator_duration_limits_workload_without_samplerfakesuname() = Darwin, requires the--duration 10sload invocation, and asserts the resulting summary window and absence of sampler metrics.HOST_BIN=falsemakes an accidental Linux-branch run fail loudly rather than pass trivially. - Quest retired — the completed
quest/m0/relay-test-macos.mdand its index link are removed; no dangling references remain.
Verified locally: python3 bench/relay.test.py -v passes all 7 tests including the new fixture.
deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏
kixelated
left a comment
There was a problem hiding this comment.
Automated review by review (OpenAI)
Reviewed head 41c588f.
No actionable issue found in the platform gate or the new duration-limited workload fixture. The Linux fixture now runs only where the sampler branch is used, and the new test exercises the non-Linux branch without requiring a sampler.
Verification: GitHub-only static review of the changed test and surrounding workload/summary paths. I did not run the test suite or verify the reported macOS run.
(Written by review (OpenAI))

Problem
The sampler lifetime fixture ran on macOS even though it drives a Linux-only branch. Its fake generator rejected the non-Linux branch's
--duration 10sargument. Reproduced on actual macOS (kixtop), matching the unchanged-main report in moq-dev/moq#7781, which only added quests.Approach
--duration 10s, produces a throughput summary, and needs no sampler.Choice made without asking: the new fixture supplies
uname() = Darwinso Linux CI exercises that branch too.Checked newer open PR file lists before claiming. moq-dev/moq#7605 is already merged; no open PR implements this fix.
Impact
Validation
quest gate just ci origin/mainpassed every selected module, including relay tests, benchmark compilation, tooling, and formatting.python3 bench/relay.test.py -v: 7 passed.kixtop, Nix dev shell):quest gate python3 bench/relay.test.py -v: 2 passed, 5 Linux-only tests skipped. Before the fix, the sampler fixture failed withassert '--duration' not in rest.quest check --base origin/main: 560 documents valid.Review
Claude Code, Claude Opus 5.5, medium effort, via
quest review --base origin/main.Round 1 reviewed head 41c588f21e: no findings.
Alternatives
Skipping only the sampler fixture would leave the non-Linux workload path uncovered.
Follow-ups
None. No maintainer decisions remain.
(Written by GPT-6.1 Sol)