Repository navigation
discovery/marathon: run tests in parallel - #18613
Merged
Merged
Conversation
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]>
ogulcanaydogan
force-pushed
the
test/marathon-parallel
branch
from
May 6, 2026 14:13
12daf52 to
623cce9
Compare
krajorama
approved these changes
May 19, 2026
krajorama
left a comment
Member
There was a problem hiding this comment.
Hello from the bug scrub!
We checked with LLM if the claim about independence was true. Approve and merge based on positive result.
This was referenced May 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add
t.Parallel()to the 13 top-level test functions indiscovery/marathon/marathon_test.go.Each test creates its own registry, metrics, and
SDConfig— there isno 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