compose/pkg/e2e/testdata
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
..
TestActiveProfileViaTargetedService test(e2e): lifecycle scenarios — cascade, profiles, healthcheck, recreate 2026-08-18 16:49:56 +02:00
TestBuildDependentImage test(e2e): build scenarios — the 'Built' family inlines its models 2026-08-18 16:49:56 +02:00
TestBuildDependentImageWithProfile test(e2e): build scenarios — the 'Built' family inlines its models 2026-08-18 16:49:56 +02:00
TestBuildDependsOn test(e2e): build scenarios — the 'Built' family inlines its models 2026-08-18 16:49:56 +02:00
TestBuildEscaped test(e2e): build scenarios — the 'Built' family inlines its models 2026-08-18 16:49:56 +02:00
TestBuildLongOutputLine test(e2e): build scenarios — the 'Built' family inlines its models 2026-08-18 16:49:56 +02:00
TestBuildSecrets test(e2e): build scenarios — the 'Built' family inlines its models 2026-08-18 16:49:56 +02:00
TestBuildSubDependencies test(e2e): build scenarios — the 'Built' family inlines its models 2026-08-18 16:49:56 +02:00
TestBuildSubset test(e2e): build scenarios — the 'Built' family inlines its models 2026-08-18 16:49:56 +02:00
TestBuildTags test(e2e): build scenarios — the 'Built' family inlines its models 2026-08-18 16:49:56 +02:00
TestCascadeFail test(e2e): lifecycle scenarios — cascade, profiles, healthcheck, recreate 2026-08-18 16:49:56 +02:00
TestCascadeStop test(e2e): lifecycle scenarios — cascade, profiles, healthcheck, recreate 2026-08-18 16:49:56 +02:00
TestCommentsInEnvFile test(e2e): cp, environment and config scenarios 2026-08-18 16:49:56 +02:00
TestCommit test(e2e): configs, commit, export and logs scenarios 2026-08-18 16:49:56 +02:00
TestCommitWithReplicas test(e2e): configs, commit, export and logs scenarios 2026-08-18 16:49:56 +02:00
TestCompatibility test(e2e): compose command scenarios — rm, compatibility, config, orphan scoping 2026-08-18 16:49:56 +02:00
TestComposeModel test(e2e): image-identity, images and model scenarios 2026-08-18 16:49:56 +02:00
TestComposePull test(e2e): pull and network scenarios 2026-08-18 16:49:56 +02:00
TestComposeRun test(e2e): run and up scenarios 2026-08-18 16:49:56 +02:00
TestComposeRunBuild test(e2e): run and up scenarios 2026-08-18 16:49:56 +02:00
TestComposeRunDeps test(e2e): run and up scenarios 2026-08-18 16:49:56 +02:00
TestComposeRunNotRequiredDeps test(e2e): run and up scenarios 2026-08-18 16:49:56 +02:00
TestComposeRunPorts test(e2e): run and up scenarios 2026-08-18 16:49:56 +02:00
TestComposeRunPullAlways test(e2e): run and up scenarios 2026-08-18 16:49:56 +02:00
TestComposeRunQuietPull test(e2e): run and up scenarios 2026-08-18 16:49:56 +02:00
TestConfig test(e2e): compose command scenarios — rm, compatibility, config, orphan scoping 2026-08-18 16:49:56 +02:00
TestConfigFromEnv test(e2e): configs, commit, export and logs scenarios 2026-08-18 16:49:56 +02:00
TestConfigInterpolate test(e2e): compose command scenarios — rm, compatibility, config, orphan scoping 2026-08-18 16:49:56 +02:00
TestCopy test(e2e): cp, environment and config scenarios 2026-08-18 16:49:56 +02:00
TestCreateIdempotentDefaultPlatform
TestCreateIdempotentSharedImageMixedPlatforms
TestCreateLocalMultiPlatformImage
TestDependsOnMultipleProviders test(e2e): exec and provider scenarios 2026-08-18 16:49:56 +02:00
TestDotEnvProfileUsage test(e2e): lifecycle scenarios — cascade, profiles, healthcheck, recreate 2026-08-18 16:49:56 +02:00
TestEnvInterpolation test(e2e): cp, environment and config scenarios 2026-08-18 16:49:56 +02:00
TestEnvInterpolationDefaultValue test(e2e): cp, environment and config scenarios 2026-08-18 16:49:56 +02:00
TestEnvPriority test(e2e): cp, environment and config scenarios 2026-08-18 16:49:56 +02:00
TestEnvPriorityComposeEnvFile test(e2e): cp, environment and config scenarios 2026-08-18 16:49:56 +02:00
TestEnvPriorityComposeEnvironment test(e2e): cp, environment and config scenarios 2026-08-18 16:49:56 +02:00
TestExec test(e2e): exec and provider scenarios 2026-08-18 16:49:56 +02:00
TestExplicitProfileUsage test(e2e): lifecycle scenarios — cascade, profiles, healthcheck, recreate 2026-08-18 16:49:56 +02:00
TestExport test(e2e): configs, commit, export and logs scenarios 2026-08-18 16:49:56 +02:00
TestExportWithReplicas test(e2e): configs, commit, export and logs scenarios 2026-08-18 16:49:56 +02:00
TestExposeRange test(e2e): expose, container_name, ipc and wait scenarios 2026-08-18 16:49:56 +02:00
TestImagesAfterImageRemoved test(e2e): image-identity, images and model scenarios 2026-08-18 16:49:56 +02:00
TestImageVolume test(e2e): volume and build-once scenarios 2026-08-18 16:49:56 +02:00
TestImageVolumeImageAlreadyLocal
TestImageVolumeRecreateOnRebuild test(e2e): volume and build-once scenarios 2026-08-18 16:49:56 +02:00
TestInitContainer test(e2e): compose command scenarios — rm, compatibility, config, orphan scoping 2026-08-18 16:49:56 +02:00
TestInterfaceName test(e2e): pull and network scenarios 2026-08-18 16:49:56 +02:00
TestIPAMConfig test(e2e): pull and network scenarios 2026-08-18 16:49:56 +02:00
TestIPC test(e2e): expose, container_name, ipc and wait scenarios 2026-08-18 16:49:56 +02:00
TestLocalComposeConfig test(e2e): cp, environment and config scenarios 2026-08-18 16:49:56 +02:00
TestLocalComposeConfigNoConsistency test(e2e): cp, environment and config scenarios 2026-08-18 16:49:56 +02:00
TestLocalComposeExec test(e2e): exec and lifecycle-hook scenarios 2026-08-18 16:49:56 +02:00
TestLocalComposeExecOneOff test(e2e): exec and lifecycle-hook scenarios 2026-08-18 16:49:56 +02:00
TestLocalComposeLogs test(e2e): configs, commit, export and logs scenarios 2026-08-18 16:49:56 +02:00
TestLoggingDriver e2e: fix test resource isolation and make standalone parallelism configurable 2026-08-19 17:41:02 +02:00
TestMacAddress test(e2e): pull and network scenarios 2026-08-18 16:49:56 +02:00
TestNetworkAliases test(e2e): pull and network scenarios 2026-08-18 16:49:56 +02:00
TestNetworkConfigChanged test(e2e): pull and network scenarios 2026-08-18 16:49:56 +02:00
TestNetworkLinks test(e2e): pull and network scenarios 2026-08-18 16:49:56 +02:00
TestNetworkModes test(e2e): pull and network scenarios 2026-08-18 16:49:56 +02:00
TestNoDepsNetworkMode test(e2e): no-deps scenarios — the donor container's absence is the observable 2026-08-18 16:49:56 +02:00
TestNoDepsVolumeFrom test(e2e): no-deps scenarios — the donor container's absence is the observable 2026-08-18 16:49:56 +02:00
TestNoProfileUsage test(e2e): lifecycle scenarios — cascade, profiles, healthcheck, recreate 2026-08-18 16:49:56 +02:00
TestPause
TestPauseServiceAlreadyPaused
TestPauseServiceDoesNotExist
TestPauseServiceNotRunning
TestPortRange test(e2e): run and up scenarios 2026-08-18 16:49:56 +02:00
TestPostStartAndPreStopHook test(e2e): exec and lifecycle-hook scenarios 2026-08-18 16:49:56 +02:00
TestPostStartHookInError test(e2e): exec and lifecycle-hook scenarios 2026-08-18 16:49:56 +02:00
TestPostStartHookSuccess test(e2e): exec and lifecycle-hook scenarios 2026-08-18 16:49:56 +02:00
TestPreStartHookBuildInheritance test(e2e): exec and lifecycle-hook scenarios 2026-08-18 16:49:56 +02:00
TestPreStartHookForceRecreate test(e2e): exec and lifecycle-hook scenarios 2026-08-18 16:49:56 +02:00
TestPreStartHookIdempotentReUp test(e2e): exec and lifecycle-hook scenarios 2026-08-18 16:49:56 +02:00
TestPreStartHookInError test(e2e): exec and lifecycle-hook scenarios 2026-08-18 16:49:56 +02:00
TestPreStartHookMidSequenceFailure test(e2e): exec and lifecycle-hook scenarios 2026-08-18 16:49:56 +02:00
TestPreStartHookNotReRunOnScaleUp test(e2e): exec and lifecycle-hook scenarios 2026-08-18 16:49:56 +02:00
TestPreStartHookReRunOnSpecChange test(e2e): exec and lifecycle-hook scenarios 2026-08-18 16:49:56 +02:00
TestPreStartHookRunsOnceForScaledService test(e2e): exec and lifecycle-hook scenarios 2026-08-18 16:49:56 +02:00
TestPreStartHookSequentialOrder test(e2e): exec and lifecycle-hook scenarios 2026-08-18 16:49:56 +02:00
TestPreStartHookSuccess test(e2e): exec and lifecycle-hook scenarios 2026-08-18 16:49:56 +02:00
TestPreStopHookInError test(e2e): exec and lifecycle-hook scenarios 2026-08-18 16:49:56 +02:00
TestPreStopHookSuccess test(e2e): exec and lifecycle-hook scenarios 2026-08-18 16:49:56 +02:00
TestPreStopHookSuccessWithPreviousStop test(e2e): exec and lifecycle-hook scenarios 2026-08-18 16:49:56 +02:00
TestProviderRawSetEnv test(e2e): exec and provider scenarios 2026-08-18 16:49:56 +02:00
TestProviderRawSetEnvOverridesInheritedEnv test(e2e): exec and provider scenarios 2026-08-18 16:49:56 +02:00
TestProviderRawSetEnvOverridesInheritedEnvMapForm test(e2e): exec and provider scenarios 2026-08-18 16:49:56 +02:00
TestProviderRawSetEnvOverridesUserEnv test(e2e): exec and provider scenarios 2026-08-18 16:49:56 +02:00
TestProviderStopHook test(e2e): exec and provider scenarios 2026-08-18 16:49:56 +02:00
TestPublishBindMount test(e2e): publish-check scenarios — WithStdin answers the prompts 2026-08-18 16:49:56 +02:00
TestPublishBuildOnly test(e2e): publish-check scenarios — WithStdin answers the prompts 2026-08-18 16:49:56 +02:00
TestPublishDetectSensitiveData test(e2e): publish-check scenarios — WithStdin answers the prompts 2026-08-18 16:49:56 +02:00
TestPublishInterpolatedEnv test(e2e): publish-check scenarios — WithStdin answers the prompts 2026-08-18 16:49:56 +02:00
TestPublishLocalInclude test(e2e): publish-check scenarios — WithStdin answers the prompts 2026-08-18 16:49:56 +02:00
TestPublishPromptAggregatesFindings test(e2e): publish-check scenarios — WithStdin answers the prompts 2026-08-18 16:49:56 +02:00
TestPublishPromptEnvFile test(e2e): publish-check scenarios — WithStdin answers the prompts 2026-08-18 16:49:56 +02:00
TestPublishPromptSuspiciousEnv test(e2e): publish-check scenarios — WithStdin answers the prompts 2026-08-18 16:49:56 +02:00
TestPublishWithExtends test(e2e): publish-check scenarios — WithStdin answers the prompts 2026-08-18 16:49:56 +02:00
TestPullFailure test(e2e): pull and network scenarios 2026-08-18 16:49:56 +02:00
TestPullIgnoreFailures test(e2e): pull and network scenarios 2026-08-18 16:49:56 +02:00
TestPullImagePresentLocally test(e2e): pull and network scenarios 2026-08-18 16:49:56 +02:00
TestPullNoImageNameGiven test(e2e): pull and network scenarios 2026-08-18 16:49:56 +02:00
TestPullRefreshWindowExplicitPull
TestRawEnvFile test(e2e): scale, secrets and env_file scenarios 2026-08-18 16:49:56 +02:00
TestRecreateWithNoDeps test(e2e): lifecycle scenarios — cascade, profiles, healthcheck, recreate 2026-08-18 16:49:56 +02:00
TestRemoveOrphaned test(e2e): compose command scenarios — rm, compatibility, config, orphan scoping 2026-08-18 16:49:56 +02:00
TestRemoveOrphans test(e2e): TestRemoveOrphans states its real intent — COMPOSE_REMOVE_ORPHANS from .env 2026-08-18 16:49:56 +02:00
TestRestart
TestRm test(e2e): compose command scenarios — rm, compatibility, config, orphan scoping 2026-08-18 16:49:56 +02:00
TestRunBuildOnceDependency test(e2e): volume and build-once scenarios 2026-08-18 16:49:56 +02:00
TestRunBuildOnceNestedDependencies test(e2e): volume and build-once scenarios 2026-08-18 16:49:56 +02:00
TestRunBuildOnceNoDeps test(e2e): volume and build-once scenarios 2026-08-18 16:49:56 +02:00
TestRunEnvFile test(e2e): scale, secrets and env_file scenarios 2026-08-18 16:49:56 +02:00
TestScaleBasicCases test(e2e): scale, secrets and env_file scenarios 2026-08-18 16:49:56 +02:00
TestScaleDoesntRecreate test(e2e): run and up scenarios 2026-08-18 16:49:56 +02:00
TestScaleDownNoRecreate test(e2e): scale, secrets and env_file scenarios 2026-08-18 16:49:56 +02:00
TestScaleDownRemovesObsolete test(e2e): scale, secrets and env_file scenarios 2026-08-18 16:49:56 +02:00
TestScaleUpAndDownPreserveContainerNumber test(e2e): scale, secrets and env_file scenarios 2026-08-18 16:49:56 +02:00
TestScaleWithDepsCases test(e2e): scale, secrets and env_file scenarios 2026-08-18 16:49:56 +02:00
TestSecretFromEnv test(e2e): scale, secrets and env_file scenarios 2026-08-18 16:49:56 +02:00
TestSecretFromInclude test(e2e): scale, secrets and env_file scenarios 2026-08-18 16:49:56 +02:00
TestStartInterval test(e2e): lifecycle scenarios — cascade, profiles, healthcheck, recreate 2026-08-18 16:49:56 +02:00
TestStartSingleServiceAndDependency test(e2e): start/stop scenarios observe container state, not CLI chatter 2026-08-18 16:49:56 +02:00
TestStartStop test(e2e): start/stop scenarios observe container state, not CLI chatter 2026-08-18 16:49:56 +02:00
TestStartStopWithDependencies test(e2e): start/stop scenarios observe container state, not CLI chatter 2026-08-18 16:49:56 +02:00
TestStartStopWithOneOffs test(e2e): one-off vocabulary — service checks skip run containers 2026-08-18 16:49:56 +02:00
TestStdoutStderr test(e2e): run and up scenarios 2026-08-18 16:49:56 +02:00
TestStopWithDependenciesAttached test(e2e): compose command scenarios — rm, compatibility, config, orphan scoping 2026-08-18 16:49:56 +02:00
TestUnnecessaryResources test(e2e): compose command scenarios — rm, compatibility, config, orphan scoping 2026-08-18 16:49:56 +02:00
TestUnsetEnv test(e2e): cp, environment and config scenarios 2026-08-18 16:49:56 +02:00
TestUpBuildUnchangedContext
TestUpContainerNameConflict test(e2e): expose, container_name, ipc and wait scenarios 2026-08-18 16:49:56 +02:00
TestUpDryRunMissingImage
TestUpExitCodeFrom test(e2e): run and up scenarios 2026-08-18 16:49:56 +02:00
TestUpExitCodeFromContainerKilled test(e2e): run and up scenarios 2026-08-18 16:49:56 +02:00
TestUpIdempotentContainerdStore test(e2e): image-identity, images and model scenarios 2026-08-18 16:49:56 +02:00
TestUpImageID test(e2e): run and up scenarios 2026-08-18 16:49:56 +02:00
TestUpNoDeps test(e2e): start/stop scenarios observe container state, not CLI chatter 2026-08-18 16:49:56 +02:00
TestUpProfile test(e2e): run and up scenarios 2026-08-18 16:49:56 +02:00
TestUpRecreateVolumes test(e2e): volume and build-once scenarios 2026-08-18 16:49:56 +02:00
TestUpRecreateVolumesIgnoreBinds test(e2e): volume and build-once scenarios 2026-08-18 16:49:56 +02:00
TestUpServiceUnhealthy test(e2e): run and up scenarios 2026-08-18 16:49:56 +02:00
TestUpStopWithLogsMixed test(e2e): batch snapshot inspect with per-container fallback, explicit suite timeout 2026-08-18 16:49:56 +02:00
TestUpSwitchVolumes test(e2e): volume and build-once scenarios 2026-08-18 16:49:56 +02:00
TestUpWait test(e2e): run and up scenarios 2026-08-18 16:49:56 +02:00
TestUpWithAllResources test(e2e): run and up scenarios 2026-08-18 16:49:56 +02:00
TestUpWithBuildDependencies test(e2e): run and up scenarios 2026-08-18 16:49:56 +02:00
TestUpWithDependencyExit test(e2e): run and up scenarios 2026-08-18 16:49:56 +02:00
TestUpWithDependencyNotRequired test(e2e): run and up scenarios 2026-08-18 16:49:56 +02:00
TestWaitAndDrop test(e2e): expose, container_name, ipc and wait scenarios 2026-08-18 16:49:56 +02:00
TestWaitOnFaster test(e2e): expose, container_name, ipc and wait scenarios 2026-08-18 16:49:56 +02:00
TestWaitOnSlower test(e2e): expose, container_name, ipc and wait scenarios 2026-08-18 16:49:56 +02:00