Handle Compose null endpoints in exact network-priority proof
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
# Stable primary network for recurring Device Core releases
|
||||
|
||||
Status: source-qualified on 2026-09-30; root promotion, NAS metadata acceptance
|
||||
and two subsequent automatic releases remain pending. Production remains r12.
|
||||
Status: runner014 was installed on 2026-09-30, but plan001 rejected an empty
|
||||
Compose endpoint representation before mutation. The corrected015/002 source
|
||||
is qualified; its root promotion, metadata acceptance and two subsequent
|
||||
automatic releases remain pending. Production remains r12.
|
||||
DCPLATFORM-21 owns this exact registry addition; DCPLATFORM-37 tracks acceptance.
|
||||
|
||||
## Reproduced defect and evidence limits
|
||||
@@ -48,7 +50,7 @@ reason to replay r9 or waive configuration acceptance.
|
||||
## Exact registered transition
|
||||
|
||||
Component: `device-core-network-priority`, type `app-overlay`, fixed identity
|
||||
`device-core-network-priority-v1-20260930-001`. Both live and Compose roots are
|
||||
`device-core-network-priority-v1-20260930-002`. Both live and Compose roots are
|
||||
`/volume1/docker/nodedc-device-plane`. The package permits exactly:
|
||||
|
||||
1. `docker-compose.device-release-network-priority.yml`
|
||||
@@ -80,6 +82,26 @@ priority values change. Environment values and complete config never enter
|
||||
logs or receipts. Only config hashes, version, file hashes and runtime evidence
|
||||
are saved in `device-network-priority-before.json` with mode0600.
|
||||
|
||||
Runner014/plan001 uncovered a missing parser case: the real Compose2.20.3
|
||||
`config --format json` output represents bare network attachments as `null`,
|
||||
and explicit zero-priority attachments as `{}`. Earlier fixture-based config
|
||||
proof tests used `{}` in both places; actual container tests exercised network
|
||||
selection/fingerprints but did not call the new effective-config validator.
|
||||
This was a test coverage gap, not a production topology change.
|
||||
|
||||
The corrected proof accepts null as an empty object only at the four known
|
||||
service/network endpoints in its private comparison copies. Raw before/after
|
||||
config hashes remain exact. Scalars, arrays, boolean/float/null priority values,
|
||||
missing primary priority, added networks and changed endpoint properties are
|
||||
still rejected. Other services and configuration sections are not normalized.
|
||||
The complete generated config fixture and reproduction commands are committed
|
||||
under `infra/deploy-runner/fixtures/device-core-network-priority-compose220`.
|
||||
The fixture test fails on014 with the same message and passes on015.
|
||||
|
||||
001 remained staged with no applied/failed receipt or backup. It is superseded
|
||||
and must not be applied;002 has a new immutable identity and archive digest.
|
||||
015 rejects001 rather than silently giving that old identity new semantics.
|
||||
|
||||
Apply verifies the copied files, effective configuration, original Compose/source,
|
||||
health and exactly unchanged container identities/images/configuration for all
|
||||
five services and other Compose projects. It emits `deploy-ok` only after those
|
||||
@@ -115,7 +137,7 @@ python3 -m unittest discover -s infra/device-core-deploy -p 'test_*.py'
|
||||
```
|
||||
Also run the Platform/Device Plane registry suites and the Device Core
|
||||
repository's artifact/real HTTP-health tests against this candidate runner.
|
||||
Seventeen focused network-priority tests cover exact payload, deterministic
|
||||
Twenty focused network-priority tests cover exact payload, deterministic
|
||||
packaging, configuration-diff boundaries, initial predecessor, secret redaction,
|
||||
receipt/archive activation, actual release command construction, no-runtime
|
||||
metadata application and rollback failure. Python3.8 syntax is required.
|
||||
|
||||
Reference in New Issue
Block a user