compose/internal/e2e
Guillaume Lours 0aff61809c run: trigger a job through the engine like a service
`docker compose run <job>` triggers a run of the job on the engine,
starts its dependencies first, streams its logs and returns its exit
code like a one-off service; a job accepts manual triggering unless it
declares manual: false. A scheduled job runs as up registered it: an
override, or a job up never registered, is refused. A manual job is
removed from the engine after its run, so the next run can differ. When
the engine cannot run jobs, run falls back to a one-off service with a
warning. --detach is refused, an interrupted run is cancelled, a dry run
only reports it. A job named by create, start, build, pull or push gets
an error naming run instead.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Guillaume Lours <glours@users.noreply.github.com>
2026-11-17 13:48:57 +01:00
..
fixtures refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
testdata run: trigger a job through the engine like a service 2026-11-17 13:48:57 +01:00
api_socket_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
assert.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
bridge_convert_output_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
bridge_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
build_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
cancel_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
cascade_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
checks.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
commit_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
compose_environment_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
compose_exec_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
compose_run_build_once_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
compose_run_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
compose_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
compose_up_test.go feat(up): stream the logs while --wait waits for the services 2026-11-17 09:35:33 +01:00
config_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
configs_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
container_name_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
cp_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
dry_run_hooks_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
e2e_config_plugin.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
e2e_config_standalone.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
env_file_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
events_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
exec_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
export_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
expose_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
framework.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
healthcheck_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
hooks_test.go fix(pre_start): name the hook when its container cannot start 2026-11-17 09:21:06 +01:00
image_identity_corner_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
image_identity_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
images_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
ipc_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
jobs_test.go run: trigger a job through the engine like a service 2026-11-17 13:48:57 +01:00
logs_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
main_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
model_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
multiplatform_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
networks_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
noDeps_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
orphans_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
pause_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
profiles_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
providers_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
ps_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
publish_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
pull_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
recreate_no_deps_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
remote_git_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
remote_oci_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
restart_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
scale_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
scenario.go jobs: register scheduled jobs on create and up, remove them on down 2026-11-17 13:48:57 +01:00
SCENARIO.md refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
secrets_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
start_stop_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
testdata_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
umask_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
unsupported_attributes_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
up_interactive_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
up_stale_network_test.go fix(up): recreate a stopped container whose network was removed 2026-11-17 09:14:22 +01:00
up_start_failure_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
up_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
volumes_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
wait_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00
watch_test.go refactor(e2e): move the e2e framework and tests out of pkg/ 2026-11-16 15:21:04 +01:00