compose/pkg/e2e/fixtures
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
..
attach-restart
bridge fix the helm bridge e2e tests after the latest update of the templates 2025-07-16 16:04:52 +02:00
bridge-build-only fix(bridge): skip pulling default image references for build-only services 2026-08-06 16:00:08 +02:00
build-dependencies test(e2e): build scenarios — the 'Built' family inlines its models 2026-08-18 16:49:56 +02:00
build-infinite
build-test e2e: fix test resource isolation and make standalone parallelism configurable 2026-08-19 17:41:02 +02:00
cascade chore(e2e): fix flaky cascade failure test 2024-04-24 11:03:27 +02:00
config_hash fix(config): resolve service environment when computing --hash 2026-08-11 08:37:13 +02:00
dotenv test(e2e): scale, secrets and env_file scenarios 2026-08-18 16:49:56 +02:00
env_file run only loads required service env_file and ignores others 2025-03-18 09:39:15 +01:00
logs-test fix deadlock collecting large logs 2024-02-13 20:15:19 +01:00
nested allow a local .env file to override compose.yaml sibling .env 2024-05-21 16:01:29 +02:00
network-recreate end-to-end test 2025-06-02 18:57:07 +02:00
network-test e2e: fix test resource isolation and make standalone parallelism configurable 2026-08-19 17:41:02 +02:00
project-volume-bind-test
ps-test
publish/oci test(e2e): publish-check scenarios — WithStdin answers the prompts 2026-08-18 16:49:56 +02:00
restart-test test: Set stop_signal to SIGTERM 2025-09-19 10:31:20 +02:00
run-test test(e2e): volume and build-once scenarios 2026-08-18 16:49:56 +02:00
sentences e2e: fix test resource isolation and make standalone parallelism configurable 2026-08-19 17:41:02 +02:00
simple-build-test
simple-composefile test(e2e): run and up scenarios 2026-08-18 16:49:56 +02:00
start-stop test(e2e): start/stop scenarios observe container state, not CLI chatter 2026-08-18 16:49:56 +02:00
ups-deps-stop
volume-test e2e: fix test resource isolation and make standalone parallelism configurable 2026-08-19 17:41:02 +02:00
wait Add docker compose wait 2023-06-30 16:07:03 +02:00
watch fix(watch): sync into a symlinked directory instead of failing 2026-08-18 17:25:13 +02:00
wrong-composefile