Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id BB9DF200B2D for ; Thu, 16 Jun 2016 21:45:07 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id BA36B160A51; Thu, 16 Jun 2016 19:45:07 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 0FB70160A52 for ; Thu, 16 Jun 2016 21:45:06 +0200 (CEST) Received: (qmail 15336 invoked by uid 500); 16 Jun 2016 19:45:05 -0000 Mailing-List: contact issues-help@aurora.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@aurora.apache.org Delivered-To: mailing list issues@aurora.apache.org Received: (qmail 15319 invoked by uid 99); 16 Jun 2016 19:45:05 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jun 2016 19:45:05 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 71A662C14F9 for ; Thu, 16 Jun 2016 19:45:05 +0000 (UTC) Date: Thu, 16 Jun 2016 19:45:05 +0000 (UTC) From: "John Sirois (JIRA)" To: issues@aurora.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AURORA-1717) pants fails to run in integration tests (flaky) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 16 Jun 2016 19:45:07 -0000 [ https://issues.apache.org/jira/browse/AURORA-1717?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D153= 34529#comment-15334529 ]=20 John Sirois commented on AURORA-1717: ------------------------------------- I did confirm robustness to racyness at the most obvious level by deleting = my cached pants {{0.0.80}} and running tests in 2 workspaces in parallel: Kill cached pants: {noformat} rm -rf ~/.cache/pants/setup/bootstrap-Linux-x86_64/0.0.80 ~/.cache/pants/se= tup/bootstrap-Linux-x86_64/pants.98GeLz {noformat} Run 1: {noformat} (master) $ ./pants test src/test/python/apache/aurora/executor -- -v $ ./pants test src/test/python/apache/aurora/executor -- -v New python executable in /home/jsirois/.cache/pants/setup/bootstrap-Linux-x= 86_64/pants.U6D1ul/install/bin/python2.7 Also creating executable in /home/jsirois/.cache/pants/setup/bootstrap-Linu= x-x86_64/pants.U6D1ul/install/bin/python Installing setuptools, pip, wheel...done. ... src/test/python/apache/aurora/executor/test_http_lifec= ycle.py::test_http_lifecycle_wraps_start_and_stop PASSED =20 =3D=3D=3D=3D=3D 38 passed, 2 skipped in 42.40 seconds = =3D=3D=3D=3D=3D=3D =20 13:36:33 00:43 [junit] 13:36:33 00:43 [complete] SUCCESS {noformat} Run 2: {noformat} (jsirois/issues/AURORA-1717) $ ./pants test src/test/python/apache/aurora/e= xecutor -- -v New python executable in /home/jsirois/.cache/pants/setup/bootstrap-Linux-x= 86_64/pants.rveTCx/install/bin/python2.7 Also creating executable in /home/jsirois/.cache/pants/setup/bootstrap-Linu= x-x86_64/pants.rveTCx/install/bin/python Installing setuptools, pip, wheel...done. ... src/test/python/apache/aurora/executor/test_http_lifec= ycle.py::test_http_lifecycle_wraps_start_and_stop PASSED =20 =3D=3D=3D=3D=3D 38 passed, 2 skipped in 42.37 seconds = =3D=3D=3D=3D=3D=3D =20 13:36:33 00:43 [junit] 13:36:33 00:43 [complete] SUCCESS {noformat} At the end of this, the {{pants.rveTCx}} version of {{0.0.80}} is orphaned,= but that's the only ill-effect of the concurrent pants bootstraps: {noformat} $ ls -lrt ~/.cache/pants/setup/bootstrap-Linux-x86_64 total 60 lrwxrwxrwx 1 jsirois jsirois 86 Apr 18 10:20 virtualenv-13.1.0 -> /home/j= sirois/.cache/pants/setup/bootstrap-Linux-x86_64/pants.L5d5Hm/virtualenv-13= .1.0 drwx------ 3 jsirois jsirois 4096 Apr 18 10:20 pants.L5d5Hm drwx------ 3 jsirois jsirois 4096 Apr 18 10:20 pants.b3Ue4R lrwxrwxrwx 1 jsirois jsirois 76 Apr 18 10:20 0.0.82 -> /home/jsirois/.cac= he/pants/setup/bootstrap-Linux-x86_64/pants.b3Ue4R/install drwx------ 3 jsirois jsirois 4096 May 1 17:58 pants.V4zNBD lrwxrwxrwx 1 jsirois jsirois 76 May 1 17:58 1.0.0 -> /home/jsirois/.cach= e/pants/setup/bootstrap-Linux-x86_64/pants.V4zNBD/install lrwxrwxrwx 1 jsirois jsirois 76 May 11 09:32 unspecified -> /home/jsirois= /.cache/pants/setup/bootstrap-Linux-x86_64/pants.pjfDAt/install drwx------ 3 jsirois jsirois 4096 May 11 09:32 pants.pjfDAt lrwxrwxrwx 1 jsirois jsirois 76 Jun 3 13:26 1.1.0-pre3 -> /home/jsirois/= .cache/pants/setup/bootstrap-Linux-x86_64/pants.AZoN7e/install drwx------ 3 jsirois jsirois 4096 Jun 3 13:26 pants.AZoN7e lrwxrwxrwx 1 jsirois jsirois 76 Jun 14 15:38 1.1.0-pre5 -> /home/jsirois/= .cache/pants/setup/bootstrap-Linux-x86_64/pants.mfljwg/install drwx------ 3 jsirois jsirois 4096 Jun 14 15:38 pants.mfljwg drwx------ 3 jsirois jsirois 4096 Jun 16 13:35 pants.U6D1ul lrwxrwxrwx 1 jsirois jsirois 76 Jun 16 13:35 0.0.80 -> /home/jsirois/.cac= he/pants/setup/bootstrap-Linux-x86_64/pants.U6D1ul/install drwx------ 3 jsirois jsirois 4096 Jun 16 13:35 pants.rveTCx {noformat} > pants fails to run in integration tests (flaky) > ----------------------------------------------- > > Key: AURORA-1717 > URL: https://issues.apache.org/jira/browse/AURORA-1717 > Project: Aurora > Issue Type: Bug > Components: Build > Reporter: John Sirois > Assignee: John Sirois > > As noted by [~StephanErb] in [IRC|http://wilderness.apache.org/channels/?= f=3Daurora/2016-06-15#1466009185], python tests occasionally fail like so u= nder AuroraBot: > {noformat} > ... > =1B[1m with temporary_dir() as checkpoint_root:=1B[0m > =1B[1m te =3D AuroraExecutor(=1B[0m > =1B[1m> runner_provider=3Dmake_provider(checkpoint_root),=1B[0m > =1B[1m sandbox_provider=3DDefaultTestSandboxProvider())=1B[0m > src/test/python/apache/aurora/executor/test_thermos_executor.py:580:=20 > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _=20 > src/test/python/apache/aurora/executor/test_thermos_executor.py:193: in m= ake_provider > =1B[1m pex_location=3Dthermos_runner_path(),=1B[0m > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _=20 > build =3D True > =1B[1m def thermos_runner_path(build=3DTrue):=1B[0m > =1B[1m if not build:=1B[0m > =1B[1m return getattr(thermos_runner_path, 'value', None)=1B[0m > =1B[1m =1B[0m > =1B[1m if not hasattr(thermos_runner_path, 'value'):=1B[0m > =1B[1m pex_dir =3D safe_mkdtemp()=1B[0m > =1B[1m> assert subprocess.call(["./pants", "--pants-distdir=3D%s" %= pex_dir, "binary",=1B[0m > =1B[1m "src/main/python/apache/thermos/runner:thermos_runner"]) = =3D=3D 0=1B[0m > =1B[1m=1B[31mE assert 1 =3D=3D 0=1B[0m > =1B[1m=1B[31mE + where 1 =3D (['= ./pants', '--pants-distdir=3D/tmp/user/2396/tmpU8sLiq', 'binary', 'src/main= /python/apache/thermos/runner:thermos_runner'])=1B[0m > =1B[1m=1B[31mE + where =3D su= bprocess.call=1B[0m > src/test/python/apache/aurora/executor/test_thermos_executor.py:185: Asse= rtionError > -------------- Captured stderr call -------------- > Traceback (most recent call last): > File "/home/jenkins/.cache/pants/setup/bootstrap-Linux-x86_64/0.0.80/bin/= pants", line 7, in > from pants.bin.pants_exe import main > ImportError: No module named pants.bin.pants_exe > generated xml file: /home/jenkins/jenkins-slave/workspace/AuroraBot/dist/= test-results/415337499eb72578eab327a6487c1f5c9452b3d6.xml=20 > =1B[1m=1B[31m 16 failed, 638 passed, 6 skipped, 1 warnings, 8 error in 12= 7.24 seconds =1B[0m > ... > {noformat} > This has all the signs of a race in pants bootstrapping; ie: the {{\[vers= ion symlink]/bin/pants}} script is installed but the interpreter it points = to in its shebang does not have pants fully installed yet. That said, a re= view of the pants bootstrap script seems to indicate correct atomicity. -- This message was sent by Atlassian JIRA (v6.3.4#6332)