Repository navigation
fix(ci): keep progressing E2E fixtures alive under the hang guard - #1831
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 makes E2E fixture output reset the inactivity deadline while preserving hard workflow deadlines and existing proof checks. Example: A fixture prints progress every 200 ms for five seconds under a two-second guard.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR repairs a documented CI watchdog regression that remains on main, and no actionable introduced defect was found. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherGitHub Actions invokes the shared E2E script with a shard filter; its process supervisor streams diagnostics and returns the dotnet exit status before TRX proof checks and artifact upload. flowchart TD
A[GitHub Actions E2E lane] --> B[Shared E2E script]
B --> C[Output idle supervisor]
C --> D[Dotnet fixture and tests]
D --> E[Console output and exit status]
E --> C
C --> F[TRX proof checks]
F --> G[Diagnostic artifact upload]
Technical reviewBest possible solution: Retain the focused output-idle supervisor with the existing hard deadlines, output retention, and E2E proof enforcement. Do we have a high-confidence way to reproduce the issue? Main uses VSTest's test-event hang timer during fixture initialization; the supplied before/after probes demonstrate a progressing fixture exceeding that timer, although this review executed no target code. Is this the best way to solve the issue? The change corrects the watchdog's activity signal in the existing CI runner while preserving independent wall deadlines and leaving intentional production output draining alone. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 51f18c1222c9. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Review metrics
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 October 22, 2026, 5:50 AM ET / 09:50 UTC. |
What Problem This Solves
Fixes progressing WSL E2E fixtures being aborted as inactive before their first test case can complete.
Prerequisite for #1474 (feat(release): automate Microsoft Store submission). Follow-up to #1785 (fix(ci): stop stalled Windows E2E jobs promptly).
User Impact
CI still terminates silent E2E processes after 10 minutes, but fixture output now counts as activity. Existing 20-minute test-step and 25-minute job limits remain unchanged. No shipped application behavior changes.
Why This Change Was Made
In failed run, setup/connect and network-recovery fixtures were aborted by VSTest's 600-second hang collector while still making progress. Setup's WSL creation took 325 seconds, followed by successful CLI installation, gateway startup, operator/node pairing and connectivity verification. VSTest resets this timer on test events, not fixture output.
The shared E2E runner now uses an output-idle process owner. It streams and retains stdout/stderr chunks, including partial lines, preserves the native exit status, terminates an active process tree on silence, and explicitly cancels/disposes pending pipe reads. Post-exit inherited pipes cannot leave the runner waiting forever. Existing TRX and required-proof checks remain intact. Sequence diagnostics use
--blame; memory dumps remain disabled. The workflow retains its independent hard wall deadlines.Required proof pools
none: CI process/diagnostic lifecycle only. Production WSL setup, pairing, MXC execution and UI behavior are unchanged. Hosted full Windows E2E remains selected.Validation
Head:
0faca6a2e9f2e227fd4810df77c3e663b47e530f.pwsh -NoProfile -File scripts/Test-CiProcess.Tests.ps1: passed. Real subprocess cases cover argument/exit/stdout/stderr/trailing-output fidelity, partial-line progress beyond the idle window, silent fixture termination, process-tree termination and exited-root inherited pipes. Reader settlement is checked before the test separately cleans up its orphaned descendant.pwsh -NoProfile -File scripts/test-ci-workflow-contract.ps1: passed, including all 5 existing E2E invocation/proof-gate cases and the real process suite.git diff --check: passed../build.ps1: passed, 81.4s.dotnet test ... --no-restore: 4,656 passed / 1 failed / 27 skipped, 130.3s.dotnet test ... --no-restore: 4,467 passed / 7 failed, 125.2s.Real Behavior Proof
Portable fixture uses the exact E2E test packages: Microsoft.NET.Test.Sdk 18.6.0, xUnit 2.9.3, adapter 3.1.5. Its
InitializeAsyncprints progress every 200ms for 5 seconds before one test executes.Native Windows 11 ARM64 proof, same pinned test packages and a 3-second guard:
Both new-runner console receipts confirm
CI output readers settled after cancellation.The native fixture actually entered before the silent timeout. No process-memory dumps were collected. No release or Store submission dispatched. This corrects the watchdog's progress signal; it does not claim to fix Microsoft download latency or an unobserved underlying WSL hang.