Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
jobs/build: don't try to complete ongoing builds
Since 973bcf9 ("jobs/build: rerun `build-arch` if previous build is incomplete"), there is a race possible where the `build` job rerun logic could kick in before the `release` jobs initially triggered for that build has finished. We don't want to queue builds in that case. Gate the rerun logic on whether the multi-arch locks and release lock are taken. It's theoretically possible but highly unlikely that we probe the lock status before the previous `release` job takes it. Ideally, we would have a way to directly take the lock and "transfer" its ownership to the job we trigger. Anyway, if that somehow happens, it would result in the job being run twice, which is safe.
- Loading branch information