summaryrefslogtreecommitdiff
path: root/releasenotes/notes
diff options
context:
space:
mode:
authorJames E. Blair <jim@acmegating.com>2022-08-22 14:35:25 -0700
committerJames E. Blair <jim@acmegating.com>2022-08-22 14:35:25 -0700
commit5ac9367b25f72f5240a4afb11fd1b242378207a8 (patch)
tree428e38b886a887661dee3d325b3ebd77c22a4b3d /releasenotes/notes
parent4c3dd064d7a3c523fa85c04f0aceca3ecef663b6 (diff)
downloadzuul-5ac9367b25f72f5240a4afb11fd1b242378207a8.tar.gz
Add config-error reporter and report config errors to DB
This adds a config-error pipeline reporter configuration option and now also reports config errors and merge conflicts to the database as buildset failures. The driving use case is that if periodic pipelines encounter config errors (such as being unable to freeze a job graph), they might send email if configured to send email on merge conflicts, but otherwise their results are not reported to the database. To make this more visible, first we need Zuul pipelines to report buildset ends to the database in more cases -- currently we typically only report a buildset end if there are jobs (and so a buildset start), or in some other special cases. This change adds config errors and merge conflicts to the set of cases where we report a buildset end. Because of some shortcuts previously taken, that would end up reporting a merge conflict message to the database instead of the actual error message. To resolve this, we add a new config-error reporter action and adjust the config error reporter handling path to use it instead of the merge-conflicts action. Tests of this as well as the merge-conflicts code path are added. Finally, a small debug aid is added to the GerritReporter so that we can easily see in the logs which reporter action was used. Change-Id: I805c26a88675bf15ae9d0d6c8999b178185e4f1f
Diffstat (limited to 'releasenotes/notes')
-rw-r--r--releasenotes/notes/config-error-reporter-34887223d91544d1.yaml6
1 files changed, 6 insertions, 0 deletions
diff --git a/releasenotes/notes/config-error-reporter-34887223d91544d1.yaml b/releasenotes/notes/config-error-reporter-34887223d91544d1.yaml
new file mode 100644
index 000000000..51690f2fa
--- /dev/null
+++ b/releasenotes/notes/config-error-reporter-34887223d91544d1.yaml
@@ -0,0 +1,6 @@
+---
+features:
+ - |
+ A new :attr:`pipeline.config-error` pipeline reporter is available
+ for customizing reporter actions related to Zuul configuration
+ errors.