Repository navigation
quest: plan live import clock and tracing capture audit - #4693
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
ITERATE (head Plans two test-flakes-2 children from the #4687 / #4690 line: drive moq-mux live-import idle gaps on a paused clock, and audit scoped tracing captures for the callsite-interest flake. The live-import facts check out on Blocking
Non-blocking
No “Alternative worth exploring”: Decisions already rejected This is an automated review, not the maintainer's decision |
kixelated
left a comment
There was a problem hiding this comment.
Automated review by review (OpenAI)
Reviewed 1265ae0 (full plan diff).
No new actionable findings beyond the existing API-impact clarification. The three import helpers really do sleep through the idle gap, and their anchor reads Clock::now() on std::time::Instant.
Independently confirming and extending the existing API note: replace the uncertain export check in quest/m1/test-flakes-2/mux-live-import-clock.md:24–28 with an explicit boundary decision. Clock::at is already public and re-exported (rs/moq-mux/src/clock.rs:89, lib.rs:45). The same std::time::Instant contract also reaches public binary/JSON timed writes (binary.rs:182,257; json.rs:225,309) through Clock::stamp. Preserve those input contracts deliberately or declare the typed API break and include their callers/docs in the child scope and branch choice. capture and stamp themselves are currently crate-private.
Direction: using the shared mockable monotonic clock is coherent and avoids importer-only time plumbing; retain the fixed wall mapping. #4687 is precedent for the Instant type in private SI debounce code, rather than a completed Clock-wide migration. For trace-capture-audit.md:17–21, adopt the helper after accounting for the open #4690 installation-window finding, rather than copying that unresolved race into other crates. No duplicate inline findings added.
Verification: static plan, dependency-PR, API/caller, and import-test inspection. No code changes, builds, or tests run locally; this does not independently verify the proposed implementations.
(Written by review (OpenAI))
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
kixelated
left a comment
There was a problem hiding this comment.
Automated review by review (OpenAI)
Delta reviewed: 1265ae0 → ac25d88, separating the inherited #4687/base merge from the two plan updates.
The prior planning concerns are addressed:
mux-live-import-clock.md:25–40now identifies the public constructor and binary/JSON timed-input contracts, covers callers/docs, and requires a maintainer decision between preserving those inputs and an explicit typed break ondev. The #4687 citation correctly limits its precedent to private SI debounce code.trace-capture-audit.md:17–27now waits for #4690's installation-window finding to be resolved and accounts for the helper's WARN/message-specific scope. This fixes the dependency plan; it does not claim that #4690's implementation is already fixed.
No new actionable findings. Direction remains sound: make the existing clock controllable, preserve its wall mapping, and reuse only the tracing-capture behavior each test actually needs. Keep the API choice as an explicit prerequisite to the implementation.
Verification: static delta and prior-code-context review only. No builds or tests run; this documentation change does not verify either proposed implementation.
(Written by review (OpenAI))
|
MERGE (re-review after push; head Address-review commit clears the prior blockers: Prior findings
BlockingNone. Non-blocking
This is an automated review, not the maintainer's decision |
|
Merging. Review fixes in ac25d88: the #4687 citation is limited to the private SI debounce, the live import quest lists the public (Written by Claude Opus 5.5) |
Plans two follow-ups in the test-flakes-2 line, from #4687 and #4690.
mux-live-import-clock[S]:crate::Clockusesweb_async::time::Instant, so the moq-mux live import restart tests advance a paused clock instead of sleeping.trace-capture-audit[XS]: move any scoped tracing captures to moq-net: per-thread WARN capture for the drop tests #4690's process-wide helper, so a parallel test can't silence them through the call-site cache.Decisions
C goal: the moq-mux live_import tests sleep no real time
C shape
crate::Clockuseweb_async::time::Instantnowinto the importersE: plan an audit of tracing-capture tests
Review fixes: the #4687 citation no longer implies
Clockalready moved; the quest lists the publicstd::time::Instantboundary (Clock::at, json/binary timed writes) and leaves one open question for the maintainer before starting: convert at the boundary onmain(recommended) or change the types ondev. The tracing audit waits on #4690 and notes its helper is WARN-specific.Public API: none from this PR. Wire: none.
(Written by Claude Opus 5.5)
🤖 Generated with Claude Code