Skip to content
Draft
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
4 changes: 2 additions & 2 deletions .github/workflows/staleness_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
if: ${{ github.event.repository.full_name == 'protocolbuffers/protobuf' }}
steps:
- name: Checkout
uses: protocolbuffers/protobuf-ci/checkout@v5
uses: protocolbuffers/protobuf-ci/checkout@test-cache3
with:
ref: ${{ inputs.safe-checkout }}

Expand All @@ -50,7 +50,7 @@ jobs:
# In branches where automatic updates work as post-submits, we don't want to run staleness
# tests along with user changes. Any stale files will be automatically fixed in a follow-up
# commit.
uses: protocolbuffers/protobuf-ci/bazel@v5
uses: protocolbuffers/protobuf-ci/bazel@test-cache3
with:
version: 8.0.1 # Bazel version
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/test_bazel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
steps:
- name: Checkout pending changes
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
uses: protocolbuffers/protobuf-ci/checkout@v5
uses: protocolbuffers/protobuf-ci/checkout@test-cache3
with:
ref: ${{ inputs.safe-checkout }}

Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:

- name: Run tests
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
uses: protocolbuffers/protobuf-ci/bazel@v5
uses: protocolbuffers/protobuf-ci/bazel@test-cache3
with:
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
bazel-cache: examples-${{ matrix.bazelversion }}-${{ matrix.bzlmod }}-${{ matrix.toolchain_resolution }}
Expand All @@ -94,13 +94,13 @@ jobs:
steps:
- name: Checkout pending changes
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
uses: protocolbuffers/protobuf-ci/checkout@v5
uses: protocolbuffers/protobuf-ci/checkout@test-cache3
with:
ref: ${{ inputs.safe-checkout }}

- name: Run tests
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
uses: protocolbuffers/protobuf-ci/bazel@v5
uses: protocolbuffers/protobuf-ci/bazel@test-cache3
with:
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
bazel-cache: examples-prebuilt-${{ matrix.bazelversion }}-${{ matrix.toolchain_resolution }}
Expand All @@ -116,11 +116,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout pending changes
uses: protocolbuffers/protobuf-ci/checkout@v5
uses: protocolbuffers/protobuf-ci/checkout@test-cache3
with:
ref: ${{ inputs.safe-checkout }}
- name: Run tests
uses: protocolbuffers/protobuf-ci/bazel-docker@v5
uses: protocolbuffers/protobuf-ci/bazel-docker@test-cache3
with:
image: us-docker.pkg.dev/protobuf-build/containers/common/linux/bazel:8.0.1-d415763a389bb62a6f126b08c992e83f9f7dc1b4
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
Expand All @@ -136,11 +136,11 @@ jobs:
runs-on: ${{ matrix.runner }}
steps:
- name: Checkout pending changes
uses: protocolbuffers/protobuf-ci/checkout@v5
uses: protocolbuffers/protobuf-ci/checkout@test-cache3
with:
ref: ${{ inputs.safe-checkout }}
- name: Run tests
uses: protocolbuffers/protobuf-ci/bazel@v5
uses: protocolbuffers/protobuf-ci/bazel@test-cache3
with:
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
bazel-cache: "bazel-tests-${{ matrix.runner }}"
Expand Down
60 changes: 30 additions & 30 deletions .github/workflows/test_cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ jobs:
steps:
- name: Checkout pending changes
if: ${{ !matrix.config.continuous-only || inputs.continuous-run }}
uses: protocolbuffers/protobuf-ci/checkout@v5
uses: protocolbuffers/protobuf-ci/checkout@test-cache3
with:
ref: ${{ inputs.safe-checkout }}
- name: Run tests
if: ${{ !matrix.config.continuous-only || inputs.continuous-run }}
uses: protocolbuffers/protobuf-ci/bazel-docker@v5
uses: protocolbuffers/protobuf-ci/bazel-docker@test-cache3
with:
image: ${{ matrix.image }}
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
Expand All @@ -84,12 +84,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout pending changes
uses: protocolbuffers/protobuf-ci/checkout@v5
uses: protocolbuffers/protobuf-ci/checkout@test-cache3
if: ${{ !matrix.config.continuous-only || inputs.continuous-run }}
with:
ref: ${{ inputs.safe-checkout }}
- name: Run tests
uses: protocolbuffers/protobuf-ci/bazel-docker@v5
uses: protocolbuffers/protobuf-ci/bazel-docker@test-cache3
if: ${{ !matrix.config.continuous-only || inputs.continuous-run }}
with:
image: us-docker.pkg.dev/protobuf-build/containers/test/linux/gcc:8.0.1-${{ matrix.version }}-e78301df86b3e4c46ec9ac4d98be00e19305d8f3
Expand All @@ -110,26 +110,26 @@ jobs:
steps:
- name: Checkout pending changes
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
uses: protocolbuffers/protobuf-ci/checkout@v5
uses: protocolbuffers/protobuf-ci/checkout@test-cache3
with:
ref: ${{ inputs.safe-checkout }}
- name: Cross compile protoc for ${{ matrix.arch }}
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
id: cross-compile
uses: protocolbuffers/protobuf-ci/cross-compile-protoc@v5
uses: protocolbuffers/protobuf-ci/cross-compile-protoc@test-cache3
with:
image: us-docker.pkg.dev/protobuf-build/containers/common/linux/bazel:8.0.1-d415763a389bb62a6f126b08c992e83f9f7dc1b4
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
architecture: linux-${{ matrix.arch }}
- name: Setup sccache
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
uses: protocolbuffers/protobuf-ci/sccache@v5
uses: protocolbuffers/protobuf-ci/sccache@test-cache3
with:
cache-prefix: linux-release-${{ matrix.arch }}
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
- name: Run tests
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
uses: protocolbuffers/protobuf-ci/docker@v5
uses: protocolbuffers/protobuf-ci/docker@test-cache3
with:
image: us-docker.pkg.dev/protobuf-build/containers/test/linux/emulation:8.0.1-${{ matrix.arch }}-168f9c9d015a0fa16611e1e9eede796fe9bfbb69
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
Expand Down Expand Up @@ -169,20 +169,20 @@ jobs:
steps:
- name: Checkout pending changes
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
uses: protocolbuffers/protobuf-ci/checkout@v5
uses: protocolbuffers/protobuf-ci/checkout@test-cache3
with:
ref: ${{ inputs.safe-checkout }}

- name: Setup sccache
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
uses: protocolbuffers/protobuf-ci/sccache@v5
uses: protocolbuffers/protobuf-ci/sccache@test-cache3
with:
cache-prefix: linux-cmake
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}

- name: Run tests
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
uses: protocolbuffers/protobuf-ci/docker@v5
uses: protocolbuffers/protobuf-ci/docker@test-cache3
with:
image: us-docker.pkg.dev/protobuf-build/containers/test/linux/cmake:3.16.9-9626718698895971df3953d4aa2321d7425f3c5f
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
Expand Down Expand Up @@ -211,20 +211,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout pending changes
uses: protocolbuffers/protobuf-ci/checkout@v5
uses: protocolbuffers/protobuf-ci/checkout@test-cache3
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
with:
ref: ${{ inputs.safe-checkout }}

- name: Setup sccache
uses: protocolbuffers/protobuf-ci/sccache@v5
uses: protocolbuffers/protobuf-ci/sccache@test-cache3
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
with:
cache-prefix: linux-cmake-install
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}

- name: Run tests
uses: protocolbuffers/protobuf-ci/docker@v5
uses: protocolbuffers/protobuf-ci/docker@test-cache3
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
with:
image: us-docker.pkg.dev/protobuf-build/containers/test/linux/cmake:3.16.9-9626718698895971df3953d4aa2321d7425f3c5f
Expand Down Expand Up @@ -278,7 +278,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout pending changes
uses: protocolbuffers/protobuf-ci/checkout@v5
uses: protocolbuffers/protobuf-ci/checkout@test-cache3
with:
ref: ${{ inputs.safe-checkout }}

Expand Down Expand Up @@ -310,20 +310,20 @@ jobs:
steps:
- name: Checkout pending changes
if: ${{ inputs.continuous-run }}
uses: protocolbuffers/protobuf-ci/checkout@v5
uses: protocolbuffers/protobuf-ci/checkout@test-cache3
with:
ref: ${{ inputs.safe-checkout }}

- name: Setup sccache
if: ${{ inputs.continuous-run }}
uses: protocolbuffers/protobuf-ci/sccache@v5
uses: protocolbuffers/protobuf-ci/sccache@test-cache3
with:
cache-prefix: linux-cmake-examples
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}

- name: Run tests
if: ${{ inputs.continuous-run }}
uses: protocolbuffers/protobuf-ci/docker@v5
uses: protocolbuffers/protobuf-ci/docker@test-cache3
with:
image: us-docker.pkg.dev/protobuf-build/containers/test/linux/cmake:3.16.9-9626718698895971df3953d4aa2321d7425f3c5f
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
Expand Down Expand Up @@ -352,20 +352,20 @@ jobs:
steps:
- name: Checkout pending changes
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
uses: protocolbuffers/protobuf-ci/checkout@v5
uses: protocolbuffers/protobuf-ci/checkout@test-cache3
with:
ref: ${{ inputs.safe-checkout }}

- name: Setup sccache
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
uses: protocolbuffers/protobuf-ci/sccache@v5
uses: protocolbuffers/protobuf-ci/sccache@test-cache3
with:
cache-prefix: linux-cmake-gcc
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}

- name: Run tests
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
uses: protocolbuffers/protobuf-ci/docker@v5
uses: protocolbuffers/protobuf-ci/docker@test-cache3
with:
image: us-docker.pkg.dev/protobuf-build/containers/test/linux/gcc:8.0.1-12.2-168f9c9d015a0fa16611e1e9eede796fe9bfbb69
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
Expand All @@ -384,18 +384,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout pending changes
uses: protocolbuffers/protobuf-ci/checkout@v5
uses: protocolbuffers/protobuf-ci/checkout@test-cache3
with:
ref: ${{ inputs.safe-checkout }}

- name: Setup sccache
uses: protocolbuffers/protobuf-ci/sccache@v5
uses: protocolbuffers/protobuf-ci/sccache@test-cache3
with:
cache-prefix: linux-cmake-32-bit
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}

- name: Run tests
uses: protocolbuffers/protobuf-ci/docker@v5
uses: protocolbuffers/protobuf-ci/docker@test-cache3
with:
image: us-docker.pkg.dev/protobuf-build/containers/test/linux/32bit@sha256:d6028ab408c49932836cdc514116f06886d7f6868a4d430630aa52adc5aee2fc
platform: linux/386
Expand Down Expand Up @@ -440,12 +440,12 @@ jobs:
steps:
- name: Checkout pending changes
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
uses: protocolbuffers/protobuf-ci/checkout@v5
uses: protocolbuffers/protobuf-ci/checkout@test-cache3
with:
ref: ${{ inputs.safe-checkout }}
- name: Run tests
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
uses: protocolbuffers/protobuf-ci/bazel@v5
uses: protocolbuffers/protobuf-ci/bazel@test-cache3
with:
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
bazel: ${{ matrix.bazel }}
Expand Down Expand Up @@ -500,7 +500,7 @@ jobs:
steps:
- name: Checkout pending changes
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
uses: protocolbuffers/protobuf-ci/checkout@v5
uses: protocolbuffers/protobuf-ci/checkout@test-cache3
with:
ref: ${{ inputs.safe-checkout }}

Expand All @@ -513,15 +513,15 @@ jobs:

- name: Setup sccache
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
uses: protocolbuffers/protobuf-ci/sccache@v5
uses: protocolbuffers/protobuf-ci/sccache@test-cache3
with:
cache-prefix: ${{ matrix.cache-prefix }}
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}

# Install phase.
- name: Configure CMake for install
if: ${{ matrix.install-flags && (!matrix.continuous-only || inputs.continuous-run) }}
uses: protocolbuffers/protobuf-ci/bash@v5
uses: protocolbuffers/protobuf-ci/bash@test-cache3
with:
bazel-version: 8.0.1
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
Expand All @@ -547,7 +547,7 @@ jobs:

- name: Configure CMake
if: ${{ !matrix.continuous-only || inputs.continuous-run }}
uses: protocolbuffers/protobuf-ci/bash@v5
uses: protocolbuffers/protobuf-ci/bash@test-cache3
with:
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
bazel-version: 8.0.1
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/test_csharp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ jobs:
runs-on: ubuntu-22-4core
steps:
- name: Checkout pending changes
uses: protocolbuffers/protobuf-ci/checkout@v5
uses: protocolbuffers/protobuf-ci/checkout@test-cache3
with:
ref: ${{ inputs.safe-checkout }}

# TODO Run this with Bazel once codegen is handled properly.
- name: Run tests
uses: protocolbuffers/protobuf-ci/docker@v5
uses: protocolbuffers/protobuf-ci/docker@test-cache3
with:
image: us-docker.pkg.dev/protobuf-build/containers/test/linux/csharp:8.0.1-3.1.415-6.0.100-b77fdae6d4771789dfc66a56bf8d806354e8011a
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
Expand All @@ -41,7 +41,7 @@ jobs:
run: sudo rm -rf _build .repository-cache

- name: Run conformance tests
uses: protocolbuffers/protobuf-ci/bazel-docker@v5
uses: protocolbuffers/protobuf-ci/bazel-docker@test-cache3
with:
image: us-docker.pkg.dev/protobuf-build/containers/test/linux/csharp:8.0.1-3.1.415-6.0.100-b77fdae6d4771789dfc66a56bf8d806354e8011a
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
Expand All @@ -53,7 +53,7 @@ jobs:
runs-on: windows-2022
steps:
- name: Checkout pending changes
uses: protocolbuffers/protobuf-ci/checkout@v5
uses: protocolbuffers/protobuf-ci/checkout@test-cache3
with:
ref: ${{ inputs.safe-checkout }}

Expand All @@ -63,7 +63,7 @@ jobs:
dotnet-version: '6.0.x'

- name: Run tests
uses: protocolbuffers/protobuf-ci/bash@v5
uses: protocolbuffers/protobuf-ci/bash@test-cache3
with:
bazel-version: 8.0.1
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
Expand All @@ -76,14 +76,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout pending changes
uses: protocolbuffers/protobuf-ci/checkout@v5
uses: protocolbuffers/protobuf-ci/checkout@test-cache3
with:
ref: ${{ inputs.safe-checkout }}

- name: Build protobuf C# tests under x86_64 docker image
# Tests are built "dotnet publish" because we want all the dependencies to the copied to the destination directory
# (we want to avoid references to ~/.nuget that won't be available in the subsequent docker run)
uses: protocolbuffers/protobuf-ci/docker@v5
uses: protocolbuffers/protobuf-ci/docker@test-cache3
with:
image: mcr.microsoft.com/dotnet/sdk:6.0.100-bullseye-slim
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
Expand All @@ -100,7 +100,7 @@ jobs:
# running under current user's UID and GID. To be able to do that, we need to provide a home directory for the user
# otherwise the UID would be homeless under the docker container and pip install wouldn't work. For simplicity,
# we just run map the user's home to a throwaway temporary directory
uses: protocolbuffers/protobuf-ci/docker@v5
uses: protocolbuffers/protobuf-ci/docker@test-cache3
with:
image: mcr.microsoft.com/dotnet/sdk:6.0.100-bullseye-slim-arm64v8
skip-staleness-check: true
Expand Down
Loading
Loading