diff --git a/test/e2e/btc_timestamping_e2e_test.go b/test/e2e/btc_timestamping_e2e_test.go index 8884209cc..8e985113d 100644 --- a/test/e2e/btc_timestamping_e2e_test.go +++ b/test/e2e/btc_timestamping_e2e_test.go @@ -38,7 +38,6 @@ func (s *BTCTimestampingTestSuite) SetupSuite() { // 3. Run IBC relayer between the two chains. // 4. Execute various e2e tests, including IBC s.configurer, err = configurer.NewBTCTimestampingConfigurer(s.T(), true) - s.Require().NoError(err) err = s.configurer.ConfigureChains() diff --git a/test/e2e/configurer/base.go b/test/e2e/configurer/base.go index de34baa2e..7857397f6 100644 --- a/test/e2e/configurer/base.go +++ b/test/e2e/configurer/base.go @@ -70,6 +70,8 @@ func (bc *baseConfigurer) RunValidators() error { func (bc *baseConfigurer) runValidators(chainConfig *chain.Config) error { bc.t.Logf("starting %s validator containers...", chainConfig.Id) for _, node := range chainConfig.NodeConfigs { + fmt.Printf("\n runValidators: %s - ", node.Name) + if err := node.Run(); err != nil { return err } diff --git a/test/e2e/configurer/chain/node.go b/test/e2e/configurer/chain/node.go index c07288c17..085cbd872 100644 --- a/test/e2e/configurer/chain/node.go +++ b/test/e2e/configurer/chain/node.go @@ -53,6 +53,7 @@ func (n *NodeConfig) Run() error { if err != nil { return err } + fmt.Printf("\n running node resource %s - chainId: %s", n.Name, n.chainId) hostPort := resource.GetHostPort("26657/tcp") rpcClient, err := rpchttp.New("tcp://"+hostPort, "/websocket") diff --git a/test/e2e/configurer/current.go b/test/e2e/configurer/current.go index ca2c26ae6..a6686e13e 100644 --- a/test/e2e/configurer/current.go +++ b/test/e2e/configurer/current.go @@ -1,6 +1,7 @@ package configurer import ( + "fmt" "os" "testing" "time" @@ -40,12 +41,12 @@ func (cb *CurrentBranchConfigurer) ConfigureChains() error { func (cb *CurrentBranchConfigurer) ConfigureChain(chainConfig *chain.Config) error { cb.t.Logf("starting e2e infrastructure from current branch for chain-id: %s", chainConfig.Id) - tmpDir, err := os.MkdirTemp("", "bbn-e2e-testnet-") + tmpDir, err := os.MkdirTemp("", "bbn-e2e-testnet-*") if err != nil { return err } cb.t.Logf("temp directory for chain-id %v: %v", chainConfig.Id, tmpDir) - + fmt.Printf("\n tmp dir for config chain %s - ", tmpDir) initializedChain, err := initialization.InitChain( chainConfig.Id, tmpDir, diff --git a/test/e2e/configurer/upgrade.go b/test/e2e/configurer/upgrade.go index 20f5f8bab..0b40c106d 100644 --- a/test/e2e/configurer/upgrade.go +++ b/test/e2e/configurer/upgrade.go @@ -81,7 +81,7 @@ func (uc *UpgradeConfigurer) ConfigureChains() error { func (uc *UpgradeConfigurer) ConfigureChain(chainConfig *chain.Config) error { uc.t.Logf("starting upgrade e2e infrastructure for chain-id: %s", chainConfig.Id) - tmpDir, err := os.MkdirTemp("", "bbn-e2e-testnet-") + tmpDir, err := os.MkdirTemp("", "bbn-e2e-testnet-*") if err != nil { return err } diff --git a/test/e2e/containers/containers.go b/test/e2e/containers/containers.go index 143afbb80..c36ba1eba 100644 --- a/test/e2e/containers/containers.go +++ b/test/e2e/containers/containers.go @@ -254,6 +254,7 @@ func (m *Manager) RunNodeResource(chainId string, containerName, valCondifDir st return nil, err } + fmt.Printf("\nrunning RunNodeResource container name %s", containerName) runOpts := &dockertest.RunOptions{ Name: containerName, Repository: m.CurrentRepository, @@ -361,6 +362,8 @@ func (m *Manager) RunChainInitResource(chainId string, chainVotingPeriod, chainE votingPeriodDuration := time.Duration(chainVotingPeriod * 1000000000) expeditedVotingPeriodDuration := time.Duration(chainExpeditedVotingPeriod * 1000000000) + fmt.Printf("\n running RunChainInitResource %s", chainId) + fmt.Printf("\n running network %s", m.network.Network.ID) initResource, err := m.pool.RunWithOptions( &dockertest.RunOptions{ Name: chainId, diff --git a/test/e2e/initialization/init.go b/test/e2e/initialization/init.go index 94e8ca3e5..04828a4e5 100644 --- a/test/e2e/initialization/init.go +++ b/test/e2e/initialization/init.go @@ -17,6 +17,7 @@ func InitChain(id, dataDir string, nodeConfigs []*NodeConfig, votingPeriod, expe } for _, nodeConfig := range nodeConfigs { + fmt.Printf("\n newNode node %s-%s is Validator %+v", chain.chainMeta.Id, nodeConfig.Name, nodeConfig.IsValidator) newNode, err := newNode(chain, nodeConfig) if err != nil { return nil, err @@ -32,6 +33,7 @@ func InitChain(id, dataDir string, nodeConfigs []*NodeConfig, votingPeriod, expe for _, peer := range chain.nodes { peerID := fmt.Sprintf("%s@%s:26656", peer.getNodeKey().ID(), peer.moniker) peer.peerId = peerID + fmt.Printf("\n node peerID: %s - moniker %s", peerID, peer.moniker) peers = append(peers, peerID) } diff --git a/test/e2e/initialization/node.go b/test/e2e/initialization/node.go index 17eddb24d..effefc48e 100644 --- a/test/e2e/initialization/node.go +++ b/test/e2e/initialization/node.go @@ -352,6 +352,7 @@ func (n *internalNode) initNodeConfigs(persistentPeers []string) error { valConfig.P2P.ListenAddress = "tcp://0.0.0.0:26656" valConfig.P2P.AddrBookStrict = false valConfig.P2P.ExternalAddress = fmt.Sprintf("%s:%d", n.moniker, 26656) + fmt.Printf("\ninitNodeConfigs %+v - external addr %s", persistentPeers, valConfig.P2P.ExternalAddress) valConfig.RPC.ListenAddress = "tcp://0.0.0.0:26657" valConfig.StateSync.Enable = false valConfig.LogLevel = "debug"