Skip to content

chore(tests): Rework integration tests #319

Merged
korniltsev-grafanista merged 6 commits into
mainfrom
vk/testcontainers-integration-tests
Jun 1, 2026
Merged

chore(tests): Rework integration tests #319
korniltsev-grafanista merged 6 commits into
mainfrom
vk/testcontainers-integration-tests

Conversation

@korniltsev-grafanista
Copy link
Copy Markdown
Contributor

@korniltsev-grafanista korniltsev-grafanista commented May 29, 2026

  • do not use docker compose
  • do not require any go dependency to run(copy some packages from .NET repo)
  • every test is run in parallel by github workflow matrix

Replace the split test infrastructure (docker-compose YAML, Go main program,
Makefile orchestration) with a single Go test file using testcontainers-go.
Each OS/Java variant is now a top-level test function discoverable via
go test -list, and the CI workflow discovers tests dynamically instead of
maintaining a hardcoded matrix.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@korniltsev-grafanista korniltsev-grafanista changed the title Rework integration tests from docker-compose to testcontainers-go chore(tests): Rework integration tests from docker-compose to testcontainers-go May 29, 2026
Keep testcontainers-based itest workflow; add bootstrap-classloader-test
job and itest-bootstrap target from main.
Replace 36 hardcoded OS/Java test functions with TestQueryProfile and
TestBootstrapClassloader, merge into a single itest module, and drive CI
variants from workflow matrix.include.
Mirror pyroscope-dotnet: dockertest CLI wrapper, querier JSON client,
pyroscope tree parser, and local require helpers. Drop testcontainers-go,
connect, grafana/pyroscope/api, and testify.
Drive the test matrix dimension from go test -list output instead of a
hardcoded include list, crossing discovered tests with os/java axes.
Skip TestBootstrapClassloader on non-default combos to avoid redundant
image builds.
@korniltsev-grafanista korniltsev-grafanista changed the title chore(tests): Rework integration tests from docker-compose to testcontainers-go chore(tests): Rework integration tests Jun 1, 2026
@korniltsev-grafanista korniltsev-grafanista marked this pull request as ready for review June 1, 2026 04:06
@korniltsev-grafanista korniltsev-grafanista requested a review from a team as a code owner June 1, 2026 04:06
Replace fixed alpine-3.19 with the two latest stable Alpine releases and
add Ubuntu 24.04. Simplify OS resolution to derive dockerfile and image
version from the matrix entry name, so future additions only require
updating the matrix array.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
@korniltsev-grafanista korniltsev-grafanista merged commit 3edcbf9 into main Jun 1, 2026
121 of 130 checks passed
@korniltsev-grafanista korniltsev-grafanista deleted the vk/testcontainers-integration-tests branch June 1, 2026 12:00
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