diff --git a/pkg/cmd/run/view/fixtures/run_log.zip b/pkg/cmd/run/view/fixtures/run_log.zip index 60701d925..425ba09dd 100644 Binary files a/pkg/cmd/run/view/fixtures/run_log.zip and b/pkg/cmd/run/view/fixtures/run_log.zip differ diff --git a/pkg/cmd/run/view/view_test.go b/pkg/cmd/run/view/view_test.go index 2205a9031..2d150934f 100644 --- a/pkg/cmd/run/view/view_test.go +++ b/pkg/cmd/run/view/view_test.go @@ -2039,8 +2039,9 @@ func TestViewRun(t *testing.T) { // ├── 2_cool job with no step logs.txt // ├── 3_sad job with no step logs.txt // ├── -9999999999_legacy cool job with no step logs.txt -// └── -9999999999_legacy sad job with no step logs.txt - +// ├── -9999999999_legacy sad job with no step logs.txt +// ├── 4_cool job with both legacy and new logs.txt +// └── -9999999999_cool job with both legacy and new logs.txt func Test_attachRunLog(t *testing.T) { tests := []struct { name string @@ -2149,6 +2150,15 @@ func Test_attachRunLog(t *testing.T) { wantJobFilename: "-9999999999_legacy cool job with no step logs.txt", wantStepMatch: false, }, + { + name: "matching job name with both normal and legacy filename", + job: shared.Job{ + Name: "cool job with both legacy and new logs", + }, + wantJobMatch: true, + wantJobFilename: "4_cool job with both legacy and new logs.txt", + wantStepMatch: false, + }, { name: "one job name is a suffix of another", job: shared.Job{