From 8718f6f5ff76898b4f4e7d3b988bacd1b588a73b Mon Sep 17 00:00:00 2001 From: Anton Kaliaev Date: Tue, 26 Jan 2021 17:58:14 +0400 Subject: [PATCH] terminate go-fuzz gracefully (w/ SIGINT) (#5973) and preserve exit code. ``` 2021/01/26 03:34:49 workers: 2, corpus: 4 (8m28s ago), crashers: 0, restarts: 1/9976, execs: 11013732 (21596/sec), cover: 121, uptime: 8m30s make: *** [fuzz-mempool] Terminated Makefile:5: recipe for target 'fuzz-mempool' failed Error: Process completed with exit code 124. ``` https://github.com/tendermint/tendermint/runs/1766661614 `continue-on-error` should make GH ignore any error codes. --- .github/workflows/fuzz-nightly.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/fuzz-nightly.yml b/.github/workflows/fuzz-nightly.yml index 8f4704ca2..148ec99e7 100644 --- a/.github/workflows/fuzz-nightly.yml +++ b/.github/workflows/fuzz-nightly.yml @@ -21,23 +21,28 @@ jobs: - name: Fuzz mempool working-directory: test/fuzz - run: timeout 10m make fuzz-mempool + run: timeout -s SIGINT --preserve-status 10m make fuzz-mempool + continue-on-error: true - name: Fuzz p2p-addrbook working-directory: test/fuzz - run: timeout 10m make fuzz-p2p-addrbook + run: timeout -s SIGINT --preserve-status 10m make fuzz-p2p-addrbook + continue-on-error: true - name: Fuzz p2p-pex working-directory: test/fuzz - run: timeout 10m make fuzz-p2p-pex + run: timeout -s SIGINT --preserve-status 10m make fuzz-p2p-pex + continue-on-error: true - name: Fuzz p2p-sc working-directory: test/fuzz - run: timeout 10m make fuzz-p2p-sc + run: timeout -s SIGINT --preserve-status 10m make fuzz-p2p-sc + continue-on-error: true - name: Fuzz p2p-rpc-server working-directory: test/fuzz - run: timeout 10m make fuzz-rpc-server + run: timeout -s SIGINT --preserve-status 10m make fuzz-rpc-server + continue-on-error: true - name: Set crashers count working-directory: test/fuzz