Skip to content

[Testing] Restore behavioral bounds weakened by flakiness fixes - #8638

Open
janezpodhostnik wants to merge 1 commit into
janez/flaky-test-regression-coverage-evmfrom
janez/flaky-test-restore-behavioral-bounds
Open

[Testing] Restore behavioral bounds weakened by flakiness fixes#8638
janezpodhostnik wants to merge 1 commit into
janez/flaky-test-regression-coverage-evmfrom
janez/flaky-test-restore-behavioral-bounds

Conversation

@janezpodhostnik

@janezpodhostnik janezpodhostnik commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Some of the flakiness fixes in #8634 removed assertions along with the flakiness. This restores the underlying behavioral guarantees in a form that cannot flake.

Changes

  • websockets rate limiter: re-add an upper bound on the total stream duration (generous slack), so a limiter that stalls the stream fails the test again. The removed per-message +-5ms assertion is not restored, pair-wise delays are legitimately variable for a token bucket.
  • ALSP decay: re-add a pacing assertion, reaching 3 heartbeats worth of decay must take at least 2 heartbeat intervals. Lower bound only, so it cannot fail on a slow machine.
  • client timeout tests: the slow-handler path is exercised deterministically again. The handler signals receipt, and the client retries (each attempt must still time out) until at least one timeout was caused by the slow handler rather than by connection setup.
  • RemoveTempDir: log when retries were needed, preserving the leaked-background-writer signal that the retry loop would otherwise hide.

Related: #8634


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

@janezpodhostnik
janezpodhostnik requested a review from a team as a code owner August 3, 2026 15:20
@coderabbitai

coderabbitai Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 1bad2d84-d392-44da-a75e-066c52c90ad0

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@janezpodhostnik janezpodhostnik changed the title Restore behavioral bounds weakened by flakiness fixes [Testing] Restore behavioral bounds weakened by flakiness fixes Aug 4, 2026
@janezpodhostnik janezpodhostnik self-assigned this Aug 4, 2026
@janezpodhostnik
janezpodhostnik force-pushed the janez/flaky-test-restore-behavioral-bounds branch from df320dd to 2008f70 Compare August 7, 2026 13:25
@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

1 similar comment
@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@codecov-commenter

codecov-commenter commented Aug 7, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
utils/unittest/unittest.go 0.00% 3 Missing ⚠️

📢 Thoughts on this report? Let us know!

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.

2 participants