From 3967077112069afc40996a6e715647fd15a6a288 Mon Sep 17 00:00:00 2001 From: mrekucci Date: Tue, 21 Nov 2023 22:35:51 +0800 Subject: [PATCH] chore: lower beekeeper timeout [debug] --- .github/workflows/beekeeper.yml | 4 ++-- pkg/settlement/swap/chequebook/factory.go | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/beekeeper.yml b/.github/workflows/beekeeper.yml index 2c5541599d6..f97b75116e2 100644 --- a/.github/workflows/beekeeper.yml +++ b/.github/workflows/beekeeper.yml @@ -11,13 +11,13 @@ env: K3S_VERSION: "v1.22.17+k3s1" REPLICA: 3 RUN_TYPE: "PR RUN" - SETUP_CONTRACT_IMAGE_TAG: "2.0.1" + SETUP_CONTRACT_IMAGE_TAG: "2.0.2" BEELOCAL_BRANCH: "main" BEEKEEPER_BRANCH: "master" BEEKEEPER_METRICS_ENABLED: false REACHABILITY_OVERRIDE_PUBLIC: true BATCHFACTOR_OVERRIDE_PUBLIC: 2 - TIMEOUT: 30m + TIMEOUT: 4m BUCKET_NAME: swarm-beekeeper-artifacts AWS_ACCESS_KEY_ID: ${{ secrets.DO_AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.DO_AWS_SECRET_ACCESS_KEY }} diff --git a/pkg/settlement/swap/chequebook/factory.go b/pkg/settlement/swap/chequebook/factory.go index e1cb19e8ea6..5c72eda4089 100644 --- a/pkg/settlement/swap/chequebook/factory.go +++ b/pkg/settlement/swap/chequebook/factory.go @@ -12,6 +12,7 @@ import ( "github.com/ethereum/go-ethereum/accounts/abi" "github.com/ethereum/go-ethereum/common" + "github.com/ethersphere/bee/pkg/log" "github.com/ethersphere/bee/pkg/sctx" "github.com/ethersphere/bee/pkg/transaction" "github.com/ethersphere/bee/pkg/util/abiutil" @@ -114,11 +115,14 @@ func (c *factory) WaitDeployed(ctx context.Context, txHash common.Hash) (common. // VerifyBytecode checks that the factory is valid. func (c *factory) VerifyBytecode(ctx context.Context) (err error) { + logger := log.NewLogger("node").WithName("chequebook-factory").Register() + logger.Info("factory address", "address", c.address) code, err := c.backend.CodeAt(ctx, c.address, nil) if err != nil { return err } + logger.Info("factory code", "code", code) if !bytes.Equal(code, currentDeployVersion) { return ErrInvalidFactory }