@@ -4,11 +4,9 @@ Fuzz tests generate a ton of random parameter arguments to the program and then
4
4
5
5
## How does it work?
6
6
7
- Typically, Travis CI will run ` travis-fuzz.sh ` on one of the environments the automated tests are
8
- configured for. This is the most time-consuming component of the continuous integration workflow,
9
- so it is recommended that you detect issues locally, and Travis merely acts as a sanity check.
10
- Fuzzing is further only effective with a lot of CPU time, indicating that if crash scenarios are
11
- discovered on Travis with its low runtime constraints, the crash is caused relatively easily.
7
+ Typically, CI will run ` ci-fuzz.sh ` on one of the environments the automated tests are
8
+ configured for. Fuzzing is further only effective with a lot of CPU time, indicating that if crash
9
+ scenarios are discovered on CI with its low runtime constraints, the crash is caused relatively easily.
12
10
13
11
## How do I run fuzz tests locally?
14
12
@@ -81,28 +79,28 @@ To see a list of available fuzzing targets, run:
81
79
ls ./src/bin/
82
80
```
83
81
84
- ## A fuzz test failed on Travis , what do I do?
82
+ ## A fuzz test failed, what do I do?
85
83
86
84
You're trying to create a PR, but need to find the underlying cause of that pesky fuzz failure
87
85
blocking the merge?
88
86
89
87
Worry not, for this is easily traced.
90
88
91
- If your Travis output log looks like this:
89
+ If your output log looks like this:
92
90
93
91
```
94
92
Size:639 (i,b,hw,ed,ip,cmp): 0/0/0/0/0/1, Tot:0/0/0/2036/5/28604
95
93
Seen a crash. Terminating all fuzzing threads
96
94
97
95
… # a lot of lines in between
98
96
99
- <0x0000555555565559> [func:UNKNOWN file: line:0 module:/home/travis/build/rust-bitcoin /rust-lightning/fuzz/hfuzz_target/x86_64-unknown-linux-gnu/release/full_stack_target]
97
+ <0x0000555555565559> [func:UNKNOWN file: line:0 module:. /rust-lightning/fuzz/hfuzz_target/x86_64-unknown-linux-gnu/release/full_stack_target]
100
98
<0x0000000000000000> [func:UNKNOWN file: line:0 module:UNKNOWN]
101
99
=====================================================================
102
100
2d3136383734090101010101010101010101010101010101010101010101
103
101
010101010100040101010101010101010101010103010101010100010101
104
102
0069d07c319a4961
105
- The command "if [ "$(rustup show | grep default | grep stable)" != "" ]; then cd fuzz && cargo test --verbose && ./travis -fuzz.sh; fi" exited with 1.
103
+ The command "if [ "$(rustup show | grep default | grep stable)" != "" ]; then cd fuzz && cargo test --verbose && ./ci -fuzz.sh; fi" exited with 1.
106
104
```
107
105
108
106
Note that the penultimate stack trace line ends in ` release/full_stack_target] ` . That indicates that
0 commit comments