File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -668,9 +668,10 @@ func truncateAsUTF16(str string, max int) string {
668668// where the ID can apparently be negative.
669669func attachRunLog (rlz * zip.Reader , jobs []shared.Job ) {
670670 for i , job := range jobs {
671- // the normal job run log file is preferred over the legacy one. So, we
672- // try to find the normal log file, and if we couldn't find it then we
673- // look for the legacy one, if any.
671+ // As a highest priority, we try to use the step logs first. We have seen zips that surprisingly contain
672+ // step logs, normal job logs and legacy job logs. In this case, both job logs would be ignored. We have
673+ // never seen a zip containing both job logs and no step logs, however, it may be possible. In that case
674+ // let's prioritise the normal log over the legacy one.
674675 jobLog := matchFileInZIPArchive (rlz , jobLogFilenameRegexp (job ))
675676 if jobLog == nil {
676677 jobLog = matchFileInZIPArchive (rlz , legacyJobLogFilenameRegexp (job ))
You can’t perform that action at this time.
0 commit comments