From 7490f0fc33e71ef9abd65e896e0b278a201da8b1 Mon Sep 17 00:00:00 2001 From: 0xPatrick Date: Fri, 7 Jun 2024 15:13:00 -0400 Subject: [PATCH] fix: chain registry is not available - request to http://localhost:8081/chains/agoriclocal failed, reason: connect ECONNREFUSED ::1:8081 --- .github/workflows/multichain-e2e.yml | 8 +++++++- multichain-testing/Makefile | 8 ++++---- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/multichain-e2e.yml b/.github/workflows/multichain-e2e.yml index 244458c61ffa..654c64a14624 100644 --- a/.github/workflows/multichain-e2e.yml +++ b/.github/workflows/multichain-e2e.yml @@ -34,7 +34,7 @@ jobs: run: yarn lint working-directory: ./agoric-sdk/multichain-testing - - name: Set Up Starship Infrastructure + - name: Setup Starship Infrastructure id: starship-infra uses: cosmology-tech/starship-action@0.2.19 with: @@ -52,6 +52,12 @@ jobs: make fund-provision-pool working-directory: ./agoric-sdk/multichain-testing + - name: Ensure Chain Registries are available + run: | + curl --fail --retry 3 --retry-delay 10 http://localhost:8081/chains/agoriclocal || (echo "agoriclocal URL check failed") + curl --fail --retry 3 --retry-delay 10 http://localhost:8081/chains/osmosislocal || (echo "osmosislocal URL check failed") + curl --fail --retry 3 --retry-delay 10 http://localhost:8081/chains/gaialocal || (echo "gaialocal URL check failed") + - name: Run @agoric/multichain-testing E2E Tests run: yarn test working-directory: ./agoric-sdk/multichain-testing diff --git a/multichain-testing/Makefile b/multichain-testing/Makefile index aa36f30c2480..5ce23eff0f87 100644 --- a/multichain-testing/Makefile +++ b/multichain-testing/Makefile @@ -69,17 +69,17 @@ clean-kind: PROVISION_POOL_ADDR=agoric1megzytg65cyrgzs6fvzxgrcqvwwl7ugpt62346 fund-provision-pool: - kubectl exec -it agoriclocal-genesis-0 -c validator -- agd tx bank send faucet $(PROVISION_POOL_ADDR) 1000000000uist -y -b block + kubectl exec -i agoriclocal-genesis-0 -c validator -- agd tx bank send faucet $(PROVISION_POOL_ADDR) 1000000000uist -y -b block ADDR=agoric1ldmtatp24qlllgxmrsjzcpe20fvlkp448zcuce COIN=1000000000uist fund-wallet: - kubectl exec -it agoriclocal-genesis-0 -c validator -- agd tx bank send faucet $(ADDR) $(COIN) -y -b block + kubectl exec -i agoriclocal-genesis-0 -c validator -- agd tx bank send faucet $(ADDR) $(COIN) -y -b block provision-smart-wallet: - kubectl exec -it agoriclocal-genesis-0 -c validator -- agd tx swingset provision-one wallet $(ADDR) SMART_WALLET --from faucet -y -b block + kubectl exec -i agoriclocal-genesis-0 -c validator -- agd tx swingset provision-one wallet $(ADDR) SMART_WALLET --from faucet -y -b block # view agoric swingset logs from slog file, until we can set `DEBUG=SwingSet:vat,SwingSet:ls` tail-slog: - kubectl exec -it agoriclocal-genesis-0 -c validator -- tail -f slog.slog + kubectl exec -i agoriclocal-genesis-0 -c validator -- tail -f slog.slog