From e82f8246e6de8a6bbf59832db903c5218bef573e Mon Sep 17 00:00:00 2001 From: Samuel Chiang Date: Fri, 10 May 2024 11:29:31 -0700 Subject: [PATCH] Fix MySQL version tag alarm (#1585) We got a false alarm when we updated the mysql version tag strategy. Apparently my ubuntu box and the docker image had different versions of git and this caused a behavioral difference when running `git tag --sort=-taggerdate`. The docker image has a newer version (`2.34.1`) and gives the tag date in ascending order. This caused us to compare against the oldest version of mysql instead and triggers the alarm. This PR fixes that. By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license. --- tests/ci/integration/run_mysql_integration.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ci/integration/run_mysql_integration.sh b/tests/ci/integration/run_mysql_integration.sh index bd5f9b7dd5..82a69ccab3 100755 --- a/tests/ci/integration/run_mysql_integration.sh +++ b/tests/ci/integration/run_mysql_integration.sh @@ -39,7 +39,7 @@ cd ${SCRATCH_FOLDER} function mysql_patch_reminder() { # Check latest MySQL version. MySQL often updates with large changes depending on OpenSSL all at once, so we pin to a specific version. - LATEST_MYSQL_VERSION_TAG=`git tag --sort=-taggerdate | head -n 1` + LATEST_MYSQL_VERSION_TAG=`git tag --sort=-taggerdate | tail -1` if [[ "${LATEST_MYSQL_VERSION_TAG}" != "${MYSQL_VERSION_TAG}" ]]; then aws cloudwatch put-metric-data --namespace AWS-LC --metric-name MySQLVersionMismatch --value 1 else