Replace UNKNOWN with UNKNOWN STEP in job run log

Signed-off-by: Babak K. Shandiz <babakks@github.com>
This commit is contained in:
Babak K. Shandiz 2025-04-11 09:57:13 +01:00
parent 0251a8dd6d
commit f673b409f7
No known key found for this signature in database
GPG key ID: 9472CAEFF56C742E
2 changed files with 13 additions and 13 deletions

View file

@ -711,7 +711,7 @@ func displayRunLog(w io.Writer, jobs []shared.Job, failed bool) error {
continue
}
prefix := fmt.Sprintf("%s\tUNKNOWN\t", job.Name)
prefix := fmt.Sprintf("%s\tUNKNOWN STEP\t", job.Name)
if err := printZIPFile(w, job.Log, prefix); err != nil {
return err
}

View file

@ -2298,27 +2298,27 @@ sad job quux the barf log line 3
`)
var coolJobRunWithNoStepLogsLogOutput = heredoc.Doc(`
cool job with no step logs UNKNOWN log line 1
cool job with no step logs UNKNOWN log line 2
cool job with no step logs UNKNOWN log line 3
cool job with no step logs UNKNOWN STEP log line 1
cool job with no step logs UNKNOWN STEP log line 2
cool job with no step logs UNKNOWN STEP log line 3
`)
var legacyCoolJobRunWithNoStepLogsLogOutput = heredoc.Doc(`
legacy cool job with no step logs UNKNOWN log line 1
legacy cool job with no step logs UNKNOWN log line 2
legacy cool job with no step logs UNKNOWN log line 3
legacy cool job with no step logs UNKNOWN STEP log line 1
legacy cool job with no step logs UNKNOWN STEP log line 2
legacy cool job with no step logs UNKNOWN STEP log line 3
`)
var sadJobRunWithNoStepLogsLogOutput = heredoc.Doc(`
sad job with no step logs UNKNOWN log line 1
sad job with no step logs UNKNOWN log line 2
sad job with no step logs UNKNOWN log line 3
sad job with no step logs UNKNOWN STEP log line 1
sad job with no step logs UNKNOWN STEP log line 2
sad job with no step logs UNKNOWN STEP log line 3
`)
var legacySadJobRunWithNoStepLogsLogOutput = heredoc.Doc(`
legacy sad job with no step logs UNKNOWN log line 1
legacy sad job with no step logs UNKNOWN log line 2
legacy sad job with no step logs UNKNOWN log line 3
legacy sad job with no step logs UNKNOWN STEP log line 1
legacy sad job with no step logs UNKNOWN STEP log line 2
legacy sad job with no step logs UNKNOWN STEP log line 3
`)
var coolJobRunLogOutput = fmt.Sprintf("%s%s", fobTheBarzLogOutput, barfTheFobLogOutput)