Repository navigation
improve: shorten reservation workflow test runtime - #2194
saariuslystoned wants to merge 1 commit into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR skips reservation-fixture retry waits while checking requested delays and preserving standalone execution with real waits. Example: Run the reservation test covering all 13 fixture scenarios.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it provides a useful, focused test-runtime improvement that is absent from main, with no actionable correctness or security findings. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Node test invokes an e2e driver that extracts the reservation workflow Bash, runs the existing CLI against loopback HTTP fixtures, and records reservation outcomes and comment operations. flowchart TD
A[Node reservation test] --> B[Reservation e2e driver]
B --> C[Extracted workflow Bash]
B --> D[Fixture sleep recorder]
C --> E[Existing reservation CLI]
E --> F[Loopback HTTP fixtures]
F --> G[Outcome and trace assertions]
D --> G
Technical reviewBest possible solution: Retain the fixture-local sleep override, explicit retry validation, and unchanged standalone real-wait modes. Do we have a high-confidence way to reproduce the issue? The supplied matched runs establish the fixture-wait cost; source inspection confirms the baseline invokes real sleeps, and no target code was executed during this review. Is this the best way to solve the issue? The change uses the existing fixture owner, preserves production retry policy, and validates the timing requests that simulated waits would otherwise stop exercising. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against eae7a713e211. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 9, 2026, 8:51 AM ET / 13:51 UTC. |
|
Thanks! Continued in #2200, with your commit kept and you credited as co-author. I couldn't push here because GitHub doesn't allow maintainer edits on forks owned by an organization. The one change: a |
What Problem This Solves
The reservation workflow test spends time waiting through retry backoffs in its local fixture scenarios.
User Impact
There is no user-visible change. The reservation test finishes sooner while the workflow retry policy and standalone e2e behavior remain unchanged.
Why This Change Was Made
The Node test opts into fixture-only simulated sleeps while continuing to run the extracted workflow Bash against loopback fixtures. The fixture validates each requested delay and attempt order; standalone execution retains real waits, and the fixture-only mode cannot be combined with
--quiet.Documentation Impact
The existing standalone e2e and
--quietcontracts remain accurate. The historical proof record documents the tested candidate, commands, observations and limits.Evidence
The full local
pnpm run checkdid not pass: 7,133 passed, three failed and 22 skipped; static, build, formatting and lint stages and the changed reservation test passed. In the isolated offline environment, the packed local reviewer install and the compiled live-admission Corepack fetch failed with registry DNSEAI_AGAIN. The signed-webhook loopback test expected 202 but received 503; its cause is unknown. Hosted candidate CI has not yet been established.A prepublication whole-branch Codex P3 review reported no actionable findings for head
ab442b271635a4d1672480c4efed93666e2ca841against baseeae7a713e211392f2a57ab91880a761efa1ae359; it reviewed evidence without running the project.Real Behavior Proof
corepack pnpm run build:nodefollowed bynode --test --test-concurrency=1 '--test-name-pattern=^reservation workflow avoids comment churn for stale and retrying owners$' test/review-lease-reservation.test.tson Linux arm64, Node 24.22.1 and pnpm 12.15.0, with pinned dependencies, read-only source and loopback-only networking. The standalone default and--quiete2e commands were also run with real waits.--quietpassed four. Negative controls exercised missing, extra, malformed, out-of-range and reordered records, a newline-bearing sleep argument, a signaled child and the incompatible option pair. No namespace processes remained.