Skip to content

discovery/marathon: run tests in parallel - #18613

Merged
krajorama merged 1 commit into
prometheus:mainfrom
ogulcanaydogan:test/marathon-parallel
May 19, 2026
Merged

krajorama merged 1 commit into
prometheus:mainfrom
ogulcanaydogan:test/marathon-parallel

Conversation

@ogulcanaydogan

Copy link
Copy Markdown
Contributor

Add t.Parallel() to the 13 top-level test functions in
discovery/marathon/marathon_test.go.

Each test creates its own registry, metrics, and SDConfig — there is
no shared mutable state — so parallelisation is safe. This follows the
same pattern already applied to other discovery packages (e.g. azure,
consul, eureka) and matches the ask in #15185.

Refs #15185

NONE

@ogulcanaydogan
ogulcanaydogan requested a review from a team as a code owner May 1, 2026 10:34
@ogulcanaydogan
ogulcanaydogan requested a review from Nexucis May 1, 2026 10:34
Add t.Parallel() to the 13 top-level test functions in marathon_test.go.
Tests have no shared mutable state — each test creates its own registry,
metrics, and config — so parallelisation is safe and speeds up the suite.

Refs prometheus#15185

Signed-off-by: Ogulcan Aydogan <[email protected]>

@krajorama krajorama left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hello from the bug scrub!

We checked with LLM if the claim about independence was true. Approve and merge based on positive result.

@krajorama
krajorama merged commit 4f9db4d into prometheus:main May 19, 2026
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants