mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
Warn if security fixes are not marked for testing
This commit is contained in:
committed by
Petr Špaček
parent
0ba29730f7
commit
5e02a007ca
@@ -452,6 +452,25 @@ if switches_added:
|
||||
"job to exercise the new `./configure` switches."
|
||||
)
|
||||
|
||||
###############################################################################
|
||||
# PRE-RELEASE TESTING
|
||||
###############################################################################
|
||||
#
|
||||
# WARN if the merge request is marked with the "Security" label, but not with
|
||||
# the label used for marking merge requests for pre-release testing (if the
|
||||
# latter is defined by the relevant environment variable).
|
||||
|
||||
pre_release_testing_label = os.getenv("PRE_RELEASE_TESTING_LABEL")
|
||||
if (
|
||||
pre_release_testing_label
|
||||
and "Security" in mr_labels
|
||||
and pre_release_testing_label not in mr_labels
|
||||
):
|
||||
warn(
|
||||
"This merge request is marked with the *Security* label, but it is not "
|
||||
f"marked for pre-release testing (*{pre_release_testing_label}*)."
|
||||
)
|
||||
|
||||
###############################################################################
|
||||
# USER-VISIBLE LOG LEVELS
|
||||
###############################################################################
|
||||
|
Reference in New Issue
Block a user