<#6787 GraphIntegrationTest.test_error_message is ...
# github-notifications
c
#6787 GraphIntegrationTest.test_error_message is flaky in CI Issue created by jsirois See here: https://travis-ci.org/pantsbuild/pants/jobs/456235832 Looks like: ``` 023347 40:20 [run] ============== test session starts =============== platform linux -- Python 3.4.3, pytest-3.6.4, py-1.7.0, pluggy-0.7.1 -- /usr/bin/python3.4 cachedir: .pants.d/.pytest_cache shard: 0 of 6 (0-based shard numbering) rootdir: /home/travis/build/pantsbuild/pants/.pants.d, inifile: /home/travis/build/pantsbuild/pants/.pants.d/test/pytest-prep/CPython-3.4.3/8f4e2750fa5c8024cd5e6f1ef32266675b656ff3/pytest.ini plugins: cov-2.4.0, timeout-1.2.1 collecting ... Only executing 1 of 5 total tests in shard 0 of 6 collected 5 items tests/python/pants_test/engine/legacy/test_graph_integration.py:GraphIntegrationTest:test_error_message <- pyprep/sources/d6c781ce5af299b6f6553cbdf77515274ffdf271/pants_test/engine/legacy/test_graph_integration.py FAILED [100%] ==================== FAILURES ==================== __ GraphIntegrationTest.test_error_message _____ self = <pants_test.engine.legacy.test_graph_integration.GraphIntegrationTest testMethod=test_error_message> def test_error_message(self): for k in self._ERR_TARGETS: > self._list_target_check_error(k) .pants.d/pyprep/sources/d6c781ce5af299b6f6553cbdf77515274ffdf271/pants_test/engine/legacy/test_graph_integration.py141 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .pants.d/pyprep/sources/d6c781ce5af299b6f6553cbdf77515274ffdf271/pants_test/engine/legacy/test_graph_integration.py94 in _list_target_check_error self.assertIn(excerpt, pants_run.stderr_data) E AssertionError: "Snapshot(PathGlobs(include=(u'testprojects/src/java/org/pantsbuild/testproject/bundle/*.aaaa',), exclude=(), glob_match_error_behavior<=GlobMatchErrorBehavior>=GlobMatchErrorBehavior(failure_behavior=error), conjunction<=GlobExpansionConjunction>=GlobExpansionConjunction(conjunction=all_match)))" not found in 'timestamp: 2018-11-17T023351.224568\nException caught: (pants.build_graph.address_lookup_error.AddressLookupError)\n File "/home/travis/build/pantsbuild/pants/src/python/pants/bin/pants_loader.py", line 75, in <module>\n main()\n File "/home/travis/build/pantsbuild/pants/src/python/pants/bin/pants_loader.py", line 71, in main\n PantsLoader.run()\n File "/home/travis/build/pantsbuild/pants/src/python/pants/bin/pants_loader.py", line 67, in run\n cls.load_and_execute(entrypoint)\n File "/home/travis/build/pantsbuild/pants/src/python/pants/bin/pants_loader.py", line 60, in load_and_execute\n entrypoint_main()\n File "/home/travis/build/pantsbuild/pants/src/python/pants/bin/pants_exe.py", line 39, in main\n PantsRunner(exiter, start_time=start_time).run()\n File "/home/travis/build/pantsbuild/pants/src/python/pants/bin/pants_runner.py", line 62, in run\n return runner.run()\n File "/home/travis/build/pantsbuild/pants/src/python/pants/bin/local_pants_runner.py", line 159, in run\n self._run()\n File "/home/travis/build/pantsbuild/pants/src/python/pants/bin/local_pants_runner.py", line 227, in _run\n goal_runner_result = self._maybe_run_v1(run_tracker, reporting)\n File "/home/travis/build/pantsbuild/pants/src/python/pants/bin/local_pants_runner.py", line 176, in _maybe_run_v1\n return goal_runner_factory.create().run()\n File "/home/travis/build/pantsbuild/pants/src/python/pants/bin/goal_runner.py", line 125, in create\n goals, context = self._setup_context()\n File "/home/travis/build/pantsbuild/pants/src/python/pants/bin/goal_runner.py", line 95, in _setup_context\n self._root_dir\n File "/home/travis/build/pantsbuild/pants/src/python/pants/init/engine_initializer.py", line 226, in create_build_graph\n for _ in graph.inject_roots_closure(target_roots):\n File "/home/travis/build/pantsbuild/pants/src/python/pants/engine/legacy/graph.py", line 211, in inject_roots_closure\n for address in self._inject_specs(target_roots.specs):\n File "/home/travis/build/pantsbuild/pants/src/python/pants/engine/legacy/graph.py", line 264, in _inject_specs\n subjects)\n File "/opt/pyenv/versions/2.7.14/lib/python2.7/contextlib.py", line 35, in __exit__\n self.gen.throw(type, value, traceback)\n File "/home/travis/build/pantsbuild/pants/src/python/pants/engine/legacy/graph.py", line 231, in _resolve_context\n \'Build graph construction failed: {} {}\'.format(type(e).name, str(e))\n\nException message: Build graph construction failed: ExecutionError 1 Exception encountered:\nComputing Select(Specs(dependencies<=tuple>=(SingleAddress(directory=u\'testprojects/src/java/org/pantsbuild/testproject/bundle\', name=u\'missing-bundle-fileset\'),), matcher<=SpecsMatcher>=SpecsMatcher(tags<=tuple>=(), exclude_patterns<=tuple>=())), =TransitiveHydratedTargets)\n Computing Task(transitive_hydrated_targets, Specs(dependencies<=tuple>=(SingleAddress(directory=u\'testprojects/src/java/org/pantsbuild/testproject/bundle\', name=u\'missing-bundle-fileset\'),), matcher<=SpecsMatcher>=SpecsMatcher(tags<=tuple>=(), exclude_patterns<=tuple>=())), =TransitiveHydratedTargets, true)\n Computing Task(transitive_hydrated_target, testprojects/src/java/org/pantsbuild/testproject/bundle:missing-bundle-fileset, =TransitiveHydratedTarget, true)\n Computing Task(hydrate_target, testprojects/src/java/org/pantsbuild/testproject/bundle:missing-bundle-fileset, =HydratedTarget, true)\n Computing Task(hydrate_bundles, BundlesField(address=BuildFileAddress(testprojects/src/java/org/pantsbuild/testproject/bundle/BUILD, missing-bundle-fileset), bundles=[BundleAdaptor(fileset=[\'a/b/file1.txt\']), BundleAdaptor(fileset=RGlobs(\'*.aaaa\', \'*.bbbb\')), BundleAdaptor(fileset=Globs(\'*.aaaa\')), BundleAdaptor(fileset=ZGlobs(\'**/*.abab\')), BundleAdaptor(fileset=[\'file1.aaaa\', \'file2.aaaa\'])], filespecs_list=[{u\'globs\': [u\'a/b/file1.txt\']}, {u\'globs\': [u\'**/*.aaaa\', u\'**/*.bbbb\']}, {u\'globs\': [u\'*.aaaa\']}, {u\'globs\': [u\'**/*.abab\']}, {u\'globs\': [u\'file1.aaaa\', u\'file2.aaaa\']}], path_globs_list=[PathGlobs(include=(u\'testprojects/src/java/org/pantsbuild/testproject/bundle/a/b/file1.txt\',), exclude=(), glob_match_error_behavior=GlobMatchErrorBehavior(failure_behavior=u\'ignore\'), conjunction=GlobExpansionConjunction(conjunction=u\'all_match\')), PathGlobs(include=(u\'testprojects/src/java/org/pantsbuild/testproject/bundle/**/*.aaaa\', u\'testprojects/src/java/org/pantsbuild/testproject/bundle/**/*.bbbb\'), exclude=(), glob_match_error_behavior=GlobMatchErrorBehavior(failure_behavior=u\'ignore\'), conjunction=GlobExpansionConjunction(conjunction=u\'all_match\')), PathGlobs(include=(u\'testprojects/src/java/org/pantsbuild/testproject/bundle/*.aaaa\',), exclude=(), glob_match_error_behavior=GlobMatchErrorBehavior(failure_behavior=u\'ignore\'), conjunction=GlobExpansionConjunction(conjunction=u\'all_match\')), PathGlobs(include=(u\'testprojects/src/java/org/pantsbuild/testproject/bundle/**/*.abab\',), exclude=(), glob_match_error_behavior=GlobMatchErrorBehavior(failure_behavior=u\'ignore\'), conjunction=GlobExpansionConjunction(conjunction=u\'all_match\')), PathGlobs(include=(u\'testprojects/src/java/org/pantsbuild/testproject/bundle/file1.aaaa\', u\'testprojects/src/java/org/pantsbuild/testproject/bundle/file2.aaaa\'), exclude=(), glob_match_error_behavior=GlobMatchErrorBehavior(failure_behavior=u\'ignore\'),… pantsbuild/pants