Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix TestInitDatabaseService/enabled_invalid_databases flakiness #43196

Merged
merged 2 commits into from
Jun 18, 2024

Conversation

gabrielcorado
Copy link
Contributor

Attempt to fix test flakiness introduced at #42900. Related to #42963.

The flakiness on TestInitDatabaseService/enabled_invalid_databases was caused by the low timeout used while waiting for the service to exit. This value was set to low because tests that don't exit with an error would always require exceeding this timeout (causing a failure on the "Flaky Tests Detector" due to timeout).

This PR changes the assertion when no error is expected to wait for the Teleport ready event and increases the timeout while waiting for events, giving the instance enough time to transition between states.

Copy link

The PR changelog entry failed validation: Changelog entry not found in the PR body. Please add a "no-changelog" label to the PR, or changelog lines starting with changelog: followed by the changelog entries for the PR.

@gabrielcorado gabrielcorado added the no-changelog Indicates that a PR does not require a changelog entry label Jun 18, 2024
lib/service/service_test.go Outdated Show resolved Hide resolved
@public-teleport-github-review-bot public-teleport-github-review-bot bot removed the request for review from fheinecke June 18, 2024 17:47
@gabrielcorado gabrielcorado enabled auto-merge June 18, 2024 17:54
@gabrielcorado gabrielcorado added this pull request to the merge queue Jun 18, 2024
Merged via the queue into master with commit de519c7 Jun 18, 2024
37 checks passed
@gabrielcorado gabrielcorado deleted the gabrielcorado/flakytest-initdb-service branch June 18, 2024 18:30
@public-teleport-github-review-bot

@gabrielcorado See the table below for backport results.

Branch Result
branch/v16 Create PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/branch/v16 flaky tests no-changelog Indicates that a PR does not require a changelog entry size/sm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants