Skip to content

No public description #2709

No public description

No public description #2709

# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Bazel Test Centipede
on:
push:
branches:
- main
pull_request:
schedule:
# Triggered nightly at 8:00 AM UTC to reset the Bazel cache.
- cron: '0 8 * * *'
workflow_dispatch:
jobs:
run_tests_mac:
name: Run Centipede tests (MacOS)
runs-on: macos-13
timeout-minutes: 60
strategy:
matrix:
config: ['noriegeli']
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Restore latest cache
uses: actions/cache/restore@v4
with:
path: "~/.cache/bazel"
key: bazel-centipede-cache-mac-${{ matrix.config }}
restore-keys: bazel-centipede-cache-mac-${{ matrix.config }}-
- name: Add LLVM symbolizer to path
run: |
ln -s $(brew --prefix llvm@15)/bin/llvm-symbolizer /usr/local/bin
# - name: Run unit tests
# if: ${{ !cancelled() && matrix.config == 'noriegeli' }}
# run: |
# bazel test --local_test_jobs=1 --test_output=errors --no//fuzztest:use_riegeli --linkopt=-Wl,-undefined,dynamic_lookup centipede:all
- name: Run e2e tests without Riegeli
if: ${{ !cancelled() && matrix.config == 'noriegeli' }}
run: |
bazel test --test_output=streamed --no//fuzztest:use_riegeli --linkopt=-Wl,-undefined,dynamic_lookup centipede/testing:instrumentation_test centipede/testing:runner_test
- name: Run puzzles without Riegeli
if: ${{ !cancelled() && matrix.config == 'noriegeli' }}
run: |
bazel test --test_output=streamed --no//fuzztest:use_riegeli --linkopt=-Wl,-undefined,dynamic_lookup centipede/puzzles:run_1_per_input_timeout
# - name: Run puzzles without Riegeli with ASAN
# if: ${{ !cancelled() && matrix.config == 'noriegeli' }}
# run: |
# bazel test --no//fuzztest:use_riegeli --test_output=errors --linkopt=-Wl,-undefined,dynamic_lookup --linkopt=-fsanitize=address --copt=-fsanitize=address centipede/puzzles:all
- name: Save new cache based on main
if: github.ref == 'refs/heads/main'
uses: actions/cache/save@v4
with:
path: "~/.cache/bazel"
key: bazel-centipede-cache-mac-${{ matrix.config }}-${{ github.run_id }}