From bee1b463d215d162e355cd6ea5ea8e7993b33c2f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 25 Apr 2024 18:33:42 +0000 Subject: [PATCH 1/5] chore(deps): Bump golangci/golangci-lint-action from 4 to 5 Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 4 to 5. - [Release notes](https://github.com/golangci/golangci-lint-action/releases) - [Commits](https://github.com/golangci/golangci-lint-action/compare/v4...v5) --- updated-dependencies: - dependency-name: golangci/golangci-lint-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/golangci-lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index dbfd45b15..e519415b3 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -49,7 +49,7 @@ jobs: key: go-mod-cache-${{ hashFiles('**/go.sum') }} - name: golangci-lint - uses: golangci/golangci-lint-action@v4 + uses: golangci/golangci-lint-action@v5 with: # Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version version: v1.54.2 From 8f87e2f5bc491b26d55e765a8ec70c0699bd1793 Mon Sep 17 00:00:00 2001 From: Unique-Divine Date: Sat, 27 Apr 2024 07:41:04 -0500 Subject: [PATCH 2/5] ci: add CODECOV_TOKEN env var to secrets --- .github/workflows/integration-tests.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index e299a76e7..d35a69fe0 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -52,3 +52,7 @@ jobs: - name: "Upload coverage reports to Codecov" uses: codecov/codecov-action@v4 + with: + fail_ci_if_error: false + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} From ab7490fb84ae6b4ec1dfbeadac4392cf6a0d3fe9 Mon Sep 17 00:00:00 2001 From: Unique-Divine Date: Sat, 27 Apr 2024 12:58:16 -0500 Subject: [PATCH 3/5] ci settings --- .github/codecov.yml | 5 ++--- .github/workflows/integration-tests.yml | 2 -- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/codecov.yml b/.github/codecov.yml index 5baa518e6..29d4eb759 100644 --- a/.github/codecov.yml +++ b/.github/codecov.yml @@ -22,14 +22,13 @@ coverage: project: default: if_not_found: success - if_ci_failed: error - target: auto + target: 66% threshold: 1% # Allow coverage to drop by X%, posting a success status. # removed_code_behavior: Takes values [off, removals_only, adjust_base] removed_code_behavior: adjust_base patch: default: - target: 70% + target: 69% comment: # this is a top-level key layout: " diff, flags, files" diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index d35a69fe0..553387aa4 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -52,7 +52,5 @@ jobs: - name: "Upload coverage reports to Codecov" uses: codecov/codecov-action@v4 - with: - fail_ci_if_error: false env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} From 72e5b5756c1f9e80648f1fbe28c434701e4b5f40 Mon Sep 17 00:00:00 2001 From: Unique-Divine Date: Sat, 27 Apr 2024 17:58:38 +0000 Subject: [PATCH 4/5] Updated changelog - dependabot --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index bc238e98c..3e960c2e8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -111,6 +111,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Bump `golang.org/x/net` from 0.0.0-20220607020251-c690dde0001d to 0.23.0 in /geth ([#1849](https://github.com/NibiruChain/nibiru/pull/1849)) - Bump `golang.org/x/net` from 0.20.0 to 0.23.0 ([#1850](https://github.com/NibiruChain/nibiru/pull/1850)) - Bump `github.com/supranational/blst` from 0.3.8-0.20220526154634-513d2456b344 to 0.3.11 ([#1851](https://github.com/NibiruChain/nibiru/pull/1851)) +- Bump `golangci/golangci-lint-action` from 4 to 5 ([#1854](https://github.com/NibiruChain/nibiru/pull/1854)) ## [v1.2.0](https://github.com/NibiruChain/nibiru/releases/tag/v1.2.0) - 2024-03-28 From 158f3a1e66c73bd75acab806b5a865c80d686e07 Mon Sep 17 00:00:00 2001 From: Unique-Divine Date: Sat, 27 Apr 2024 12:59:09 -0500 Subject: [PATCH 5/5] refactor: run just fmt --- x/oracle/types/errors.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/x/oracle/types/errors.go b/x/oracle/types/errors.go index b51d42265..95332e116 100644 --- a/x/oracle/types/errors.go +++ b/x/oracle/types/errors.go @@ -2,11 +2,10 @@ package types import ( "fmt" + "sync/atomic" "github.com/cometbft/cometbft/crypto/tmhash" - "sync/atomic" - sdkerrors "cosmossdk.io/errors" )