[swatbot] [PATCH] models/serializers: triage exception automatically


Alexandre Belloni
 

Most of the cancelled builds are actually exceptions, tirage them
automatically.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
---
swatapp/serializers.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/swatapp/serializers.py b/swatapp/serializers.py
index cba4fa482079..e5ca25e4442f 100644
--- a/swatapp/serializers.py
+++ b/swatapp/serializers.py
@@ -28,7 +28,7 @@ class StepFailureSerializer(serializers.ModelSerializer):
attrs['triage'] = TriageStatus.NOTFORSWAT

# Cancelled builds with only stdio (no errors/warnings) aren't interesting
- if attrs['status'] == Status.CANCELLED:
+ if attrs['status'] == Status.CANCELLED or attrs['status'] == Status.EXCEPTION:
if "/errors" not in attrs['urls'] and "/warnings" not in attrs['urls']:
attrs['triage'] = TriageStatus.CANCELLEDNOERR
return attrs
--
2.31.1