calm-ambulance-65371
08/24/2022, 9:42 PM[python-repo].indexes.add
stuff. Any thoughts?calm-ambulance-65371
08/24/2022, 9:44 PMwitty-crayon-22786
08/24/2022, 9:44 PMcurl
?calm-ambulance-65371
08/24/2022, 9:44 PMcalm-ambulance-65371
08/24/2022, 9:44 PMwitty-crayon-22786
08/24/2022, 9:47 PMcalm-ambulance-65371
08/24/2022, 9:48 PMcalm-ambulance-65371
08/24/2022, 9:48 PMwitty-crayon-22786
08/24/2022, 9:48 PMcalm-ambulance-65371
08/24/2022, 9:49 PMwitty-crayon-22786
08/24/2022, 9:49 PMwitty-crayon-22786
08/24/2022, 9:49 PMwitty-crayon-22786
08/24/2022, 9:51 PM-ldebug
, and capture the full arguments of the failing resolve and see if you see anything suspicious
2. run with --no-process-cleanup
and see if you can reproduce the failure viaenough-analyst-54434
08/24/2022, 10:26 PMenough-analyst-54434
08/24/2022, 10:30 PMcalm-ambulance-65371
08/24/2022, 10:37 PMcalm-ambulance-65371
08/24/2022, 10:37 PMcalm-ambulance-65371
08/24/2022, 10:42 PMenough-analyst-54434
08/24/2022, 10:57 PMcalm-ambulance-65371
08/25/2022, 2:11 PMenough-analyst-54434
08/25/2022, 2:21 PMcalm-ambulance-65371
08/25/2022, 2:40 PMcalm-ambulance-65371
08/25/2022, 2:41 PMcalm-ambulance-65371
08/25/2022, 2:41 PMcalm-ambulance-65371
08/25/2022, 2:42 PMcalm-ambulance-65371
08/25/2022, 2:42 PMhundreds-father-404
08/25/2022, 2:44 PMenough-analyst-54434
08/25/2022, 3:00 PMcalm-ambulance-65371
08/25/2022, 3:03 PMcalm-ambulance-65371
08/25/2022, 3:04 PMcalm-ambulance-65371
08/25/2022, 3:04 PMProcessExecutionFailure: Process 'Generate lockfile for plugins' failed with exit code 1.
stdout:
stderr:
ERROR: Could not find a version that satisfies the requirement pantsbuild.pants.testutil<2.13,>=2.12.0a0
ERROR: No matching distribution found for pantsbuild.pants.testutil<2.13,>=2.12.0a0
calm-ambulance-65371
08/25/2022, 3:05 PMCython
and pants_requirements()
calm-ambulance-65371
08/25/2022, 3:05 PMcalm-ambulance-65371
08/25/2022, 3:07 PMstepping back, the key bit of information you gave was you made no changes. So Pants 2.12 worked and then it didn't suddenly was my take. Can you confirm this is true?To add as much information as I can: Our CI broke early yesterday morning (before any merges had gone in) with the above error in our early on
package
step. Our initial thought was the access token for our single private dependency had expired, but this turned out to not be the case.calm-ambulance-65371
08/25/2022, 3:08 PMlockfile_generator='pex'
, and hardcoding creds using the https:<username>:<password>@url
format in indexes.add
calm-ambulance-65371
08/25/2022, 3:23 PMcalm-ambulance-65371
08/25/2022, 3:23 PMenough-analyst-54434
08/25/2022, 3:24 PMhundreds-father-404
08/25/2022, 3:24 PMwas there an update to pex or any of it's dependencies recently?But bump that you can experiment with different versions of Pex by changing the
[pex-cli]
optionsenough-analyst-54434
08/25/2022, 3:25 PMenough-analyst-54434
08/25/2022, 3:25 PMcalm-ambulance-65371
08/25/2022, 3:25 PMcalm-ambulance-65371
08/25/2022, 3:25 PMenough-analyst-54434
08/25/2022, 3:25 PMenough-analyst-54434
08/25/2022, 3:25 PMcalm-ambulance-65371
08/25/2022, 3:25 PMcalm-ambulance-65371
08/25/2022, 3:26 PMenough-analyst-54434
08/25/2022, 3:26 PMenough-analyst-54434
08/25/2022, 3:26 PMcalm-ambulance-65371
08/25/2022, 3:30 PMenough-analyst-54434
08/25/2022, 3:30 PM[pex-cli]
version = "v2.1.90"
known_versions = [
"v2.1.90|macos_arm64|2781255baf77c2a8fdc85c5e830f7191a6048fd91d2e20b5c7a20e5a0b7beb66|3755345",
"v2.1.90|macos_x86_64|2781255baf77c2a8fdc85c5e830f7191a6048fd91d2e20b5c7a20e5a0b7beb66|3755345",
"v2.1.90|linux_x86_64|2781255baf77c2a8fdc85c5e830f7191a6048fd91d2e20b5c7a20e5a0b7beb66|3755345"
]
I'll get you some updated hashes and sizes...calm-ambulance-65371
08/25/2022, 3:32 PMcalm-ambulance-65371
08/25/2022, 3:33 PMenough-analyst-54434
08/25/2022, 3:33 PMenough-analyst-54434
08/25/2022, 3:36 PM[pex-cli]
version = "v2.1.103"
known_versions = [
"v2.1.103|macos_arm64|4d45336511484100ae4e2bab24542a8b86b12c8cb89230463593c60d08c4b8d3|3814407",
"v2.1.103|macos_x86_64|4d45336511484100ae4e2bab24542a8b86b12c8cb89230463593c60d08c4b8d3|3814407",
"v2.1.103|linux_x86_64|4d45336511484100ae4e2bab24542a8b86b12c8cb89230463593c60d08c4b8d3|3814407"
]
Or Just the immediate fix for lock auth in 2.1.93:
[pex-cli]
version = "v2.1.93"
known_versions = [
"v2.1.93|macos_arm64|80fc6b94f5db253a71061974cb8d8ce520932aef44d989e9057917cc33a30fd6|3802280",
"v2.1.93|macos_x86_64|80fc6b94f5db253a71061974cb8d8ce520932aef44d989e9057917cc33a30fd6|3802280",
"v2.1.93|linux_x86_64|80fc6b94f5db253a71061974cb8d8ce520932aef44d989e9057917cc33a30fd6|3802280"
]
calm-ambulance-65371
08/25/2022, 3:38 PMcalm-ambulance-65371
08/25/2022, 3:49 PMhundreds-father-404
08/25/2022, 4:04 PMok, bumping the version appeared to fix it.Great!
I'm still seeing errors when trying to rebuild our plugins lockfileWhich errors?
calm-ambulance-65371
08/25/2022, 4:08 PM11:07:53.04 [ERROR] 1 Exception encountered:
ProcessExecutionFailure: Process 'Generate lockfile for plugins' failed with exit code 1.
stdout:
stderr:
pid 149055 -> /home/noah/.cache/pants/named_caches/pex_root/venvs/1d025be2b3d2024670ccbfbce824218209fcd325/ddab8011daaee380698ac2fb9701af18c90c03f6/bin/python -sE /home/noah/.cache/pants/named_caches/pex_root/venvs/1d025be2b3d2024670ccbfbce824218209fcd325/ddab8011daaee380698ac2fb9701af18c90c03f6/pex --disable-pip-version-check --no-python-version-warning --exists-action a --no-input --isolated -q --cache-dir /home/noah/.cache/pants/named_caches/pex_root/pip_cache --log /tmp/pants-sandbox-dVr3ve/.tmp/pex-pip-log.8_l9nknb/pip.log download --dest /tmp/pants-sandbox-dVr3ve/.tmp/tmp_qufi1q_/usr.bin.python3.8 --requirement __pip_args.txt pantsbuild.pants.testutil<2.14,>=2.13.0a0 pantsbuild.pants<2.14,>=2.13.0a0 --index-url <https://pypi.org/simple/> --extra-index-url <redacted> --extra-index-url <redacted> --retries 5 --timeout 15 exited with 1 and STDERR:
ERROR: Could not find a version that satisfies the requirement pantsbuild.pants.testutil<2.14,>=2.13.0a0
ERROR: No matching distribution found for pantsbuild.pants.testutil<2.14,>=2.13.0a0
calm-ambulance-65371
08/25/2022, 4:09 PMcalm-ambulance-65371
08/25/2022, 4:09 PMpants_requirements(
resolve="plugins"
)
python_sources(
name="pants-plugins0",
resolve="plugins"
)
hundreds-father-404
08/25/2022, 4:12 PMtestutil=False
on the pants_requirement
target?calm-ambulance-65371
08/25/2022, 4:20 PM11:20:11.45 [ERROR] 1 Exception encountered:
ProcessExecutionFailure: Process 'Generate lockfile for plugins' failed with exit code 1.
stdout:
stderr:
pid 159395 -> /home/noah/.cache/pants/named_caches/pex_root/venvs/1d025be2b3d2024670ccbfbce824218209fcd325/ddab8011daaee380698ac2fb9701af18c90c03f6/bin/python -sE /home/noah/.cache/pants/named_caches/pex_root/venvs/1d025be2b3d2024670ccbfbce824218209fcd325/ddab8011daaee380698ac2fb9701af18c90c03f6/pex --disable-pip-version-check --no-python-version-warning --exists-action a --no-input --isolated -q --cache-dir /home/noah/.cache/pants/named_caches/pex_root/pip_cache --log /tmp/pants-sandbox-uyyliU/.tmp/pex-pip-log.pgz9g8ks/pip.log download --dest /tmp/pants-sandbox-uyyliU/.tmp/tmp5wqgsfe6/usr.bin.python3.8 --requirement __pip_args.txt pantsbuild.pants<2.14,>=2.13.0a0 --index-url <https://pypi.org/simple/> --extra-index-url <redacted> --extra-index-url <redacted> --retries 5 --timeout 15 exited with 1 and STDERR:
ERROR: Could not find a version that satisfies the requirement pantsbuild.pants<2.14,>=2.13.0a0
ERROR: No matching distribution found for pantsbuild.pants<2.14,>=2.13.0a0
Use `--keep-sandboxes=on_failure` to preserve the process chroot for inspection.
calm-ambulance-65371
08/25/2022, 4:20 PMhundreds-father-404
08/25/2022, 4:23 PM[python].interpreter_constraints
, and if you set it, [python].resolves_to_interpreter_constraints
?calm-ambulance-65371
08/25/2022, 4:25 PM[python]
interpreter_constraints = [">=3.8.*,<3.11"]
enable_resolves = true
default_resolve = '<redacted>'
lockfile_generator = 'pex'
calm-ambulance-65371
08/25/2022, 4:26 PMenough-analyst-54434
08/25/2022, 4:26 PMpants_requirements
gizmo and use a plain old pinned requirement that matches what you need. A confounding angle here may be:
$ pip download --help
...
--pre Include pre-release and development versions. By default, pip only finds stable versions.
enough-analyst-54434
08/25/2022, 4:27 PM--pre
mode automatically. The ranged requirement may be foiling it?calm-ambulance-65371
08/25/2022, 4:27 PM2.12.0
calm-ambulance-65371
08/25/2022, 4:27 PMenough-analyst-54434
08/25/2022, 4:27 PMcalm-ambulance-65371
08/25/2022, 4:27 PMhundreds-father-404
08/25/2022, 4:28 PM[python]
resolves_to_interpreter_constraints = { plugin = [">=3.8,<3.10"]
enough-analyst-54434
08/25/2022, 4:28 PMhundreds-father-404
08/25/2022, 4:29 PM[python].resolves_to_interpreter_constraints
is not set, then we default to [python].interpreter_constraints
, so here ">=3.8.*,<3.11"
. Pants isn't released for 3.10, so maybe Pex is failing to lock for that reason
Now, unclear why this was working before. That would be the next question, if this fixes itenough-analyst-54434
08/25/2022, 4:30 PMenough-analyst-54434
08/25/2022, 4:30 PMcalm-ambulance-65371
08/25/2022, 4:31 PMcalm-ambulance-65371
08/25/2022, 4:31 PMenough-analyst-54434
08/25/2022, 4:31 PMcalm-ambulance-65371
08/25/2022, 4:31 PMhundreds-father-404
08/25/2022, 4:31 PMinterpreter_constraints
field for any python_source
and python_tests
targets that belong to resolve=plugin
to use >=3.8,<3.10
. See https://www.pantsbuild.org/docs/plugins-overview#building-in-repo-plugins-with-pantsenough-analyst-54434
08/25/2022, 4:32 PMcalm-ambulance-65371
08/25/2022, 4:32 PMcalm-ambulance-65371
08/25/2022, 4:32 PMenough-analyst-54434
08/25/2022, 4:32 PMhundreds-father-404
08/25/2022, 4:33 PMthere's no updates needed, nothing there had particular constraintsThey will thus default to
[python].interpreter_constraints
, which includes 3.10. Invalid. So you need to override the default by manually setting the fieldenough-analyst-54434
08/25/2022, 4:33 PMcalm-ambulance-65371
08/25/2022, 4:39 PMenough-analyst-54434
08/25/2022, 4:39 PMenough-analyst-54434
08/25/2022, 4:40 PMcalm-ambulance-65371
08/25/2022, 4:49 PMenough-analyst-54434
08/25/2022, 4:59 PMenough-analyst-54434
08/25/2022, 5:01 PMenough-analyst-54434
08/25/2022, 5:10 PMenough-analyst-54434
08/25/2022, 5:11 PMcalm-ambulance-65371
08/25/2022, 5:16 PM