Skip to content

Commit

Permalink
Reenable the upgrade tests (#2769)
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenButtolph committed Feb 23, 2024
1 parent 6322e19 commit 6dcd8e8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 17 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,17 +109,16 @@ jobs:
- name: Build AvalancheGo Binary
shell: bash
run: ./scripts/build.sh
# TODO: Reactivate test once v1.11.0 is published
# - name: Run e2e tests
# shell: bash
# run: ./scripts/tests.upgrade.sh
# - name: Upload tmpnet network dir
# uses: actions/upload-artifact@v4
# if: always()
# with:
# name: upgrade-tmpnet-data
# path: ${{ env.tmpnet_data_path }}
# if-no-files-found: error
- name: Run e2e tests
shell: bash
run: ./scripts/tests.upgrade.sh
- name: Upload tmpnet network dir
uses: actions/upload-artifact@v4
if: always()
with:
name: upgrade-tmpnet-data
path: ${{ env.tmpnet_data_path }}
if-no-files-found: error
Lint:
runs-on: ubuntu-latest
steps:
Expand Down
11 changes: 5 additions & 6 deletions scripts/tests.upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
set -euo pipefail

# e.g.,
# ./scripts/tests.upgrade.sh # Use default version
# ./scripts/tests.upgrade.sh 1.10.18 # Specify a version
# AVALANCHEGO_PATH=./path/to/avalanchego ./scripts/tests.upgrade.sh 1.10.18 # Customization of avalanchego path
# ./scripts/tests.upgrade.sh # Use default version
# ./scripts/tests.upgrade.sh 1.11.0 # Specify a version
# AVALANCHEGO_PATH=./path/to/avalanchego ./scripts/tests.upgrade.sh 1.11.0 # Customization of avalanchego path
if ! [[ "$0" =~ scripts/tests.upgrade.sh ]]; then
echo "must be run from repository root"
exit 255
Expand All @@ -16,9 +16,8 @@ fi
# local network, this flag must be updated to the last compatible
# version with the latest code.
#
# v1.10.18 includes restrictions on ports sent over the p2p network along with
# proposervm and P-chain rule changes on the local network.
DEFAULT_VERSION="1.10.18"
# v1.11.0 activates Durango.
DEFAULT_VERSION="1.11.0"

VERSION="${1:-${DEFAULT_VERSION}}"
if [[ -z "${VERSION}" ]]; then
Expand Down

0 comments on commit 6dcd8e8

Please sign in to comment.