From a6e3199e8aa4415ec7e00723610283ed94a06d5e Mon Sep 17 00:00:00 2001 From: bdchatham Date: Tue, 23 Jun 2026 11:03:21 -0700 Subject: [PATCH] fix(test): enable REST API + tx indexing for the upgrade chain MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit TestChainUpgrade resolves the proposal ID and polls upgrade state over the Cosmos gov REST API, which is off by default — so the generic provisioning left port 1317 connection-refused and resolveProposalID polled a dead endpoint. Add the configOverrides the major-upgrade scenario uses (api.rest.enable, tx_index.indexer=kv). Smoke-proven: this is the fix that made TestChainUpgrade PASS live on harbor (the change landed after the suite commit was pushed, so it missed #438). Co-Authored-By: Claude Opus 4.8 --- test/integration/upgrade_test.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/integration/upgrade_test.go b/test/integration/upgrade_test.go index cf3c4d9..9add2d7 100644 --- a/test/integration/upgrade_test.go +++ b/test/integration/upgrade_test.go @@ -62,6 +62,15 @@ var votingPeriodGenesis = map[string]string{ "gov.voting_params.voting_period": "60s", } +// upgradeConfig are the seid runtime overrides the upgrade flow needs: the REST +// API serves the gov proposal queries (off by default), and kv tx-indexing lets +// the proposal-submission tx be found. Ported from the major-upgrade scenario's +// SeiNetwork configOverrides. +var upgradeConfig = map[string]string{ + "api.rest.enable": "true", + "tx_index.indexer": "kv", +} + // restUnreachable is the last-seen note when a gov REST poll gets no 200. const restUnreachable = "REST unreachable / non-200" @@ -243,6 +252,7 @@ func networkSpec(s spec, image string, labels map[string]string) sei.NetworkSpec Image: image, Validators: s.validators, Labels: labels, + Config: upgradeConfig, Genesis: votingPeriodGenesis, DeletionPolicy: sei.DeletionDelete, }