Skip to content

Conversation

@cklin
Copy link
Contributor

@cklin cklin commented Jan 30, 2026

The activation test was failing intermittently on Windows CI because it used a hardcoded 4-second delay after opening a .ql file to wait for the extension to activate. On slower machines, this wasn't enough time.

Replace the fixed delay with a polling loop that checks ext.isActive every 100ms for up to 30 seconds. This ensures the test:

  • Returns quickly on fast machines
  • Doesn't fail prematurely on slow machines

@cklin cklin marked this pull request as ready for review January 30, 2026 17:38
@cklin cklin requested a review from a team as a code owner January 30, 2026 17:38
@cklin cklin requested review from Copilot and ginsbach January 30, 2026 17:38
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a flaky activation test that was failing intermittently on Windows CI by replacing a hardcoded 4-second delay with a polling approach that checks for extension activation up to 30 seconds.

Changes:

  • Replaced fixed delay() calls with a new waitForActivation() function that polls extension status
  • Implemented polling logic with 100ms intervals and 30-second timeout

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

@ginsbach ginsbach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally LGTM, but some of the CCR comments might be worth looking into.

The activation test was failing intermittently on Windows CI because it used
a hardcoded 4-second delay after opening a .ql file to wait for the extension
to activate. On slower machines, this wasn't enough time.

Replace the fixed delay with a polling loop that checks ext.isActive every
100ms for up to 30 seconds. This ensures the test:
- Returns quickly on fast machines
- Doesn't fail prematurely on slow machines
@cklin cklin force-pushed the cklin/activation-test-deflake branch from 067d244 to 6d15f37 Compare February 2, 2026 22:39
@cklin cklin enabled auto-merge February 2, 2026 23:55
@cklin cklin merged commit db8290b into main Feb 3, 2026
24 of 36 checks passed
@cklin cklin deleted the cklin/activation-test-deflake branch February 3, 2026 00:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants