Skip to content

Fix TestRevocationService_CRL flakes with testing/synctest#61277

Merged
boxofrad merged 2 commits intomasterfrom
boxofrad/fix-flaky-crl-test
Nov 20, 2025
Merged

Fix TestRevocationService_CRL flakes with testing/synctest#61277
boxofrad merged 2 commits intomasterfrom
boxofrad/fix-flaky-crl-test

Conversation

@boxofrad
Copy link
Copy Markdown
Contributor

@boxofrad boxofrad commented Nov 12, 2025

Closes #53541.

This test seems to only flake in very rare circumstances. I was only able to reproduce it by running for several hours in a Docker container with 2% CPU allocation. When it does fail, the stack trace suggests it has been blocked receiving from the events channel for several minutes, so it's very likely a strange race-condition which synctest should eliminate by allowing us to definitively know when all goroutines are "durably" blocked.

I've extended the excellent grpctest package @tigrato added with a method to create a unidirectional server stream.

@boxofrad boxofrad added flaky tests machine-id no-changelog Indicates that a PR does not require a changelog entry labels Nov 12, 2025
@github-actions github-actions bot requested review from atburke and kimlisa November 12, 2025 11:04
@camscale
Copy link
Copy Markdown
Contributor

I've extended the excellent grpctest package @camscale added with a method to create a unidirectional server stream.

Please credit @tigrato - I took it from the access-graph repo for use in the teleport repo. Tiago is the author.

@boxofrad boxofrad added this pull request to the merge queue Nov 20, 2025
Merged via the queue into master with commit 379bb91 Nov 20, 2025
48 checks passed
@boxofrad boxofrad deleted the boxofrad/fix-flaky-crl-test branch November 20, 2025 19:16
boxofrad added a commit that referenced this pull request Nov 21, 2025
boxofrad added a commit that referenced this pull request Nov 25, 2025
smallinsky pushed a commit that referenced this pull request Dec 1, 2025
…61656)

* [v18] Fix `TestRevocationService_CRL` flakes with `testing/synctest`

Backport #61277 to branch/v18.

* Fix test hanging on context cancellation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

flaky tests machine-id no-changelog Indicates that a PR does not require a changelog entry size/md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TestRevocationService_CRL flakiness

5 participants