Skip to content

Commit 12bed04

Browse files
authored
Merge pull request #55 from buildbarn/trey/dev
finish processing checks
2 parents 0125f41 + e36bcac commit 12bed04

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

pkg/summary/summarizer.go

+13
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,19 @@ func (s Summarizer) summarize(it *events.BuildEventIterator) (*Summary, error) {
8484
func (s Summarizer) FinishProcessing() (*Summary, error) {
8585
// If problems are ignored for the exit code, return immediately.
8686
slog.Debug("processing", "err", "none")
87+
88+
if s.summary.EndedAt == nil {
89+
now := time.Now()
90+
s.summary.EndedAt = &now
91+
}
92+
93+
if s.summary.ExitCode == nil {
94+
s.summary.ExitCode = &ExitCode{
95+
Code: 1000,
96+
Name: "UNKNOWN",
97+
}
98+
}
99+
87100
if !shouldIgnoreProblems(s.summary.ExitCode) {
88101
slog.Debug("problems found", "err", "none")
89102
// Add any detected test problems.

0 commit comments

Comments
 (0)