[llvm] r340840 - [lit, shtest-timeout] Always use an internal shell for the shtest-timeout to diagnose buildbot failures

Stella Stamenova via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 28 09:24:55 PDT 2018


Author: stella.stamenova
Date: Tue Aug 28 09:24:55 2018
New Revision: 340840

URL: http://llvm.org/viewvc/llvm-project?rev=340840&view=rev
Log:
[lit, shtest-timeout] Always use an internal shell for the shtest-timeout to diagnose buildbot failures

Summary:
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).

Reviewers: gkistanova, asmith, zturner, modocache, rnk, delcypher

Reviewed By: rnk

Subscribers: delcypher, llvm-commits, gkistanova

Differential Revision: https://reviews.llvm.org/D51326

Modified:
    llvm/trunk/utils/lit/tests/Inputs/shtest-timeout/lit.cfg

Modified: llvm/trunk/utils/lit/tests/Inputs/shtest-timeout/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/tests/Inputs/shtest-timeout/lit.cfg?rev=340840&r1=340839&r2=340840&view=diff
==============================================================================
--- llvm/trunk/utils/lit/tests/Inputs/shtest-timeout/lit.cfg (original)
+++ llvm/trunk/utils/lit/tests/Inputs/shtest-timeout/lit.cfg Tue Aug 28 09:24:55 2018
@@ -13,7 +13,9 @@ if shellType == '0':
     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')
 




More information about the llvm-commits mailing list