From 1bf1153c548fb0662be0835192b57676825c9c63 Mon Sep 17 00:00:00 2001 From: "Babak K. Shandiz" Date: Fri, 11 Apr 2025 10:07:31 +0100 Subject: [PATCH] Explain the `UNKNWON STEP` placeholder Signed-off-by: Babak K. Shandiz --- pkg/cmd/run/view/view.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/cmd/run/view/view.go b/pkg/cmd/run/view/view.go index 1e60f535e..cec1d0376 100644 --- a/pkg/cmd/run/view/view.go +++ b/pkg/cmd/run/view/view.go @@ -711,6 +711,11 @@ func displayRunLog(w io.Writer, jobs []shared.Job, failed bool) error { continue } + // Here, we fall back to the job run log, which means we do not know + // the step name of lines. However, we want to keep the same line + // formatting to avoid breaking any code or script that rely on the + // tab-delimited formatting. So, an unknown-step placeholder is used + // instead of the actual step name. prefix := fmt.Sprintf("%s\tUNKNOWN STEP\t", job.Name) if err := printZIPFile(w, job.Log, prefix); err != nil { return err