Skip to content

Release Fuzz

Release Fuzz #645

Workflow file for this run

---
# This file defines a GitHub actions job that runs the fuzzing test suite for
# 10 minutes every weekday against the latest CompilerGym release. The job can
# also be scheduled manually using the GitHub actions UI.
#
# TODO(cummins): Set up https://github.com/JasonEtco/create-an-issue
# to create a boilerplate issue if `make fuzz` fails.
name: Release Fuzz
on:
workflow_dispatch:
schedule:
- cron: 0 9 * * 1-5 # every weekday at 9am
jobs:
fuzz:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Persist the bazel cache
uses: actions/cache@v2
with:
path: ~/.cache/bazel/_bazel_runner
key: bazel-${{ hashFiles('WORKSPACE') }}-${{ hashFiles('**/BUILD') }}
restore-keys: |
bazel-${{ hashFiles('WORKSPACE') }}-
bazel-
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install build dependencies
uses: ./.github/actions/install-build-dependencies
- name: Build and install Python wheel
run: make install
env:
CC: clang
CXX: clang++
BAZEL_OPTS: --batch
BAZEL_FETCH_OPTS: --config=ci
BAZEL_BUILD_OPTS: --config=ci
- name: Install runtime dependencies
uses: ./.github/actions/install-runtime-dependencies
- name: Install test dependencies
run: python -m pip install -r tests/requirements.txt
- name: Fuzz test
run: FUZZ_TIME=600 make fuzz