Windows nightly: diagnose retained intermittent test, checkout and host-resource failures #150

Closed
opened 2026-10-13 08:53:09 -04:00 by dohertj2 · 3 comments
Owner

The automated nightly incidents #126–#148 (excluding absent #140) have recovered equivalent current Windows/live gates, but historical flake/resource causes are not all proven fixed. This issue retains those unresolved risks instead of calling every old incident one duplicate or a repaired product defect.

Current evidence: run898 on2026-10-07 at exact SHA f2e08617 used by#143–#148 passed Worker529/11skip, Gateway1193/0skip and live8/0skip with SUCCESS mode=live. Run934 on2026-10-13 atf40409a6 independently passed both Windows tiers and same full/live counts; runs925/929 nightly metadata successful. Portable Rust remains separate#149.

Investigate distinct historical causes: Gateway stale-cursor ReplayGapSentinel (#142), handshaking-to-ready (#141), multi-subscriber Worker pipe disconnect (#147), ReconnectAfterFullAgeEvictionResumesWithSentinelFormula (#145/#146), dashboard host/policy (#143); Worker watchdog fault (#126/#127) and burst drain coalescing (#139); Windows memory/pagefile/CLR/compiler/protoc/PowerShell failures (#128/#129/#131–#135/#138), SSH transport failures (#130/#136/#137/#144), and stale git index.lock checkout (#148). Exact per-incident run links remain in their tracker bodies and sanitized triage capture.

Acceptance: correlate first failures with authoritative host/load/job evidence through permitted read-only channels; separate test timing, product and host-resource faults; add deterministic regressions for verified code defects; preserve test assertions; verify repeated full Windows/nightly live passes after changes. Do not claim a current pass proves every historical root cause fixed. No ad-hoc remote execution or host configuration changes authorized by this issue.

The automated nightly incidents #126–#148 (excluding absent #140) have recovered equivalent current Windows/live gates, but historical flake/resource causes are not all proven fixed. This issue retains those unresolved risks instead of calling every old incident one duplicate or a repaired product defect. Current evidence: run898 on2026-10-07 at exact SHA f2e08617 used by#143–#148 passed Worker529/11skip, Gateway1193/0skip and live8/0skip with SUCCESS mode=live. Run934 on2026-10-13 atf40409a6 independently passed both Windows tiers and same full/live counts; runs925/929 nightly metadata successful. Portable Rust remains separate#149. Investigate distinct historical causes: Gateway stale-cursor ReplayGapSentinel (#142), handshaking-to-ready (#141), multi-subscriber Worker pipe disconnect (#147), ReconnectAfterFullAgeEvictionResumesWithSentinelFormula (#145/#146), dashboard host/policy (#143); Worker watchdog fault (#126/#127) and burst drain coalescing (#139); Windows memory/pagefile/CLR/compiler/protoc/PowerShell failures (#128/#129/#131–#135/#138), SSH transport failures (#130/#136/#137/#144), and stale git index.lock checkout (#148). Exact per-incident run links remain in their tracker bodies and sanitized triage capture. Acceptance: correlate first failures with authoritative host/load/job evidence through permitted read-only channels; separate test timing, product and host-resource faults; add deterministic regressions for verified code defects; preserve test assertions; verify repeated full Windows/nightly live passes after changes. Do not claim a current pass proves every historical root cause fixed. No ad-hoc remote execution or host configuration changes authorized by this issue.
Author
Owner

The deterministic framed-worker/readiness fixture slice is merged in PR #153 at d779daf6. #151 closed after 54 targeted and 1,196 Gateway tests passed and hosted runs964/965 passed portable, Java and Windows x86 jobs at tested42c120aa. No production change. This establishes the reproduced partial-frame cancellation defect and controlled readiness regression; it does not attribute every historical incident to those fixtures. The other host/resource/transport/checkout and historical failure investigations remain open here. No new nightly live run or host configuration change is claimed.

The deterministic framed-worker/readiness fixture slice is merged in PR #153 at d779daf6. #151 closed after 54 targeted and 1,196 Gateway tests passed and hosted runs964/965 passed portable, Java and Windows x86 jobs at tested42c120aa. No production change. This establishes the reproduced partial-frame cancellation defect and controlled readiness regression; it does not attribute every historical incident to those fixtures. The other host/resource/transport/checkout and historical failure investigations remain open here. No new nightly live run or host configuration change is claimed.
Author
Owner

Status note: the nightly red streak of 2026-10-15 to 2026-10-20 (#156-#163) was a package-audit restore failure (NU1903 on System.Security.Cryptography.Pkcs 9.0.4), not one of the historical flake/resource causes listed here; fixed in fb20997 (windev live run green at a09fa0a). Leaving this open: its acceptance still needs repeated green nightlies and per-cause correlation.

https://claude.ai/code/session_016J6isfcgqy4SB2RK3ZvFvT

Status note: the nightly red streak of 2026-10-15 to 2026-10-20 (#156-#163) was a package-audit restore failure (NU1903 on System.Security.Cryptography.Pkcs 9.0.4), not one of the historical flake/resource causes listed here; fixed in fb20997 (windev live run green at a09fa0a). Leaving this open: its acceptance still needs repeated green nightlies and per-cause correlation. https://claude.ai/code/session_016J6isfcgqy4SB2RK3ZvFvT
Author
Owner

Root-caused and fixed on main de86f8b8 (119 scheduled nightlies, 28 red, job logs + windev ci.log back to 2026-07-13 + System event log):

  • Stale index.lock at checkout (#148, run 827): the windev CI lock was New-Item -ItemType Directory, which succeeds if the folder exists — two simultaneous runs both acquired it in 1,900/2,000 rounds, and every scheduled run starts windows-x86 and nightly-windev in the same second. Now an exclusive file handle on C:\build\mxaccessgw-ci.ci-lock (0/1,000 double-acquires; released by Windows if the holder dies; holder deletes a leftover index.lock), and windows-x86 no longer runs on the schedule (the nightly does the same build first).
  • OOM in MSBuild/csc/protoc, csc 0xC0000142, SSH resets (#128–#138): host-side — windev logged Resource-Exhaustion-Detector 2004 'low virtual memory' every few minutes 07-23 → unexpected shutdown 08-03; every failure in the group is inside that window. windev-worker-ci.ps1 now logs free commit / physical memory / disk / testhost count at start and on failure.
  • No route to host (#144): windev crashed 00:58, back 05:50 — host-side.
  • SQLite 'cannot start a transaction within a transaction' (#143): parallel test classes initialising the same per-process secrets store; tests now build the gateway through a new TestGatewayHost with its own store (63 affected tests 10/10; guard TestGatewayHostTests). Library-side concurrency filed in scadaproj.
  • Worker-pipe disconnect / handshake (#141, #142, #145–#147): fixed earlier by PR #153 (7/51 failing before, 0/28 since). Watchdog/coalescing (#126, #127, #139) fixed by 50322bac / 7da52b65. 10-15→10-20: NU1903, fixed in fb20997.
    Docs: GatewayTesting.md, scripts/ci/README.md.

Host-side recommendations (not changed): windev page file is 4.8 GB system-managed on 32 GB RAM with 25 of 36.7 GB commit in use — set a fixed 16–32 GB page file; W32Time is stopped and the clock is ~9 min slow; a dotnet test/testhost has been hung since 2026-11-06 (C:\build\mxgw-p2batch, filter CommandAfterShutdown); idle orphan SSH sessions from 2026-11-03; old C:\build worktrees from June–August.

Root-caused and fixed on main de86f8b8 (119 scheduled nightlies, 28 red, job logs + windev ci.log back to 2026-07-13 + System event log): - **Stale index.lock at checkout (#148, run 827)**: the windev CI lock was `New-Item -ItemType Directory`, which succeeds if the folder exists — two simultaneous runs both acquired it in 1,900/2,000 rounds, and every scheduled run starts windows-x86 and nightly-windev in the same second. Now an exclusive file handle on C:\build\mxaccessgw-ci.ci-lock (0/1,000 double-acquires; released by Windows if the holder dies; holder deletes a leftover index.lock), and windows-x86 no longer runs on the schedule (the nightly does the same build first). - **OOM in MSBuild/csc/protoc, csc 0xC0000142, SSH resets (#128–#138)**: host-side — windev logged Resource-Exhaustion-Detector 2004 'low virtual memory' every few minutes 07-23 → unexpected shutdown 08-03; every failure in the group is inside that window. windev-worker-ci.ps1 now logs free commit / physical memory / disk / testhost count at start and on failure. - **No route to host (#144)**: windev crashed 00:58, back 05:50 — host-side. - **SQLite 'cannot start a transaction within a transaction' (#143)**: parallel test classes initialising the same per-process secrets store; tests now build the gateway through a new TestGatewayHost with its own store (63 affected tests 10/10; guard TestGatewayHostTests). Library-side concurrency filed in scadaproj. - Worker-pipe disconnect / handshake (#141, #142, #145–#147): fixed earlier by PR #153 (7/51 failing before, 0/28 since). Watchdog/coalescing (#126, #127, #139) fixed by 50322bac / 7da52b65. 10-15→10-20: NU1903, fixed in fb20997. Docs: GatewayTesting.md, scripts/ci/README.md. **Host-side recommendations (not changed):** windev page file is 4.8 GB system-managed on 32 GB RAM with 25 of 36.7 GB commit in use — set a fixed 16–32 GB page file; W32Time is stopped and the clock is ~9 min slow; a dotnet test/testhost has been hung since 2026-11-06 (C:\build\mxgw-p2batch, filter CommandAfterShutdown); idle orphan SSH sessions from 2026-11-03; old C:\build worktrees from June–August.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dohertj2/mxaccessgw#150