Commit c96ffd1d authored by Owen Rodley's avatar Owen Rodley Committed by Commit Bot

Migrate linux memory notifier to LUCI-Notify.

Bug: 1094768
Change-Id: Ibcfa475f90241ab7d9da654b0b14d8f2c1bcd451
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2274379
Commit-Queue: Owen Rodley <orodley@chromium.org>
Commit-Queue: Takuto Ikuta <tikuta@chromium.org>
Reviewed-by: default avatarTakuto Ikuta <tikuta@chromium.org>
Auto-Submit: Owen Rodley <orodley@chromium.org>
Cr-Commit-Position: refs/heads/master@{#784324}
parent 8f3fc083
...@@ -403,6 +403,141 @@ notifiers { ...@@ -403,6 +403,141 @@ notifiers {
repository: "https://chromium.googlesource.com/chromium/src" repository: "https://chromium.googlesource.com/chromium/src"
} }
} }
notifiers {
notifications {
on_occurrence: FAILURE
failed_step_regexp: "bot_update|compile|gclient runhooks|runhooks|update"
email {
recipients: "thomasanderson@chromium.org"
}
}
builders {
bucket: "ci"
name: "Linux ASan LSan Builder"
repository: "https://chromium.googlesource.com/chromium/src"
}
}
notifiers {
notifications {
on_occurrence: FAILURE
failed_step_regexp: "bot_update|compile|gclient runhooks|runhooks|update"
email {
recipients: "thomasanderson@chromium.org"
}
}
builders {
bucket: "ci"
name: "Linux ASan LSan Tests (1)"
}
}
notifiers {
notifications {
on_occurrence: FAILURE
failed_step_regexp: "bot_update|compile|gclient runhooks|runhooks|update"
email {
recipients: "thomasanderson@chromium.org"
}
}
builders {
bucket: "ci"
name: "Linux ASan Tests (sandboxed)"
}
}
notifiers {
notifications {
on_occurrence: FAILURE
failed_step_regexp: "bot_update|compile|gclient runhooks|runhooks|update"
email {
recipients: "thomasanderson@chromium.org"
}
}
builders {
bucket: "ci"
name: "Linux CFI"
repository: "https://chromium.googlesource.com/chromium/src"
}
}
notifiers {
notifications {
on_occurrence: FAILURE
failed_step_regexp: "bot_update|compile|gclient runhooks|runhooks|update"
email {
recipients: "thomasanderson@chromium.org"
}
}
builders {
bucket: "ci"
name: "Linux Chromium OS ASan LSan Builder"
repository: "https://chromium.googlesource.com/chromium/src"
}
}
notifiers {
notifications {
on_occurrence: FAILURE
failed_step_regexp: "bot_update|compile|gclient runhooks|runhooks|update"
email {
recipients: "thomasanderson@chromium.org"
}
}
builders {
bucket: "ci"
name: "Linux Chromium OS ASan LSan Tests (1)"
}
}
notifiers {
notifications {
on_occurrence: FAILURE
failed_step_regexp: "bot_update|compile|gclient runhooks|runhooks|update"
email {
recipients: "thomasanderson@chromium.org"
}
}
builders {
bucket: "ci"
name: "Linux ChromiumOS MSan Builder"
repository: "https://chromium.googlesource.com/chromium/src"
}
}
notifiers {
notifications {
on_occurrence: FAILURE
failed_step_regexp: "bot_update|compile|gclient runhooks|runhooks|update"
email {
recipients: "thomasanderson@chromium.org"
}
}
builders {
bucket: "ci"
name: "Linux ChromiumOS MSan Tests"
}
}
notifiers {
notifications {
on_occurrence: FAILURE
failed_step_regexp: "bot_update|compile|gclient runhooks|runhooks|update"
email {
recipients: "thomasanderson@chromium.org"
}
}
builders {
bucket: "ci"
name: "Linux MSan Builder"
repository: "https://chromium.googlesource.com/chromium/src"
}
}
notifiers {
notifications {
on_occurrence: FAILURE
failed_step_regexp: "bot_update|compile|gclient runhooks|runhooks|update"
email {
recipients: "thomasanderson@chromium.org"
}
}
builders {
bucket: "ci"
name: "Linux MSan Tests"
}
}
notifiers { notifiers {
notifications { notifications {
on_occurrence: FAILURE on_occurrence: FAILURE
...@@ -427,6 +562,33 @@ notifiers { ...@@ -427,6 +562,33 @@ notifiers {
failed_step_regexp: "bot_update|compile|gclient runhooks|runhooks|update" failed_step_regexp: "bot_update|compile|gclient runhooks|runhooks|update"
} }
} }
notifiers {
notifications {
on_occurrence: FAILURE
failed_step_regexp: "bot_update|compile|gclient runhooks|runhooks|update"
email {
recipients: "thomasanderson@chromium.org"
}
}
builders {
bucket: "ci"
name: "Linux TSan Builder"
repository: "https://chromium.googlesource.com/chromium/src"
}
}
notifiers {
notifications {
on_occurrence: FAILURE
failed_step_regexp: "bot_update|compile|gclient runhooks|runhooks|update"
email {
recipients: "thomasanderson@chromium.org"
}
}
builders {
bucket: "ci"
name: "Linux TSan Tests"
}
}
notifiers { notifiers {
notifications { notifications {
on_change: true on_change: true
...@@ -1115,6 +1277,46 @@ notifiers { ...@@ -1115,6 +1277,46 @@ notifiers {
failed_step_regexp: "bot_update|compile|gclient runhooks|runhooks|update" failed_step_regexp: "bot_update|compile|gclient runhooks|runhooks|update"
} }
} }
notifiers {
notifications {
on_occurrence: FAILURE
failed_step_regexp: "bot_update|compile|gclient runhooks|runhooks|update"
email {
recipients: "thomasanderson@chromium.org"
}
}
builders {
bucket: "ci-m83"
name: "Linux ASan LSan Builder"
repository: "https://chromium.googlesource.com/chromium/src"
}
}
notifiers {
notifications {
on_occurrence: FAILURE
failed_step_regexp: "bot_update|compile|gclient runhooks|runhooks|update"
email {
recipients: "thomasanderson@chromium.org"
}
}
builders {
bucket: "ci-m83"
name: "Linux ASan LSan Tests (1)"
}
}
notifiers {
notifications {
on_occurrence: FAILURE
failed_step_regexp: "bot_update|compile|gclient runhooks|runhooks|update"
email {
recipients: "thomasanderson@chromium.org"
}
}
builders {
bucket: "ci-m83"
name: "Linux ASan Tests (sandboxed)"
}
}
notifiers { notifiers {
notifications { notifications {
on_occurrence: FAILURE on_occurrence: FAILURE
...@@ -1139,6 +1341,33 @@ notifiers { ...@@ -1139,6 +1341,33 @@ notifiers {
failed_step_regexp: "bot_update|compile|gclient runhooks|runhooks|update" failed_step_regexp: "bot_update|compile|gclient runhooks|runhooks|update"
} }
} }
notifiers {
notifications {
on_occurrence: FAILURE
failed_step_regexp: "bot_update|compile|gclient runhooks|runhooks|update"
email {
recipients: "thomasanderson@chromium.org"
}
}
builders {
bucket: "ci-m83"
name: "Linux TSan Builder"
repository: "https://chromium.googlesource.com/chromium/src"
}
}
notifiers {
notifications {
on_occurrence: FAILURE
failed_step_regexp: "bot_update|compile|gclient runhooks|runhooks|update"
email {
recipients: "thomasanderson@chromium.org"
}
}
builders {
bucket: "ci-m83"
name: "Linux TSan Tests"
}
}
notifiers { notifiers {
notifications { notifications {
on_occurrence: FAILURE on_occurrence: FAILURE
...@@ -1426,6 +1655,46 @@ notifiers { ...@@ -1426,6 +1655,46 @@ notifiers {
failed_step_regexp: "bot_update|compile|gclient runhooks|runhooks|update" failed_step_regexp: "bot_update|compile|gclient runhooks|runhooks|update"
} }
} }
notifiers {
notifications {
on_occurrence: FAILURE
failed_step_regexp: "bot_update|compile|gclient runhooks|runhooks|update"
email {
recipients: "thomasanderson@chromium.org"
}
}
builders {
bucket: "ci-m84"
name: "Linux ASan LSan Builder"
repository: "https://chromium.googlesource.com/chromium/src"
}
}
notifiers {
notifications {
on_occurrence: FAILURE
failed_step_regexp: "bot_update|compile|gclient runhooks|runhooks|update"
email {
recipients: "thomasanderson@chromium.org"
}
}
builders {
bucket: "ci-m84"
name: "Linux ASan LSan Tests (1)"
}
}
notifiers {
notifications {
on_occurrence: FAILURE
failed_step_regexp: "bot_update|compile|gclient runhooks|runhooks|update"
email {
recipients: "thomasanderson@chromium.org"
}
}
builders {
bucket: "ci-m84"
name: "Linux ASan Tests (sandboxed)"
}
}
notifiers { notifiers {
notifications { notifications {
on_occurrence: FAILURE on_occurrence: FAILURE
...@@ -1450,6 +1719,33 @@ notifiers { ...@@ -1450,6 +1719,33 @@ notifiers {
failed_step_regexp: "bot_update|compile|gclient runhooks|runhooks|update" failed_step_regexp: "bot_update|compile|gclient runhooks|runhooks|update"
} }
} }
notifiers {
notifications {
on_occurrence: FAILURE
failed_step_regexp: "bot_update|compile|gclient runhooks|runhooks|update"
email {
recipients: "thomasanderson@chromium.org"
}
}
builders {
bucket: "ci-m84"
name: "Linux TSan Builder"
repository: "https://chromium.googlesource.com/chromium/src"
}
}
notifiers {
notifications {
on_occurrence: FAILURE
failed_step_regexp: "bot_update|compile|gclient runhooks|runhooks|update"
email {
recipients: "thomasanderson@chromium.org"
}
}
builders {
bucket: "ci-m84"
name: "Linux TSan Tests"
}
}
notifiers { notifiers {
notifications { notifications {
on_occurrence: FAILURE on_occurrence: FAILURE
...@@ -1737,6 +2033,46 @@ notifiers { ...@@ -1737,6 +2033,46 @@ notifiers {
failed_step_regexp: "bot_update|compile|gclient runhooks|runhooks|update" failed_step_regexp: "bot_update|compile|gclient runhooks|runhooks|update"
} }
} }
notifiers {
notifications {
on_occurrence: FAILURE
failed_step_regexp: "bot_update|compile|gclient runhooks|runhooks|update"
email {
recipients: "thomasanderson@chromium.org"
}
}
builders {
bucket: "ci-m85"
name: "Linux ASan LSan Builder"
repository: "https://chromium.googlesource.com/chromium/src"
}
}
notifiers {
notifications {
on_occurrence: FAILURE
failed_step_regexp: "bot_update|compile|gclient runhooks|runhooks|update"
email {
recipients: "thomasanderson@chromium.org"
}
}
builders {
bucket: "ci-m85"
name: "Linux ASan LSan Tests (1)"
}
}
notifiers {
notifications {
on_occurrence: FAILURE
failed_step_regexp: "bot_update|compile|gclient runhooks|runhooks|update"
email {
recipients: "thomasanderson@chromium.org"
}
}
builders {
bucket: "ci-m85"
name: "Linux ASan Tests (sandboxed)"
}
}
notifiers { notifiers {
notifications { notifications {
on_occurrence: FAILURE on_occurrence: FAILURE
...@@ -1761,6 +2097,33 @@ notifiers { ...@@ -1761,6 +2097,33 @@ notifiers {
failed_step_regexp: "bot_update|compile|gclient runhooks|runhooks|update" failed_step_regexp: "bot_update|compile|gclient runhooks|runhooks|update"
} }
} }
notifiers {
notifications {
on_occurrence: FAILURE
failed_step_regexp: "bot_update|compile|gclient runhooks|runhooks|update"
email {
recipients: "thomasanderson@chromium.org"
}
}
builders {
bucket: "ci-m85"
name: "Linux TSan Builder"
repository: "https://chromium.googlesource.com/chromium/src"
}
}
notifiers {
notifications {
on_occurrence: FAILURE
failed_step_regexp: "bot_update|compile|gclient runhooks|runhooks|update"
email {
recipients: "thomasanderson@chromium.org"
}
}
builders {
bucket: "ci-m85"
name: "Linux TSan Tests"
}
}
notifiers { notifiers {
notifications { notifications {
on_occurrence: FAILURE on_occurrence: FAILURE
......
...@@ -422,6 +422,7 @@ def ci_builder( ...@@ -422,6 +422,7 @@ def ci_builder(
cq_mirrors_console_view=args.DEFAULT, cq_mirrors_console_view=args.DEFAULT,
console_view_entry=None, console_view_entry=None,
tree_closing=False, tree_closing=False,
notifies=None,
**kwargs): **kwargs):
"""Define a CI builder. """Define a CI builder.
...@@ -451,12 +452,12 @@ def ci_builder( ...@@ -451,12 +452,12 @@ def ci_builder(
tree_closing - If true, failed builds from this builder that meet certain tree_closing - If true, failed builds from this builder that meet certain
criteria will close the tree and email the sheriff. See the criteria will close the tree and email the sheriff. See the
'chromium-tree-closer' config in notifiers.star for the full criteria. 'chromium-tree-closer' config in notifiers.star for the full criteria.
notifies - Any extra notifiers to attach to this builder.
""" """
# Define the builder first so that any validation of luci.builder arguments # Define the builder first so that any validation of luci.builder arguments
# (e.g. bucket) occurs before we try to use it # (e.g. bucket) occurs before we try to use it
notifies = kwargs.pop('notifies', [])
if tree_closing: if tree_closing:
notifies += ['chromium-tree-closer', 'chromium-tree-closer-email'] notifies = (notifies or []) + ['chromium-tree-closer', 'chromium-tree-closer-email']
ret = builders.builder( ret = builders.builder(
name = name, name = name,
resultdb_bigquery_exports = [resultdb.export_test_results( resultdb_bigquery_exports = [resultdb.export_test_results(
...@@ -774,10 +775,9 @@ def gpu_fyi_windows_builder(*, name, **kwargs): ...@@ -774,10 +775,9 @@ def gpu_fyi_windows_builder(*, name, **kwargs):
) )
def gpu_builder(*, name, tree_closing=True, **kwargs): def gpu_builder(*, name, tree_closing=True, notifies=None, **kwargs):
notifies = kwargs.pop('notifies', [])
if tree_closing: if tree_closing:
notifies.append('gpu-tree-closer-email') notifies = (notifies or []) + ['gpu-tree-closer-email']
return ci.builder( return ci.builder(
name = name, name = name,
goma_backend = builders.goma.backend.RBE_PROD, goma_backend = builders.goma.backend.RBE_PROD,
...@@ -860,12 +860,17 @@ def memory_builder( ...@@ -860,12 +860,17 @@ def memory_builder(
*, *,
name, name,
goma_jobs=builders.goma.jobs.MANY_JOBS_FOR_CI, goma_jobs=builders.goma.jobs.MANY_JOBS_FOR_CI,
notifies=None,
**kwargs): **kwargs):
if name.startswith('Linux'):
notifies = (notifies or []) + ['linux-memory']
return ci.builder( return ci.builder(
name = name, name = name,
goma_backend = builders.goma.backend.RBE_PROD, goma_backend = builders.goma.backend.RBE_PROD,
goma_jobs = goma_jobs, goma_jobs = goma_jobs,
mastername = 'chromium.memory', mastername = 'chromium.memory',
notifies = notifies,
**kwargs **kwargs
) )
......
...@@ -70,3 +70,10 @@ luci.notifier( ...@@ -70,3 +70,10 @@ luci.notifier(
notify_emails = ['orodley+gpu-test-tree-closing-notifier@chromium.org'], notify_emails = ['orodley+gpu-test-tree-closing-notifier@chromium.org'],
failed_step_regexp = TREE_CLOSING_STEPS, failed_step_regexp = TREE_CLOSING_STEPS,
) )
luci.notifier(
name = 'linux-memory',
on_occurrence = ['FAILURE'],
notify_emails = ['thomasanderson@chromium.org'],
failed_step_regexp = TREE_CLOSING_STEPS,
)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment