From b048b6e0532a8a33d5cb0a54eae561b7a7249897 Mon Sep 17 00:00:00 2001 From: Chris Evich Date: Tue, 2 May 2023 14:11:07 -0400 Subject: [PATCH] Cirrus: Add CI self-destruct condition on EOL date Fixes: #18261 This branch will never receive any security-backports when the associated RHEL release reaches EOL. Add a condition to force CI to break with a helpful message, after this RHEL EOL date. Signed-off-by: Chris Evich --- contrib/cirrus/setup_environment.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/contrib/cirrus/setup_environment.sh b/contrib/cirrus/setup_environment.sh index b11b934742..29cbf117fd 100755 --- a/contrib/cirrus/setup_environment.sh +++ b/contrib/cirrus/setup_environment.sh @@ -19,6 +19,17 @@ die_unknown() { die "Unknown/unsupported \$$var_name '$var_value'" } +_EOL=20250501 +if [[ $(date +%Y%m%d) -ge $_EOL ]]; then + die "As of $_EOL this branch is probably +no longer supported in RHEL 8.4.0, please +confirm this with RHEL Program Management. If so: +It should be removed from Cirrus-Cron, +the .cirrus.yml file removed, and +the VM images (manually) unmarked +'permanent=true'" +fi + msg "************************************************************" msg "Setting up runtime environment" msg "************************************************************"