]> Cypherpunks repositories - gostls13.git/commit
[dev.fuzz] internal/fuzz: fail minimization on non-reproducible crash
authorJay Conrod <jayconrod@google.com>
Mon, 16 Aug 2021 23:48:27 +0000 (16:48 -0700)
committerJay Conrod <jayconrod@google.com>
Tue, 31 Aug 2021 20:39:19 +0000 (20:39 +0000)
commit37f5885f29068d869e161c4ee8ee17c3e1195cc8
treef370191636a5eacc2ee78801689f066418ebb91c
parent18c288ef8b8a3e7d2c02d3bb4c06e9f7c006b9da
[dev.fuzz] internal/fuzz: fail minimization on non-reproducible crash

workerServer.minimize now returns a response with Success = false when
the fuzz function run with the original input does not produce an
error. This may indicate flakiness.

The coordinator still records a crash, but it will use the unminimized
input with its original error message.

When minimization of interesting inputs is supported, Success = false
indicates that new coverage couldn't be reproduced, and the input will
be discarded.

Change-Id: I72c0e9808f0b0e5390dc7b64141cd0d653ee0af3
Reviewed-on: https://go-review.googlesource.com/c/go/+/342996
Trust: Jay Conrod <jayconrod@google.com>
Trust: Katie Hockman <katie@golang.org>
Reviewed-by: Katie Hockman <katie@golang.org>
src/cmd/go/testdata/script/test_fuzz_minimize.txt
src/internal/fuzz/minimize_test.go
src/internal/fuzz/worker.go