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 flaky integration tests caused by prometheus metrics conflict #48248

Merged
merged 2 commits into from
Nov 1, 2024

Conversation

hugoShaka
Copy link
Contributor

Fixes #44944 by overriding the default metrics registry with a blackhole.

This is quite ugly as this override will need to happen on every test running both auth/proxy and tbot in the same process.
The best long-term fix this would be to have tbot use a tbot-scoped registry.

@hugoShaka hugoShaka added flaky tests no-changelog Indicates that a PR does not require a changelog entry backport/branch/v16 backport/branch/v17 labels Oct 31, 2024
@hugoShaka hugoShaka changed the title Fix flaky test because of prometheus metrics: blackhole metrics Fix flaky integration tests caused by prometheus metrics conflict Oct 31, 2024
@github-actions github-actions bot requested a review from Joerger October 31, 2024 21:05
Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-48248.d3pp5qlev8mo18.amplifyapp.com

Copy link
Contributor

@strideynet strideynet left a comment

Choose a reason for hiding this comment

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

👍

I'll see if I can carve out some time in November to just pull all of tbot's stuff into it's own registry. It shouldn't be too challenging unless any of the libraries from lib/ it uses are spinning stuff up.

@hugoShaka hugoShaka enabled auto-merge November 1, 2024 15:11
@hugoShaka hugoShaka added this pull request to the merge queue Nov 1, 2024
Merged via the queue into master with commit 6faa20b Nov 1, 2024
42 of 43 checks passed
@hugoShaka hugoShaka deleted the hugo/fix-flaky-test-44944 branch November 1, 2024 15:37
@public-teleport-github-review-bot

@hugoShaka See the table below for backport results.

Branch Result
branch/v16 Failed
branch/v17 Create PR

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.

TestTCTLTerraformCommand_AuthJoin flakiness
3 participants