Handle Compose null endpoints in exact network-priority proof
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
# Actual Compose 2.20.3 config output
|
||||
|
||||
`base.json` is an isolated synthetic two-service configuration, with no secrets,
|
||||
mounts or published ports. `config.json` contains the full parsed JSON output of
|
||||
the official Darwin ARM64 Compose v2.20.3 binary, SHA256
|
||||
`51cd66bf94923ec8668f1a78c8740abb6cfbe1189da5720a8051a97be527372b`.
|
||||
|
||||
Reproduce without creating containers or contacting Docker Engine:
|
||||
|
||||
```sh
|
||||
COMPOSE=/absolute/path/to/docker-compose-2.20.3
|
||||
FIXTURE=infra/deploy-runner/fixtures/device-core-network-priority-compose220/base.json
|
||||
"$COMPOSE" -p nodedc-ci-null-endpoint-repro -f "$FIXTURE" config --format json
|
||||
"$COMPOSE" -p nodedc-ci-null-endpoint-repro -f "$FIXTURE" \
|
||||
-f infra/device-core-deploy/docker-compose.network-priority.yml config --format json
|
||||
```
|
||||
|
||||
The first output contains `null` for bare attachments. The second contains `{}`
|
||||
for explicit zero-priority endpoints and `{"priority":100}` for private networks.
|
||||
Do not replace nulls with hand-written fixture objects: that omission caused
|
||||
runner014 to reject the initial NAS plan. The fixture regression reproduces
|
||||
`Device Core network priority endpoint is invalid` on014 and passes on015.
|
||||
It compares the full config, preserves raw config hashes and exercises negative
|
||||
endpoint-type/property changes separately. This is synthetic source evidence;
|
||||
it does not claim access to the NAS effective config or its exact Compose version.
|
||||
@@ -0,0 +1 @@
|
||||
{"services": {"device-control-core": {"image": "sha256:968df39aedcea65eeb078fb336ed7191baf48f972b4479711397108be0966920", "pull_policy": "never", "command": ["node", "-e", "setInterval(()=>{},1000)"], "read_only": true, "cap_drop": ["ALL"], "security_opt": ["no-new-privileges:true"], "stop_grace_period": "1s", "mem_limit": "96m", "pids_limit": 32, "networks": ["device-plane-private", "device-plane-egress"]}, "device-manager": {"image": "sha256:968df39aedcea65eeb078fb336ed7191baf48f972b4479711397108be0966920", "pull_policy": "never", "command": ["node", "-e", "setInterval(()=>{},1000)"], "read_only": true, "cap_drop": ["ALL"], "security_opt": ["no-new-privileges:true"], "stop_grace_period": "1s", "mem_limit": "96m", "pids_limit": 32, "networks": ["device-plane-private", "platform-edge"]}}, "networks": {"device-plane-private": {"internal": true}, "device-plane-egress": {}, "platform-edge": {}}}
|
||||
@@ -0,0 +1,148 @@
|
||||
{
|
||||
"base": {
|
||||
"name": "nodedc-ci-null-endpoint-repro",
|
||||
"networks": {
|
||||
"device-plane-egress": {
|
||||
"name": "nodedc-ci-null-endpoint-repro_device-plane-egress",
|
||||
"ipam": {},
|
||||
"external": false
|
||||
},
|
||||
"device-plane-private": {
|
||||
"name": "nodedc-ci-null-endpoint-repro_device-plane-private",
|
||||
"ipam": {},
|
||||
"external": false,
|
||||
"internal": true
|
||||
},
|
||||
"platform-edge": {
|
||||
"name": "nodedc-ci-null-endpoint-repro_platform-edge",
|
||||
"ipam": {},
|
||||
"external": false
|
||||
}
|
||||
},
|
||||
"services": {
|
||||
"device-control-core": {
|
||||
"cap_drop": [
|
||||
"ALL"
|
||||
],
|
||||
"command": [
|
||||
"node",
|
||||
"-e",
|
||||
"setInterval(()=>{},1000)"
|
||||
],
|
||||
"entrypoint": null,
|
||||
"image": "sha256:968df39aedcea65eeb078fb336ed7191baf48f972b4479711397108be0966920",
|
||||
"mem_limit": "100663296",
|
||||
"networks": {
|
||||
"device-plane-egress": null,
|
||||
"device-plane-private": null
|
||||
},
|
||||
"pids_limit": 32,
|
||||
"pull_policy": "never",
|
||||
"read_only": true,
|
||||
"security_opt": [
|
||||
"no-new-privileges:true"
|
||||
],
|
||||
"stop_grace_period": "1s"
|
||||
},
|
||||
"device-manager": {
|
||||
"cap_drop": [
|
||||
"ALL"
|
||||
],
|
||||
"command": [
|
||||
"node",
|
||||
"-e",
|
||||
"setInterval(()=>{},1000)"
|
||||
],
|
||||
"entrypoint": null,
|
||||
"image": "sha256:968df39aedcea65eeb078fb336ed7191baf48f972b4479711397108be0966920",
|
||||
"mem_limit": "100663296",
|
||||
"networks": {
|
||||
"device-plane-private": null,
|
||||
"platform-edge": null
|
||||
},
|
||||
"pids_limit": 32,
|
||||
"pull_policy": "never",
|
||||
"read_only": true,
|
||||
"security_opt": [
|
||||
"no-new-privileges:true"
|
||||
],
|
||||
"stop_grace_period": "1s"
|
||||
}
|
||||
}
|
||||
},
|
||||
"candidate": {
|
||||
"name": "nodedc-ci-null-endpoint-repro",
|
||||
"networks": {
|
||||
"device-plane-egress": {
|
||||
"name": "nodedc-ci-null-endpoint-repro_device-plane-egress",
|
||||
"ipam": {},
|
||||
"external": false
|
||||
},
|
||||
"device-plane-private": {
|
||||
"name": "nodedc-ci-null-endpoint-repro_device-plane-private",
|
||||
"ipam": {},
|
||||
"external": false,
|
||||
"internal": true
|
||||
},
|
||||
"platform-edge": {
|
||||
"name": "nodedc-ci-null-endpoint-repro_platform-edge",
|
||||
"ipam": {},
|
||||
"external": false
|
||||
}
|
||||
},
|
||||
"services": {
|
||||
"device-control-core": {
|
||||
"cap_drop": [
|
||||
"ALL"
|
||||
],
|
||||
"command": [
|
||||
"node",
|
||||
"-e",
|
||||
"setInterval(()=>{},1000)"
|
||||
],
|
||||
"entrypoint": null,
|
||||
"image": "sha256:968df39aedcea65eeb078fb336ed7191baf48f972b4479711397108be0966920",
|
||||
"mem_limit": "100663296",
|
||||
"networks": {
|
||||
"device-plane-egress": {},
|
||||
"device-plane-private": {
|
||||
"priority": 100
|
||||
}
|
||||
},
|
||||
"pids_limit": 32,
|
||||
"pull_policy": "never",
|
||||
"read_only": true,
|
||||
"security_opt": [
|
||||
"no-new-privileges:true"
|
||||
],
|
||||
"stop_grace_period": "1s"
|
||||
},
|
||||
"device-manager": {
|
||||
"cap_drop": [
|
||||
"ALL"
|
||||
],
|
||||
"command": [
|
||||
"node",
|
||||
"-e",
|
||||
"setInterval(()=>{},1000)"
|
||||
],
|
||||
"entrypoint": null,
|
||||
"image": "sha256:968df39aedcea65eeb078fb336ed7191baf48f972b4479711397108be0966920",
|
||||
"mem_limit": "100663296",
|
||||
"networks": {
|
||||
"device-plane-private": {
|
||||
"priority": 100
|
||||
},
|
||||
"platform-edge": {}
|
||||
},
|
||||
"pids_limit": 32,
|
||||
"pull_policy": "never",
|
||||
"read_only": true,
|
||||
"security_opt": [
|
||||
"no-new-privileges:true"
|
||||
],
|
||||
"stop_grace_period": "1s"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user