mirror of
https://github.com/docker/compose.git
synced 2026-11-18 14:13:49 +00:00
|
Some checks are pending
ci / validate (lint) (push) Waiting to run
ci / validate (validate-docs) (push) Waiting to run
ci / validate (validate-go-mod) (push) Waiting to run
ci / validate (validate-headers) (push) Waiting to run
ci / binary (push) Waiting to run
ci / binary-finalize (push) Blocked by required conditions
ci / bin-image-test (push) Waiting to run
ci / test (push) Waiting to run
ci / e2e (plugin, oldstable) (push) Waiting to run
ci / e2e (standalone, oldstable) (push) Waiting to run
ci / e2e (plugin, stable) (push) Waiting to run
ci / e2e (standalone, stable) (push) Waiting to run
ci / coverage (push) Blocked by required conditions
ci / release (push) Blocked by required conditions
merge / bin-image-prepare (push) Waiting to run
merge / bin-image (push) Blocked by required conditions
merge / module-image (push) Waiting to run
Scorecards supply-chain security / Scorecards analysis (push) Waiting to run
zizmor / zizmor (push) Waiting to run
collectObservedState indexed networks/volumes by compose label into a single-valued map, so two live resources sharing a label (e.g. a leftover after a rename) collided and the "winner" depended on the daemon's list order — a nondeterministic `up` (spurious create/recreate events, possible churn) on subsequent runs. Make collection lossless and move the selection into the reconciler: - ObservedState.Networks/Volumes become map[string][]Observed*: collection records every label-sharing resource and makes no premature choice. - selectNetwork/selectVolume deterministically pick the resource matching the desired name (else the lexicographically smallest), returning the others as orphans. - reconcile resolves the observed state once (resolveObserved) into single-valued resolvedNetworks/resolvedVolumes used everywhere, and warns about orphans instead of acting on them — they are left untouched because removing them could drop data or break unrelated workloads. Adds selection unit tests, a collector aggregation test and a reconcile conflict test (deterministic no-op + orphan warning across list orders). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com> |
||
|---|---|---|
| .. | ||
| api | ||
| bridge | ||
| compose | ||
| dryrun | ||
| e2e | ||
| mocks | ||
| remote | ||
| utils | ||
| watch | ||