fix(publish): make latest.json updates resilient to concurrent platform jobs #57

Merged
Christoph merged 1 commit from nw-win-build into main 2026-09-28 06:28:20 +00:00
Owner

Upload artifacts first, then perform a read-modify-write of latest.json with
retries and verification to avoid one platform job overwriting another's entry.
Add _merge_latest_json that writes the merged payload, waits with jitter,
re-reads to confirm our platform entry remains, and retries up to
LATEST_JSON_ATTEMPTS (configurable; verify delay controlled by
LATEST_JSON_VERIFY_DELAY env var). If retries fail the function raises
ConfigurationError. Logging added to show uploads, merges and concurrent-write
retries.

Upload artifacts first, then perform a read-modify-write of latest.json with retries and verification to avoid one platform job overwriting another's entry. Add _merge_latest_json that writes the merged payload, waits with jitter, re-reads to confirm our platform entry remains, and retries up to LATEST_JSON_ATTEMPTS (configurable; verify delay controlled by LATEST_JSON_VERIFY_DELAY env var). If retries fail the function raises ConfigurationError. Logging added to show uploads, merges and concurrent-write retries.
Upload artifacts first, then perform a read-modify-write of latest.json with
retries and verification to avoid one platform job overwriting another's entry.
Add _merge_latest_json that writes the merged payload, waits with jitter,
re-reads to confirm our platform entry remains, and retries up to
LATEST_JSON_ATTEMPTS (configurable; verify delay controlled by
LATEST_JSON_VERIFY_DELAY env var). If retries fail the function raises
ConfigurationError. Logging added to show uploads, merges and concurrent-write
retries.
Sign in to join this conversation.
No description provided.