Skip to content

chore(cli): avoid use of testutil.RandomPort() in prometheus test #17297

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

Merged
merged 1 commit into from
Apr 9, 2025

Conversation

johnstcn
Copy link
Member

@johnstcn johnstcn commented Apr 8, 2025

Should hopefully fix coder/internal#282

Instead of picking a random port for the prometheus server, listen on :0 and read the port from the CLI stdout.

@johnstcn johnstcn self-assigned this Apr 8, 2025
@johnstcn johnstcn requested a review from mafredri April 8, 2025 18:51
Copy link
Member

@mafredri mafredri left a comment

Choose a reason for hiding this comment

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

👌

@johnstcn johnstcn merged commit 8d122aa into main Apr 9, 2025
38 checks passed
@johnstcn johnstcn deleted the cj/flake/cli/TestServer/Prometheus branch April 9, 2025 08:20
@github-actions github-actions bot locked and limited conversation to collaborators Apr 9, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

flake: TestServer/Prometheus/DBMetricsEnabled
2 participants