summaryrefslogtreecommitdiffstats
path: root/controller-server
diff options
context:
space:
mode:
authorEirik Nygaard <eirik.nygaard@yahooinc.com>2022-05-06 10:29:32 +0200
committerEirik Nygaard <eirik.nygaard@yahooinc.com>2022-05-06 10:29:32 +0200
commit9e32267908fdda9357f1213a73f544390c3380dd (patch)
tree3458fc5ffaaca664222aafe18105a16cf1e79988 /controller-server
parent7c1699a1fe57c4326a3ed2cb8bcf6113953378c5 (diff)
Enable notification dispatch for system and staging tests
Diffstat (limited to 'controller-server')
-rw-r--r--controller-server/src/main/java/com/yahoo/vespa/hosted/controller/notification/Notifier.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/notification/Notifier.java b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/notification/Notifier.java
index 5a5188da37f..36a254f5c4b 100644
--- a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/notification/Notifier.java
+++ b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/notification/Notifier.java
@@ -72,10 +72,11 @@ public class Notifier {
}
private boolean skipSource(NotificationSource source) {
- // Limit sources to production systems only. Dev and test systems cause too much noise at the moment.
- if (source.zoneId().map(z -> z.environment() != Environment.prod).orElse(false)) {
- return true;
- } else if (source.jobType().map(t -> !t.isProduction()).orElse(false)) {
+ // Do not dispatch notification for dev and perf environments
+ if (source.zoneId()
+ .map(z -> z.environment())
+ .map(e -> e == Environment.dev || e == Environment.perf)
+ .orElse(false)) {
return true;
}
return false;