compose/pkg/e2e
Nicolas De Loof e6500d1046 fix(e2e): verify scale propagation and relay singularity against real state
A Copilot review finding on TestProviderScaleReachesTheProvider: the
scenario left both central guarantees unobserved -- the second `compose
scale` call only checked a successful exit, and no relay container ever
existed to assert singularity against (PROVIDER_DEMO_ENDPOINT was unset).
It would have passed even if a later scale silently lost the requested
value, or if relay creation mishandled it.

The scenario now enables endpoint publication (as in
TestProviderPublishEndpoint) so a real relay container exists, includes
the dependent service in each scale call's targets so it is (re)created
in the same call, and asserts against real state per the project's own
e2e conventions (pkg/e2e/SCENARIO.md: state-based checks over output
matching) -- ContainerEnv for the exact value the provider received,
ServiceScale("db", 1) for the relay staying a single container across
two different scale requests.

Verified: the full provider e2e subset re-run clean against a locally
built binary, golangci-lint clean.

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2026-11-16 10:22:24 +01:00
..
fixtures test(e2e): migrate start/stop legacy tests to scenarios 2026-11-03 15:01:50 +01:00
testdata fix(e2e): verify scale propagation and relay singularity against real state 2026-11-16 10:22:24 +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
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
compose_exec_test.go
compose_run_build_once_test.go
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
configs_test.go
container_name_test.go
cp_test.go
e2e_config_plugin.go
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
export_test.go
expose_test.go
framework.go ci: install the e2e engine with docker/setup-docker-action 2026-11-04 17:15:18 +01:00
healthcheck_test.go
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
image_identity_test.go
images_test.go fix(down): preserve images outside selected services 2026-11-05 11:10:26 +01:00
ipc_test.go
jobs_test.go fix(compose): move the job-target refusal into projectOrName itself 2026-09-21 16:35:20 +02:00
logs_test.go
main_test.go
model_test.go
multiplatform_test.go
networks_test.go PRIVATE_PORT optional for docker compose port 2026-09-11 11:35:18 +02:00
noDeps_test.go
orphans_test.go
pause_test.go
profiles_test.go
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
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
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
scale_test.go
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
start_stop_test.go test(e2e): migrate start/stop legacy tests to scenarios 2026-11-03 15:01:50 +01:00
testdata_test.go
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
watch_test.go test(e2e): follow the rebuild failure message in the dotenv rebuild test 2026-10-15 17:04:18 +02:00