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
1 change: 1 addition & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
common --disk_cache=~/.cache/bazel-disk-cache
common --repository_cache=~/.cache/bazel-repo-cache
19 changes: 0 additions & 19 deletions .github/actions/logs/action.yml

This file was deleted.

7 changes: 2 additions & 5 deletions .github/actions/run-bazel-test/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Run Bazel Test
description: Run Bazel test and show logs on failure
description: Run a Bazel test target

inputs:
target:
Expand All @@ -11,7 +11,4 @@ runs:
steps:
- name: Run Bazel test
shell: bash
run: ./tool/bazel test ${{ inputs.target }} --test_output=errors

- uses: ./.github/actions/logs
if: always()
run: ./tool/bazel test ${{ inputs.target }} --test_output=streamed
21 changes: 18 additions & 3 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
name: Setup
description: Setup Bazel cache for CI jobs
description: Setup Bazel caches for CI jobs

# Caches three directories that match the paths configured in .bazelrc:
# - disk-cache: compiled build outputs (biggest speedup — avoids recompilation)
# - repo-cache: downloaded external dependencies (avoids re-downloading Go modules, protobuf, etc.)
# - bazelisk: the Bazel binary itself
#
# Cache key includes github.job so each CI job saves its own cache entry
# (otherwise concurrent jobs race on the same key and only one wins).
# github.run_id ensures the key never matches exactly, forcing actions/cache
# to always save — so the disk cache accumulates entries across runs.
# The restore-keys fallback restores from the most recent prior run of the
# same job (preferred), then same deps, then any.

runs:
using: composite
Expand All @@ -8,8 +20,11 @@ runs:
uses: actions/cache@v4
with:
path: |
~/.cache/bazel
~/.cache/bazel-disk-cache
~/.cache/bazel-repo-cache
~/.cache/bazelisk
key: bazel-${{ runner.os }}-${{ hashFiles('MODULE.bazel', 'go.mod', '.bazelversion') }}
key: bazel-${{ runner.os }}-${{ github.job }}-${{ hashFiles('MODULE.bazel', 'go.mod', 'go.sum', '.bazelversion', '.bazelrc') }}-${{ github.run_id }}
restore-keys: |
bazel-${{ runner.os }}-${{ github.job }}-${{ hashFiles('MODULE.bazel', 'go.mod', 'go.sum', '.bazelversion', '.bazelrc') }}-
bazel-${{ runner.os }}-${{ github.job }}-
bazel-${{ runner.os }}-
6 changes: 0 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ jobs:
- name: Run E2E tests
run: make e2e-test

- uses: ./.github/actions/logs

gateway-integration-test:
name: Gateway Integration Test
runs-on: ubuntu-latest
Expand All @@ -71,8 +69,6 @@ jobs:
- name: Run Gateway integration tests
run: make integration-test-gateway

- uses: ./.github/actions/logs

orchestrator-integration-test:
name: Orchestrator Integration Test
runs-on: ubuntu-latest
Expand All @@ -83,8 +79,6 @@ jobs:
- name: Run Orchestrator integration tests
run: make integration-test-orchestrator

- uses: ./.github/actions/logs

# ---------------------------------------------------------------------------
# EXTENSION TESTS
# ---------------------------------------------------------------------------
Expand Down
Loading