My Github action started failing overnight with th...
# general
b
My Github action started failing overnight with this error:
Copy code
Bootstrapping Pants using /opt/hostedtoolcache/Python/3.8.17/x64/bin/python3.8
Creating the virtualenv PEX.
Downloading the Pex PEX.
Traceback (most recent call last):
  File "<stdin>", line 4, in <module>
FileNotFoundError: [Errno 2] No such file or directory: 'pex'
SHA256 of <https://github.com/pantsbuild/pex/releases/download/v2.1.62/pex> is not as expected. Aborting.
Error: Process completed with exit code 1.
The action was working fine yesterday, and nothing about pants or the environment has changed since then. Any ideas?
The action itself is very simple:
Copy code
permissions:
  id-token: write
  contents: read # This is required for actions/checkout
jobs:
  unit-tests:
    name: Run unit tests
    runs-on: ubuntu-latest
    timeout-minutes: 20
    steps:
      - name: Checkout
        uses: actions/checkout@v3
        with:
          fetch-depth: 0
      - name: Install Python
        uses: actions/setup-python@v4
        with:
          python-version: "3.8"
      - name: Configure AWS credentials
        uses: aws-actions/configure-aws-credentials@v1
        with:
          role-to-assume: arn:aws:iam::***:role/github-actions
          aws-region: us-west-2
      - name: Install GDAL
        run: |
          sudo apt-add-repository ppa:ubuntugis/ubuntugis-unstable
          sudo apt-get update
          sudo apt-get install gdal-bin libgdal-dev
      - name: Run unit tests and get coverage
        run: |
          set -e
          set -o pipefail
          ./pants --changed-since=origin/main --changed-dependees=transitive test
Failure happens on the
Run unit tests and get coverage
step
I should point out that several other actions were run successfully at the same time as this one, and they include the line
SHA256 fingerprint of <https://github.com/pantsbuild/pex/releases/download/v2.1.62/pex> verified.
So for some reason, it's only that action that is having trouble with the pex release.
b
Is it failing reliably in that job?
b
Yes. Reruns fail consistently.
Actually it looks like it cleared itself out overnight, it's working now.