-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In this PR we introduce a flag --keep_going which will allow us to continue as far as we can with tasks. This can be useful if we want to collect all build failures for reporting at once rather than just the first one encountered. --------- Co-authored-by: rgodden <[email protected]>
- Loading branch information
1 parent
b744937
commit 3a20640
Showing
11 changed files
with
122 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
17.3.1 | ||
17.4.0-beta.1 |
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
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
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
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
subinclude("//test/build_defs") | ||
|
||
please_repo_e2e_test( | ||
name = "plz_build_all", | ||
expected_failure = True, | ||
expected_output = { | ||
"plz-out/gen/package/pass": "", | ||
"plz-out/gen/package/dep_pass": "", | ||
"plz-out/gen/package/fail_test_pass_dep": "", | ||
}, | ||
plz_command = "plz build --keep_going //package:all", | ||
repo = "test_repo", | ||
) | ||
|
||
please_repo_e2e_test( | ||
name = "plz_test_all", | ||
expect_output_contains = { | ||
"plz-out/log/test_results.xml": "fail_test_pass_dep", | ||
}, | ||
expect_output_doesnt_contain = { | ||
"plz-out/log/test_results.xml": "fail_test_fail_dep", | ||
}, | ||
expected_failure = True, | ||
plz_command = "plz test --keep_going //package:all", | ||
repo = "test_repo", | ||
) | ||
|
Empty file.
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 |
---|---|---|
@@ -0,0 +1,56 @@ | ||
build_rule( | ||
name = "fail", | ||
cmd = "exit 1", | ||
outs = ["fail"], | ||
) | ||
|
||
build_rule( | ||
name = "fail2", | ||
cmd = "exit 1", | ||
outs = ["fail2"], | ||
) | ||
|
||
build_rule( | ||
name = "pass", | ||
cmd = "touch $OUTS", | ||
outs = ["pass"], | ||
) | ||
|
||
build_rule( | ||
name = "dep_pass", | ||
deps = [":pass"], | ||
cmd = "touch $OUTS", | ||
outs = ["dep_pass"], | ||
) | ||
|
||
build_rule( | ||
name = "dep_fail", | ||
deps = [":fail"], | ||
cmd = "touch $OUTS", | ||
outs = ["dep_fail"], | ||
) | ||
|
||
build_rule( | ||
name = "dep_dep_fail", | ||
deps = [":dep_fail"], | ||
cmd = "touch $OUTS", | ||
outs = ["dep_dep_fail"], | ||
) | ||
|
||
build_rule( | ||
test = True, | ||
name = "fail_test_pass_dep", | ||
cmd = "touch $OUTS", | ||
test_cmd = "exit 1", | ||
outs = ["fail_test_pass_dep"], | ||
deps = [":pass"], | ||
) | ||
|
||
build_rule( | ||
test = True, | ||
name = "pass_test_fail_dep", | ||
cmd = "touch $OUTS", | ||
test_cmd = "exit 0", | ||
outs = ["pass_test_fail_deps"], | ||
deps = [":fail"], | ||
) |