This repository has been archived by the owner on Jun 11, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
errors.py
37 lines (30 loc) · 1.63 KB
/
errors.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import re
from buildbot.status.builder import EXCEPTION, FAILURE, RETRY, WARNINGS
global_errors = ((re.compile("No space left on device"), RETRY),
(re.compile("Remote Device Error"), RETRY),
(re.compile("devicemanager.DMError"), RETRY),
(re.compile("Connection to the other side was lost in a non-clean fashion"), RETRY),
(re.compile("program finished with exit code 80"), RETRY),
(re.compile("INFRA-ERROR"), RETRY),
)
hg_errors = ((re.compile("abort: HTTP Error 5\d{2}"), RETRY),
(re.compile("abort: .*: no match found!"), RETRY),
(re.compile("abort: Connection reset by peer"), RETRY),
(re.compile("transaction abort!"), RETRY),
(re.compile("abort: error:"), RETRY),
)
purge_error = ((re.compile("Error: unable to free"), RETRY),)
update_verify_error = ((re.compile("FAIL"), FAILURE),)
permission_check_error = (
(re.compile("WARN: target directory .* exists"), WARNINGS),
)
upload_errors = ((re.compile("Connection timed out"), RETRY),
(re.compile("Connection refused"), RETRY),
(re.compile("Connection reset by peer"), RETRY),
)
talos_hgweb_errors = ((re.compile("ERROR 500: Internal Server Error"), RETRY),
(re.compile("ERROR: We tried to download the talos.json file but something failed"), RETRY),
)
tegra_errors = ((re.compile("Automation error: Error receiving data from socket"), FAILURE),
(re.compile("Unable to ping tegra after 5 attempts"), RETRY),
)