diff --git a/.github/template/template.yml b/.github/template/template.yml index 8164b0c7..ccad4ddf 100644 --- a/.github/template/template.yml +++ b/.github/template/template.yml @@ -164,6 +164,16 @@ jobs: cargo +${{ env.RUST_TOOLCHAIN_NIGHTLY }} build --all --target x86_64-unknown-linux-gnu mkdir -p $GITHUB_WORKSPACE/foyer-data/foyer-storage-bench/asan timeout 2m ./target/x86_64-unknown-linux-gnu/debug/foyer-storage-bench --dir $GITHUB_WORKSPACE/foyer-data/foyer-storage-bench/asan --capacity 256 --region-size 16 --lookup-range 1000 --w-rate 1 --r-rate 1 --ticket-insert-rate-limit 10 --time 60 + - name: Prepare Artifacts on Failure + if: ${{ failure() }} + run: |- + find ./target/x86_64-unknown-linux-gnu/debug/ -type f -executable -name 'foyer*' -print0 | xargs -0 tar czvf artifacts.asan.tgz --transform 's#.*/##' + - name: Upload Artifacts on Failure + uses: actions/upload-artifact@v4 + if: ${{ failure() }} + with: + name: artifacts.asan.tgz + path: artifacts.asan.tgz lsan: name: run with leak saniziter runs-on: ubuntu-latest @@ -200,6 +210,16 @@ jobs: cargo +${{ env.RUST_TOOLCHAIN_NIGHTLY }} build --all --target x86_64-unknown-linux-gnu mkdir -p $GITHUB_WORKSPACE/foyer-data/foyer-storage-bench/lsan timeout 2m ./target/x86_64-unknown-linux-gnu/debug/foyer-storage-bench --dir $GITHUB_WORKSPACE/foyer-data/foyer-storage-bench/lsan --capacity 256 --region-size 16 --lookup-range 1000 --w-rate 1 --r-rate 1 --ticket-insert-rate-limit 10 --time 60 + - name: Prepare Artifacts on Failure + if: ${{ failure() }} + run: |- + find ./target/x86_64-unknown-linux-gnu/debug/ -type f -executable -name 'foyer*' -print0 | xargs -0 tar czvf artifacts.lsan.tgz --transform 's#.*/##' + - name: Upload Artifacts on Failure + uses: actions/upload-artifact@v4 + if: ${{ failure() }} + with: + name: artifacts.lsan.tgz + path: artifacts.lsan.tgz deterministic-test: name: run deterministic test runs-on: ubuntu-latest diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d9efce08..2e3bac35 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -171,6 +171,16 @@ jobs: cargo +${{ env.RUST_TOOLCHAIN_NIGHTLY }} build --all --target x86_64-unknown-linux-gnu mkdir -p $GITHUB_WORKSPACE/foyer-data/foyer-storage-bench/asan timeout 2m ./target/x86_64-unknown-linux-gnu/debug/foyer-storage-bench --dir $GITHUB_WORKSPACE/foyer-data/foyer-storage-bench/asan --capacity 256 --region-size 16 --lookup-range 1000 --w-rate 1 --r-rate 1 --ticket-insert-rate-limit 10 --time 60 + - name: Prepare Artifacts on Failure + if: ${{ failure() }} + run: |- + find ./target/x86_64-unknown-linux-gnu/debug/ -type f -executable -name 'foyer*' -print0 | xargs -0 tar czvf artifacts.asan.tgz --transform 's#.*/##' + - name: Upload Artifacts on Failure + uses: actions/upload-artifact@v4 + if: ${{ failure() }} + with: + name: artifacts.asan.tgz + path: artifacts.asan.tgz lsan: name: run with leak saniziter runs-on: ubuntu-latest @@ -207,6 +217,16 @@ jobs: cargo +${{ env.RUST_TOOLCHAIN_NIGHTLY }} build --all --target x86_64-unknown-linux-gnu mkdir -p $GITHUB_WORKSPACE/foyer-data/foyer-storage-bench/lsan timeout 2m ./target/x86_64-unknown-linux-gnu/debug/foyer-storage-bench --dir $GITHUB_WORKSPACE/foyer-data/foyer-storage-bench/lsan --capacity 256 --region-size 16 --lookup-range 1000 --w-rate 1 --r-rate 1 --ticket-insert-rate-limit 10 --time 60 + - name: Prepare Artifacts on Failure + if: ${{ failure() }} + run: |- + find ./target/x86_64-unknown-linux-gnu/debug/ -type f -executable -name 'foyer*' -print0 | xargs -0 tar czvf artifacts.lsan.tgz --transform 's#.*/##' + - name: Upload Artifacts on Failure + uses: actions/upload-artifact@v4 + if: ${{ failure() }} + with: + name: artifacts.lsan.tgz + path: artifacts.lsan.tgz deterministic-test: name: run deterministic test runs-on: ubuntu-latest diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 3d73dacf..a8b0fd06 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -170,6 +170,16 @@ jobs: cargo +${{ env.RUST_TOOLCHAIN_NIGHTLY }} build --all --target x86_64-unknown-linux-gnu mkdir -p $GITHUB_WORKSPACE/foyer-data/foyer-storage-bench/asan timeout 2m ./target/x86_64-unknown-linux-gnu/debug/foyer-storage-bench --dir $GITHUB_WORKSPACE/foyer-data/foyer-storage-bench/asan --capacity 256 --region-size 16 --lookup-range 1000 --w-rate 1 --r-rate 1 --ticket-insert-rate-limit 10 --time 60 + - name: Prepare Artifacts on Failure + if: ${{ failure() }} + run: |- + find ./target/x86_64-unknown-linux-gnu/debug/ -type f -executable -name 'foyer*' -print0 | xargs -0 tar czvf artifacts.asan.tgz --transform 's#.*/##' + - name: Upload Artifacts on Failure + uses: actions/upload-artifact@v4 + if: ${{ failure() }} + with: + name: artifacts.asan.tgz + path: artifacts.asan.tgz lsan: name: run with leak saniziter runs-on: ubuntu-latest @@ -206,6 +216,16 @@ jobs: cargo +${{ env.RUST_TOOLCHAIN_NIGHTLY }} build --all --target x86_64-unknown-linux-gnu mkdir -p $GITHUB_WORKSPACE/foyer-data/foyer-storage-bench/lsan timeout 2m ./target/x86_64-unknown-linux-gnu/debug/foyer-storage-bench --dir $GITHUB_WORKSPACE/foyer-data/foyer-storage-bench/lsan --capacity 256 --region-size 16 --lookup-range 1000 --w-rate 1 --r-rate 1 --ticket-insert-rate-limit 10 --time 60 + - name: Prepare Artifacts on Failure + if: ${{ failure() }} + run: |- + find ./target/x86_64-unknown-linux-gnu/debug/ -type f -executable -name 'foyer*' -print0 | xargs -0 tar czvf artifacts.lsan.tgz --transform 's#.*/##' + - name: Upload Artifacts on Failure + uses: actions/upload-artifact@v4 + if: ${{ failure() }} + with: + name: artifacts.lsan.tgz + path: artifacts.lsan.tgz deterministic-test: name: run deterministic test runs-on: ubuntu-latest