ci: stop dev-release/check temp-dir cleanup from racing concurrent jobs #8

Merged
Breadway merged 1 commit from fix/eco38-tmp-race-glob into main 2026-09-29 07:54:01 +08:00
Owner

Same fix as breadbar. Root cause confirmed from the forgejo-runner journal on Hestia: the clone bread-ecosystem (main) step's rm -rf /tmp/bread-ecosystem-ci-* glob deletes a concurrently running job's own bread-ecosystem clone on this shared self-hosted host executor. Drops the glob, gives each workflow kind its own mktemp prefix.

Part of ECO-38.

Same fix as breadbar. Root cause confirmed from the forgejo-runner journal on Hestia: the clone bread-ecosystem (main) step's rm -rf /tmp/bread-ecosystem-ci-* glob deletes a concurrently running job's own bread-ecosystem clone on this shared self-hosted host executor. Drops the glob, gives each workflow kind its own mktemp prefix. Part of ECO-38.
ci: stop dev-release/check temp-dir cleanup from racing concurrent jobs
All checks were successful
check / check (push) Successful in 3m9s
c80d9123d4
The clone bread-ecosystem (main) step used a preemptive
rm -rf /tmp/bread-ecosystem-ci-* before mktemp. /tmp is a single shared
namespace on the self-hosted host executor, and with runner capacity 2
plus several repos dev-release/check builds firing close together, one
job's rm -rf glob would delete another concurrently running job's
bread-ecosystem clone mid-use. That surfaced as "No such file or
directory" at regenerate dev index.json, or a git error partway through
clone bread-ecosystem itself, depending on timing. Root cause confirmed
from the forgejo-runner journal on Hestia.

Drop the preemptive rm -rf glob and give each workflow kind its own
mktemp prefix (bread-ecosystem-dev-release-, bread-ecosystem-check-),
matching the pattern already in use in breadhelp/breadarr check.yml,
which never hit this race. mktemp's own uniqueness is enough; a
crashed job leaves at most one small leftover directory instead of
nuking a sibling job's live one.

Part of ECO-38.
Breadway deleted branch fix/eco38-tmp-race-glob 2026-09-29 07:54:01 +08:00
Sign in to join this conversation.
No reviewers
No labels
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/breadsearch!8
No description provided.