Skip to content

Long Test

Long Test #1328

Workflow file for this run

name: Long Test
on:
pull_request:
types:
- labeled
- synchronize
- opened
- reopened
schedule:
- cron: "0 0 * * 1-5"
workflow_dispatch:
jobs:
long-asan:
name: ASAN
if: ${{ contains(github.event.pull_request.labels.*.name, 'run-long-test') || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' }}
runs-on: [self-hosted, 1ES.Pool=gha-scitt-pool]
container: mcr.microsoft.com/azurelinux/base/core:3.0
env:
# Fast unwinder only gives us partial stack traces in LeakSanitzer
# Alloc/dealloc mismatch has been disabled in CCF: https://github.com/microsoft/CCF/pull/5157
ASAN_OPTIONS: fast_unwind_on_malloc=0:alloc_dealloc_mismatch=0
CMAKE_BUILD_TYPE: Debug
BUILD_DEBUG_CCF_FROM_SOURCE: ON
steps:
- name: Setup environment
run: |
gpg --import /etc/pki/rpm-gpg/MICROSOFT-RPM-GPG-KEY
tdnf update -y
tdnf install -y --disablerepo azurelinux-official-ms-non-oss build-essential ca-certificates git
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
- name: Build
run: |
./scripts/setup-env.sh
./build.sh
- name: E2E tests
run: |
set +x
./run_functional_tests.sh
- name: "Upload logs"
if: success() || failure()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: logs-asan
path: |
/tmp/pytest-of-root/*current/*current/*.{out,err}
/tmp/pytest-of-root/*current/*current/config.json
if-no-files-found: warn
fuzz-api:
name: fuzz
if: ${{ contains(github.event.pull_request.labels.*.name, 'run-fuzz-test') || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' }}
runs-on: [self-hosted, 1ES.Pool=gha-scitt-pool]
container: mcr.microsoft.com/azurelinux/base/core:3.0
steps:
- name: Setup environment
run: |
gpg --import /etc/pki/rpm-gpg/MICROSOFT-RPM-GPG-KEY
tdnf update -y
tdnf install -y --disablerepo azurelinux-official-ms-non-oss build-essential ca-certificates git
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
- name: Build
run: |
./scripts/setup-env.sh
./build.sh
- name: Fuzz tests
run: |
set +x
./run_fuzz_tests.sh 2>&1 > fuzz.log
echo "Preview test output:"
grep -A 1 -B 20 "Number of tests" fuzz.log
- name: "Upload logs"
if: success() || failure()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: boofuzz-results
path: |
fuzz.log
if-no-files-found: warn