From 5883dcff75bf4a7ba38dedd80bfcbe90f5f2da6a Mon Sep 17 00:00:00 2001 From: Mark Stacey Date: Fri, 22 Nov 2024 10:46:21 -0330 Subject: [PATCH] chore: Run MMI tests on long-running branches The `check_mmi_trigger.sh` script has been updated to run MMI-related tests on long-running branches (`develop`, `master`, and RCs). This is intended to make it easier for us to detect these regressions sooner, so that we don't waste time tracking down the commit that caused any given breakage. --- .circleci/scripts/check_mmi_trigger.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.circleci/scripts/check_mmi_trigger.sh b/.circleci/scripts/check_mmi_trigger.sh index 2de2f69044d4..c8d6fc44523b 100755 --- a/.circleci/scripts/check_mmi_trigger.sh +++ b/.circleci/scripts/check_mmi_trigger.sh @@ -9,6 +9,12 @@ if [ -z "$CIRCLE_PULL_REQUEST" ] || [ -z "$GITHUB_TOKEN" ]; then exit 0 fi +if [[ $CIRCLE_BRANCH = 'develop' || $CIRCLE_BRANCH = 'master' || $CIRCLE_BRANCH =~ ^Version-v[0-9.]* ]]; then + echo "Long-running branch detected, running MMI tests." + echo "run_mmi_tests=true" > mmi_trigger.env + exit 0 +fi + # Extract PR number from the pull request URL PR_NUMBER=$(echo "$CIRCLE_PULL_REQUEST" | awk -F'/' '{print $NF}')