GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||
GeezerVison is showing github.com — test(mcpx): testing/synctest pilot for elicit deadline tests (#2639) by dezren39 · Pull Request #4934 · developing-today/code Conversation
|
| test | before | after |
|---|---|---|
TestAnAnswerCanComeFromAnotherProcess |
50ms sleep as a "let the goroutine run" hint; 10s Await deadline and 5s fallback timer on the wall clock |
synctest.Wait() until the waiter is blocked in Await; both timers are virtual time |
TestTouchNeverPassesTheMaxAgeCeiling |
600ms real sleep to age the question past the ceiling | same 600ms, virtual: advancing the fake clock is the assertion |
TestAnAbandonedQuestionStillExpires |
450ms real sleep past the 300ms ttl | same 450ms, virtual |
Remaining time.Sleep calls are the two deliberate virtual-clock advances (justified inline in the test comments) — no sleep-as-scheduler-hint polling is left in the converted tests. No production change, no clock seam needed: testing/synctest is stable since Go 1.25 and pkgs/mcpx/go.mod declares go 1.27.2.
go test ./internal/elicit -run 'TestAnAnswerCanComeFromAnotherProcess|TestTouchNeverPassesTheMaxAgeCeiling|TestAnAbandonedQuestionStillExpires' -count=10 -v — 30/30 pass (10 iterations × 3 tests), 8.7s total.go test ./internal/elicit -count=1 — ok (whole package, 7.0s vs. ~6.2s before; the converted tests no longer sleep).go vet ./internal/elicit — clean; gofmt -l — clean.pkgs/mcpx go test ./...) covers the package suite on the PR.Pilot only. The two race tests (respond_race_test.go, expire_race_test.go) were inspected and have no time.Sleep polling — their conversion is deliberately not in this PR; converting further components stays follow-up work per the issue.
Door: two-way (test-only under pkgs/mcpx/internal/elicit)
Blast Radius: none on shipped code — a test file change; worst case is a test that needs its bubble shape adjusted.
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…2639) Pilot testing/synctest on the elicit component, the in-process piece whose tests touch no sockets and no subprocesses (the bubble rule). - TestAnAnswerCanComeFromAnotherProcess: synctest.Wait replaces the 50ms sleep-as-scheduler-hint; the waiter's 10s Await deadline and the 5s fallback timer are now virtual time, so an unwoken waiter fails in microseconds instead of after ten wall-clock seconds. - TestTouchNeverPassesTheMaxAgeCeiling and TestAnAbandonedQuestionStillExpires: their 600ms/450ms sleeps stay, but are virtual time — advancing the fake clock is exactly what those tests assert (ceiling clamp, ttl expiry), and they no longer cost wall time. No production change: test-only edit, no clock seam needed.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
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 3 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. CodeRabbit Verify
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
agent-note:v1 state: opened (task 8041, lane bf419306-c4ef-470f-a553-beabf93239de) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
🤖 Agent note · handed off
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
agent-note:v1 Claimed for fresh CI-trigger investigation. The packet has a bound follow-up PR; I am verifying current ownership before any edits. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
agent-note:v1 Fresh blocker: bound PR #5511 is OPEN, authored and assigned to Drew. Per queue guardrails I did not edit, relabel, or comment on #5511, and did not open a competing PR. PR #3033 and #2929 are also open drafts touching Resume condition: Drew explicitly hands off/reassigns/closes #5511 and the overlapping draft-PR ownership is clear. Task 8631 is parked for 30 minutes with that condition recorded. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
mcpx testing: testing/synctest pilot for one in-process component (pool, tasks, elicit, or events)
There was an error while loading. Please reload this page.