Skip to content

Commit

Permalink
Merge pull request #55 from buildbarn/trey/dev
Browse files Browse the repository at this point in the history
finish processing checks
  • Loading branch information
mortenmj authored Nov 13, 2024
2 parents 0125f41 + e36bcac commit 12bed04
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pkg/summary/summarizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,19 @@ func (s Summarizer) summarize(it *events.BuildEventIterator) (*Summary, error) {
func (s Summarizer) FinishProcessing() (*Summary, error) {
// If problems are ignored for the exit code, return immediately.
slog.Debug("processing", "err", "none")

if s.summary.EndedAt == nil {
now := time.Now()
s.summary.EndedAt = &now
}

if s.summary.ExitCode == nil {
s.summary.ExitCode = &ExitCode{
Code: 1000,
Name: "UNKNOWN",
}
}

if !shouldIgnoreProblems(s.summary.ExitCode) {
slog.Debug("problems found", "err", "none")
// Add any detected test problems.
Expand Down

0 comments on commit 12bed04

Please sign in to comment.