[PATCH] D51326: [lit, shtest-timeout] Always use an internal shell for the shtest-timeout to diagnose buildbot failures

Stella Stamenova via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 27 14:47:22 PDT 2018


stella.stamenova created this revision.
stella.stamenova added reviewers: gkistanova, asmith, zturner, modocache.
Herald added subscribers: llvm-commits, delcypher.

Right now this test is failing on the builtbots on Windows but we have a very similar setup where the test passes. The test is meant to test that specifying a timeout works correctly by running an infnite loop and having it timeout - on the buildbot, the infinite loop doesn't actually execute. This change runs all of the tests in the set using an internal shell rather than an external shell. I expect this will make the test pass which means that either the way the external shell is invoked or the external shell setup on the buildbots is not correct. Regardless of whether the test passes with this change, we'll need to undo this change and have a real fix.

@gkistanova was able to get logs from the buildbot to rule out a number of theories as to why this test is failing, but they didn't have enough information to confirm exactly what the issue is. The purpose of this change is to narrow it down, but if someone has a local repro and can aid in debugging, that would make it much speedier (and less prone to making the bots fail).


Repository:
  rL LLVM

https://reviews.llvm.org/D51326

Files:
  utils/lit/tests/Inputs/shtest-timeout/lit.cfg


Index: utils/lit/tests/Inputs/shtest-timeout/lit.cfg
===================================================================
--- utils/lit/tests/Inputs/shtest-timeout/lit.cfg
+++ utils/lit/tests/Inputs/shtest-timeout/lit.cfg
@@ -13,7 +13,9 @@
     externalShell = False
 else:
     lit_config.note('Using external shell')
-    externalShell = True
+    externalShell = (not sys.platform in ['win32'])
+    if not externalShell:
+        lit_config.note('External shell requested, but using internal shell')
 
 configSetTimeout = lit_config.params.get('set_timeout', '0')
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51326.162750.patch
Type: text/x-patch
Size: 569 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180827/7c9573c2/attachment.bin>


More information about the llvm-commits mailing list