Skip to content

Commit bb374bb

Browse files
Disable flaky checks in wallet test (#6734)
1 parent 8149f08 commit bb374bb

File tree

2 files changed

+39
-36
lines changed

2 files changed

+39
-36
lines changed

.github/workflows/forest.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,8 @@ jobs:
274274
fi
275275
timeout-minutes: ${{ fromJSON(env.SCRIPT_TIMEOUT_MINUTES) }}
276276
calibnet-delegated-wallet-check:
277+
# Disabling this job until message pool nonce calculation is fixed. See: https://github.com/ChainSafe/forest/issues/4899
278+
if: false
277279
needs:
278280
- build-ubuntu
279281
name: Delegated wallet tests

scripts/tests/calibnet_wallet_check.sh

Lines changed: 37 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -140,45 +140,46 @@ while [[ $i != 20 && $ADDR_THREE_BALANCE == "$FIL_ZERO" ]]; do
140140
ADDR_THREE_BALANCE=$($FOREST_WALLET_PATH --remote-wallet balance "$ADDR_THREE" --exact-balance)
141141
done
142142

143-
ETH_ADDR_TWO=$(curl -s -X POST "$FOREST_URL" \
144-
-H 'Content-Type: application/json' \
145-
-H "Authorization: Bearer $ADMIN_TOKEN" \
146-
--data "$(jq -n --arg addr "$ADDR_TWO" '{jsonrpc: "2.0", id: 1, method: "Filecoin.FilecoinAddressToEthAddress", params: [$addr, "pending"]}')" \
147-
| jq -r '.result')
148-
echo "ETH address: $ETH_ADDR_TWO"
149-
150-
ETH_ADDR_THREE=$(curl -s -X POST "$FOREST_URL" \
151-
-H 'Content-Type: application/json' \
152-
-H "Authorization: Bearer $ADMIN_TOKEN" \
153-
--data "$(jq -n --arg addr "$ADDR_THREE" '{jsonrpc: "2.0", id: 1, method: "Filecoin.FilecoinAddressToEthAddress", params: [$addr, "pending"]}')" \
154-
| jq -r '.result')
155-
echo "ETH address: $ETH_ADDR_THREE"
156-
157-
MSG_ETH=$($FOREST_WALLET_PATH send "$ETH_ADDR_TWO" "$FIL_AMT")
158-
: "$MSG_ETH"
159-
160-
MSG_ETH_REMOTE=$($FOREST_WALLET_PATH --remote-wallet send "$ETH_ADDR_THREE" "$FIL_AMT")
161-
: "$MSG_ETH_REMOTE"
162-
163-
ETH_ADDR_TWO_BALANCE=$ADDR_TWO_BALANCE
164-
i=0
165-
while [[ $i != 20 && $ETH_ADDR_TWO_BALANCE == "$ADDR_TWO_BALANCE" ]]; do
166-
i=$((i+1))
143+
# Test commented out due to it being flaky. See the tracking issue: https://github.com/ChainSafe/forest/issues/4899
144+
# ETH_ADDR_TWO=$(curl -s -X POST "$FOREST_URL" \
145+
# -H 'Content-Type: application/json' \
146+
# -H "Authorization: Bearer $ADMIN_TOKEN" \
147+
# --data "$(jq -n --arg addr "$ADDR_TWO" '{jsonrpc: "2.0", id: 1, method: "Filecoin.FilecoinAddressToEthAddress", params: [$addr, "pending"]}')" \
148+
# | jq -r '.result')
149+
# echo "ETH address: $ETH_ADDR_TWO"
150+
151+
# ETH_ADDR_THREE=$(curl -s -X POST "$FOREST_URL" \
152+
# -H 'Content-Type: application/json' \
153+
# -H "Authorization: Bearer $ADMIN_TOKEN" \
154+
# --data "$(jq -n --arg addr "$ADDR_THREE" '{jsonrpc: "2.0", id: 1, method: "Filecoin.FilecoinAddressToEthAddress", params: [$addr, "pending"]}')" \
155+
# | jq -r '.result')
156+
# echo "ETH address: $ETH_ADDR_THREE"
157+
158+
# MSG_ETH=$($FOREST_WALLET_PATH send "$ETH_ADDR_TWO" "$FIL_AMT")
159+
# : "$MSG_ETH"
160+
161+
# MSG_ETH_REMOTE=$($FOREST_WALLET_PATH --remote-wallet send "$ETH_ADDR_THREE" "$FIL_AMT")
162+
# : "$MSG_ETH_REMOTE"
163+
164+
# ETH_ADDR_TWO_BALANCE=$ADDR_TWO_BALANCE
165+
# i=0
166+
# while [[ $i != 20 && $ETH_ADDR_TWO_BALANCE == "$ADDR_TWO_BALANCE" ]]; do
167+
# i=$((i+1))
167168

168-
: "Checking balance $i/20"
169-
sleep 30s
170-
ETH_ADDR_TWO_BALANCE=$($FOREST_WALLET_PATH balance "$ADDR_TWO" --exact-balance)
171-
done
169+
# : "Checking balance $i/20"
170+
# sleep 30s
171+
# ETH_ADDR_TWO_BALANCE=$($FOREST_WALLET_PATH balance "$ADDR_TWO" --exact-balance)
172+
# done
172173

173-
ETH_ADDR_THREE_BALANCE=$ADDR_THREE_BALANCE
174-
i=0
175-
while [[ $i != 20 && $ETH_ADDR_THREE_BALANCE == "$ADDR_THREE_BALANCE" ]]; do
176-
i=$((i+1))
174+
# ETH_ADDR_THREE_BALANCE=$ADDR_THREE_BALANCE
175+
# i=0
176+
# while [[ $i != 20 && $ETH_ADDR_THREE_BALANCE == "$ADDR_THREE_BALANCE" ]]; do
177+
# i=$((i+1))
177178

178-
: "Checking balance $i/20"
179-
sleep 30s
180-
ETH_ADDR_THREE_BALANCE=$($FOREST_WALLET_PATH --remote-wallet balance "$ADDR_THREE" --exact-balance)
181-
done
179+
# : "Checking balance $i/20"
180+
# sleep 30s
181+
# ETH_ADDR_THREE_BALANCE=$($FOREST_WALLET_PATH --remote-wallet balance "$ADDR_THREE" --exact-balance)
182+
# done
182183

183184
# wallet list should contain address two with transferred FIL amount
184185
$FOREST_WALLET_PATH list

0 commit comments

Comments
 (0)