fuzzit: make the submit phase a bit more robust
authorFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 23 Apr 2020 19:24:22 +0000 (21:24 +0200)
committerEvgeny Vereshchagin <evvers@ya.ru>
Thu, 23 Apr 2020 22:58:37 +0000 (01:58 +0300)
commita8af7f6a5cd7059d5612c9cd0cf02ed7caa7d6a6
tree4c480f91d308a2d5f764c1d058a12b0146cefa80
parent9494da41c271bb9519d3484b6016526a72cc6be5
fuzzit: make the submit phase a bit more robust

The submit phase of the Fuzzit Travis job has been spuriously failing
for some time with various (and usually pretty hidden) errors, like:

```
./fuzzit create job --type regression ...
2020/04/23 17:02:12 please set env variable FUZZIT_API_KEY or pass --api-key. API Key for you account: ...
```

```
./fuzzit create job --type regression ...
2020/04/23 11:36:53 Creating job...
2020/04/23 11:36:54 Uploading fuzzer...
2020/04/23 11:36:54 Job created successfully
2020/04/23 11:36:54 Get https://...&action=create: read tcp x.x.x.x:39674->x.x.x.x:443: read: connection reset by peer
```

```
./fuzzit create job --type regression ...
2020/04/22 18:09:15 Creating job...
2020/04/22 18:09:16 Uploading fuzzer...
2020/04/22 18:09:37 Job created successfully
2020/04/22 18:09:37 500 Internal Server Error
```

etc.

Let's retry each submit job up to three times to (hopefully) mitigate this.
travis-ci/managers/fuzzit.sh