cold-journalist-66984
10/26/2020, 4:53 PM./aiq pants --pants-runtime-python-version=3.6 test.pytest --test-pytest-coverage=src/python/aiq/datadog_metrics test/python/aiq/datadog_metrics::
on Jenkins and I’m seeing this error
ERROR: usage: 0d9ce81594a0551c52a94d1563370c73059e6817 [options] [file_or_dir] [file_or_dir] [...]
0d9ce81594a0551c52a94d1563370c73059e6817: error: unrecognized arguments: --cov-report= --cov-config /home/jenkins/workspace/tests/run_python3_tests/jd/test-datadog-metrics-typo/.pants.d/test/pytest/test.python.aiq.datadog_metrics.test_datadog_metrics/tmpkq_tuem0 --cov /home/jenkins/workspace/tests/run_python3_tests/jd/test-datadog-metrics-typo/.pants.d/pyprep/sources/e79db9b71ba23be870dc484b8dcfa08e6db39185/aiq/datadog_metrics/ /home/jenkins/workspace/tests/run_python3_tests/jd/test-datadog-metrics-typo/.pants.d/pyprep/sources/e79db9b71ba23be870dc484b8dcfa08e6db39185/aiq/datadog_metrics/test_datadog_metrics.py
I’m using pants 1.16 and coverage 5.3. I’m not sure what I need to change for this to work. Any ideas? Thanks!hundreds-father-404
10/26/2020, 5:03 PMcold-journalist-66984
10/26/2020, 7:25 PM<http://pants.ci|pants.ci>.ini
, but in pants.ini
I see
[pytest]
requirements: pytest==4.6.9
unittest2_requirements: zipp==1.0.0
cov_requirements: configparser==4.0.2
[test.pytest]
extra_pythonpath: ["%(pants_workdir)s/ivy/jars/graphframes/graphframes/jars/graphframes-0.5.0-spark2.1-s_2.10.jar"]
;options: +["--log-level=INFO", "--log-cli-level=INFO"]
hundreds-father-404
10/26/2020, 7:29 PMcold-journalist-66984
10/26/2020, 7:38 PMhundreds-father-404
10/26/2020, 7:48 PM[pytest]
not yet taken that you could use is timeout_requirements
. Or, stop pinning configparser
or zipp
. Do you know if you’re using timeouts in your repo? If so, you’d break that if you claim it.
(Sorry, we know this is a frustrating problem, hence fixing in 1.23.0)cold-journalist-66984
10/26/2020, 7:51 PMcold-journalist-66984
10/26/2020, 7:51 PMconfigparser==4.0.2
to timeout_requirements?hundreds-father-404
10/26/2020, 7:53 PMpytest-cov
will be installed through the default cov_requirements
option. You may want to change the version used; you can use ./pants help-advanced pytest
to see the defaultcold-journalist-66984
10/26/2020, 7:53 PMhundreds-father-404
10/26/2020, 7:58 PMdependencies
field in BUILD files
Ik you said upgrading isn’t possible right now, but let us know if there’s anything we can do to help