Skip to content

test: fix flaky testPolicy_AllSuccess_StopsOnFirstFailure test - #4503

Merged
ggivo merged 2 commits into
masterfrom
topic/ggivo/flaky-testPolicy_AllSuccess_StopsOnFirstFailure
Apr 29, 2026
Merged

ggivo merged 2 commits into
masterfrom
topic/ggivo/flaky-testPolicy_AllSuccess_StopsOnFirstFailure

Conversation

@ggivo

@ggivo ggivo commented Apr 28, 2026 •

Copy link
Copy Markdown
Collaborator

Test uses interval(5), causing a new health check to be scheduled before probes for the existing one complete.

fix: use default healthcheck interval 1s, giving time for probes to be performed


Note

Low Risk
Low risk: test-only change that adjusts health check config to avoid overlapping scheduled runs and reduce timing-related flakiness.

Overview
Updates HealthCheckTest.testPolicy_AllSuccess_StopsOnFirstFailure to stop overriding interval/timeout in the strategy config, relying on defaults so the probe sequence completes before a new scheduled health check can start.

This stabilizes the assertion that BuiltIn.ALL_SUCCESS stops after the first failed probe by removing timing-sensitive scheduling behavior from the test.

Reviewed by Cursor Bugbot for commit 1784c7b. Bugbot is set up for automated code reviews on this repo. Configure here.

using .interval(5) cause new health check to be scheduled before probes for existing one completes

fix: use default healthcheck intercal 1s, giving time for probes to be performed
@ggivo
ggivo requested a review from atakavci April 28, 2026 13:59
@github-actions

github-actions Bot commented Apr 28, 2026 •

Copy link
Copy Markdown

Test Results

  191 files  ±0    191 suites  ±0   11m 36s ⏱️ +5s
9 262 tests ±0  9 206 ✅ ±0  56 💤 ±0  0 ❌ ±0 
9 292 runs  ±0  9 236 ✅ ±0  56 💤 ±0  0 ❌ ±0 

Results for commit 4ed10f3. ± Comparison against base commit 62b2e38.

♻️ This comment has been updated with latest results.

@jit-ci

jit-ci Bot commented Apr 28, 2026 •

Copy link
Copy Markdown

🛡️ Jit Security Scan Results

CRITICAL HIGH MEDIUM

✅ No security findings were detected in this PR


Security scan by Jit

@tishun tishun left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@atakavci atakavci left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@ggivo
ggivo merged commit 5572035 into master Apr 29, 2026
19 checks passed
@ggivo
ggivo deleted the topic/ggivo/flaky-testPolicy_AllSuccess_StopsOnFirstFailure branch May 21, 2026 08:26
@ggivo ggivo added the testing label May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants