From f897c4f42c15fcc31ea2f1dd322595e72fabd02b Mon Sep 17 00:00:00 2001 From: nlgripto <155116201+nlgripto@users.noreply.github.com> Date: Fri, 20 Dec 2024 16:28:36 +0000 Subject: [PATCH] update cov --- .github/workflows/clusterfuzz.yml | 29 ++++++++++++++++++++++------- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/.github/workflows/clusterfuzz.yml b/.github/workflows/clusterfuzz.yml index f777e7784d..4f15880014 100644 --- a/.github/workflows/clusterfuzz.yml +++ b/.github/workflows/clusterfuzz.yml @@ -10,6 +10,7 @@ jobs: env: MACHINE: linux_clang_haswell OBJ_DIR: build/linux/clang/haswell + COV_OBJ_DIR: build/linux/clang/haswell_cov EXTRAS: fuzz asan steps: - uses: actions/checkout@v4 @@ -21,26 +22,40 @@ jobs: - run: sudo apt update && sudo apt install -y zip - uses: asymmetric-research/clusterfuzz-fuzzbot-builder@main - name: Build fuzz tests + name: Build shared object (+asan) for fd_exec_sol_compat*.so with: command: make -j -Otarget lib - - name: List Artifacts + - uses: asymmetric-research/clusterfuzz-fuzzbot-builder@main + name: Build shared objects with coverage enabled + env: + OBJ_DIR: ${{ env.COV_OBJ_DIR }} + EXTRAS: fuzz llvm-cov + MACHINE: linux_clang_haswell + with: + command: make -j -Otarget lib + + + - name: List Artifacts, copy sources run: | ls ${{ env.OBJ_DIR }}/lib + ls ${{ env.COV_OBJ_DIR}}/lib + cd src && pwd > buildpwd && cd - + cp -r src/ ${{ env.COV_OBJ_DIR}}/libfd_exec_sol_compat_src/ + # we give it this path so that the glob hits. - - name: upload so artifact + - name: upload so artifacts uses: actions/upload-artifact@v4 with: - path: ${{ env.OBJ_DIR }}/lib/libfd_exec_sol_compat.so + path: ${{ env.OBJ_DIR }}/lib/libfd_exec_sol_compat*.so name: libfd_exec_sol_compat retention-days: 14 - - name: upload stubbed so artifact + - name: upload .so with cov uses: actions/upload-artifact@v4 with: - path: ${{ env.OBJ_DIR }}/lib/libfd_exec_sol_compat_stubbed.so - name: libfd_exec_sol_compat_stubbed + path: ${{ env.COV_OBJ_DIR }}/lib/libfd_exec_sol_compat* # includes ${{ env.COV_OBJ_DIR}}/lib/libfd_exec_sol_compat_src/ + name: libfd_exec_sol_compat_cov retention-days: 14