-
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.
Fix potential subinclude lockup (#3305)
* test case * Ban it * make it fail * make work again * Attempt fix * comment
- Loading branch information
1 parent
e3239b0
commit 6ae8e2e
Showing
10 changed files
with
44 additions
and
2 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
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,8 @@ | ||
subinclude("//test/build_defs") | ||
|
||
please_repo_e2e_test( | ||
name = "double_local_subinclude_test", | ||
# This isn't 100% deterministic but 20 clean runs should be reasonably sufficient | ||
plz_command = "for i in `seq 1 20`; do plz build -p -v 2 //...; done", | ||
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 @@ | ||
THE_QUESTION = "what is the answer to life, the universe and everything?" |
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,3 @@ | ||
subinclude("//a:defs_1") | ||
|
||
THE_ANSWER = 42 |
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,16 @@ | ||
filegroup( | ||
name = "defs_1", | ||
srcs = ["1.build_defs"], | ||
visibility = ["PUBLIC"], | ||
) | ||
|
||
filegroup( | ||
name = "defs_2", | ||
srcs = ["2.build_defs"], | ||
visibility = ["PUBLIC"], | ||
) | ||
|
||
subinclude(":defs_2") | ||
|
||
assert THE_QUESTION.endswith("?"), "not a question" | ||
assert THE_ANSWER == 42, "wrong answer to life, the universe and everything" |
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,3 @@ | ||
subinclude("//a:defs_2") | ||
|
||
assert THE_ANSWER == 42, "wrong answer to life, the universe and everything" |
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,3 @@ | ||
subinclude("//a:defs_1") | ||
|
||
assert THE_QUESTION.endswith("?"), "not a question" |