mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-22 10:10:06 +00:00
Check meson pairwise testing switches
dangerfile.py checked for new configure switches in `configure.ac`, these were annotated with "# [pairwise:..." in a leading line. Meson reads those from `meson_options.txt` instead.
This commit is contained in:
parent
367889e080
commit
c4c14f0f23
@ -406,27 +406,17 @@ if mr_title_action == "sec" and (mr_title_cve is None or "CVE-20" not in mr_titl
|
|||||||
# PAIRWISE TESTING
|
# PAIRWISE TESTING
|
||||||
###############################################################################
|
###############################################################################
|
||||||
#
|
#
|
||||||
# FAIL if the merge request adds any new ./configure switch without an
|
# MESSAGE about pairwise-testing any new build options before merging.
|
||||||
# associated annotation used for pairwise testing.
|
|
||||||
|
|
||||||
configure_added_lines = added_lines(target_branch, ["configure.ac"])
|
meson_added_lines = added_lines(target_branch, ["meson_options.txt"])
|
||||||
switches_added = lines_containing(
|
switches_added = lines_containing(meson_added_lines, "option(")
|
||||||
configure_added_lines, "AC_ARG_ENABLE"
|
|
||||||
) + lines_containing(configure_added_lines, "AC_ARG_WITH")
|
|
||||||
annotations_added = lines_containing(configure_added_lines, "# [pairwise: ")
|
|
||||||
if switches_added:
|
if switches_added:
|
||||||
if len(switches_added) > len(annotations_added):
|
message(
|
||||||
fail(
|
"**Before merging**, please start a full CI pipeline for this "
|
||||||
"This merge request adds at least one new `./configure` switch that "
|
"branch with the `PAIRWISE_TESTING` variable set to any "
|
||||||
"is not annotated for pairwise testing purposes."
|
"non-empty value (e.g. `1`). This will cause the `pairwise` "
|
||||||
)
|
"job to exercise the new build options added by this merge request."
|
||||||
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."
|
|
||||||
)
|
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# PRE-RELEASE TESTING
|
# PRE-RELEASE TESTING
|
||||||
|
Loading…
x
Reference in New Issue
Block a user