Skip to content

Commit

Permalink
chore: remove gc before running fuzz tests (#4108)
Browse files Browse the repository at this point in the history
  • Loading branch information
WenyXu committed Jun 5, 2024
1 parent 03cacf9 commit 16b85b0
Showing 1 changed file with 7 additions and 25 deletions.
32 changes: 7 additions & 25 deletions .github/workflows/develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,12 +174,6 @@ jobs:
- name: Run GreptimeDB
run: |
./bins/greptime standalone start&
- name: Build Fuzz Test
shell: bash
run: |
cd tests-fuzz && \
cargo gc && \
cd ..
- name: Fuzz Test
uses: ./.github/actions/fuzz-test
env:
Expand All @@ -191,7 +185,7 @@ jobs:

unstable-fuzztest:
name: Unstable Fuzz Test
needs: build
needs: build-greptime-ci
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -215,27 +209,21 @@ jobs:
run: |
sudo apt update && sudo apt install -y libfuzzer-14-dev
cargo install cargo-fuzz cargo-gc-bin
- name: Download pre-built binaries
- name: Download pre-built binariy
uses: actions/download-artifact@v4
with:
name: bins
name: bin
path: .
- name: Unzip binaries
- name: Unzip bianry
run: |
tar -xvf ./bins.tar.gz
rm ./bins.tar.gz
- name: Build Fuzz Test
shell: bash
run: |
cd tests-fuzz && \
cargo gc && \
cd ..
tar -xvf ./bin.tar.gz
rm ./bin.tar.gz
- name: Run Fuzz Test
uses: ./.github/actions/fuzz-test
env:
CUSTOM_LIBFUZZER_PATH: /usr/lib/llvm-14/lib/libFuzzer.a
GT_MYSQL_ADDR: 127.0.0.1:4002
GT_FUZZ_BINARY_PATH: ./bins/greptime
GT_FUZZ_BINARY_PATH: ./bin/greptime
GT_FUZZ_INSTANCE_ROOT_DIR: /tmp/unstable-greptime/
with:
target: ${{ matrix.target }}
Expand Down Expand Up @@ -350,12 +338,6 @@ jobs:
- name: Port forward (mysql)
run: |
kubectl port-forward service/my-greptimedb-frontend 4002:4002 -n my-greptimedb&
- name: Build Fuzz Test
shell: bash
run: |
cd tests-fuzz && \
cargo gc && \
cd ..
- name: Fuzz Test
uses: ./.github/actions/fuzz-test
env:
Expand Down

0 comments on commit 16b85b0

Please sign in to comment.