Restart safety: transient credential checks are 1013/503, not a refusal
Docs / docs (push) Successful in 22s
Playwright Tests / test-playwright (1, 2) (push) Failing after 4m29s
Playwright Tests / test-playwright (2, 2) (push) Successful in 2m21s
pre-commit / pre-commit (push) Failing after 2m53s
Test Backend / test-backend (3.12) (push) Successful in 4m31s
Test Backend / test-backend (3.14) (push) Successful in 4m19s
Compose Smoke Test / test-compose (push) Successful in 36s
Playwright Tests / merge-reports (push) Successful in 1m35s
Docs / docs (push) Successful in 22s
Playwright Tests / test-playwright (1, 2) (push) Failing after 4m29s
Playwright Tests / test-playwright (2, 2) (push) Successful in 2m21s
pre-commit / pre-commit (push) Failing after 2m53s
Test Backend / test-backend (3.12) (push) Successful in 4m31s
Test Backend / test-backend (3.14) (push) Successful in 4m19s
Compose Smoke Test / test-compose (push) Successful in 36s
Playwright Tests / merge-reports (push) Successful in 1m35s
- A device credential that cannot be checked now (device store not running, nonces unreadable) raises DeviceUnavailable: 503 over HTTP, and the /flows/ws handshake and the tunnel stream accept and close with 1013. 1008 (a 403 before accepting) stays for a revoked or invalid one - Device files are written through a temporary file, so a read mid-save no longer looks like a deleted device - The first report turns Touch friendly on only for a device paired since pairings are noted (DeviceState.paired_at), so devices paired before keep the switch they were given - NodeDef reads `device`/`device_policy` from older clients as the worker label, for a release - Tests: transient vs revoked socket, the touch default, the old worker keys, and a restart with a device node and a node_health rule sending no push Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0138N7k5PT4dcR1iEqXaaQ9k
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
ad76200d3d
commit
1e920c5bad
@@ -193,3 +193,14 @@ def test_opening_the_store_renames_a_nodes_device_to_worker(store: FlowStore):
|
||||
"prefer",
|
||||
)
|
||||
assert published.version == 2
|
||||
|
||||
|
||||
def test_a_client_from_before_the_rename_still_labels_its_workers():
|
||||
"""An older `fluksio sync` or SDK sends `device`, read as `worker` for a release."""
|
||||
node = NodeDef.model_validate(
|
||||
{"id": "fit", "device": "gpu", "device_policy": "prefer"}
|
||||
)
|
||||
assert (node.worker, node.worker_policy) == ("gpu", "prefer")
|
||||
# Beside the new key, the new key wins.
|
||||
both = NodeDef.model_validate({"id": "fit", "device": "cpu", "worker": "gpu"})
|
||||
assert both.worker == "gpu"
|
||||
|
||||
Reference in New Issue
Block a user