Skip to content

Commit

Permalink
chore: update snafu to make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelScofield committed Aug 6, 2024
1 parent 2cd4a78 commit 1e51baf
Show file tree
Hide file tree
Showing 7 changed files with 124 additions and 68 deletions.
62 changes: 59 additions & 3 deletions .github/workflows/develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -279,66 +279,104 @@ jobs:

distributed-fuzztest:
name: Fuzz Test (Distributed, ${{ matrix.mode.name }}, ${{ matrix.target }})
runs-on: ubuntu-latest
runs-on: ubuntu-latest-16-cores
# runs-on: ubuntu-latest
needs: build-greptime-ci
timeout-minutes: 60
strategy:
matrix:
target: [ "fuzz_create_table", "fuzz_alter_table", "fuzz_create_database", "fuzz_create_logical_table", "fuzz_alter_logical_table", "fuzz_insert", "fuzz_insert_logical_table" ]
mode:
target: [ "fuzz_create_table" ]
# target: [ "fuzz_create_table", "fuzz_alter_table", "fuzz_create_database", "fuzz_create_logical_table", "fuzz_alter_logical_table", "fuzz_insert", "fuzz_insert_logical_table" ]
mode:
- name: "Remote WAL"
minio: true
kafka: true
values: "with-remote-wal.yaml"
steps:
# - name: Maximize build space
# uses: easimon/maximize-build-space@master
# with:
# remove-dotnet: 'true'
# remove-android: 'true'
# remove-haskell: 'true'
# remove-codeql: 'true'
# remove-docker-images: 'true'
- name: Print disk usage
run: df -h
- uses: actions/checkout@v4
- name: Print disk usage
run: df -h
- name: Setup Kind
uses: ./.github/actions/setup-kind
- name: Print disk usage
run: df -h
- if: matrix.mode.minio
name: Setup Minio
uses: ./.github/actions/setup-minio
- name: Print disk usage
run: df -h
- if: matrix.mode.kafka
name: Setup Kafka cluser
uses: ./.github/actions/setup-kafka-cluster
- name: Print disk usage
run: df -h
- name: Setup Etcd cluser
uses: ./.github/actions/setup-etcd-cluster
- name: Print disk usage
run: df -h
# Prepares for fuzz tests
- uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Print disk usage
run: df -h
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.RUST_TOOLCHAIN }}
- name: Print disk usage
run: df -h
- name: Rust Cache
uses: Swatinem/rust-cache@v2
with:
# Shares across multiple jobs
shared-key: "fuzz-test-targets"
- name: Print disk usage
run: df -h
- name: Set Rust Fuzz
shell: bash
run: |
sudo apt-get install -y libfuzzer-14-dev
rustup install nightly
cargo +nightly install cargo-fuzz cargo-gc-bin
- name: Print disk usage
run: df -h
# Downloads ci image
- name: Download pre-built binariy
uses: actions/download-artifact@v4
with:
name: bin
path: .
- name: Print disk usage
run: df -h
- name: Unzip binary
run: |
tar -xvf ./bin.tar.gz
rm ./bin.tar.gz
- name: Print disk usage
run: df -h
- name: Build and push GreptimeDB image
uses: ./.github/actions/build-and-push-ci-image
- name: Print disk usage
run: df -h
- name: Wait for etcd
run: |
kubectl wait \
--for=condition=Ready \
pod -l app.kubernetes.io/instance=etcd \
--timeout=120s \
-n etcd-cluster
- name: Print disk usage
run: df -h
- if: matrix.mode.minio
name: Wait for minio
run: |
Expand All @@ -347,6 +385,8 @@ jobs:
pod -l app=minio \
--timeout=120s \
-n minio
- name: Print disk usage
run: df -h
- if: matrix.mode.kafka
name: Wait for kafka
run: |
Expand All @@ -355,18 +395,26 @@ jobs:
pod -l app.kubernetes.io/instance=kafka \
--timeout=120s \
-n kafka-cluster
- name: Print disk usage
run: df -h
- name: Print etcd info
shell: bash
run: kubectl get all --show-labels -n etcd-cluster
# Setup cluster for test
- name: Print disk usage
run: df -h
- name: Setup GreptimeDB cluster
uses: ./.github/actions/setup-greptimedb-cluster
with:
image-registry: localhost:5001
values-filename: ${{ matrix.mode.values }}
- name: Print disk usage
run: df -h
- name: Port forward (mysql)
run: |
kubectl port-forward service/my-greptimedb-frontend 4002:4002 -n my-greptimedb&
- name: Print disk usage
run: df -h
- name: Fuzz Test
uses: ./.github/actions/fuzz-test
env:
Expand All @@ -375,23 +423,31 @@ jobs:
with:
target: ${{ matrix.target }}
max-total-time: 120
- name: Print disk usage
run: df -h
- name: Describe Nodes
if: failure()
shell: bash
run: |
kubectl describe nodes
- name: Print disk usage
run: df -h
- name: Export kind logs
if: failure()
shell: bash
run: |
kind export logs /tmp/kind
- name: Print disk usage
run: df -h
- name: Upload logs
if: failure()
uses: actions/upload-artifact@v4
with:
name: fuzz-tests-kind-logs-${{ matrix.mode.name }}-${{ matrix.target }}
path: /tmp/kind
retention-days: 3
- name: Print disk usage
run: df -h
- name: Delete cluster
if: success()
shell: bash
Expand Down
Loading

0 comments on commit 1e51baf

Please sign in to comment.