compose/pkg/e2e/testdata
Nicolas De Loof 06f4f9d622 fix: dependency wait timeout surfaced only by luck
waitDependency returned nil whenever its context ended, so an expired
wait deadline was reported only when the 500ms poll ticker happened to
win the select race and the condition check then failed on the expired
context. Whether `up --wait --wait-timeout` failed or silently
succeeded after the timeout was a coin toss, and the "timeout waiting
for dependencies" mapping in waitDependencies was unreachable on the
direct path.

Return the context error when the deadline expired; a plain
cancellation (Ctrl-C) is still not reported as a dependency failure.
The unit test pins both sides deterministically (a deadline shorter
than the first tick used to be swallowed with certainty); the e2e
scenario documents the user-visible contract: `up --wait
--wait-timeout` on a never-healthy service fails with "application not
healthy after Xs" while the container keeps running.

Part of #14074 (section C) / #14081 (lot 0).

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2026-08-20 15:16:57 +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
TestPsHonorsPsFormat fix(ps): honor psFormat from Docker CLI config when no --format flag given 2026-08-20 14:05:34 +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
TestUpWaitTimeout fix: dependency wait timeout surfaced only by luck 2026-08-20 15:16:57 +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