<#7622 TestPantsDaemonIntegration.test_pantsd_file...
# github-notifications
q
#7622 TestPantsDaemonIntegration.test_pantsd_filesystem_invalidation is flaky Issue created by illicitonion I've been seeing this quite a lot recently: ``` ==================== FAILURES ==================== _ TestPantsDaemonIntegration.test_pantsd_filesystem_invalidation _ self = <pants_test.pantsd.test_pantsd_integration.TestPantsDaemonIntegration testMethod=test_pantsd_filesystem_invalidation> def test_pantsd_filesystem_invalidation(self): """Runs with pantsd enabled, in a loop, while another thread invalidates files.""" with self.pantsd_successful_run_context() as (pantsd_run, checker, workdir, _): cmd = ['list', '::'] pantsd_run(cmd) checker.assert_started() # Launch a separate thread to poke files in 3rdparty. join = launch_file_toucher('3rdparty/jvm/com/google/auto/value/BUILD') # Repeatedly re-list 3rdparty while the file is being invalidated. for _ in range(0, 16): > pantsd_run(cmd) .pants.d/pyprep/sources/c78f64aaeb38ddf76b057df48b464e9d86eb5501/pants_test/pantsd/test_pantsd_integration.py242 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .pants.d/pyprep/sources/c78f64aaeb38ddf76b057df48b464e9d86eb5501/pants_test/pantsd/pantsd_integration_test_base.py189 in assert_runner self.assert_success(run) .pants.d/pyprep/sources/c78f64aaeb38ddf76b057df48b464e9d86eb5501/pants_test/pants_run_integration_test.py475 in assert_success self.assert_result(pants_run, PANTS_SUCCEEDED_EXIT_CODE, expected=True, msg=msg) .pants.d/pyprep/sources/c78f64aaeb38ddf76b057df48b464e9d86eb5501/pants_test/pants_run_integration_test.py496 in assert_result assertion(value, pants_run.returncode, error_msg) E AssertionError: 0 != 1 : /home/travis/build/pantsbuild/pants/pants --no-pantsrc --pants-workdir=/home/travis/build/pantsbuild/pants/.pants.d/tmp/tmphla0pzpg.pants.d/.workdir.pants.d --kill-nailguns --print-exception-stacktrace=True --pants-config-files=/home/travis/build/pantsbuild/pants/.pants.d/tmp/tmphla0pzpg.pants.d/.workdir.pants.d/pants.ini list :: E returncode: 1 E stdout: E E stderr: E 102540 [WARN] timestamp: 2019-04-25T102540.812991 E 102540 [WARN] Exception caught: (pants.engine.scheduler.ExecutionError) E 102540 [WARN] File "/home/travis/.pex/code/c852f58837a464002b40236525927a3cdbc2cf64/pants/bin/daemon_pants_runner.py", line 355, in post_fork_child E 102540 [WARN] self._raise_deferred_exc() E 102540 [WARN] File "/home/travis/.pex/code/c852f58837a464002b40236525927a3cdbc2cf64/pants/bin/daemon_pants_runner.py", line 270, in _raise_deferred_exc E 102540 [WARN] raise_with_traceback(exc_value, exc_traceback) E 102540 [WARN] File "/home/travis/.pex/install/future-0.17.1-py3-none-any.whl.2340a853e2552f26375b3f585f1e518cbc69e8b4/future-0.17.1-py3-none-any.whl/future/utils/__init__.py", line 421, in raise_with_traceback E 102540 [WARN] raise exc.with_traceback(traceback) E 102540 [WARN] File "/home/travis/.pex/code/c852f58837a464002b40236525927a3cdbc2cf64/pants/bin/daemon_pants_runner.py", line 119, in create E 102540 [WARN] graph_helper, target_roots, exit_code = scheduler_service.prefork(options, options_bootstrapper) E 102540 [WARN] File "/home/travis/.pex/code/c852f58837a464002b40236525927a3cdbc2cf64/pants/pantsd/service/scheduler_service.py", line 191, in prefork E 102540 [WARN] target_roots, exit_code = prefork_fn(session, options, options_bootstrapper) E 102540 [WARN] File "/home/travis/.pex/code/c852f58837a464002b40236525927a3cdbc2cf64/pants/pantsd/service/scheduler_service.py", line 233, in _prefork_body E 102540 [WARN] target_roots, E 102540 [WARN] File "/home/travis/.pex/code/c852f58837a464002b40236525927a3cdbc2cf64/pants/init/engine_initializer.py", line 189, in run_console_rules E 102540 [WARN] exit_code = self.scheduler_session.run_console_rule(goal_product, params) E 102540 [WARN] File "/home/travis/.pex/code/c852f58837a464002b40236525927a3cdbc2cf64/pants/engine/scheduler.py", line 497, in run_console_rule E 102540 [WARN] self._trace_on_error([exc], request) E 102540 [WARN] File "/home/travis/.pex/code/c852f58837a464002b40236525927a3cdbc2cf64/pants/engine/scheduler.py", line 475, in _trace_on_error E 102540 [WARN] unique_exceptions, E 102540 [WARN] E 102540 [WARN] Exception message: 1 Exception encountered: E 102540 [WARN] Computing Select((<pants.engine.console.Console object at 0x7efd48448be0>+OptionsBootstrapper(env_tuples<Exactly(tuple)>=(('PANTS_CONFIG_FILES', '/home/travis/build/pantsbuild/pants/pants.travis-ci.ini'), ('PANTS_DEV', '1'), ('PANTS_PYTHON_SETUP_INTERPRETER_CONSTRAINTS', "['CPython==3.6.*']")), bootstrap_args<Exactly(tuple)>=('--no-pantsrc', '--pants-workdir=/home/travis/build/pantsbuild/pants/.pants.d/tmp/tmphla0pzpg.pants.d/.workdir.pants.d', '--print-exception-stacktrace=True', '--pants-config-files=/home/travis/build/pantsbuild/pants/.pants.d/tmp/tmphla0pzpg.pants.d/.workdir.pants.d/pants.ini'), args<Exactly(tuple)>=('./pants', '--no-pantsrc', '--pants-workdir=/home/travis/build/pantsbuild/pants/.pants.d/tmp/tmphla0pzpg.pants.d/.workdir.pants.d', '--kill-nailguns', '--print-exception-stacktrace=True', '--pants-config-files=/home/travis/build/pantsbuild/pants/.pants.d/tmp/tmphla0pzpg.pants.d/.workdir.pants.d/pants.ini', 'list', '::'), config<SubclassesOf(Config)>=_ChainedConfig(chained_configs=(<pants.option.config._SingleFileConfig object at 0x7efd3807eba8>, <pants.option.config._SingleFileConfig object at 0x7efd3807e5c0>, <pants.option.config._SingleFileConfig object at 0x7efd3806ce80>)))+Specs(dependencies<Exactly(tuple)>=(DescendantAddresses(directory=''),), matcher<Exactly(SpecsMatcher)>=SpecsMatcher(tags<Exactly(tuple)>=(), exclude_patterns<Exactly(tuple)>=()))), List) E 102540 [WARN] <None> -------------- Captured stdout call -------------- pantsd log is /home/travis/build/pantsbuild/pants/.pants.d/tmp/tmphla0pzpg.pants.d/.workdir.pants.d/pantsd/pantsd.log >>> config: {'GLOBAL': {'enable_pantsd': True, 'shutdown_pantsd_after_run': False, 'watchman_socket_path': '/tmp/watchman.10222.sock', 'level': 'info', 'pants_subprocessdir': '/home/travis/build/pantsbuild/pants/.pants.d/tmp/tmphla0pzpg.pants.d/.pids'}} running: ./pants kill-pantsd (config={'GLOBAL': {'enable_pantsd': True, 'shutdown_pantsd_after_run': False, 'watchman_socket_path': '/tmp/watchman.10222.sock', 'level': 'info', 'pants_subprocessdir': '/home/travis/build/pantsbuild/pants/.pants.d/tmp/tmphla0pzpg.pants.d/.pids'}}) (extra_env={}) … pantsbuild/pants