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

[v16] Fix flaky integration tests caused by prometheus metrics conficts #51206

Open
wants to merge 1 commit into
base: branch/v16
Choose a base branch
from

Conversation

hugoShaka
Copy link
Contributor

@hugoShaka hugoShaka commented Jan 17, 2025

Manual backport of #48248 to branch/v16 due to minimal conflicts.

Fixes: #44944

…ct (#48296)

* Fix flaky test because of prometheus metrics: blackhole metrics

* lint
@hugoShaka hugoShaka added the no-changelog Indicates that a PR does not require a changelog entry label Jan 17, 2025
@hugoShaka hugoShaka changed the title [v17] Fix flaky integration tests caused by prometheus metrics confli… [v16] Fix flaky integration tests caused by prometheus metrics conficts Jan 17, 2025
@github-actions github-actions bot requested review from strideynet and zmb3 January 17, 2025 22:13
@hugoShaka hugoShaka requested a review from GavinFrazar January 17, 2025 22:15
@@ -126,6 +128,7 @@ func TestTCTLTerraformCommand_ProxyJoin(t *testing.T) {
func TestTCTLTerraformCommand_AuthJoin(t *testing.T) {
t.Parallel()
testDir := t.TempDir()
prometheus.DefaultRegisterer = metricRegistryBlackHole{}

Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this safe to do in a parallel test?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 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.

4 participants