Skip to content

Commit 7337db7

Browse files
authored
Add ALLOW_RETRIES to flaky test dbg-record-roundtrip.ll (llvm#85410)
Something strange is happening in this test. If the llvm-as output is piped into llvm-link in the final RUN lines then this test fails on my machine (1 in 200) using WSL2. If the verify-uselistorder RUN lines are removed then it doesn't fail on my machine (in 10,000+). If the llvm-as and llvm-link RUN lines mentioned at the start are removed then it doesn't fail on my machine (in 10,000+). Writing the llvm-as output to a temporary file for llvm-link to read on those final RUN lines, the test doesn't fail on my machine (in 10,000+). But it _does_ fail on a bot: https://lab.llvm.org/buildbot/#/builders/245/builds/21930. So clearly my workaround doesn't solve the underlying problem (and I have no idea what that is).
1 parent a4ca07f commit 7337db7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

llvm/test/Bitcode/dbg-record-roundtrip.ll

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717
;; NOTE: This test fails intermittently on linux if the llvm-as output is piped
1818
;; into llvm-link in the RUN lines below, unless the verify-uselistorder RUN
1919
;; lines above are removed. Write to a temporary file to avoid that weirdness.
20+
;; NOTE2: Unfortunately, the above only stopped it occuring on my machine.
21+
;; It failed again intermittently here:
22+
;; https://lab.llvm.org/buildbot/#/builders/245/builds/21930
23+
;; Allow this test to fail-over twice, until this strangeness is understood.
24+
; ALLOW_RETRIES: 2
2025
; RUN: llvm-as %s --experimental-debuginfo-iterators=true --write-experimental-debuginfo-iterators-to-bitcode=true -o %t
2126
; RUN: llvm-link %t %s --experimental-debuginfo-iterators=false -o /dev/null
2227
; RUN: llvm-as %s --experimental-debuginfo-iterators=false -o %t

0 commit comments

Comments
 (0)