Commit 43e78b8 1 parent a27aa9a commit 43e78b8 Copy full SHA for 43e78b8
File tree 2 files changed +11
-5
lines changed
contrib/localnet/orchestrator
2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -145,6 +145,7 @@ jobs:
145
145
- make-target : " start-upgrade-import-mainnet-test"
146
146
runs-on : buildjet-16vcpu-ubuntu-2204
147
147
run : ${{ needs.matrix-conditionals.outputs.UPGRADE_IMPORT_MAINNET_TESTS == 'true' }}
148
+ timeout-minutes : 40
148
149
- make-target : " start-e2e-admin-test"
149
150
runs-on : ubuntu-20.04
150
151
run : ${{ needs.matrix-conditionals.outputs.ADMIN_TESTS == 'true' }}
@@ -154,6 +155,7 @@ jobs:
154
155
- make-target : " start-e2e-import-mainnet-test"
155
156
runs-on : buildjet-16vcpu-ubuntu-2204
156
157
run : ${{ needs.matrix-conditionals.outputs.STATEFUL_DATA_TESTS == 'true' }}
158
+ timeout-minutes : 40
157
159
- make-target : " start-tss-migration-test"
158
160
runs-on : ubuntu-20.04
159
161
run : ${{ needs.matrix-conditionals.outputs.TSS_MIGRATION_TESTS == 'true' }}
Original file line number Diff line number Diff line change @@ -9,10 +9,14 @@ get_zetacored_version() {
9
9
retries=10
10
10
node_info=" "
11
11
for (( attempt= 1 ; attempt<= $retries ; attempt++ )) ; do
12
- node_info=$( curl -s zetacore0:1317/cosmos/base/tendermint/v1beta1/node_info)
12
+ node_info=$( curl -s -f zetacore0:1317/cosmos/base/tendermint/v1beta1/node_info)
13
13
if [[ $? == 0 ]]; then
14
- echo " $node_info " | jq -r ' .application_version.version'
15
- return
14
+ version=$( echo " $node_info " | jq -r ' .application_version.version' )
15
+ # only return versions containing dots to avoid empty strings and "null"
16
+ if [[ " $version " == * .* ]]; then
17
+ echo " $version "
18
+ return
19
+ fi
16
20
fi
17
21
sleep 1
18
22
done
@@ -132,13 +136,13 @@ if [ "$LOCALNET_MODE" == "upgrade" ]; then
132
136
133
137
NEW_VERSION=$( get_zetacored_version)
134
138
139
+ echo " upgrade result: ${OLD_VERSION} -> ${NEW_VERSION} "
140
+
135
141
if [[ " $OLD_VERSION " == " $NEW_VERSION " ]]; then
136
142
echo " version did not change after upgrade height, maybe the upgrade did not run?"
137
143
exit 2
138
144
fi
139
145
140
- echo " upgrade complete: ${OLD_VERSION} -> ${NEW_VERSION} "
141
-
142
146
# wait for zevm endpoint to come up
143
147
sleep 10
144
148
You can’t perform that action at this time.
0 commit comments