Skip to content

Commit

Permalink
deterministic
Browse files Browse the repository at this point in the history
  • Loading branch information
mehulkar committed May 16, 2023
1 parent 7e6efa3 commit 852ee34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions cli/internal/runsummary/format_execution_summary.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package runsummary
import (
"fmt"
"os"
"sort"
"strings"
"time"

Expand Down Expand Up @@ -51,6 +52,7 @@ func (rsm *Meta) printExecutionSummary() {
for _, t := range failed {
formatted = append(formatted, util.Sprintf("${BOLD_RED}%s${RESET}", t.TaskID))
}
sort.Strings(formatted) // To make the order deterministic
l := summaryLine{header: "Failed", trailer: strings.Join(formatted, ", ")}
lineData = append(lineData, l)
}
Expand Down
2 changes: 1 addition & 1 deletion turborepo-tests/integration/tests/continue.t
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ Run with --continue
Tasks: 1 successful, 3 total
Cached: 0 cached, 3 total
Time:\s*[\.0-9]+m?s (re)
Failed: some-lib#build, other-app#build
Failed: other-app#build, some-lib#build

ERROR run failed: command exited (1)
[1]

0 comments on commit 852ee34

Please sign in to comment.