Skip to content

test(update): Windows progress self-test no longer flakes on transient /progress stalls - #91255

Merged
teknium1 merged 1 commit into
mainfrom
fix/deflake-windows-progress-selftest
Aug 21, 2026
Merged

teknium1 merged 1 commit into
mainfrom
fix/deflake-windows-progress-selftest

Conversation

@teknium1

Copy link
Copy Markdown
Collaborator

Summary

test_progress_advances_while_the_orchestrator_blocks no longer fails on a transient /progress socket stall — only a listener that stays unresponsive until a deadline now fails the test.

Root cause of the flake (run 32440286339, Aug 21): the test sampled the Windows updater's loopback /progress endpoint with a single raw urlopen(timeout=5). On a loaded CI runner the PowerShell runspace listener can lose the CPU for a few seconds and answer late — the TimeoutError propagated straight out as a test failure even though the listener recovered immediately. A one-off slow reply is not the hang this test guards against.

Changes

Validation

Result
Collection on Linux 1 test collected, windows_only marker intact
Real execution Windows-only — CI's Windows job is the authoritative run for this PR

Infographic

Deflake: Windows progress self-test

… socket stalls

A single urlopen(timeout=5) TimeoutError from the PS runspace listener
failed the test on a loaded runner (run 32440286339) even though the
listener recovered moments later — a transient stall is not the hang
this test guards. /progress sampling now retries until a deadline
(only a persistently unresponsive listener fails), the self-test hold
grows 10s -> 30s so retry time cannot push sampling past the held
stage, and the exit wait gets matching headroom.
@github-actions

github-actions Bot commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

૮ >ﻌ< ა ci review

ran on 5cec152 — test(update): Windows progress self-test survives transient

⚠️ Warnings

OSV vulnerability scan · View job

7 known vulnerabilities found in pinned dependencies.

How to fix:

Review the findings in the Security tab. Update the affected dependencies if a patched version is available.


debug info

CI timings

CI timings · View report · View job

Wall time 4m4s vs 3m51s (+5.6%). 14 job(s) slower, 9 faster, 1 unchanged.

  • Python tests / Run tests slice 3/12: +35.0s
  • Python tests / Run tests slice 1/12: +33.0s
  • Python tests / Run tests slice 8/12: +31.0s
  • Python tests / Run tests slice 9/12: +30.0s
  • Python tests / Run tests slice 4/12: +23.0s

@alt-glitch alt-glitch added type/test Test coverage or test infrastructure P3 Low — cosmetic, nice to have comp/desktop Electron desktop app (apps/desktop/*) platform/windows Native Windows-specific behavior or breakage sweeper:risk-platform-windows Sweeper risk: may break or behave differently on native Windows labels Aug 21, 2026
@teknium1
teknium1 merged commit 18a15a4 into main Aug 21, 2026
51 checks passed
@teknium1
teknium1 deleted the fix/deflake-windows-progress-selftest branch August 21, 2026 02:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/desktop Electron desktop app (apps/desktop/*) P3 Low — cosmetic, nice to have platform/windows Native Windows-specific behavior or breakage sweeper:risk-platform-windows Sweeper risk: may break or behave differently on native Windows type/test Test coverage or test infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants