Skip to content

Commit

Permalink
Refactor agent version pinning in integration test script (#3469)
Browse files Browse the repository at this point in the history
* Refactor agent version pinning in integration test script

* remove 8.10.2 version pinning

(cherry picked from commit a7b2514)

# Conflicts:
#	.buildkite/scripts/steps/integration_tests.sh
  • Loading branch information
pchila authored and mergify[bot] committed Sep 26, 2023
1 parent ec8fa39 commit 2c4df5e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .buildkite/scripts/steps/integration_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,30 @@ set -euo pipefail

source .buildkite/scripts/common.sh

# Override the agent package version using a string with format <major>.<minor>.<patch>
# NOTE: use only after version bump when the new version is not yet available, for example:
# OVERRIDE_AGENT_PACKAGE_VERSION="8.10.3"
OVERRIDE_AGENT_PACKAGE_VERSION=""

if [[ -n "$OVERRIDE_AGENT_PACKAGE_VERSION" ]]; then
OVERRIDE_TEST_AGENT_VERSION=${OVERRIDE_AGENT_PACKAGE_VERSION}"-SNAPSHOT"
else
OVERRIDE_TEST_AGENT_VERSION=""
fi
# PACKAGE
<<<<<<< HEAD
DEV=true EXTERNAL=true SNAPSHOT=true PLATFORMS=linux/amd64,linux/arm64 PACKAGES=tar.gz mage package

# Run integration tests
set +e
TEST_INTEG_AUTH_ESS_REGION=azure-eastus2 TEST_INTEG_CLEAN_ON_EXIT=true SNAPSHOT=true mage integration:test
=======
AGENT_PACKAGE_VERSION="${OVERRIDE_AGENT_PACKAGE_VERSION}" DEV=true EXTERNAL=true SNAPSHOT=true PLATFORMS=linux/amd64,linux/arm64 PACKAGES=tar.gz mage package

# Run integration tests
set +e
AGENT_VERSION="${OVERRIDE_TEST_AGENT_VERSION}" TEST_INTEG_AUTH_ESS_REGION=azure-eastus2 TEST_INTEG_CLEAN_ON_EXIT=true SNAPSHOT=true mage integration:test
>>>>>>> a7b2514bd1 (Refactor agent version pinning in integration test script (#3469))
TESTS_EXIT_STATUS=$?
set -e

Expand Down

0 comments on commit 2c4df5e

Please sign in to comment.