feat(db): derive Compact codec (#177)

This commit is contained in:
joshieDo
2022-11-23 12:46:45 +08:00
committed by GitHub
parent 0f45f16455
commit 027fc2bbf2
30 changed files with 1413 additions and 72 deletions

16
.github/scripts/fuzz.sh vendored Executable file
View File

@ -0,0 +1,16 @@
#!/bin/bash
# Runs fuzz tests using `cargo test-fuzz`. These should only be run after a `cargo test` has been executed once: https://github.com/trailofbits/test-fuzz#usage
PACKAGE=$1
TEST_TIME=${2:-5}
# Gets the list of tests present in the package.
TESTS=$(cargo test-fuzz --list -p $PACKAGE | head -n -3 | tail -n+9 | cat - <(echo \"--list\"]) | cat - | jq -r ".[]")
for test in $TESTS
do
set -x
cargo test-fuzz --no-ui -p "$PACKAGE" $test -- -V $TEST_TIME
set +x
done;

View File

@ -34,6 +34,13 @@ jobs:
command: nextest
args: run --locked --workspace --all-features
- name: Run fuzz tests
run: |
./.github/scripts/fuzz.sh reth-primitives
./.github/scripts/fuzz.sh reth-db
./.github/scripts/fuzz.sh reth-interfaces
./.github/scripts/fuzz.sh reth-codecs
lint:
runs-on: ubuntu-latest
steps: