compose/pkg/e2e
Milas Bowman 36bf0c458b chore(e2e): fix flaky cascade failure test
This was racy with the sleep, so the Compose file has been
tweaked to make it pass reliably.

Now, there's 3 services:
 * `running` - sleeps forever
 * `exit` - exits _successfully_ immediately
   * depends on `running` started
 * `fail` - exits _with error_ immediately
   * depends on `exit` succeeding

Now, the test can ensure that the containers are all run/
started in the expected order the assertions will be reliable.

Before, it was possible for `fail` to run & exit before `exit`,
for example. The `running` service also ensures there's always
at least one other "running" container when we do an abort.

Signed-off-by: Milas Bowman <milas.bowman@docker.com>
2024-04-24 11:03:27 +02:00
..
fixtures chore(e2e): fix flaky cascade failure test 2024-04-24 11:03:27 +02:00
assert.go up: fix various race/deadlock conditions on exit (#10934) 2023-08-31 10:47:14 -04:00
build_test.go Introduce support for build.entitlements 2024-04-10 12:27:49 +02:00
cancel_test.go chore(e2e): fix flaky test & standalone behavior (#11382) 2024-01-30 10:49:53 -05:00
cascade_test.go chore(e2e): fix flaky cascade failure test 2024-04-24 11:03:27 +02:00
compose_environment_test.go add support of COMPOSE_ENV_FILES env variable to pass a list of env files 2023-10-05 21:55:43 +02:00
compose_exec_test.go test: speed up the e2e test suite 2023-07-18 11:08:06 +02:00
compose_run_test.go use an dedicated compose file --quiet-pull e2e test 2024-02-21 18:59:09 +01:00
compose_test.go only use ToModel when --no-interpolate is set 2024-03-13 06:48:24 +01:00
compose_up_test.go test: e2e test reliability improvements (#10950) 2023-08-30 16:01:15 -04:00
config_test.go Bump compose-go to v2.0.2 2024-03-22 11:21:14 +01:00
configs_test.go Fix configs are mounted under /<id> 2023-11-29 16:53:22 +01:00
container_name_test.go check container_name is not in use by another service we will create 2024-04-16 17:26:50 +02:00
cp_test.go align `--format` flag and UX with docker cli 2022-12-14 22:53:43 +01:00
ddev_test.go bump ddev 2023-11-27 14:19:53 +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 Use build tags for selecting e2e test mode 2021-12-09 10:52:18 +01:00
framework.go Make it context aware and add test skipping options 2023-11-15 21:09:50 +01:00
ipc_test.go e2e: fix subtests and block parallel unsafe tests 2022-06-15 16:27:30 -04:00
logs_test.go Bump docker v26.0.0 2024-03-22 14:33:56 +01:00
main_test.go Use build tags for selecting e2e test mode 2021-12-09 10:52:18 +01:00
metrics_test.go e2e: ensure all Compose cmds standalone compatible 2022-06-16 15:51:54 -04:00
networks_test.go network: fix random missing network when service has more than one 2023-07-07 09:18:01 +02:00
noDeps_test.go resolve service reference into container based on observed state 2023-09-14 15:29:50 +02:00
pause_test.go deps: remove deprecated github.com/pkg/errors 2023-09-29 06:28:58 +02:00
profiles_test.go test: e2e test reliability improvements (#10950) 2023-08-30 16:01:15 -04:00
ps_test.go Restore `Project` is ps json output 2023-11-24 10:46:33 +01:00
pull_test.go fix regression running pull --ignore-pull-failures 2022-12-19 11:56:03 +01:00
recreate_no_deps_test.go up/start/run: don't wait for disabled service 2022-08-17 12:32:10 -05:00
restart_test.go project.Services is a map 2023-12-05 18:54:31 +01:00
scale_test.go sort containers to optimize scale down 2024-02-15 17:47:42 +01:00
secrets_test.go apply uid/gid when creating secret from environment 2022-12-15 15:54:04 +01:00
start_stop_test.go project.Services is a map 2023-12-05 18:54:31 +01:00
up_test.go e2e test for --all-resources 2024-04-09 15:30:42 +02:00
volumes_test.go Temporarily disable broken E2E tests on Windows 2022-09-20 11:33:31 -04:00
wait_test.go test: fix process leak in wait e2e test 2023-07-10 08:42:09 -04:00
watch_test.go chore(watch): remove old `docker cp` implementation 2024-02-13 12:56:53 -05:00