feat: verbose logging during upgrades (#24720)

Co-authored-by: Alex | Interchain Labs <alex@interchainlabs.io>
This commit is contained in:
Aaron Craelius
2025-05-13 20:48:30 +00:00
committed by GitHub
co-authored by Alex | Interchain Labs
parent 3d777ad46a
commit be955efe25
27 changed files with 364 additions and 34 deletions
+1
View File
@@ -3,6 +3,7 @@ module cosmossdk.io/tests/systemtests
go 1.23.5
replace (
cosmossdk.io/log => ../../log
// always use latest versions in tests
cosmossdk.io/systemtests => ../../systemtests
github.com/cosmos/cosmos-sdk => ../..
-2
View File
@@ -6,8 +6,6 @@ cosmossdk.io/depinject v1.2.0 h1:6NW/FSK1IkWTrX7XxUpBmX1QMBozpEI9SsWkKTBc5zw=
cosmossdk.io/depinject v1.2.0/go.mod h1:pvitjtUxZZZTQESKNS9KhGjWVslJZxtO9VooRJYyPjk=
cosmossdk.io/errors v1.0.2 h1:wcYiJz08HThbWxd/L4jObeLaLySopyyuUFB5w4AGpCo=
cosmossdk.io/errors v1.0.2/go.mod h1:0rjgiHkftRYPj//3DrD6y8hcm40HcPv/dR4R/4efr0k=
cosmossdk.io/log v1.5.1 h1:wLwiYXmfrort/O+j6EkjF+HvbdrRQd+4cYCPKFSm+zM=
cosmossdk.io/log v1.5.1/go.mod h1:5cXXBvfBkR2/BcXmosdCSLXllvgSjphrrDVdfVRmBGM=
cosmossdk.io/math v1.5.3 h1:WH6tu6Z3AUCeHbeOSHg2mt9rnoiUWVWaQ2t6Gkll96U=
cosmossdk.io/math v1.5.3/go.mod h1:uqcZv7vexnhMFJF+6zh9EWdm/+Ylyln34IvPnBauPCQ=
cosmossdk.io/schema v1.1.0 h1:mmpuz3dzouCoyjjcMcA/xHBEmMChN+EHh8EHxHRHhzE=
+5
View File
@@ -4,6 +4,7 @@ package systemtests
import (
"fmt"
"regexp"
"testing"
"time"
@@ -125,6 +126,10 @@ func TestChainUpgrade(t *testing.T) {
require.Equal(t, upgradeHeight+1, systest.Sut.CurrentHeight())
regex, err := regexp.Compile("DBG this is a debug level message to test that verbose logging mode has properly been enabled during a chain upgrade")
require.NoError(t, err)
require.Equal(t, systest.Sut.NodesCount(), systest.Sut.FindLogMessage(regex))
// smoke test that new version runs
cli = systest.NewCLIWrapper(t, systest.Sut, systest.Verbose)
got := cli.Run("tx", "protocolpool", "fund-community-pool", "100stake", "--from=node0")