Skip to content

Commit

Permalink
Merge pull request #307 from gotestyourself/ci-matrix-improve-job-name
Browse files Browse the repository at this point in the history
ci-matrix: improve description
  • Loading branch information
dnephin authored Apr 4, 2023
2 parents b356c42 + c8424ce commit aac34a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/tool/matrix/matrix.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ func writeMatrix(out io.Writer, buckets []bucket) error {
if len(bucket.Packages) > 1 {
extra = fmt.Sprintf(" and %d others", len(bucket.Packages)-1)
}
p.Description = fmt.Sprintf("partition %d - package %v%v",
p.Description = fmt.Sprintf("%d - %v%v",
p.ID, testjson.RelativePackagePath(bucket.Packages[0]), extra)
}

Expand Down
6 changes: 3 additions & 3 deletions cmd/tool/matrix/matrix_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,19 +226,19 @@ func TestRun(t *testing.T) {
var expectedMatrix = `{
"include": [
{
"description": "partition 0 - package pkg2",
"description": "0 - pkg2",
"estimatedRuntime": "6s",
"id": 0,
"packages": "pkg2"
},
{
"description": "partition 1 - package pkg1",
"description": "1 - pkg1",
"estimatedRuntime": "4s",
"id": 1,
"packages": "pkg1"
},
{
"description": "partition 2 - package pkg0 and 1 others",
"description": "2 - pkg0 and 1 others",
"estimatedRuntime": "2s",
"id": 2,
"packages": "pkg0 other"
Expand Down

0 comments on commit aac34a0

Please sign in to comment.