File tree Expand file tree Collapse file tree 3 files changed +25
-14
lines changed Expand file tree Collapse file tree 3 files changed +25
-14
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ concurrency:
21
21
22
22
env :
23
23
go_version : ' ~1.20.12'
24
+ tmpnet_data_path : ~/.tmpnet/networks/1000
24
25
25
26
jobs :
26
27
Unit :
72
73
uses : actions/upload-artifact@v3
73
74
if : always()
74
75
with :
75
- name : e2e-artifact
76
- path : ~/.tmpnet/networks/1000
76
+ name : e2e-tmpnet-data
77
+ path : ${{ env.tmpnet_data_path }}
78
+ if-no-files-found : error
77
79
e2e_existing_network :
78
80
runs-on : ubuntu-latest
79
81
steps :
92
94
uses : actions/upload-artifact@v3
93
95
if : always()
94
96
with :
95
- name : e2e-existing-network-tmpnet-artifact
96
- path : ~/.tmpnet/networks/1000
97
+ name : e2e-existing-network-tmpnet-data
98
+ path : ${{ env.tmpnet_data_path }}
99
+ if-no-files-found : error
97
100
Upgrade :
98
101
runs-on : ubuntu-latest
99
102
steps :
@@ -107,15 +110,14 @@ jobs:
107
110
run : ./scripts/build.sh
108
111
- name : Run e2e tests
109
112
shell : bash
110
- # 1.10.7 is the first version compatible with the ephnet fixture by
111
- # virtue of writing a process context file on node start.
112
- run : ./scripts/tests.upgrade.sh 1.10.7
113
- - name : Upload ephnet network dir
113
+ run : ./scripts/tests.upgrade.sh
114
+ - name : Upload tmpnet network dir
114
115
uses : actions/upload-artifact@v3
115
116
if : always()
116
117
with :
117
- name : upgrade-artifact
118
- path : ~/.ephnet/networks/1000
118
+ name : upgrade-tmpnet-data
119
+ path : ${{ env.tmpnet_data_path }}
120
+ if-no-files-found : error
119
121
Lint :
120
122
runs-on : ubuntu-latest
121
123
steps :
Original file line number Diff line number Diff line change 3
3
set -euo pipefail
4
4
5
5
# e.g.,
6
- # ./scripts/tests.upgrade.sh 1.7.16
7
- # AVALANCHEGO_PATH=./path/to/avalanchego ./scripts/tests.upgrade.sh 1.7.16 # Customization of avalanchego path
6
+ # ./scripts/tests.upgrade.sh # Use default version
7
+ # ./scripts/tests.upgrade.sh 1.10.18 # Specify a version
8
+ # AVALANCHEGO_PATH=./path/to/avalanchego ./scripts/tests.upgrade.sh 1.10.18 # Customization of avalanchego path
8
9
if ! [[ " $0 " =~ scripts/tests.upgrade.sh ]]; then
9
10
echo " must be run from repository root"
10
11
exit 255
11
12
fi
12
13
13
- VERSION=" ${1:- } "
14
+ # 1.10.17 is the first version compatible with bls signing keys being
15
+ # included in the genesis. Attempting to upgrade from prior versions
16
+ # will result in nodes failing to boot due to the hash of the genesis
17
+ # not matching the hash of the committed genesis block.
18
+ DEFAULT_VERSION=" 1.10.17"
19
+
20
+ VERSION=" ${1:- ${DEFAULT_VERSION} } "
14
21
if [[ -z " ${VERSION} " ]]; then
15
22
echo " Missing version argument!"
16
23
echo " Usage: ${0} [VERSION]" >> /dev/stderr
Original file line number Diff line number Diff line change @@ -69,7 +69,9 @@ var _ = ginkgo.Describe("[Upgrade]", func() {
69
69
node .Flags [config .BootstrapIPsKey ] = strings .Join (bootstrapIPs , "," )
70
70
require .NoError (node .WriteConfig ())
71
71
72
- require .NoError (node .Start (ginkgo .GinkgoWriter , avalancheGoExecPath ))
72
+ // Ensure the new node starts with the upgrade binary
73
+ node .ExecPath = avalancheGoExecPathToUpgradeTo
74
+ require .NoError (node .Start (ginkgo .GinkgoWriter , "" /* defaultExecPath */ ))
73
75
74
76
ginkgo .By (fmt .Sprintf ("waiting for node %q to report healthy after restart" , node .GetID ()))
75
77
e2e .WaitForHealthy (node )
You can’t perform that action at this time.
0 commit comments