compose/internal/e2e
Guillaume Lours 723ce2bf4e jobs: register scheduled jobs on create and up, remove them on down
A job with a schedule is registered through the engine's jobs extension,
which fires it on its own clock; create and up register it, up stays
re-runnable since Create is idempotent on the spec hash, and a full down
removes the jobs. The extension ships disabled by default and cannot be
listed, so Compose probes it with a List scoped to the project; when the
engine cannot run jobs, up, create and start refuse the project before
creating anything, and down ignores the jobs. A job the file no longer
declares is reported by up and removed by --remove-orphans, unless its
run is in progress. The spec is stable: sorted entries, no volatile labels,
services referenced by container name.

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 jobs: register scheduled jobs on create and up, remove them on down 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 jobs: register scheduled jobs on create and up, remove them on down 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