Repository navigation
test(tooling): remove delayed activity fixture responses - #134273
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 31, 2026, 12:36 PM ET / 16:36 UTC. ClawSweeper reviewWhat this changesThe branch removes an artificial half-second delay from the GitHub activity helper’s offline test fixture and renames the fixture state to describe its immediate timeout response. Merge readiness✅ Ready for maintainer review Keep open. This is a narrow, behavior-preserving test-fixture cleanup: it removes an artificial delay while retaining the request-side ordering assertion. The PR is maintainer-authored and carries the protected Priority: P3 Review scores
Verification
How this fits togetherThe activity helper gathers a GitHub profile before querying activity totals. Its offline test replaces the GitHub CLI, captures stdout at each request boundary, and verifies that identity is emitted before an activity request can fail. flowchart LR
A[Activity helper invocation] --> B[Profile lookup]
B --> C[Fake GitHub CLI]
C --> D[Request log and stdout snapshot]
D --> E[Activity request failure]
E --> F[Ordering assertion]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests -2. Total -2 across 1 file. View PR surface stats
Review metrics
Technical reviewBest possible solution: Land the focused fixture cleanup after the exact-head checks complete; keep the request-side stdout snapshot as the canonical ordering proof. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR changes only an offline test fixture, and current-main source directly shows the artificial delay it removes. Is this the best way to solve the issue? Yes. Removing the delay at the fixture response boundary preserves the existing stdout-snapshot ordering proof without adding another timing mechanism. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against fa0f9e786cc8. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Maintainer review is complete under the standing instruction to land this test-cleanup batch. The latest ClawSweeper review has no actionable findings or rank-up moves; exact-head CI run 33414547236 passed. The retained request-side stdout snapshot establishes that identity is printed before activity lookup. Removing three artificial half-second waits does not change that observation or the fixture's exit code 124. All 22 tests passed before and after, and the full changed-file gate and structured Codex autoreview passed. Production +0/-0; tests +4/-6. Proceeding through the native merge workflow. |
|
Merged via squash.
|
What Problem This Solves
The GitHub activity helper's output-order regression waits through three artificial 500 ms sleeps after its fake CLI has already captured the output it asserts.
Why This Change Was Made
Return the existing timeout response immediately. The fake CLI still uses real jq to snapshot stdout before processing each request, so the first activity request independently proves canonical identity was already printed. Rename the fixture and case to describe the timeout response rather than elapsed blocking time.
All 22 cases, exit codes, real Bash/jq execution, output capture, request logging, and the five-second child-process bound remain unchanged.
User Impact
Remove 1.5 seconds of intentional sleeps from this suite without weakening its ordering proof. Production tooling is unchanged.
Evidence
node scripts/run-vitest.mjs test/scripts/github-activity-helper.test.tspassed all 22 tests before and after.