high-yak-85899
04/06/2022, 8:52 PMhigh-yak-85899
04/06/2022, 8:54 PMhigh-yak-85899
04/06/2022, 8:54 PMhigh-yak-85899
04/06/2022, 10:04 PMsite-packages
or wherever it gets installed to see things.rapid-exabyte-76685
04/07/2022, 2:52 AM./pants --tag='-integration_test' test ::
doesn't work. And I forget if there is a way to recursively match all test targets with a given name, e.g. ./pants test integration_tests/**::
or somethingbitter-ability-32190
04/07/2022, 1:20 PMbitter-ability-32190
04/07/2022, 1:21 PMrefined-addition-53644
04/07/2022, 1:29 PM./pants test ::
?
We are trying to hook up a tool called dbt
which basically supports running some tests for transformations defined using sql/ninja.
dbt
has CLI support but not yet mature python support.rhythmic-battery-45198
04/07/2022, 1:53 PMrhythmic-battery-45198
04/07/2022, 1:58 PMrhythmic-battery-45198
04/07/2022, 1:59 PMhigh-yak-85899
04/07/2022, 4:34 PMrapid-bird-79300
04/07/2022, 9:33 PMupdate-build-files
goal shows errors to add name
to poetry_requirements
but that's not a supported option. Since the pyproject.toml
lives at the root of the project I believe this error is related:
njgrisafi@Nicks-MacBook-Pro ~/workspace/pants-example (build-file-defaults)$ ./pants lint ::
14:28:42.68 [INFO] Initializing scheduler...
14:28:42.88 [INFO] Scheduler initialized.
14:28:42.93 [ERROR] 1 Exception encountered:
MappingError: Failed to parse ./BUILD:
Targets in root-level BUILD files must be named explicitly.
example branch: https://github.com/njgrisafi/pants-example/tree/build-file-defaultsfreezing-quill-50372
04/08/2022, 5:42 AMRun ./pants --version
./pants: line 371: /home/runner/.cache/pants/setup/bootstrap-Linux-x86_64/2.9.0_py39/bin/python: No such file or directory
refined-addition-53644
04/08/2022, 2:18 PM[Container] 2022/04/08 14:08:25 Running command ./pants test ::
14:08:26.77 [INFO] Starting: Building pytest.pex from pytest_default_lockfile.txt
14:08:26.78 [INFO] Starting: Building requirements.pex
14:08:26.82 [INFO] Canceled: Building pytest.pex from pytest_default_lockfile.txt
14:08:26.82 [INFO] Starting: Building pytest.pex from pytest_default_lockfile.txt
14:08:26.87 [INFO] Canceled: Building pytest.pex from pytest_default_lockfile.txt
14:08:26.87 [INFO] Starting: Building pytest.pex from pytest_default_lockfile.txt
14:08:26.93 [INFO] Canceled: Building pytest.pex from pytest_default_lockfile.txt
14:08:26.93 [INFO] Starting: Building pytest.pex from pytest_default_lockfile.txt
bitter-ability-32190
04/08/2022, 3:58 PM--run-manual
is specified:
import pytest
def pytest_configure(config):
config.addinivalue_line("markers", "manual: mark tests which need a person to execute them")
def pytest_addoption(parser):
group = parser.getgroup("manual", "configuration of manual tests")
group.addoption(
"--run-manual",
action="store_true",
default=False,
help="run manual tests",
)
@pytest.hookimpl(hookwrapper=True, tryfirst=True)
def pytest_runtest_makereport(item, call):
outcome = yield
rep = outcome.get_result()
if call.excinfo and isinstance(call.excinfo.value, pytest.skip.Exception):
if call.excinfo.value.msg == "manual":
rep.outcome = "manual"
@pytest.hookimpl(tryfirst=True)
def pytest_report_teststatus(report):
if report.outcome == "manual":
return "manual", "M", "MANUAL"
@pytest.hookimpl(tryfirst=True)
def pytest_collection_modifyitems(config, items):
run_manual = config.getoption("run_manual")
for item in items:
if item.get_closest_marker("manual") is not None and not run_manual:
item.add_marker(pytest.mark.skip("manual"))
bitter-ability-32190
04/08/2022, 4:35 PM[python-infer].assets
.
• Run test
• test fails "No such resource: XYZ"
• Add relevant BUILD.pants
• test succeeds
No need to declare the overrides: {"filename.py": dependencies: ["resourcepath1", "resourcepath2"]}
😈bitter-ability-32190
04/08/2022, 8:26 PMpython_distribution
)wide-midnight-78598
04/09/2022, 12:06 AMpackage
goals support encryption? Like if I wanted to output a symmetrically (or maybe asymmetrically) encrypted pex or tar for deployment somewhere?enough-analyst-54434
04/09/2022, 7:01 PMrhythmic-battery-45198
04/11/2022, 3:07 PMbitter-ability-32190
04/11/2022, 4:25 PMbuild_file_aliases
documented anywhere on the docsite?rhythmic-battery-45198
04/11/2022, 8:01 PMpex.environment.ResolveError
in 2.11.0rc2
Seems to be related to extra dependencies. Adding details to🧵faint-twilight-16124
04/11/2022, 11:02 PMsalmon-hydrogen-62903
04/12/2022, 11:34 AMgray-island-97118
04/12/2022, 1:05 PMfmt
, lint
, check
goals with the experimental terraform backend? Any pointers appreciated!wide-zoo-86070
04/12/2022, 3:02 PM[2022-04-12T14:27:05.810Z] 10:27:05.59 [INFO] Completed: Building mypy.pex from build-support/mypy_lockfile.txt
[2022-04-12T14:28:27.628Z] 10:28:22.84 [INFO] Long running tasks:
[2022-04-12T14:28:27.628Z] 86.52s Installing build-support/lockfile.txt for the resolve `python-default`
[2022-04-12T14:28:54.377Z] 10:28:52.92 [INFO] Long running tasks:
[2022-04-12T14:28:54.377Z] 116.60s Installing build-support/lockfile.txt for the resolve `python-default`
[2022-04-12T14:29:26.494Z] 10:29:22.95 [INFO] Long running tasks:
[2022-04-12T14:29:26.494Z] 146.63s Installing build-support/lockfile.txt for the resolve `python-default`
[2022-04-12T14:29:53.033Z] 10:29:52.98 [INFO] Long running tasks:
[2022-04-12T14:29:53.033Z] 176.66s Installing build-support/lockfile.txt for the resolve `python-default`
[2022-04-12T14:30:25.092Z] 10:30:23.03 [INFO] Long running tasks:
[2022-04-12T14:30:25.092Z] 206.71s Installing build-support/lockfile.txt for the resolve `python-default`
[2022-04-12T14:30:57.197Z] 10:30:53.08 [INFO] Long running tasks:
[2022-04-12T14:30:57.197Z] 236.76s Installing build-support/lockfile.txt for the resolve `python-default`
[2022-04-12T14:31:23.761Z] 10:31:23.12 [INFO] Long running tasks:
[2022-04-12T14:31:23.761Z] 266.80s Installing build-support/lockfile.txt for the resolve `python-default`
[2022-04-12T14:31:56.020Z] 10:31:53.18 [INFO] Long running tasks:
[2022-04-12T14:31:56.020Z] 296.86s Installing build-support/lockfile.txt for the resolve `python-default`
[2022-04-12T14:32:28.129Z] 10:32:23.22 [INFO] Long running tasks:
[2022-04-12T14:32:28.129Z] 326.90s Installing build-support/lockfile.txt for the resolve `python-default`
[2022-04-12T14:32:54.681Z] 10:32:53.28 [INFO] Long running tasks:
[2022-04-12T14:32:54.681Z] 356.96s Installing build-support/lockfile.txt for the resolve `python-default`
[2022-04-12T14:33:27.350Z] 10:33:23.34 [INFO] Long running tasks:
[2022-04-12T14:33:27.350Z] 387.02s Installing build-support/lockfile.txt for the resolve `python-default`
I am wondering if it is related to the cache issue in MyPy mentioned here https://www.pantsbuild.org/docs/python-check-goal#performance-is-often-slower-than-normal?bitter-ability-32190
04/12/2022, 3:07 PMmypy.pex
finished (probably quickly) Completed: Building mypy.pex from build-support/mypy_lockfile.txt
• What you're seeing is Pants installing of the dependencies in your resolve. Depending on the size of your resolve, or the size of those deps it can take a while.
◦ This also depends on your settings, which Pants version you're using, and if you're using the new PEX lockfiles
• The linked MyPy issue has to do with the performance of running mypy, which you haven't gotten to that step yet 😅bitter-ability-32190
04/12/2022, 3:08 PMwide-zoo-86070
04/12/2022, 3:11 PM