Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .github/bazel_version.json

This file was deleted.

25 changes: 6 additions & 19 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,29 +35,15 @@ concurrency:
cancel-in-progress: true

jobs:
load_versions:
name: "Load bazel versions for tests"
runs-on: ubuntu-24.04
outputs:
bazel_version: ${{ steps.generate_matrix.outputs.matrix_json }}
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Load versions
id: generate_matrix
run: |
JSON=$(jq -c . ./.github/bazel_version.json)
echo "matrix_json=$JSON" >> $GITHUB_OUTPUT

ubuntu_test:
name: "Tests: Bazel ${{ matrix.bazel_version }} (Ubuntu)"
runs-on: ubuntu-24.04
needs: load_versions
strategy:
fail-fast: false
matrix:
bazel_version: ${{ fromJson(needs.load_versions.outputs.bazel_version) }}
bazel_version:
- "7.7.1"
- "8.5.1"

steps:
- name: Checkout repository
Expand Down Expand Up @@ -116,11 +102,12 @@ jobs:
container:
image: redhat/ubi9:latest
options: --init
needs: load_versions
strategy:
fail-fast: false
matrix:
bazel_version: ${{ fromJson(needs.load_versions.outputs.bazel_version) }}
bazel_version:
- "7.7.1"
- "8.5.1"

steps:
- name: Checkout repository
Expand Down
9 changes: 1 addition & 8 deletions test/unit/external_repository/test_external_repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,7 @@ def test_compile_commands_external_lib(self):
"compile_commands.json",
)

# The ~override part is a consquence of using Bzlmod.
if self.BAZEL_VERSION.startswith("6"): # type: ignore
pattern1 = "-isystem external/external_lib~override/include"
pattern2 = (
"-isystem bazel-out/k8-fastbuild/bin/external/"
"external_lib~override/include"
)
elif self.BAZEL_VERSION.startswith("7"): # type: ignore
if self.BAZEL_VERSION.startswith("7"): # type: ignore
pattern1 = "-isystem external/external_lib~/include"
pattern2 = (
"-isystem bazel-out/k8-fastbuild/bin/external/"
Expand Down
Loading