Skip to content

Return empty map when builds.txt does not exist#239

Merged
ericmj merged 1 commit intomainfrom
ericmj/fetch-built-refs-handle-404
Apr 24, 2026
Merged

Return empty map when builds.txt does not exist#239
ericmj merged 1 commit intomainfrom
ericmj/fetch-built-refs-handle-404

Conversation

@ericmj
Copy link
Copy Markdown
Member

@ericmj ericmj commented Apr 24, 2026

Bob.Repo.fetch_built_refs/1 raised on S3 404, which caused Bob.Job.OTPChecker to crash for any newly-added OS target (e.g. ubuntu-26.04) before it could queue the first build — a deadlock since builds.txt is only created after the first successful build.

Treat a missing builds.txt as "no refs built yet" and return an empty map, matching the semantics priv/scripts/otp/otp.sh already uses on the write side.

Bob.Repo.fetch_built_refs/1 raised on S3 404, which caused
Bob.Job.OTPChecker to crash for any newly-added OS target
(e.g. ubuntu-26.04) before it could queue the first build —
a deadlock since builds.txt is only created after the first
successful build.

Treat a missing builds.txt as "no refs built yet" and return
an empty map, matching the semantics priv/scripts/otp/otp.sh
already uses on the write side.
@ericmj ericmj merged commit 03ee1ed into main Apr 24, 2026
8 checks passed
@ericmj ericmj deleted the ericmj/fetch-built-refs-handle-404 branch April 24, 2026 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant