nutritious-carpenter-5676
09/17/2023, 11:45 PMBootstrapping Pants 2.17.0 using cpython 3.9.16nutritious-carpenter-5676
09/17/2023, 11:45 PM---
name: Pants
on:
pull_request:
branches:
- main
jobs:
build:
name: Run Pants on Codebase
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: pantsbuild/actions/init-pants@main
# This action bootstraps pants and manages 2-3 GHA caches.
# See: <http://github.com/pantsbuild/actions/tree/main/init-pants/|github.com/pantsbuild/actions/tree/main/init-pants/>
with:
gha-cache-key: v0
named-caches-hash: ${{ hashFiles('python-default.lock') }}
- name: Lint
run: |
pants lint ::
- name: Check BUILD files
run: |
pants tailor --check update-build-files --check ::
- name: Test
run: |
pants test ::
- name: Package
run: |
# We also smoke test that our release process will work
pants package ::
- name: Upload pants log
uses: actions/upload-artifact@v3
with:
name: pants-log
path: .pants.d/pants.log
if: always() # We want the log even on failures.nutritious-carpenter-5676
09/17/2023, 11:46 PMRun pants lint ::
23:44:07.24 [ERROR] 1 Exception encountered:
Engine traceback:
in `lint` goal
ProcessExecutionFailure: Process 'Find interpreter for constraints: CPython<4,>=3.7' failed with exit code 102.
stdout:
stderr:
Could not find a compatible interpreter.
No interpreters could be found on the system.
Use `--keep-sandboxes=on_failure` to preserve the process chroot for inspection.
Error: Process completed with exit code 1.nutritious-carpenter-5676
09/17/2023, 11:53 PM<PATH> to directory for GHA to search:
[python-bootstrap]
search_path = [
"<PATH>",
"<PYENV>",
]happy-kitchen-89482
09/18/2023, 6:21 AMhappy-kitchen-89482
09/18/2023, 6:21 AMhappy-kitchen-89482
09/18/2023, 6:21 AMhappy-kitchen-89482
09/18/2023, 6:22 AMhappy-kitchen-89482
09/18/2023, 6:23 AMProcessExecutionFailure: Process 'Find interpreter for constraints: CPython<4,>=3.7' failed with exit code 102. is suspicious, those wide, open-ended ICs are usually not a good idea.curved-television-6568
09/18/2023, 1:26 PMWe should probably just remove that log line, it causes more confusion than its worthagree, it made sense to log the Python version when pants needed a pre-installed Python on the system, but with
scie-pants it’s become superfluous.nutritious-carpenter-5676
09/18/2023, 3:12 PMinterpreter_constraints = ["==3.11.*"]
and I got it working yesterday by adding <PATH> to the github actionnutritious-carpenter-5676
09/18/2023, 3:13 PM---
name: Pants
on:
pull_request:
branches:
- main
jobs:
build:
name: Run Pants on Codebase
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: pantsbuild/actions/init-pants@main
# This action bootstraps pants and manages 2-3 GHA caches.
# See: <http://github.com/pantsbuild/actions/tree/main/init-pants/|github.com/pantsbuild/actions/tree/main/init-pants/>
with:
gha-cache-key: v0
named-caches-hash: ${{ hashFiles('python-default.lock') }}
- name: Check BUILD files
run: |
pants tailor --check update-build-files --check ::
- name: Lint
run: |
pants lint ::
- name: Test
run: |
pants test ::
- name: Package
run: |
# We also smoke test that our release process will work
pants package ::
- name: Upload pants log
uses: actions/upload-artifact@v3
with:
name: pants-log
path: .pants.d/pants.log
if: always() # We want the log even on failures.nutritious-carpenter-5676
09/18/2023, 3:13 PM.python-version which is 3.11.5 which is what the GitHub setup-python action useshappy-kitchen-89482
09/18/2023, 5:10 PMFind interpreter for constraints: CPython<4,>=3.7 is probably because those are default constraints for tools, in this case whichever linters you have turned on