abundant-analyst-12845
01/11/2023, 8:47 AM./pants test ::
./pants test ::
08:44:38.18 [WARN] Failed to generate JUnit XML data for lambdas/hello_world/tests/test_hello_world.py.
08:44:38.18 [ERROR] Completed: Run Pytest - lambdas/hello_world/tests/test_hello_world.py failed (exit code 4).
ERROR: usage: pex [options] [file_or_dir] [file_or_dir] [...]
pex: error: unrecognized arguments: --report-skipped=
inifile: /tmp/pants-sandbox-q5Tr08/tox.ini
rootdir: /tmp/pants-sandbox-q5Tr08
abundant-analyst-12845
01/11/2023, 8:48 AM[GLOBAL]
pants_version = "2.14.0"
backend_packages.add = [
"pants.backend.python",
# "pants.backend.awslambda.python",
# "pants.backend.python.lint.docformatter",
# "pants.backend.python.lint.black",
# "pants.backend.python.lint.flake8",
# "pants.backend.python.lint.isort",
# "pants.backend.python.typecheck.mypy",
]
[anonymous-telemetry]
enabled = false
[source]
root_patterns = [
"/lambdas/hello_world"
]
[python]
interpreter_constraints = ["==3.9.*"]
enable_resolves = true
default_resolve = "common"
[python.resolves]
common = "3rdparty/python/common.lock"
[tailor]
ignore_paths = [
"backend/**",
"bootstrap/**",
"scripts/**",
"terraform/**",
]
abundant-analyst-12845
01/11/2023, 8:49 AMrefined-addition-53644
01/11/2023, 9:09 AMignore_path.add
instead of just ignore_path
../pants test <path-to-some-test-file>
refined-addition-53644
01/11/2023, 9:14 AMignore_paths.add
but inside [GLOBAL] add pants_ignore.add
to completely ignore any pants related activity
https://www.pantsbuild.org/docs/reference-global#pants_ignoreabundant-analyst-12845
01/11/2023, 9:17 AMrefined-addition-53644
01/11/2023, 9:19 AM[GLOBAL]
pants_ignore.add = [
"backend/**",
"bootstrap/**",
"scripts/**",
"terraform/**",]
I am just trying to check if with ::
pants isn’t running things where it’s not supposed to yet.abundant-analyst-12845
01/11/2023, 9:23 AMpants_ignore.add = [
"/tox.ini"
]
abundant-analyst-12845
01/11/2023, 9:23 AMx: error: unrecognized arguments: --report-skipped=
inifile: /tmp/pants-sandbox-q5Tr08/tox.ini
abundant-analyst-12845
01/11/2023, 9:23 AMrefined-addition-53644
01/11/2023, 9:24 AM./pants test <single_test_file_path>
abundant-analyst-12845
01/11/2023, 9:24 AMabundant-analyst-12845
01/11/2023, 9:24 AMabundant-analyst-12845
01/11/2023, 9:25 AMabundant-analyst-12845
01/11/2023, 9:26 AMtox.ini
file at the root of the project. which is being picked up by pantsabundant-analyst-12845
01/11/2023, 9:27 AMpants_ignore.add = [
"/tox.ini"
]
it seems to be workingabundant-analyst-12845
01/11/2023, 9:27 AMrefined-addition-53644
01/11/2023, 9:29 AMpants_ignore.add
and then slowly removing things where we wanted pants to run.
pants_ignore.add is like superset of tailor ignore. With tailor ignore, pants doesn’t check for any tailor specific things but might pick up things like you are experiencing. My understanding is also bit shaky though.abundant-analyst-12845
01/11/2023, 9:32 AM[GLOBAL]
pants_version = "2.14.0"
backend_packages.add = [
"pants.backend.python",
# "pants.backend.awslambda.python",
# "pants.backend.python.lint.docformatter",
# "pants.backend.python.lint.black",
# "pants.backend.python.lint.flake8",
# "pants.backend.python.lint.isort",
# "pants.backend.python.typecheck.mypy",
]
pants_ignore.add = [
"/tox.ini",
"backend/**",
"bootstrap/**",
"scripts/**",
"terraform/**",
]
[anonymous-telemetry]
enabled = false
[source]
root_patterns = [
"/lambdas/hello_world"
]
[python]
interpreter_constraints = ["==3.9.*"]
enable_resolves = true
default_resolve = "common"
[python.resolves]
common = "3rdparty/python/common.lock"
[tailor]
ignore_paths = [
"backend/**",
"bootstrap/**",
"scripts/**",
"terraform/**",
]
refined-addition-53644
01/11/2023, 9:35 AMabundant-analyst-12845
01/11/2023, 9:37 AMrefined-addition-53644
01/11/2023, 9:38 AMrefined-addition-53644
01/11/2023, 9:39 AMpants_ignore.add = [
"/tox.ini",
"backend/",
"bootstrap/",
"scripts/",
"terraform/",
]
abundant-analyst-12845
01/11/2023, 12:28 PMabundant-analyst-12845
01/11/2023, 12:29 PMtox.ini
file generated that errorabundant-analyst-12845
01/11/2023, 12:29 PMrefined-addition-53644
01/11/2023, 12:30 PM