pants
pants copied to clipboard
Flaky test: `TestPantsDaemonIntegration.test_concurrent_overrides_pantsd` abrt
Seen on main:
436
=================================== FAILURES ===================================
437
_________ TestPantsDaemonIntegration.test_concurrent_overrides_pantsd __________
438
439
self = <pants_test.pantsd.pantsd_integration_test.TestPantsDaemonIntegration testMethod=test_concurrent_overrides_pantsd>
440
441
def test_concurrent_overrides_pantsd(self):
442
"""Tests that the --concurrent flag overrides the --pantsd flag, because we don't allow
443
concurrent runs under pantsd."""
444
config = {"GLOBAL": {"concurrent": True, "pantsd": True}}
445
with temporary_workdir() as workdir:
446
pants_run = self.run_pants_with_workdir(
447
["-ldebug", "help", "goals"], workdir=workdir, config=config
448
)
449
> pants_run.assert_success()
450
451
tests/python/pants_test/pantsd/pantsd_integration_test.py:647:
452
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
453
454
self = PantsResult(command=['/home/runner/.cache/pants/named_caches/pex_root/venvs/short/cf76eaf5/bin/python3.7', '-m', 'pant...\nFATAL: exception not rethrown\n", workdir='/tmp/process-executionSfLv59/.pants.d/tmp/tmp4q_0fldt.pants.d', pid=22354)
455
msg = None
456
457
def assert_success(self, msg: Optional[str] = None) -> None:
458
> assert self.exit_code == 0, self._format_unexpected_error_code_msg(msg)
459
E AssertionError: /home/runner/.cache/pants/named_caches/pex_root/venvs/short/cf76eaf5/bin/python3.7 -m pants --no-pantsrc --pants-workdir=/tmp/process-executionSfLv59/.pants.d/tmp/tmp4q_0fldt.pants.d --print-stacktrace=True --pants-config-files=[] --pants-config-files=/tmp/process-executionSfLv59/.pants.d/tmp/tmp4q_0fldt.pants.d/pants.toml -ldebug help goals
460
E exit_code: -6
461
E stdout:
462
E
463
E Goals
464
E -----
465
E
466
E count-loc Count lines of code.
467
E
468
E dependees List all targets that depend on any of the input files/targets.
469
E
470
E dependencies List the dependencies of the input files/targets.
471
E
472
E filedeps List all source and BUILD files a target depends on.
473
E
474
E filter Filter the input targets based on various criteria.
475
E
476
E list Lists all targets matching the file or target arguments.
477
E
478
E package Create a distributable package.
479
E
480
E peek Display BUILD target info
481
E
482
E roots List the repo's registered source roots.
483
E
484
E validate Validate sources against regexes.
485
E
486
E Use `./pants help $goal` to get help for a specific goal.
487
E
488
E stderr:
489
E 18:18:35.98 [DEBUG] File handle limit is: 65536
490
E 18:18:36.41 [DEBUG] Launching 1 roots (poll=false).
491
E 18:18:36.45 [DEBUG] computed 1 nodes in 0.040857 seconds. there are 7 total nodes.
492
E 18:18:36.51 [DEBUG] File handle limit is: 65536
493
E 18:18:36.63 [DEBUG] specs are: Specs(address_specs=AddressSpecs(literals=(), globs=(), filter_by_global_options=True), filesystem_specs=FilesystemSpecs(includes=(), ignores=()))
494
E 18:18:36.63 [DEBUG] changed_options are: ChangedOptions(since=None, diffspec=None, dependees=<DependeesOption.NONE: 'none'>)
495
E 18:18:36.64 [DEBUG] Launching 1 roots (poll=false).
496
E 18:18:36.64 [DEBUG] computed 1 nodes in 0.002496 seconds. there are 12 total nodes.
497
E 18:18:36.64 [WARN] Please either set `enabled = true` in the [anonymous-telemetry] section of pants.toml to enable sending anonymous stats to the Pants project to aid development, or set `enabled = false` to disable it. No telemetry sent for this run. An explicit setting will get rid of this message. See https://www.pantsbuild.org/v2.7/docs/anonymous-telemetry for details.
498
E 18:18:36.70 [DEBUG] Async completion is enabled: workunit callbacks will complete in the background.
499
E FATAL: exception not rethrown
500
E assert -6 == 0
501
E +-6
502
E -0
503
504
src/python/pants/testutil/pants_integration_test.py:53: AssertionError
+1.
This issue has been open for over one year without activity and is not labeled as a bug. It has been labeled as stale to invite any further updates. If you can confirm whether the issue is still applicable to the latest version of Pants, appears in other contexts, or its priority has changed, please let us know. Please feel free to close this issue if it is no longer relevant.