Skip to content

queue-runner: do not fail uploads when the build log is missing#1792

Open
Mic92 wants to merge 1 commit into
NixOS:masterfrom
Mic92:uploader-missing-log
Open

queue-runner: do not fail uploads when the build log is missing#1792
Mic92 wants to merge 1 commit into
NixOS:masterfrom
Mic92:uploader-missing-log

Conversation

@Mic92

@Mic92 Mic92 commented Jun 11, 2026

Copy link
Copy Markdown
Member

upload_to_store opened the local build log and treated any error as fatal for the whole message, so paths without a log were never copied to the binary cache and their builds failed. Logs are legitimately absent for steps that did not run on this instance: substituted paths or builds finished before a queue runner restart.

Observed on a 120-build nixos-small evaluation: 53 'Failed to upload ... uploader state I/O' errors in 10 minutes and 65 builds failing with status 2, with the corresponding build-logs directories empty.

Skip the log upload with a warning when the file does not exist. Other I/O errors still fail the upload.

upload_to_store opened the local build log and treated any error as
fatal for the whole message, so paths without a log were never copied
to the binary cache and their builds failed. Logs are legitimately
absent for steps that did not run on this instance: substituted paths
or builds finished before a queue runner restart.

Observed on a 120-build nixos-small evaluation: 53 'Failed to upload
... uploader state I/O' errors in 10 minutes and 65 builds failing
with status 2, with the corresponding build-logs directories empty.

Skip the log upload with a warning when the file does not exist.
Other I/O errors still fail the upload.
@Mic92 Mic92 force-pushed the uploader-missing-log branch from 444788a to 1000849 Compare June 11, 2026 17:18
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.

3 participants