forked from vercel/turborepo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(turborepo): properly tag errors when running in GH Actions (verce…
…l#5435) ### Description - log grouping now streams log lines to a single buffer, each line is tagged on whether it came from stdout or stderr - log lines are replayed in approximately the correct order (there is always a natural race condition since they are separate streams) - command failures use github prefixing when running on github actions - failures _should_ appear inside the correct grouping in the output ### Testing Instructions - added a new integration test for a failing run in github actions --------- Co-authored-by: Greg Soltis <Greg Soltis>
- Loading branch information
Greg Soltis
authored
Jul 7, 2023
1 parent
6bd45fe
commit 9d5a094
Showing
5 changed files
with
222 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
turborepo-tests/integration/tests/_fixtures/ordered/packages/util/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{ | ||
"name": "util", | ||
"scripts": { | ||
"build": "sleep 0.5 && echo 'building' && sleep 1 && echo 'completed'" | ||
"build": "sleep 0.5 && echo 'building' && sleep 1 && echo 'completed'", | ||
"fail": "echo 'failing'; exit 1" | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
turborepo-tests/integration/tests/_fixtures/ordered/turbo.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"$schema": "https://turbo.build/schema.json", | ||
"pipeline": { | ||
"build": { | ||
} | ||
"build": {}, | ||
"fail": {} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters