compose/pkg/e2e
Guillaume Lours 8bd79da4bc e2e: fix test resource isolation and make standalone parallelism configurable
Several e2e tests used fixed host ports (8070, 8080, 8090, etc.), global
buildx builders registered with --use, and a hardcoded IPC container name.
Under parallel execution these shared daemon-level resources caused port
conflicts, buildkitd container-name collisions, and intermittent failures.
Separately, the standalone make target hardcoded -parallel=1, forcing the
entire standalone suite to run serially even though the same tests run in
parallel in plugin mode.

Changes:
- Convert fixed host ports in four fixtures (network-test, sentences,
  build-test, volume-test) to ephemeral bindings; add ServicePublishedPort
  helper to framework.go to resolve the actual mapped port at runtime.
- Give each buildx-builder test a unique daemon-scoped name via BuilderName
  helper, preventing container-name collisions between parallel goroutines.
  Applies to TestBuildPlatformsWithCorrectBuildxConfig, TestBuildPrivileged,
  TestBuildBuilder, TestBuildEntitlements, TestBuildTLS.
- Rename the fixed ipc_mode_container to a project-scoped name
  (ipc_e2e-src) and update the ipc-test fixture accordingly.
- Replace the hardcoded -parallel=1 in make e2e-compose-standalone with
  E2E_PARALLEL_PLUGIN?=4 and E2E_STANDALONE_PARALLEL?=4, aligning both
  modes with the effective GOMAXPROCS on 4-core GitHub Actions runners.
  Both variables are overridable (E2E_STANDALONE_PARALLEL=1 restores
  serial local debugging).
- Raise the poll delay in watch_test.go long-running polls (90s/120s
  timeout) from the default 100ms to 1s; bump cascade_test.go and
  publish_test.go from 100ms to 500ms. Reduces CPU pressure without
  affecting effective test duration.

The logging-driver fixture retains its fixed port 24224: the Docker fluentd
log driver encodes fluentd-address at service-start time, making ephemeral
resolution non-trivial. TestLoggingDriver is serial so there is no
collision risk in practice.

Signed-off-by: Guillaume Lours <glours@users.noreply.github.com>
2026-08-19 17:41:02 +02:00
..
fixtures e2e: fix test resource isolation and make standalone parallelism configurable 2026-08-19 17:41:02 +02:00
testdata e2e: fix test resource isolation and make standalone parallelism configurable 2026-08-19 17:41:02 +02:00
assert.go fix mixed assertion libraries in tests 2026-03-31 17:32:51 +02:00
bridge_test.go Reuse bridge image version in e2e tests 2026-08-06 16:00:08 +02:00
build_test.go e2e: fix test resource isolation and make standalone parallelism configurable 2026-08-19 17:41:02 +02:00
cancel_test.go test: replace context.Background()/context.TODO() with t.Context() 2026-01-20 11:34:11 +01:00
cascade_test.go e2e: fix test resource isolation and make standalone parallelism configurable 2026-08-19 17:41:02 +02:00
checks.go test(e2e): address review — project-name collisions, file modes, regex compilation 2026-08-18 16:49:56 +02:00
commit_test.go test(e2e): configs, commit, export and logs scenarios 2026-08-18 16:49:56 +02:00
compose_environment_test.go test(e2e): cp, environment and config scenarios 2026-08-18 16:49:56 +02:00
compose_exec_test.go test(e2e): exec and lifecycle-hook scenarios 2026-08-18 16:49:56 +02:00
compose_run_build_once_test.go test(e2e): volume and build-once scenarios 2026-08-18 16:49:56 +02:00
compose_run_test.go test(e2e): run and up scenarios 2026-08-18 16:49:56 +02:00
compose_test.go e2e: fix test resource isolation and make standalone parallelism configurable 2026-08-19 17:41:02 +02:00
compose_up_test.go test(e2e): run and up scenarios 2026-08-18 16:49:56 +02:00
config_test.go test(e2e): cp, environment and config scenarios 2026-08-18 16:49:56 +02:00
configs_test.go test(e2e): configs, commit, export and logs scenarios 2026-08-18 16:49:56 +02:00
container_name_test.go test(e2e): expose, container_name, ipc and wait scenarios 2026-08-18 16:49:56 +02:00
cp_test.go test(e2e): cp, environment and config scenarios 2026-08-18 16:49:56 +02:00
e2e_config_plugin.go
e2e_config_standalone.go
env_file_test.go test(e2e): scale, secrets and env_file scenarios 2026-08-18 16:49:56 +02:00
events_test.go fix(events): validate service names before subscribing to events 2026-08-18 10:48:59 +02:00
exec_test.go test(e2e): exec and provider scenarios 2026-08-18 16:49:56 +02:00
export_test.go test(e2e): configs, commit, export and logs scenarios 2026-08-18 16:49:56 +02:00
expose_test.go test(e2e): expose, container_name, ipc and wait scenarios 2026-08-18 16:49:56 +02:00
framework.go e2e: fix test resource isolation and make standalone parallelism configurable 2026-08-19 17:41:02 +02:00
healthcheck_test.go test(e2e): lifecycle scenarios — cascade, profiles, healthcheck, recreate 2026-08-18 16:49:56 +02:00
hooks_test.go test(e2e): exec and lifecycle-hook scenarios 2026-08-18 16:49:56 +02:00
image_identity_corner_test.go test(e2e): testdata/<TestName>/ anchors each scenario's project files 2026-08-18 16:49:56 +02:00
image_identity_test.go test(e2e): image-identity, images and model scenarios 2026-08-18 16:49:56 +02:00
images_test.go test(e2e): image-identity, images and model scenarios 2026-08-18 16:49:56 +02:00
ipc_test.go test(e2e): expose, container_name, ipc and wait scenarios 2026-08-18 16:49:56 +02:00
logs_test.go test(e2e): configs, commit, export and logs scenarios 2026-08-18 16:49:56 +02:00
main_test.go
model_test.go test(e2e): image-identity, images and model scenarios 2026-08-18 16:49:56 +02:00
multiplatform_test.go test(e2e): testdata/<TestName>/ anchors each scenario's project files 2026-08-18 16:49:56 +02:00
networks_test.go e2e: fix test resource isolation and make standalone parallelism configurable 2026-08-19 17:41:02 +02:00
noDeps_test.go test(e2e): no-deps scenarios — the donor container's absence is the observable 2026-08-18 16:49:56 +02:00
orphans_test.go test(e2e): TestRemoveOrphans states its real intent — COMPOSE_REMOVE_ORPHANS from .env 2026-08-18 16:49:56 +02:00
pause_test.go test(e2e): pause scenarios — paused is a container state, ExitCode locks error paths 2026-08-18 16:49:56 +02:00
profiles_test.go test(e2e): lifecycle scenarios — cascade, profiles, healthcheck, recreate 2026-08-18 16:49:56 +02:00
providers_test.go test(e2e): exec and provider scenarios 2026-08-18 16:49:56 +02:00
ps_test.go fix: make e2e tests pass reliably locally with Docker Desktop 2026-05-18 10:55:41 +02:00
publish_test.go e2e: fix test resource isolation and make standalone parallelism configurable 2026-08-19 17:41:02 +02:00
pull_test.go test(e2e): pull and network scenarios 2026-08-18 16:49:56 +02:00
recreate_no_deps_test.go test(e2e): lifecycle scenarios — cascade, profiles, healthcheck, recreate 2026-08-18 16:49:56 +02:00
restart_test.go test(e2e): testdata/<TestName>/ anchors each scenario's project files 2026-08-18 16:49:56 +02:00
scale_test.go test(e2e): scale, secrets and env_file scenarios 2026-08-18 16:49:56 +02:00
scenario.go test(e2e): address review — project-name collisions, file modes, regex compilation 2026-08-18 16:49:56 +02:00
SCENARIO.md test(e2e): testdata/<TestName>/ anchors each scenario's project files 2026-08-18 16:49:56 +02:00
secrets_test.go test(e2e): scale, secrets and env_file scenarios 2026-08-18 16:49:56 +02:00
start_stop_test.go test(e2e): one-off vocabulary — service checks skip run containers 2026-08-18 16:49:56 +02:00
testdata_test.go test(e2e): testdata/<TestName>/ anchors each scenario's project files 2026-08-18 16:49:56 +02:00
up_test.go test(e2e): batch snapshot inspect with per-container fallback, explicit suite timeout 2026-08-18 16:49:56 +02:00
volumes_test.go e2e: fix test resource isolation and make standalone parallelism configurable 2026-08-19 17:41:02 +02:00
wait_test.go test(e2e): expose, container_name, ipc and wait scenarios 2026-08-18 16:49:56 +02:00
watch_test.go e2e: fix test resource isolation and make standalone parallelism configurable 2026-08-19 17:41:02 +02:00