Runnin `❯ ./build-support/bin/release.sh tag-relea...
# development
c
Runnin
❯ ./build-support/bin/release.sh tag-release
for
2.17.x
fails for me now…
1
Copy code
13:41:09.35 [INFO] Completed: Building 10 requirements for py_scripts.pex from the 3rdparty/python/user_reqs.lock resolve: PyYAML<7.0,>=6.0, ansicolors==1.1.8, importlib_resources==5.0.*, packaging==21.3, requests[security]>=2.28.... (106 characters truncated)
13:41:09.38 [ERROR] 1 Exception encountered:

Engine traceback:
  in select
    ..
  in pants.core.goals.run.run
    `run` goal

Traceback (most recent call last):
  File "/Users/andreas.stenius/src/github/kaos/pants/src/python/pants/engine/internals/selectors.py", line 626, in native_engine_generator_send
    res = rule.send(arg) if err is None else rule.throw(throw or err)
  File "/Users/andreas.stenius/src/github/kaos/pants/src/python/pants/core/goals/run.py", line 296, in run
    else Get(RunDebugAdapterRequest, RunFieldSet, field_set)
  File "/Users/andreas.stenius/src/github/kaos/pants/src/python/pants/engine/internals/selectors.py", line 118, in __await__
    result = yield self
  File "/Users/andreas.stenius/src/github/kaos/pants/src/python/pants/engine/internals/selectors.py", line 626, in native_engine_generator_send
    res = rule.send(arg) if err is None else rule.throw(throw or err)
  File "/Users/andreas.stenius/src/github/kaos/pants/src/python/pants/backend/python/goals/run_python_source.py", line 60, in create_python_source_run_request
    run_in_sandbox=field_set.should_use_sandbox(python_setup),
  File "/Users/andreas.stenius/src/github/kaos/pants/src/python/pants/backend/python/goals/run_helper.py", line 95, in _create_python_source_run_request
    Get(PythonExecutable, InterpreterConstraints, pex_request.interpreter_constraints),
  File "/Users/andreas.stenius/src/github/kaos/pants/src/python/pants/engine/internals/selectors.py", line 512, in MultiGet
    return await _MultiGet((__arg0, __arg1))
  File "/Users/andreas.stenius/src/github/kaos/pants/src/python/pants/engine/internals/selectors.py", line 168, in __await__
    result = yield self.gets
  File "/Users/andreas.stenius/src/github/kaos/pants/src/python/pants/engine/internals/selectors.py", line 626, in native_engine_generator_send
    res = rule.send(arg) if err is None else rule.throw(throw or err)
  File "/Users/andreas.stenius/src/github/kaos/pants/src/python/pants/backend/python/util_rules/pex.py", line 1040, in create_venv_pex
    venv_pex_result = await Get(BuildPexResult, PexRequest, seeded_venv_request)
  File "/Users/andreas.stenius/src/github/kaos/pants/src/python/pants/engine/internals/selectors.py", line 118, in __await__
    result = yield self
  File "/Users/andreas.stenius/src/github/kaos/pants/src/python/pants/engine/internals/selectors.py", line 626, in native_engine_generator_send
    res = rule.send(arg) if err is None else rule.throw(throw or err)
  File "/Users/andreas.stenius/src/github/kaos/pants/src/python/pants/backend/python/util_rules/pex.py", line 730, in build_pex
    cache_scope=request.cache_scope,
  File "/Users/andreas.stenius/src/github/kaos/pants/src/python/pants/engine/internals/selectors.py", line 118, in __await__
    result = yield self
pants.engine.process.ProcessExecutionFailure: Process 'Building 10 requirements for py_scripts.pex from the 3rdparty/python/user_reqs.lock resolve: PyYAML<7.0,>=6.0, ansicolors==1.1.8, importlib_resources==5.0.*, packaging==21.3, requests[security]>=2.28.1, toml==0.10.2, types-PyYAML==6.0.3, types-requests==2.28.1, types-toml==0.10.8, typing-extensions==4.3.0' failed with exit code 1.
stdout:

stderr:
There was 1 error downloading required artifacts:
1. pyyaml 6 from <https://files.pythonhosted.org/packages/36/2b/61d51a2c4f25ef062ae3f74576b01638bebad5e045f747ff12643df63844/PyYAML-6.0.tar.gz>
    note: This error originates from a subprocess, and is likely not a problem with pip.
going into the sandbox, I get some more details:
Copy code
Collecting <https://files.pythonhosted.org/packages/36/2b/61d51a2c4f25ef062ae3f74576b01638bebad5e045f747ff12643df63844/PyYAML-6.0.tar.gz>
  Created temporary directory: /Users/andreas.stenius/.cache/pants/named_caches/pex_root/pip_cache/.tmp/pip-req-build-hg3vk874
  Created temporary directory: /Users/andreas.stenius/.cache/pants/named_caches/pex_root/pip_cache/.tmp/pip-unpack-c0ebyuph
  Looking up "<https://files.pythonhosted.org/packages/36/2b/61d51a2c4f25ef062ae3f74576b01638bebad5e045f747ff12643df63844/PyYAML-6.0.tar.gz>" in the cache
  Current age based on date: 456
  Ignoring unknown cache-control directive: immutable
  Freshness lifetime from max-age: 365000000
  The response is "fresh", returning cached response
  365000000 > 456
  Using cached PyYAML-6.0.tar.gz (124 kB)
  Added <https://files.pythonhosted.org/packages/36/2b/61d51a2c4f25ef062ae3f74576b01638bebad5e045f747ff12643df63844/PyYAML-6.0.tar.gz> to build tracker '/Users/andreas.stenius/.cache/pants/named_caches/pex_root/pip_cache/.tmp/pip-build-tracker-531vap7_'
  Created temporary directory: /Users/andreas.stenius/.cache/pants/named_caches/pex_root/pip_cache/.tmp/pip-build-env-6c10i18n
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
Exception information:
Traceback (most recent call last):
  File "/Users/andreas.stenius/.cache/pants/named_caches/pex_root/venvs/ffd14ea6ad35e138cd78619cb1d7a53586ad1333/26206f86a43095c89a46831693c798eb92a902ac/lib/python3.7/site-packages/pip/_internal/cli/base_command.py", line 169, in exc_logging_wrapper
    status = run_func(*args)
  File "/Users/andreas.stenius/.cache/pants/named_caches/pex_root/venvs/ffd14ea6ad35e138cd78619cb1d7a53586ad1333/26206f86a43095c89a46831693c798eb92a902ac/lib/python3.7/site-packages/pip/_internal/cli/req_command.py", line 248, in wrapper
    return func(self, options, args)
  File "/Users/andreas.stenius/.cache/pants/named_caches/pex_root/venvs/ffd14ea6ad35e138cd78619cb1d7a53586ad1333/26206f86a43095c89a46831693c798eb92a902ac/lib/python3.7/site-packages/pip/_internal/commands/download.py", line 132, in run
    requirement_set = resolver.resolve(reqs, check_supported_wheels=True)
  File "/Users/andreas.stenius/.cache/pants/named_caches/pex_root/venvs/ffd14ea6ad35e138cd78619cb1d7a53586ad1333/26206f86a43095c89a46831693c798eb92a902ac/lib/python3.7/site-packages/pip/_internal/resolution/legacy/resolver.py", line 185, in resolve
    discovered_reqs.extend(self._resolve_one(requirement_set, req))
  File "/Users/andreas.stenius/.cache/pants/named_caches/pex_root/venvs/ffd14ea6ad35e138cd78619cb1d7a53586ad1333/26206f86a43095c89a46831693c798eb92a902ac/lib/python3.7/site-packages/pip/_internal/resolution/legacy/resolver.py", line 509, in _resolve_one
    dist = self._get_dist_for(req_to_install)
  File "/Users/andreas.stenius/.cache/pants/named_caches/pex_root/venvs/ffd14ea6ad35e138cd78619cb1d7a53586ad1333/26206f86a43095c89a46831693c798eb92a902ac/lib/python3.7/site-packages/pip/_internal/resolution/legacy/resolver.py", line 462, in _get_dist_for
    dist = self.preparer.prepare_linked_requirement(req)
  File "/Users/andreas.stenius/.cache/pants/named_caches/pex_root/venvs/ffd14ea6ad35e138cd78619cb1d7a53586ad1333/26206f86a43095c89a46831693c798eb92a902ac/lib/python3.7/site-packages/pip/_internal/operations/prepare.py", line 516, in prepare_linked_requirement
    return self._prepare_linked_requirement(req, parallel_builds)
  File "/Users/andreas.stenius/.cache/pants/named_caches/pex_root/venvs/ffd14ea6ad35e138cd78619cb1d7a53586ad1333/26206f86a43095c89a46831693c798eb92a902ac/lib/python3.7/site-packages/pip/_internal/operations/prepare.py", line 636, in _prepare_linked_requirement
    self.check_build_deps,
  File "/Users/andreas.stenius/.cache/pants/named_caches/pex_root/venvs/ffd14ea6ad35e138cd78619cb1d7a53586ad1333/26206f86a43095c89a46831693c798eb92a902ac/lib/python3.7/site-packages/pip/_internal/operations/prepare.py", line 70, in _get_prepared_distribution
    finder, build_isolation, check_build_deps
  File "/Users/andreas.stenius/.cache/pants/named_caches/pex_root/venvs/ffd14ea6ad35e138cd78619cb1d7a53586ad1333/26206f86a43095c89a46831693c798eb92a902ac/lib/python3.7/site-packages/pip/_internal/distributions/sdist.py", line 48, in prepare_distribution_metadata
    self._install_build_reqs(finder)
  File "/Users/andreas.stenius/.cache/pants/named_caches/pex_root/venvs/ffd14ea6ad35e138cd78619cb1d7a53586ad1333/26206f86a43095c89a46831693c798eb92a902ac/lib/python3.7/site-packages/pip/_internal/distributions/sdist.py", line 118, in _install_build_reqs
    build_reqs = self._get_build_requires_wheel()
  File "/Users/andreas.stenius/.cache/pants/named_caches/pex_root/venvs/ffd14ea6ad35e138cd78619cb1d7a53586ad1333/26206f86a43095c89a46831693c798eb92a902ac/lib/python3.7/site-packages/pip/_internal/distributions/sdist.py", line 95, in _get_build_requires_wheel
    return backend.get_requires_for_build_wheel()
  File "/Users/andreas.stenius/.cache/pants/named_caches/pex_root/venvs/ffd14ea6ad35e138cd78619cb1d7a53586ad1333/26206f86a43095c89a46831693c798eb92a902ac/lib/python3.7/site-packages/pip/_internal/utils/misc.py", line 692, in get_requires_for_build_wheel
    return super().get_requires_for_build_wheel(config_settings=cs)
  File "/Users/andreas.stenius/.cache/pants/named_caches/pex_root/venvs/ffd14ea6ad35e138cd78619cb1d7a53586ad1333/26206f86a43095c89a46831693c798eb92a902ac/lib/python3.7/site-packages/pip/_vendor/pyproject_hooks/_impl.py", line 167, in get_requires_for_build_wheel
    'config_settings': config_settings
  File "/Users/andreas.stenius/.cache/pants/named_caches/pex_root/venvs/ffd14ea6ad35e138cd78619cb1d7a53586ad1333/26206f86a43095c89a46831693c798eb92a902ac/lib/python3.7/site-packages/pip/_vendor/pyproject_hooks/_impl.py", line 314, in _call_hook
    extra_environ=extra_environ
  File "/Users/andreas.stenius/.cache/pants/named_caches/pex_root/venvs/ffd14ea6ad35e138cd78619cb1d7a53586ad1333/26206f86a43095c89a46831693c798eb92a902ac/lib/python3.7/site-packages/pip/_internal/utils/subprocess.py", line 257, in runner
    spinner=spinner,
  File "/Users/andreas.stenius/.cache/pants/named_caches/pex_root/venvs/ffd14ea6ad35e138cd78619cb1d7a53586ad1333/26206f86a43095c89a46831693c798eb92a902ac/lib/python3.7/site-packages/pip/_internal/utils/subprocess.py", line 224, in call_subprocess
    raise error
pip._internal.exceptions.InstallationSubprocessError: Getting requirements to build wheel exited with 1
the root error message in the logs seems to be the
Copy code
Getting requirements to build wheel ... error
not sure what to do with that, or why that’s happening now (just ran the same thing OK for 2.18.x a few minutes earlier..)
b
As a workaround, I think I took the git command that it is trying to run and ran it manually outside of pants. Are you on an arm Mac too?
👍 1
(My vague memory is the root cause is Pyyaml being too old that it doesn’t have arm Mac wheels, for 2.17? Maybe?)
c
I’m on a arm Mac, yea
tagged as done, being unblocked by manually tagging the release commit. I did not resolve the root of the issue.
👍 1
b
sounds good, I'm hopefully we can ignore it: get 2.17.1 out the door and then never touch the 2.17.x branch again 🤞
🤞 1