Skip to content

Commit

Permalink
smoke tests: Ignore version 9.0.0 (#14176)
Browse files Browse the repository at this point in the history
Omits running the smoke tests against 9.0.0-SNAPSHOT, since the it's
still in its infancy and other components aren't working properly at the
moment. Given how far out the release is and that it breaks the smoke
tests, it skips testing that version.

---------

Signed-off-by: Marc Lopez Rubio <[email protected]>
  • Loading branch information
marclop authored Sep 26, 2024
1 parent 812d7dd commit f37135a
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -eo pipefail

VERSION=${1}
if [[ -z ${VERSION} ]] || [[ "${VERSION}" == "latest" ]]; then
VERSION=$(curl -s "https://artifacts-api.elastic.co/v1/versions" | jq -r '.versions[-1]')
VERSION=$(curl -s "https://artifacts-api.elastic.co/v1/versions" | jq -r '[.versions[] | select(. | startswith("8"))] | last')
fi
LATEST_BUILD=$(curl -s "https://artifacts-api.elastic.co/v1/versions/${VERSION}/builds/" | jq -r '.builds[0]')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -eo pipefail

VERSION=${1}
if [[ -z ${VERSION} ]] || [[ "${VERSION}" == "latest" ]]; then
VERSION=$(curl -s "https://artifacts-api.elastic.co/v1/versions" | jq -r '.versions[-1]')
VERSION=$(curl -s "https://artifacts-api.elastic.co/v1/versions" | jq -r '[.versions[] | select(. | startswith("8"))] | last')
fi
LATEST_BUILD=$(curl -s "https://artifacts-api.elastic.co/v1/versions/${VERSION}/builds/" | jq -r '.builds[0]')

Expand Down
7 changes: 6 additions & 1 deletion testing/smoke/legacy-standalone-major-managed/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@ if [[ "${1}" == "latest" ]]; then
LATEST_VERSION=${LATEST_SNAPSHOT_VERSION}
ASSERTION_VERSION=${LATEST_SNAPSHOT_VERSION%-*} # strip -SNAPSHOT suffix
get_latest_snapshot
NEXT_MAJOR_LATEST=$(echo $VERSIONS | jq -r -c '.[-1]')
# NOTE(marclop) Temporarily avoid testing against 9.x, since we want to test that the
# upgrade for 7.17 to 8.latest works correctly.
# Uncomment the line below when we are ready to test against 9.x and delete the line
# after the next one.
# NEXT_MAJOR_LATEST=$(echo $VERSIONS | jq -r -c '.[-1]')
NEXT_MAJOR_LATEST=$(echo ${VERSIONS} | jq -r '[.[] | select(. | startswith("8"))] | last')
ASSERTION_NEXT_MAJOR_LATEST=${NEXT_MAJOR_LATEST%-*} # strip -SNAPSHOT suffix
else
get_latest_patch ${VERSION}
Expand Down
7 changes: 6 additions & 1 deletion testing/smoke/supported-os/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,9 @@

set -eo pipefail

. $(git rev-parse --show-toplevel)/testing/smoke/test_supported_os.sh
# NOTE(marclop) temporarily avoid testing against 9.x, since it's currently in
# its infancy and very far out.
# Remove this line when we are ready to test against 9.x and the ${VERSION}
# argument in the test_supported_os.sh script.
VERSION=latest
. $(git rev-parse --show-toplevel)/testing/smoke/test_supported_os.sh ${VERSION}
7 changes: 6 additions & 1 deletion testing/smoke/test_supported_os.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ get_latest_snapshot

VERSION=${1}
if [[ -z ${VERSION} ]] || [[ "${VERSION}" == "latest" ]]; then
VERSION=$(echo ${VERSIONS} | jq -r 'last')
# NOTE(marclop) Temporarily avoid testing against 9.x, since we want to test that the
# upgrade for 7.17 to 8.latest works correctly.
# Uncomment the line below when we are ready to test against 9.x and delete the line
# after the next one.
# VERSION=$(echo ${VERSIONS} | jq -r 'last')
VERSION=$(echo ${VERSIONS} | jq -r '[.[] | select(. | startswith("8"))] | last')
echo "-> unspecified version, using $(echo ${VERSION} | cut -d '.' -f1-2)"
fi
MAJOR_VERSION=$(echo ${VERSION} | cut -d '.' -f1 )
Expand Down

0 comments on commit f37135a

Please sign in to comment.