mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-27 12:13:20 -04:00
Add a friendly Danger plea to run the pairwise CI job
Sometimes a pairwise definition for a new ./configure switch is added
but not tested in the CI.
(cherry picked from commit 96563c6020)
This commit is contained in:
parent
7ade835795
commit
b52d416cb0
1 changed files with 13 additions and 5 deletions
|
|
@ -398,11 +398,19 @@ switches_added = lines_containing(
|
|||
configure_added_lines, "AC_ARG_ENABLE"
|
||||
) + lines_containing(configure_added_lines, "AC_ARG_WITH")
|
||||
annotations_added = lines_containing(configure_added_lines, "# [pairwise: ")
|
||||
if len(switches_added) > len(annotations_added):
|
||||
fail(
|
||||
"This merge request adds at least one new `./configure` switch that "
|
||||
"is not annotated for pairwise testing purposes."
|
||||
)
|
||||
if switches_added:
|
||||
if len(switches_added) > len(annotations_added):
|
||||
fail(
|
||||
"This merge request adds at least one new `./configure` switch that "
|
||||
"is not annotated for pairwise testing purposes."
|
||||
)
|
||||
else:
|
||||
message(
|
||||
"**Before merging**, please start a full CI pipeline for this "
|
||||
"branch with the `PAIRWISE_TESTING` variable set to any "
|
||||
"non-empty value (e.g. `1`). This will cause the `pairwise` "
|
||||
"job to exercise the new `./configure` switches."
|
||||
)
|
||||
|
||||
###############################################################################
|
||||
# USER-VISIBLE LOG LEVELS
|
||||
|
|
|
|||
Loading…
Reference in a new issue