Skip to content

Fix flaky test TestImportantModalSemaphore#29880

Merged
Joerger merged 1 commit intomasterfrom
joerger/fix-flaky-test-TestImportantModalSemaphore
Aug 1, 2023
Merged

Fix flaky test TestImportantModalSemaphore#29880
Joerger merged 1 commit intomasterfrom
joerger/fix-flaky-test-TestImportantModalSemaphore

Conversation

@Joerger
Copy link
Copy Markdown
Contributor

@Joerger Joerger commented Aug 1, 2023

Changes:

  • Decrease the aggressive test timeout of 20ms to 1 second.
  • Fixed a race condition on service.callCounts by using atomic counts instead
  • Fixed a potential race condition between server.Serve and server.GracefulStop - See fix flaky teleterm daemon test #29218

Closes #29879 (comment)

@Joerger Joerger requested a review from codingllama August 1, 2023 20:51
@github-actions github-actions Bot requested a review from xacrimon August 1, 2023 20:51
Comment thread lib/teleterm/daemon/daemon_test.go Outdated
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Note: require.Equal does not allow comparing int to uint32.

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.

FYI you can cast the values too, but this is fine as well.

Copy link
Copy Markdown
Contributor

@codingllama codingllama left a comment

Choose a reason for hiding this comment

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

Thanks for the quick fix!

Comment thread integration/proxy/teleterm_test.go Outdated
Comment thread integration/teleterm_test.go Outdated
Comment thread lib/teleterm/daemon/daemon_test.go Outdated
Comment thread lib/teleterm/daemon/daemon_test.go Outdated
Comment thread lib/teleterm/daemon/daemon_test.go Outdated
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.

FYI you can cast the values too, but this is fine as well.

@Joerger Joerger requested a review from codingllama August 1, 2023 21:04
Comment thread e Outdated
Comment thread integration/proxy/teleterm_test.go Outdated
Comment thread integration/teleterm_test.go Outdated
@Joerger Joerger requested a review from codingllama August 1, 2023 21:21
Comment thread lib/teleterm/daemon/daemon_test.go Outdated
@Joerger Joerger force-pushed the joerger/fix-flaky-test-TestImportantModalSemaphore branch from d5ce31b to 1a9c2e1 Compare August 1, 2023 21:28
@public-teleport-github-review-bot public-teleport-github-review-bot Bot removed the request for review from xacrimon August 1, 2023 21:46
@Joerger Joerger added this pull request to the merge queue Aug 1, 2023
Merged via the queue into master with commit 69f24f5 Aug 1, 2023
@Joerger Joerger deleted the joerger/fix-flaky-test-TestImportantModalSemaphore branch August 1, 2023 22:10
Joerger added a commit that referenced this pull request Aug 2, 2023
github-merge-queue Bot pushed a commit that referenced this pull request Aug 2, 2023
* * Enable headless authentication event watch. (#28234)

* Add WatchPendingHeadlessAuthentications rpc.

* Fix headless authentication matching logic for watcher (#28843)

* Fix headless authentication matching logic for watcher and add test.

* Move hasWatchPermissionForKind to a separate function.

* Clean up hasWatchPermissionForKind.

* Cleanup test code with suggestions from review.

* Refactor Gateway Cert Reissuer and tshd events client (#28782)

* - Move tshd events client into the daemon service.

- Replace gatway cert reissuer with a more reusable retryWithRelogin
method.

* Resolve comments.

* Teleport Connect headless watcher (#28844)

* Implement headless watcher backend for Teleport Connect.

* Add headless watcher to tshd daemon service.

* Add SendPendingHeadlessAuthentication rpc to tshd events service.

* Add UpdateHeadlessAuthenticationState rpc to the daemon service.

* Address comments.

* Tune Headless Watcher retry logic in Teleport Connect (#29410)

* Reduce headless watcher max backoff period to 90s; Propogate watcher error properly; Don't retry on not implemented error.

* Stop watcher if it wasn't stopped already.

* Implement headless watcher approval logic in the Electron App. (#29097)

* Fix uncaught merge conflict.

* Fix call count race condition; Fix grpc server stop race condition; Make timeout less aggressive. (#29880)
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.

TestImportantModalSemaphore flakiness

3 participants