Skip to content

fix(py): Resolve Java toolchain paths before the PEP 517 backend chdirs into the sdist #927

fix(py): Resolve Java toolchain paths before the PEP 517 backend chdirs into the sdist

fix(py): Resolve Java toolchain paths before the PEP 517 backend chdirs into the sdist #927

Workflow file for this run

name: CI - Aspect Workflows
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
permissions:
id-token: write
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
buildifier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: aspect-build/setup-aspect@c22a8f64fb38f82f59ce809cd7eb9f8ae096da44 # v2026.23.2
with:
aspect-api-token: ${{ secrets.ASPECT_API_TOKEN }}
- name: Buildifier
run: aspect buildifier --task-key=buildifier
gazelle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: aspect-build/setup-aspect@c22a8f64fb38f82f59ce809cd7eb9f8ae096da44 # v2026.23.2
with:
aspect-api-token: ${{ secrets.ASPECT_API_TOKEN }}
- name: Gazelle
run: aspect gazelle --task-key=gazelle
test:
name: test (${{ matrix.workspace.path }}, ${{ matrix.bazel.id }})
runs-on: ${{ matrix.workspace.runner }}
strategy:
fail-fast: false
matrix:
workspace:
- { path: ".", slug: "root", runner: "ubuntu-latest" }
- { path: "e2e/cases", slug: "e2e", runner: "ubuntu-22.04-32core" }
- { path: "e2e/interpreter-runtime-metadata", slug: "e2e-interpreter-runtime-metadata", runner: "ubuntu-latest" }
- { path: "e2e/interpreter-toolchain-settings", slug: "e2e-interpreter-toolchain-settings", runner: "ubuntu-latest" }
- { path: "e2e/interpreter-input-validation", slug: "e2e-interpreter-input-validation", runner: "ubuntu-latest" }
- { path: "e2e/rules-proto-grpc-python", slug: "e2e-rules-proto-grpc-python", runner: "ubuntu-22.04-32core" }
- { path: "examples/debugger", slug: "examples-debugger", runner: "ubuntu-latest" }
- { path: "examples/dev_deps", slug: "examples-dev_deps", runner: "ubuntu-latest" }
- { path: "examples/django", slug: "examples-django", runner: "ubuntu-latest" }
- { path: "examples/multi_version", slug: "examples-multi_version", runner: "ubuntu-latest" }
- { path: "examples/py_binary", slug: "examples-py_binary", runner: "ubuntu-latest" }
- { path: "examples/py_pex_binary", slug: "examples-py_pex_binary", runner: "ubuntu-latest" }
- { path: "examples/py_venv", slug: "examples-py_venv", runner: "ubuntu-latest" }
- { path: "examples/pytest", slug: "examples-pytest", runner: "ubuntu-latest" }
- { path: "examples/uv_pip_compile", slug: "examples-uv_pip_compile", runner: "ubuntu-latest" }
- { path: "examples/virtual_deps", slug: "examples-virtual_deps", runner: "ubuntu-latest" }
- { path: "examples/protobuf", slug: "examples-protobuf", runner: "ubuntu-22.04-32core" }
bazel:
# An empty version falls back to the workspace's .bazelversion, which validates
# the committed MODULE.bazel.lock; alternate versions may regenerate it instead.
- { id: "bazel-8", version: "", flags: "--bazel-flag=--test_tag_filters=-skip-on-bazel8 --bazel-flag=--lockfile_mode=error" }
- { id: "bazel-9", version: "9.x", flags: "--bazel-flag=--test_tag_filters=-skip-on-bazel9 --bazel-flag=--lockfile_mode=update" }
env:
USE_BAZEL_VERSION: ${{ matrix.bazel.version }}
steps:
- uses: actions/checkout@v6
- uses: aspect-build/setup-aspect@c22a8f64fb38f82f59ce809cd7eb9f8ae096da44 # v2026.23.2
with:
aspect-api-token: ${{ secrets.ASPECT_API_TOKEN }}
# Run `test //...`, then the workspace's test.sh if it has one
- name: Test
working-directory: ${{ matrix.workspace.path }}
run: |
aspect test --task-key=test-${{ matrix.workspace.slug }}-${{ matrix.bazel.id }} ${{ matrix.bazel.flags }} -- //...
if [ -f test.sh ]; then
bash test.sh
fi
test-all:
name: test-all
runs-on: ubuntu-latest
needs: test
if: always()
steps:
- name: All test matrix jobs succeeded
run: |
if [ "${{ needs.test.result }}" != "success" ]; then
echo "One or more test matrix jobs did not succeed: ${{ needs.test.result }}"
exit 1
fi