bitter-ability-32190
05/17/2023, 8:47 PMaffected=$(python build-support/bin/classify_changed_files.py ".github/workflows/auto-cherry-picker.yaml|build-support/bin/cherry_pick.sh|docs/markdown/Python/python/python-lockfiles.md|pants.toml|src/python/pants/backend/python/framework/django/BUILD|src/python/pants/backend/python/framework/django/dependency_inference.py|src/python/pants/backend/python/framework/django/dependency_inference_test.py|src/python/pants/backend/python/framework/django/detect_apps.py|src/python/pants/backend/python/framework/django/detect_apps_test.py|src/python/pants/backend/python/framework/django/scripts/BUILD|src/python/pants/backend/python/framework/django/scripts/dependency_visitor.py|src/python/pants/backend/python/subsystems/python_tool_base.py|src/python/pants/backend/python/subsystems/python_tool_base_test.py|src/python/pants/backend/python/util_rules/BUILD|src/python/pants/backend/python/util_rules/pex.py|src/python/pants/backend/python/util_rules/pex_from_targets.py|src/python/pants/backend/python/util_rules/pex_from_targets_test.py|src/python/pants/backend/python/util_rules/pex_requirements.py|src/python/pants/backend/python/util_rules/pex_test.py|src/python/pants/init/plugin_resolver.py")
bitter-ability-32190
05/17/2023, 9:19 PMpush
status isn't)bitter-ability-32190
05/18/2023, 2:04 AMmain
.
"Workflow File" leads to https://github.com/pantsbuild/pants/actions/runs/5009700926/workflowcareful-address-89803
05/18/2023, 2:55 AM./pants lint testprojects/src/helm:: -- --debug
? ArgsListOption
will handle the passthrough, I'm hoping to have some existing code for passing different args to subtasks for where it makes sense. For a concrete case, for deploying helm charts, we render the chart with helm template
and then deploy it with `helm upgrade`; some args are only valid for the upgrade
part, and we can filter them out of the ones we pass to template
.
Currently we only pass them through to upgrade
, which makes sense for, ex, --force
. But it's possible for the template
step to fail, and then --debug
would be helpful. See https://github.com/pantsbuild/pants/issues/18089gorgeous-winter-99296
05/18/2023, 1:13 PMpants --all-changed fix fmt test lint
on the pants-repo just deadlocked my whole WSL instance. Never had that happen before; though it tends to happen a lot with Bazel. Didn't find anything in the issue tracker for it so not sure how common it is. Unfortunately I didn't have any other shells open so can do no post-morteming... The bazel issue manifests as a deadlock in the kernels d_alloc
and is almost always triggered by go mod download
in the repo where I see it, likely some fs race condition... most likely due to the shims in WSL. All the dead processes will be in D
state in htop or similar tools, for uninterruptible sleep
.bitter-ability-32190
05/18/2023, 4:17 PMwitty-crayon-22786
05/18/2023, 6:13 PM2.16.0
is not released yet), i think that we should cut 2.17.0a0
and the 2.17.x
branch now to keep (closer to) our six week target.witty-crayon-22786
05/18/2023, 6:57 PMcolossal-cricket-45577
05/18/2023, 11:16 PMwitty-crayon-22786
05/19/2023, 3:05 AMmain
witty-family-13337
05/19/2023, 7:39 AMpantsbuild.pants.testutil
2.17.0a0. Getting the following error when running it from main
and can't find it either in https://pypi.org/project/pantsbuild.pants.testutil/#history
ERROR: Could not find a version that satisfies the requirement pantsbuild.pants.testutil<2.18,>=2.17.0a0
ERROR: No matching distribution found for pantsbuild.pants.testutil<2.18,>=2.17.0a0
curved-television-6568
05/19/2023, 11:51 AMpants.engine.target.InvalidFieldException: The target testprojects/src/python/native:main has the `interpreter_constraints` ('==3.9.*',), which are not a subset of the `interpreter_constraints` of some of its dependencies:
* ('==3.7.*',): testprojects/src/python/native/main.py:main_lib
* ('==3.7.*',): testprojects/src/python/native:dist
To fix this, you should likely adjust testprojects/src/python/native:main's `interpreter_constraints` to match the narrowest range in the above list.
from https://github.com/pantsbuild/pants/actions/runs/5018907494/jobs/9008981047?pr=17671#step:8:346
for https://github.com/pantsbuild/pants/pull/17671worried-painter-31382
05/19/2023, 1:27 PMbitter-ability-32190
05/19/2023, 3:20 PMs3
URL Handler, I'm seeing:
File "/home/ubuntu/.cache/nce/1239dc7f2c4e6bb57836aa10d4b93b4a7bd7016bedcb8ca326ef6b803855e362/bindings/venvs/2.16.0rc2/lib/python3.9/site-packages/pants/backend/url_handlers/s3/register.py", line 85, in download_from_s3
signer.add_auth(http_request)
File "/home/ubuntu/.cache/pants/named_caches/pex_root/venvs/s/1968668f/venv/lib/python3.9/site-packages/botocore/auth.py", line 833, in add_auth
signature = self.get_signature(
File "/home/ubuntu/.cache/pants/named_caches/pex_root/venvs/s/1968668f/venv/lib/python3.9/site-packages/botocore/auth.py", line 819, in get_signature
del headers['x-amz-security-token']
KeyError: 'x-amz-security-token'
Using botocore-a-la-carte
as a plugin.
I upstreamed the fix and is in PR: https://github.com/boto/botocore/pull/2948 who the hell knows when that goes in.
...I have no idea why this didn't fire earlier, or why the tests pass. The code in question is 9 years old.
So... might wanna 🍒 a Pants workaround 😕witty-crayon-22786
05/19/2023, 5:53 PMwitty-crayon-22786
05/19/2023, 7:22 PMbroad-processor-92400
05/19/2023, 8:50 PMwitty-crayon-22786
05/19/2023, 9:10 PM2.17.0a
release attempt with the new jobwide-midnight-78598
05/19/2023, 10:40 PMcython
or mypyc
called via a custom setup.py... Was that ever taken anywhere? I think it was a PR from @happy-kitchen-89482?wide-midnight-78598
05/20/2023, 5:33 PMbindings
? Want to make sure I'm not jumping the gun before I start debugging this
ERROR: No file named :hellofastapi.pex is stored in this scie.
...
[[lift.files]]
name = ":hellofastapi-pex"
[[lift.commands]]
exe = "{scie.bindings.venv}/venv/bin/uvicorn"
args = [ "hellofastapi.main:app",]
description = "The FastAPI executable."
[[lift.bindings]]
exe = "#{cpython:python}"
args = [ "{:hellofastapi.pex}", "venv", "--bin-path", "prepend", "--compile", "--rm", "all", "{scie.bindings}/venv",]
name = "venv"
description = "Installs HelloFastAPI into a venv and pre-compiles .pyc"
[lift.bindings.env]
default = { "=PATH" = "{cpython}/python/bin:{scie.env.PATH}", "PEX_TOOLS" = "1", "PEX_ROOT" = "{scie.bindings}/pex_root" }
flat-zoo-31952
05/20/2023, 8:45 PMwide-midnight-78598
05/21/2023, 6:40 PMBootstrapping Pants 2.17.0a1 using cpython 3.9.15
Installing pantsbuild.pants==2.17.0a1 into a virtual environment at /Users/sj/Library/Caches/nce/2351f91ce4510094a8c79af7e3578ac7f71d3918106e3b86ddf7cee196084d4a/bindings/venvs/2.17.0a1
New virtual environment successfully created at /Users/sj/Library/Caches/nce/2351f91ce4510094a8c79af7e3578ac7f71d3918106e3b86ddf7cee196084d4a/bindings/venvs/2.17.0a1.
Error: Failed to exec "/Users/sj/Library/Caches/nce/2351f91ce4510094a8c79af7e3578ac7f71d3918106e3b86ddf7cee196084d4a/bindings/venvs/2.17.0a1/lib/python3.9/site-packages/pants/bin/native_client" with argv ["/Users/sj/Library/Caches/nce/2351f91ce4510094a8c79af7e3578ac7f71d3918106e3b86ddf7cee196084d4a/bindings/venvs/2.17.0a1/lib/python3.9/site-packages/pants/bin/native_client", "--python-repos-find-links=-[\'file:///Users/sj/Library/Caches/nce/2351f91ce4510094a8c79af7e3578ac7f71d3918106e3b86ddf7cee196084d4a/bindings/find_links/2.17.0a1/a577739f/index.html\']", "--version"]: EACCES: Permission denied
polite-garden-50641
05/22/2023, 4:58 PMflat-zoo-31952
05/22/2023, 5:08 PMwitty-crayon-22786
05/22/2023, 7:48 PMdocker
client code needs to consume them as environment variables, without forking a few libraries to allow for explicitly passing them).
but that has proved to be a losing battle. some users are still encountering variables (likely specific to particular auth backends).
i’m trying to decide between:
1. adding (yet another) option to allow folks to set which variables are preserved
2. giving up on trying to sandbox env vars in pantsd
, and/or adjusting how we sandbox so that it only applies to pythonbroad-processor-92400
05/23/2023, 2:32 AMcareful-address-89803
05/23/2023, 4:49 AMhappy-kitchen-89482
05/23/2023, 1:59 PMhappy-kitchen-89482
05/23/2023, 2:37 PMwitty-crayon-22786
05/23/2023, 5:53 PM2.16.x
?