Skip to content
Snippets Groups Projects
Commit 5e2d0dee authored by Maarten de Waard's avatar Maarten de Waard :angel:
Browse files

Merge branch '984-ignore-nextcloud-cron-failures-in-ci' into 'master'

Resolve "Ignore nextcloud-cron failures in CI"

Closes #984

See merge request openappstack/openappstack!548
parents ccd43624 aa43a9c0
No related branches found
No related tags found
No related merge requests found
......@@ -2,12 +2,12 @@
Test that alertmanager fires no alerts, except for a few ignored by
`ignore_alert`.
"""
import re
import json
import os
import requests
import re
import pytest
import requests
def ignore_alert(alert):
......@@ -20,10 +20,12 @@ def ignore_alert(alert):
if alert["labels"]["severity"] == "none":
return True
# Ignore `KubeAPILatencyHigh` fom high load during installation
# phase
if re.search(r"(KubeAPIDown|KubeletDown|NodeFilesystemSpaceFillingUp)",
alert["labels"]["alertname"]):
# Ignore issues fom high load during installation phase
if re.search(r"(KubeAPIDown|KubeletDown|NodeFilesystemSpaceFillingUp|NodeClockNotSynchronising)",
alert["labels"]["alertname"]):
return True
# Ignore nextcloud cron jobs (https://open.greenhost.net/openappstack/openappstack/-/issues/984)
if re.search(r"nc-nextcloud-cron", alert["annotations"]["description"]):
return True
return False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment