mirror of
https://github.com/docker/compose.git
synced 2026-11-17 05:36:08 +00:00
Image identities recorded for staleness detection were produced by several independent paths yielding different digest kinds for the same image: the platform check compared flat inspect fields while the digest picked a manifest with the host matcher (never the service's pinned platform), a wrong-platform summary just discarded still leaked its digest into the label, bake substituted digests host-side in batch, and the classic builder recorded the raw build-stream ID as-is. Any of those mismatches makes the next up see a phantom image change and recreate containers. Converge every producer on one selection (matchLocalManifest / localContentDigest): the shared parallel inspect feeds both the digest and the platform check, platform-pinned services resolve THEIR platform's manifest in-process (no extra API call), and both builders route through canonicalBuiltDigest. Registry-only builds (push-only, multi-platform without load) keep the builder-reported digest — volatile but honest, an actual rebuild is still detected, where a stable placeholder would hide real image changes. ensureImagesExists' final loop becomes the label's single writer so the pinned resolution can't be overwritten, superseded only by pull/build results already platform-resolved by their producers — and when a pull or build refreshed the shared entry mid-run (a digest resolved for whichever service triggered it), a service pinned on another platform re-resolves its own with one extra inspect, in that case only. With every producer converged, TestUpIdempotentContainerdStore is un-skipped here. Signed-off-by: Guillaume Lours <glours@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| fixtures | ||
| assert.go | ||
| bridge_test.go | ||
| build_test.go | ||
| cancel_test.go | ||
| cascade_test.go | ||
| commit_test.go | ||
| compose_environment_test.go | ||
| compose_exec_test.go | ||
| compose_run_build_once_test.go | ||
| compose_run_test.go | ||
| compose_test.go | ||
| compose_up_test.go | ||
| 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 | ||
| exec_test.go | ||
| export_test.go | ||
| expose_test.go | ||
| framework.go | ||
| healthcheck_test.go | ||
| hooks_test.go | ||
| image_identity_test.go | ||
| ipc_test.go | ||
| logs_test.go | ||
| main_test.go | ||
| model_test.go | ||
| networks_test.go | ||
| noDeps_test.go | ||
| orphans_test.go | ||
| pause_test.go | ||
| profiles_test.go | ||
| providers_test.go | ||
| ps_test.go | ||
| publish_test.go | ||
| pull_test.go | ||
| recreate_no_deps_test.go | ||
| restart_test.go | ||
| scale_test.go | ||
| secrets_test.go | ||
| start_stop_test.go | ||
| up_test.go | ||
| volumes_test.go | ||
| wait_test.go | ||
| watch_test.go | ||