Skip to content

logs: report eval failures and fix stale logs on restart - #62

Merged
Mic92 merged 1 commit into
mainfrom
drop-buildbot-migration-shims
Jul 4, 2026
Merged

logs: report eval failures and fix stale logs on restart#62
Mic92 merged 1 commit into
mainfrom
drop-buildbot-migration-shims

Conversation

@Mic92

@Mic92 Mic92 commented Jul 4, 2026

Copy link
Copy Markdown
Owner

Attach the evaluator's error tail to the nix-eval check run so a failed evaluation shows why without a click into the log. This threads through a new EvalReport dataclass, which also tidies the eval_finished signature.

Fix a restart leaving the previous run's log in place: the row went pending but still served stale output until the rebuild reopened the log. Drop the log at reset time.

Stop storing the log path. It is fully determined by (build_id, attr/effect name), so persisting it in logs.path and build_effects.log_path only let the row and the file drift. Compute the path in one place, keep only size/truncated metadata inline on the owning row (folding the logs table into build_attributes), treat file existence as "log exists", and reset by removing the file.

Attach the evaluator's error tail to the nix-eval check run so a failed
evaluation shows why without a click into the log. This threads through
a new EvalReport dataclass, which also tidies the eval_finished
signature.

Fix a restart leaving the previous run's log in place: the row went
pending but still served stale output until the rebuild reopened the
log. Drop the log at reset time.

Stop storing the log path. It is fully determined by (build_id,
attr/effect name), so persisting it in logs.path and
build_effects.log_path only let the row and the file drift. Compute the
path in one place, keep only size/truncated metadata inline on the
owning row (folding the logs table into build_attributes), treat file
existence as "log exists", and reset by removing the file.
@Mic92
Mic92 force-pushed the drop-buildbot-migration-shims branch from 35ce1b4 to 704dad8 Compare July 4, 2026 11:40
@Mic92
Mic92 merged commit 8071c9f into main Jul 4, 2026
3 checks passed
@Mic92
Mic92 deleted the drop-buildbot-migration-shims branch July 4, 2026 11:59
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