Skip to content

Commit

Permalink
chore: Run MMI tests on long-running branches
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Gudahtt committed Nov 22, 2024
1 parent e3c6b29 commit 9ffde5f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .circleci/scripts/check_mmi_trigger.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}')

Expand Down

0 comments on commit 9ffde5f

Please sign in to comment.