-
Notifications
You must be signed in to change notification settings - Fork 15.2k
[utils] remove flakiness in verbosity.py test case #167801
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The rate at which lit's progress bar progresses is not deterministic. Don't try to match the contents of the progress bar, only the fact that it's there.
|
@llvm/pr-subscribers-testing-tools Author: Henrik G. Olsson (hnrklssn) ChangesThe rate at which lit's progress bar progresses is not deterministic. Don't try to match the contents of the progress bar, only the fact that it's there. Full diff: https://github.com/llvm/llvm-project/pull/167801.diff 1 Files Affected:
diff --git a/llvm/utils/lit/tests/verbosity.py b/llvm/utils/lit/tests/verbosity.py
index 9b1690695d392..62baf618e2aca 100644
--- a/llvm/utils/lit/tests/verbosity.py
+++ b/llvm/utils/lit/tests/verbosity.py
@@ -47,9 +47,9 @@
# SUCCINCT: -- Testing: 5 tests, 1 workers --
# SUCCINCT-NEXT: Testing:
# SUCCINCT-NEXT: FAIL: verbosity :: fail.txt (1 of 5)
-# SUCCINCT-NEXT: Testing: 0.. 10..
+# SUCCINCT-NEXT: Testing:
# SUCCINCT-NEXT: XPASS: verbosity :: xpass.txt (5 of 5)
-# SUCCINCT-NEXT: Testing: 0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
+# SUCCINCT-NEXT: Testing:
# SUCCINCT-NEXT: ********************
# SUCCINCT-NEXT: Failed Tests (1):
# SUCCINCT-NEXT: verbosity :: fail.txt
@@ -561,15 +561,15 @@
# PROGRESS: -- Testing: 5 tests, 1 workers --
# PROGRESS-NEXT: Testing:
# PROGRESS-NEXT: FAIL: verbosity :: fail.txt (1 of 5)
-# PROGRESS-NEXT: Testing: 0..
+# PROGRESS-NEXT: Testing:
# PROGRESS-NEXT: PASS: verbosity :: pass.txt (2 of 5)
-# PROGRESS-NEXT: Testing: 0.. 10..
+# PROGRESS-NEXT: Testing:
# PROGRESS-NEXT: {{UN}}SUPPORTED: verbosity :: unsupported.txt (3 of 5)
-# PROGRESS-NEXT: Testing: 0.. 10.. 20..
+# PROGRESS-NEXT: Testing:
# PROGRESS-NEXT: {{X}}FAIL: verbosity :: xfail.txt (4 of 5)
-# PROGRESS-NEXT: Testing: 0.. 10.. 20.. 30..
+# PROGRESS-NEXT: Testing:
# PROGRESS-NEXT: XPASS: verbosity :: xpass.txt (5 of 5)
-# PROGRESS-NEXT: Testing: 0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
+# PROGRESS-NEXT: Testing:
# PROGRESS-NEXT: ********************
# PROGRESS-NEXT: Failed Tests (1):
# PROGRESS-NEXT: verbosity :: fail.txt
@@ -643,7 +643,7 @@
# AS-NEXT: --
# AS-EMPTY:
# AS-NEXT: ********************
-# AS-NEXT: Testing: 0.. 10..
+# AS-NEXT: Testing:
# AS-NEXT: XPASS: verbosity :: xpass.txt (5 of 5)
# AS-NEXT: ******************** TEST 'verbosity :: xpass.txt' FAILED ********************
# AS-NEXT: Exit Code: 0
@@ -660,7 +660,7 @@
# AS-NEXT: --
# AS-EMPTY:
# AS-NEXT: ********************
-# AS-NEXT: Testing: 0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
+# AS-NEXT: Testing:
# AS-NEXT: ********************
# AS-NEXT: Failed Tests (1):
# AS-NEXT: verbosity :: fail.txt
@@ -709,7 +709,7 @@
# SA-NEXT: --
# SA-EMPTY:
# SA-NEXT: ********************
-# SA-NEXT: Testing: 0.. 10..
+# SA-NEXT: Testing:
# SA-NEXT: PASS: verbosity :: pass.txt (2 of 5)
# SA-NEXT: Exit Code: 0
# SA-EMPTY:
@@ -725,11 +725,11 @@
# SA-NEXT: --
# SA-EMPTY:
# SA-NEXT: ********************
-# SA-NEXT: Testing: 0.. 10.. 20..
+# SA-NEXT: Testing:
# SA-NEXT: {{UN}}SUPPORTED: verbosity :: unsupported.txt (3 of 5)
# SA-NEXT: Test requires the following unavailable features: asdf
# SA-NEXT: ********************
-# SA-NEXT: Testing: 0.. 10.. 20.. 30..
+# SA-NEXT: Testing:
# SA-NEXT: {{X}}FAIL: verbosity :: xfail.txt (4 of 5)
# SA-NEXT: Exit Code: 1
# SA-EMPTY:
@@ -746,7 +746,7 @@
# SA-NEXT: --
# SA-EMPTY:
# SA-NEXT: ********************
-# SA-NEXT: Testing: 0.. 10.. 20.. 30.. 40..
+# SA-NEXT: Testing:
# SA-NEXT: XPASS: verbosity :: xpass.txt (5 of 5)
# SA-NEXT: ******************** TEST 'verbosity :: xpass.txt' FAILED ********************
# SA-NEXT: Exit Code: 0
@@ -763,7 +763,7 @@
# SA-NEXT: --
# SA-EMPTY:
# SA-NEXT: ********************
-# SA-NEXT: Testing: 0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
+# SA-NEXT: Testing:
# SA-NEXT: ********************
# SA-NEXT: Failed Tests (1):
# SA-NEXT: verbosity :: fail.txt
@@ -907,13 +907,13 @@
# SQAV-NEXT: --
# SQAV-EMPTY:
# SQAV-NEXT: ********************
-# SQAV-NEXT: Testing: 0.. 10..
+# SQAV-NEXT: Testing:
# SQAV-NEXT: PASS: verbosity :: pass.txt (2 of 5)
-# SQAV-NEXT: Testing: 0.. 10.. 20..
+# SQAV-NEXT: Testing:
# SQAV-NEXT: {{UN}}SUPPORTED: verbosity :: unsupported.txt (3 of 5)
-# SQAV-NEXT: Testing: 0.. 10.. 20.. 30..
+# SQAV-NEXT: Testing:
# SQAV-NEXT: {{X}}FAIL: verbosity :: xfail.txt (4 of 5)
-# SQAV-NEXT: Testing: 0.. 10.. 20.. 30.. 40..
+# SQAV-NEXT: Testing:
# SQAV-NEXT: XPASS: verbosity :: xpass.txt (5 of 5)
# SQAV-NEXT: ******************** TEST 'verbosity :: xpass.txt' FAILED ********************
# SQAV-NEXT: Exit Code: 0
@@ -930,7 +930,7 @@
# SQAV-NEXT: --
# SQAV-EMPTY:
# SQAV-NEXT: ********************
-# SQAV-NEXT: Testing: 0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
+# SQAV-NEXT: Testing:
# SQAV-NEXT: ********************
# SQAV-NEXT: Failed Tests (1):
# SQAV-NEXT: verbosity :: fail.txt
@@ -980,9 +980,9 @@
# QUIET-W-PROGRESS: -- Testing: 5 tests, 1 workers --
# QUIET-W-PROGRESS-NEXT: Testing:
# QUIET-W-PROGRESS-NEXT: FAIL: verbosity :: fail.txt (1 of 5)
-# QUIET-W-PROGRESS-NEXT: Testing: 0.. 10..
+# QUIET-W-PROGRESS-NEXT: Testing:
# QUIET-W-PROGRESS-NEXT: XPASS: verbosity :: xpass.txt (5 of 5)
-# QUIET-W-PROGRESS-NEXT: Testing: 0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
+# QUIET-W-PROGRESS-NEXT: Testing:
# QUIET-W-PROGRESS-NEXT: ********************
# QUIET-W-PROGRESS-NEXT: Failed Tests (1):
# QUIET-W-PROGRESS-NEXT: verbosity :: fail.txt
@@ -1102,15 +1102,15 @@
# SUCCINCT-RESULT-ALL: -- Testing: 5 tests, 1 workers --
# SUCCINCT-RESULT-ALL-NEXT: Testing:
# SUCCINCT-RESULT-ALL-NEXT: FAIL: verbosity :: fail.txt (1 of 5)
-# SUCCINCT-RESULT-ALL-NEXT: Testing: 0.. 10.
+# SUCCINCT-RESULT-ALL-NEXT: Testing:
# SUCCINCT-RESULT-ALL-NEXT: PASS: verbosity :: pass.txt (2 of 5)
-# SUCCINCT-RESULT-ALL-NEXT: Testing: 0.. 10.. 20..
+# SUCCINCT-RESULT-ALL-NEXT: Testing:
# SUCCINCT-RESULT-ALL-NEXT: {{UN}}SUPPORTED: verbosity :: unsupported.txt (3 of 5)
-# SUCCINCT-RESULT-ALL-NEXT: Testing: 0.. 10.. 20.. 30..
+# SUCCINCT-RESULT-ALL-NEXT: Testing:
# SUCCINCT-RESULT-ALL-NEXT: {{X}}FAIL: verbosity :: xfail.txt (4 of 5)
-# SUCCINCT-RESULT-ALL-NEXT: Testing: 0.. 10.. 20.. 30.. 40..
+# SUCCINCT-RESULT-ALL-NEXT: Testing:
# SUCCINCT-RESULT-ALL-NEXT: XPASS: verbosity :: xpass.txt (5 of 5)
-# SUCCINCT-RESULT-ALL-NEXT: Testing: 0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
+# SUCCINCT-RESULT-ALL-NEXT: Testing:
# SUCCINCT-RESULT-ALL-NEXT: ********************
# SUCCINCT-RESULT-ALL-NEXT: Failed Tests (1):
# SUCCINCT-RESULT-ALL-NEXT: verbosity :: fail.txt
|
dyung
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for fixing!
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/186/builds/13923 Here is the relevant piece of the build log for the reference |
I can't seem to figure out what actually failed here? |
The rate at which lit's progress bar progresses is not deterministic. Don't try to match the contents of the progress bar, only the fact that it's there.
|
This patch broke the Solaris/amd64 buildbot (and likely also will the Solaris/sparcv9 one once it catches up). I suspect the test is confused by the warning. |
|
Indeed the Solaris/sparcv9 bot is affected just the same. |
I can fix in a moment when I'm at a computer. |
|
Solaris failure should be fixed here: #167921 |
The rate at which lit's progress bar progresses is not deterministic. Don't try to match the contents of the progress bar, only the fact that it's there.