mirror of
https://github.com/docker/compose.git
synced 2026-11-16 21:22:56 +00:00
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> |
||
|---|---|---|
| .. | ||
| fixtures | ||
| testdata | ||
| assert.go | ||
| bridge_test.go | ||
| build_test.go | ||
| cancel_test.go | ||
| cascade_test.go | ||
| checks.go | ||
| commit_test.go | ||
| compose_environment_test.go | ||
| compose_exec_test.go | ||
| compose_run_build_once_test.go | ||
| compose_run_test.go | ||
| compose_test.go | ||
| compose_up_test.go | ||
| config_test.go | ||
| configs_test.go | ||
| container_name_test.go | ||
| cp_test.go | ||
| e2e_config_plugin.go | ||
| e2e_config_standalone.go | ||
| env_file_test.go | ||
| events_test.go | ||
| exec_test.go | ||
| export_test.go | ||
| expose_test.go | ||
| framework.go | ||
| healthcheck_test.go | ||
| hooks_test.go | ||
| image_identity_corner_test.go | ||
| image_identity_test.go | ||
| images_test.go | ||
| ipc_test.go | ||
| logs_test.go | ||
| main_test.go | ||
| model_test.go | ||
| multiplatform_test.go | ||
| networks_test.go | ||
| noDeps_test.go | ||
| orphans_test.go | ||
| pause_test.go | ||
| profiles_test.go | ||
| providers_test.go | ||
| ps_test.go | ||
| publish_test.go | ||
| pull_test.go | ||
| recreate_no_deps_test.go | ||
| restart_test.go | ||
| scale_test.go | ||
| scenario.go | ||
| SCENARIO.md | ||
| secrets_test.go | ||
| start_stop_test.go | ||
| testdata_test.go | ||
| up_test.go | ||
| volumes_test.go | ||
| wait_test.go | ||
| watch_test.go | ||