From ec3e29349742069d16dd5a27657ce35572fe2540 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ecl=C3=A9sio=20Junior?= Date: Wed, 6 Sep 2023 14:17:36 -0400 Subject: [PATCH 1/2] chore: only initialize if it is not initialized (#3467) --- dot/node.go | 2 +- dot/node_integration_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dot/node.go b/dot/node.go index 3b236d7dc6..0ff83f2f1a 100644 --- a/dot/node.go +++ b/dot/node.go @@ -258,7 +258,7 @@ func newNode(config *cfg.Config, return nil, fmt.Errorf("checking if node is initialised: %w", err) } - if isInitialised { + if !isInitialised { err := builder.initNode(config) if err != nil { return nil, fmt.Errorf("cannot initialise node: %w", err) diff --git a/dot/node_integration_test.go b/dot/node_integration_test.go index 401f71a67f..19e048b92e 100644 --- a/dot/node_integration_test.go +++ b/dot/node_integration_test.go @@ -88,7 +88,7 @@ func TestNewNode(t *testing.T) { mockServiceRegistry.EXPECT().RegisterService(gomock.Any()).Times(8) m := NewMocknodeBuilderIface(ctrl) - m.EXPECT().isNodeInitialised(initConfig.BasePath).Return(false, nil) + m.EXPECT().isNodeInitialised(initConfig.BasePath).Return(true, nil) m.EXPECT().createStateService(initConfig).DoAndReturn(func(config *cfg.Config) (*state.Service, error) { stateSrvc := state.NewService(stateConfig) // create genesis from configuration file From 80558c458ae359175f821978116912928065302a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 11 Sep 2023 10:22:44 -0400 Subject: [PATCH 2/2] chore(deps): bump actions/checkout from 3 to 4 (#3475) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/build.yml | 4 ++-- .github/workflows/checks.yml | 2 +- .github/workflows/copyright.yml | 2 +- .github/workflows/devnet.yml | 2 +- .github/workflows/docs.yml | 2 +- .github/workflows/fuzz.yml | 2 +- .github/workflows/integration-tests.yml | 2 +- .github/workflows/mocks.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/staging.yml | 2 +- .github/workflows/unit-tests.yml | 2 +- .github/workflows/zombienet.yml | 2 +- 12 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3c5a048256..9099851051 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -42,7 +42,7 @@ jobs: echo "::set-output name=go-build::$(go env GOCACHE)" echo "::set-output name=go-mod::$(go env GOMODCACHE)" - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Go build cache uses: actions/cache@v3 @@ -77,7 +77,7 @@ jobs: echo "::set-output name=go-build::$(go env GOCACHE)" echo "::set-output name=go-mod::$(go env GOMODCACHE)" - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Go build cache uses: actions/cache@v3 diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 206c21d556..2836259ae5 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -21,7 +21,7 @@ jobs: with: all_but_latest: true - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-go@v4 with: diff --git a/.github/workflows/copyright.yml b/.github/workflows/copyright.yml index 9534e13691..fe843b1c0f 100644 --- a/.github/workflows/copyright.yml +++ b/.github/workflows/copyright.yml @@ -19,7 +19,7 @@ jobs: with: all_but_latest: true - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-go@v4 with: diff --git a/.github/workflows/devnet.yml b/.github/workflows/devnet.yml index ad03288307..e207ba3e7d 100644 --- a/.github/workflows/devnet.yml +++ b/.github/workflows/devnet.yml @@ -13,7 +13,7 @@ jobs: with: all_but_latest: true - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-go@v4 with: diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 1136b85780..7db63832b8 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -15,7 +15,7 @@ jobs: runs-on: buildjet-4vcpu-ubuntu-2204 steps: - name: Checkout main - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Deploy docs uses: mhausenblas/mkdocs-deploy-gh-pages@master diff --git a/.github/workflows/fuzz.yml b/.github/workflows/fuzz.yml index 05fb9902bd..c27f136fea 100644 --- a/.github/workflows/fuzz.yml +++ b/.github/workflows/fuzz.yml @@ -24,7 +24,7 @@ jobs: echo "::set-output name=go-build::$(go env GOCACHE)" echo "::set-output name=go-mod::$(go env GOMODCACHE)" - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Go build cache uses: actions/cache@v3 diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 6027638499..1d6619f270 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -54,7 +54,7 @@ jobs: echo "::set-output name=go-build::$(go env GOCACHE)" echo "::set-output name=go-mod::$(go env GOMODCACHE)" - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Go build cache uses: actions/cache@v3 diff --git a/.github/workflows/mocks.yml b/.github/workflows/mocks.yml index 6940c929fe..9e478ac3da 100644 --- a/.github/workflows/mocks.yml +++ b/.github/workflows/mocks.yml @@ -18,7 +18,7 @@ jobs: with: all_but_latest: true - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-go@v4 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 10b104e29c..b2204dde88 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,7 +10,7 @@ jobs: runs-on: buildjet-4vcpu-ubuntu-2204 steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Setup Node.js diff --git a/.github/workflows/staging.yml b/.github/workflows/staging.yml index d935960155..b3c29f0b96 100644 --- a/.github/workflows/staging.yml +++ b/.github/workflows/staging.yml @@ -11,7 +11,7 @@ jobs: chain: [polkadot, kusama, westend] runs-on: buildjet-4vcpu-ubuntu-2204 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@v3 diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 359c5d3c10..752948f2bb 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -39,7 +39,7 @@ jobs: echo "::set-output name=go-build::$(go env GOCACHE)" echo "::set-output name=go-mod::$(go env GOMODCACHE)" - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Go build cache uses: actions/cache@v3 diff --git a/.github/workflows/zombienet.yml b/.github/workflows/zombienet.yml index 559ca8f1d2..10b9bf8b7d 100644 --- a/.github/workflows/zombienet.yml +++ b/.github/workflows/zombienet.yml @@ -18,7 +18,7 @@ jobs: run: | echo "::set-output name=go-build::$(go env GOCACHE)" echo "::set-output name=go-mod::$(go env GOMODCACHE)" - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Go build cache uses: actions/cache@v3 with: