Skip to content

discovery: run tests in parallel - #19486

Merged
krajorama merged 14 commits into
prometheus:mainfrom
r0h1tb:fix/discovery-parallel-tests
Aug 28, 2026
Merged

krajorama merged 14 commits into
prometheus:mainfrom
r0h1tb:fix/discovery-parallel-tests

Conversation

@r0h1tb

@r0h1tb r0h1tb commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Finishes the run tests in parallel sweep started in #18611 (consul), #18613 (marathon) and
#18904 (nomad), and continued for aws, eureka, uyuni and discovery itself. These are the 14
discovery/* packages that still had no t.Parallel().

One commit per package, t.Parallel() as the first statement of each top-level test, the
same shape as the earlier commits. TestMain is left alone.

Nothing here uses t.Setenv, os.Chdir or mutable package-level state, which is what would
have made the tests unsafe to run in parallel — I checked before changing them.

go test -race -count=3 passes for all 14 packages, run together so they interleave.
make common-check_license, make common-style and golangci-lint run ./discovery/... are
clean.

NONE

@r0h1tb
r0h1tb requested review from a team, jkroepke and remyleone as code owners August 21, 2026 13:28
@r0h1tb
r0h1tb requested a review from fstab August 21, 2026 13:28

@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.

stamp

@krajorama
krajorama merged commit c93268c into prometheus:main Aug 28, 2026
37 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.

3 participants