gen-index: serialize concurrent runs, unique tmp files #5

Merged
Breadway merged 1 commit from fix/gen-index-concurrent-publish into main 2026-09-03 13:15:23 +08:00
Owner

Concurrent dev-release runs (breadbar + breadbox this round) both write ${OUT}.tmp in the shared DL dir; the loser's mv fails No such file or directory and set -e reddens the publish job even though the index was written fine. This is why breadbar run 126 (the shell-theme publish) looked failed.

flock a per-track lock + mktemp -u the tmp paths. Verified 2 concurrent runs both exit 0 with one consistent index.json.

Concurrent dev-release runs (breadbar + breadbox this round) both write `${OUT}.tmp` in the shared DL dir; the loser's `mv` fails `No such file or directory` and `set -e` reddens the publish job even though the index was written fine. This is why breadbar run 126 (the shell-theme publish) looked failed. flock a per-track lock + `mktemp -u` the tmp paths. Verified 2 concurrent runs both exit 0 with one consistent index.json.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Breadway/bread-ecosystem!5
No description provided.