https://pantsbuild.org/ logo
#general
Title
# general
e

eager-dress-66405

08/25/2021, 4:23 PM
Anyone else see pants inconsistently print failed test output?
Copy code
[test]
output = "failed"
Copy code
./pants test src/clr_commands/tests/test_data.py -- -v
09:19:08.63 [INFO] Initializing scheduler...
09:19:08.96 [INFO] Scheduler initialized.

𐄂 src/clr_commands/tests/test_data.py failed.
Without changing anything, just repeating the command:
Copy code
./pants test src/clr_commands/tests/test_data.py -- -v
09:19:52.63 [INFO] Initializing scheduler...
09:19:52.92 [INFO] Scheduler initialized.
09:20:23.48 [WARN] Completed: test - src/clr_commands/tests/test_data.py failed (exit code 2).
============================= test session starts ==============================
platform linux -- Python 3.6.14, pytest-6.2.4, py-1.10.0, pluggy-0.13.1 -- /home/mpcusack/.cache/pants/named_caches/pex_root/venvs/short/c0a2e079/bin/python3.6
cachedir: .pytest_cache
rootdir: /tmp/process-execution1bzNig, configfile: pyproject.toml
plugins: circleci-parallelized-0.0.4, profiling-1.7.0, celery-4.4.7, cov-2.11.0, ddtrace-0.48.0
collecting ... collected 0 items / 1 error


==================================== ERRORS ====================================
_____________ ERROR collecting src/clr_commands/tests/test_data.py _____________
...truncated...
𐄂 src/clr_commands/tests/test_data.py failed.
w

witty-crayon-22786

08/25/2021, 4:39 PM
sorry for the trouble! we’ve seen this occasionally, but i’ve never been able to reproduce it…
which version of Pants are you using?
e

eager-dress-66405

08/25/2021, 4:43 PM
Copy code
$ ./pants -v
09:43:37.79 [INFO] Initializing scheduler...
09:43:38.08 [INFO] Scheduler initialized.
2.6.0
Seems to happen ~50% of the time for me
1
Happy to do any testing/debugging you recommend
w

witty-crayon-22786

08/25/2021, 4:50 PM
possibly… there is one other fishy bit here: you’re seemingly seeing
Initializing scheduler...
on every run. but you should only see that when
pantsd
starts up.
would you be comfortable sharing the last X minutes of your
.pants.d/pants.log
in a DM?
h

hundreds-father-404

08/25/2021, 6:06 PM
I've seen it about 3-5% of runs and can't get a consistent repro, usually with
test
and
typecheck
. 50% is extra concerning!
5 Views