compose/pkg/e2e
Guillaume Lours 98021dcfcb fix(dry-run): skip lifecycle hooks instead of failing
The dry-run client cannot attach to an exec, so any lifecycle hook
reached under --dry-run (pre_stop on down/stop/restart, post_start on
up/restart) made the command fail with "interactive exec is not
supported in dry-run mode".

A dry-run must have no side effects, so skip the hook in runHook, which
every hook phase goes through, rather than guarding each call site.

Signed-off-by: Guillaume Lours <glours@users.noreply.github.com>
2026-11-16 14:34:01 +01:00
..
fixtures test(e2e): migrate start/stop legacy tests to scenarios 2026-11-03 15:01:50 +01:00
testdata fix(dry-run): skip lifecycle hooks instead of failing 2026-11-16 14:34:01 +01:00
api_socket_test.go fix(use_api_socket): hand the registry credentials over like docker run does 2026-11-02 15:41:36 +01:00
assert.go test(e2e): deflake the three state/stream race suspects 2026-09-22 14:45:23 +02:00
bridge_convert_output_test.go golangci-lint: enable perfsprint linter 2026-09-10 10:25:34 +02:00
bridge_test.go golangci-lint: enable perfsprint linter 2026-09-10 10:25:34 +02:00
build_test.go ci: install the e2e engine with docker/setup-docker-action 2026-11-04 17:15:18 +01:00
cancel_test.go test(e2e): gate the e2e suite behind the build tag the docs already promise 2026-08-27 11:02:07 +02:00
cascade_test.go fix(up): honor -t when an attached up stops the application 2026-10-27 08:58:05 +01:00
checks.go test(e2e): add StdoutEmpty check 2026-11-03 15:01:50 +01:00
commit_test.go fix(dry-run): commit no longer creates a real image; the interception set becomes declarative 2026-09-16 13:44:21 +02:00
compose_environment_test.go test(e2e): gate the e2e suite behind the build tag the docs already promise 2026-08-27 11:02:07 +02:00
compose_exec_test.go test(e2e): gate the e2e suite behind the build tag the docs already promise 2026-08-27 11:02:07 +02:00
compose_run_build_once_test.go test(e2e): gate the e2e suite behind the build tag the docs already promise 2026-08-27 11:02:07 +02:00
compose_run_test.go chore: address the review notes left 2026-11-11 20:43:01 +01:00
compose_test.go test(e2e): TestAttachRestart failure dumps the daemon's own log view 2026-09-22 14:45:23 +02:00
compose_up_test.go test(e2e): lock --wait-timeout on a depends_on service_healthy dependency 2026-10-15 14:52:20 +02:00
config_test.go test(e2e): gate the e2e suite behind the build tag the docs already promise 2026-08-27 11:02:07 +02:00
configs_test.go test(e2e): gate the e2e suite behind the build tag the docs already promise 2026-08-27 11:02:07 +02:00
container_name_test.go test(e2e): gate the e2e suite behind the build tag the docs already promise 2026-08-27 11:02:07 +02:00
cp_test.go test(e2e): gate the e2e suite behind the build tag the docs already promise 2026-08-27 11:02:07 +02:00
dry_run_hooks_test.go fix(dry-run): skip lifecycle hooks instead of failing 2026-11-16 14:34:01 +01:00
e2e_config_plugin.go chore(e2e): fix flaky test & standalone behavior (#11382) 2024-01-30 10:49:53 -05:00
e2e_config_standalone.go
env_file_test.go test(e2e): migrate TestUnusedMissingEnvFile to a scenario 2026-11-03 15:01:50 +01:00
events_test.go test(e2e): migrate TestEventsUnknownService to a scenario 2026-11-03 15:01:50 +01:00
exec_test.go test(e2e): gate the e2e suite behind the build tag the docs already promise 2026-08-27 11:02:07 +02:00
export_test.go test(e2e): gate the e2e suite behind the build tag the docs already promise 2026-08-27 11:02:07 +02:00
expose_test.go test(e2e): gate the e2e suite behind the build tag the docs already promise 2026-08-27 11:02:07 +02:00
framework.go ci: install the e2e engine with docker/setup-docker-action 2026-11-04 17:15:18 +01:00
healthcheck_test.go test(e2e): gate the e2e suite behind the build tag the docs already promise 2026-08-27 11:02:07 +02:00
hooks_test.go fix(pre_start): capture a hook's output by opening its log stream once started 2026-10-16 15:11:33 +02:00
image_identity_corner_test.go test(e2e): gate the e2e suite behind the build tag the docs already promise 2026-08-27 11:02:07 +02:00
image_identity_test.go test(e2e): gate the e2e suite behind the build tag the docs already promise 2026-08-27 11:02:07 +02:00
images_test.go fix(down): preserve images outside selected services 2026-11-05 11:10:26 +01:00
ipc_test.go test(e2e): gate the e2e suite behind the build tag the docs already promise 2026-08-27 11:02:07 +02:00
jobs_test.go fix(compose): move the job-target refusal into projectOrName itself 2026-09-21 16:35:20 +02:00
logs_test.go test(e2e): gate the e2e suite behind the build tag the docs already promise 2026-08-27 11:02:07 +02:00
main_test.go test(e2e): gate the e2e suite behind the build tag the docs already promise 2026-08-27 11:02:07 +02:00
model_test.go test(e2e): gate the e2e suite behind the build tag the docs already promise 2026-08-27 11:02:07 +02:00
multiplatform_test.go test(e2e): gate the e2e suite behind the build tag the docs already promise 2026-08-27 11:02:07 +02:00
networks_test.go PRIVATE_PORT optional for docker compose port 2026-09-11 11:35:18 +02:00
noDeps_test.go test(e2e): gate the e2e suite behind the build tag the docs already promise 2026-08-27 11:02:07 +02:00
orphans_test.go test(e2e): gate the e2e suite behind the build tag the docs already promise 2026-08-27 11:02:07 +02:00
pause_test.go test(e2e): gate the e2e suite behind the build tag the docs already promise 2026-08-27 11:02:07 +02:00
profiles_test.go test(e2e): gate the e2e suite behind the build tag the docs already promise 2026-08-27 11:02:07 +02:00
providers_test.go fix(e2e): verify scale propagation and relay singularity against real state 2026-11-16 10:22:24 +01:00
ps_test.go test(e2e): gate the e2e suite behind the build tag the docs already promise 2026-08-27 11:02:07 +02:00
publish_test.go publish, config --images: jobs are scanned and pinned like services 2026-09-21 16:35:20 +02:00
pull_test.go test(e2e): fix TestPullFailure's daemon-specific error assertion 2026-09-23 16:12:52 +02:00
recreate_no_deps_test.go test(e2e): gate the e2e suite behind the build tag the docs already promise 2026-08-27 11:02:07 +02:00
remote_git_test.go e2e: version-proof git fixture init, Branch cuts from main 2026-09-16 16:53:33 +02:00
remote_oci_test.go test(e2e): reproduce --project-directory ignored on an oci:// project 2026-09-23 10:56:23 +02:00
restart_test.go test(e2e): gate the e2e suite behind the build tag the docs already promise 2026-08-27 11:02:07 +02:00
scale_test.go test(e2e): gate the e2e suite behind the build tag the docs already promise 2026-08-27 11:02:07 +02:00
scenario.go test(e2e): add CompleteCmd action to scenarios 2026-11-03 15:01:50 +01:00
SCENARIO.md e2e: scenario DSL learns remote compose sources 2026-09-16 16:53:33 +02:00
secrets_test.go test(e2e): gate the e2e suite behind the build tag the docs already promise 2026-08-27 11:02:07 +02:00
start_stop_test.go test(e2e): migrate start/stop legacy tests to scenarios 2026-11-03 15:01:50 +01:00
testdata_test.go test(e2e): gate the e2e suite behind the build tag the docs already promise 2026-08-27 11:02:07 +02:00
umask_test.go feat: support the umask service attribute 2026-10-21 14:17:44 +02:00
unsupported_attributes_test.go fix(run): warn about ignored uid/gid/mode for a run target scaled to zero 2026-11-05 09:47:51 +01:00
up_interactive_test.go fix(use_api_socket): hand the registry credentials over like docker run does 2026-11-02 15:41:36 +01:00
up_start_failure_test.go fix(executor): name the failed wait and close every row a failed start leaves 2026-10-26 09:54:25 +01:00
up_test.go test(e2e): wait on state, not on an unsynchronized log line 2026-09-16 14:31:15 +02:00
volumes_test.go fix(down): keep volumes other services use on down -v with services 2026-11-13 17:10:30 +01:00
wait_test.go test(e2e): gate the e2e suite behind the build tag the docs already promise 2026-08-27 11:02:07 +02:00
watch_test.go test(e2e): follow the rebuild failure message in the dotenv rebuild test 2026-10-15 17:04:18 +02:00