From 19a42f6c7ab4ea82efb9b61a072fb2d7f3c91751 Mon Sep 17 00:00:00 2001 From: lumtis Date: Mon, 19 Feb 2024 22:22:02 +0100 Subject: [PATCH 1/6] codecov config --- codecov.yml | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 codecov.yml diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000000..647094cf84 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,74 @@ +coverage: + round: down + precision: 2 + status: + project: + default: + threshold: 1% # allow this much decrease on project + zetacore: + if_ci_failed: error + target: 60% + flags: + - zetacore + zetaclient: + if_ci_failed: error + target: 60% + flags: + - zetaclient + common: + if_ci_failed: error + target: 60% + flags: + - common + +comment: + layout: "reach, diff, files" + behavior: default + require_changes: true + +flags: + zetacore: + carryforward: true + paths: + - "x/" + zetaclient: + carryforward: true + paths: + - "zetaclient/" + common: + carryforward: true + paths: + - "common/" + +ignore: + - "x/**/client/" + - "x/**/keeper/keeper.go" + - "x/**/keeper/msg_server.go" + - "x/**/keeper/grpc_query_params.go" + - "x/**/types/codec.go" + - "x/**/types/errors.go" + - "x/**/types/keys.go" + - "x/**/types/key_*.go" + - "x/**/types/types.go" + - "x/**/types/expected_keepers.go" + - "x/**/module.go" + - "x/**/module_simulation.go" + - "x/**/simulation/" + - "*.proto" + - "*.md" + - "*.yml" + - "*.yaml" + - "*.pb.go" + - "*.pb.gw.go" + - "*.json" + - ".github/" + - "app/" + - "cmd/" + - "contrib/" + - "docs/" + - "rpc/" + - "proto/" + - "scripts/" + - "server/" + - "testutil/" + - "typescript/" \ No newline at end of file From d0b9d805d3700c63029b852e69070ab092833547 Mon Sep 17 00:00:00 2001 From: lumtis Date: Mon, 19 Feb 2024 22:31:20 +0100 Subject: [PATCH 2/6] update CI --- .github/workflows/build.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9c0f6058db..160afa6a68 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -59,7 +59,15 @@ jobs: command: | echo "Running Build Tests" make clean - make test + make test-coverage + + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v4.0.1 + with: + file: coverage.out + env: + token: ${{ secrets.CODECOV_TOKEN }} + slug: zeta-chain/node - name: Build zetacored and zetaclientd env: From a04667a9073bc98e8197cc218e1704c1e9b61861 Mon Sep 17 00:00:00 2001 From: lumtis Date: Mon, 19 Feb 2024 22:35:21 +0100 Subject: [PATCH 3/6] changelog --- changelog.md | 1 + 1 file changed, 1 insertion(+) diff --git a/changelog.md b/changelog.md index 45b7888344..f6b6552e2d 100644 --- a/changelog.md +++ b/changelog.md @@ -50,6 +50,7 @@ * Added docker-compose and make commands for launching full nodes. `make mainnet-zetarpc-node` `make mainnet-bitcoind-node` * Made adjustments to the docker-compose for launching mainnet full nodes to include examples of using the docker images build from the docker image build pipeline. * [1736](https://github.com/zeta-chain/node/pull/1736) - chore: add Ethermint endpoints to OpenAPI +* [1781](https://github.com/zeta-chain/node/pull/1781) - add codecov coverage report in CI ### Chores From 456a238d22a6bdea50ed754afb87e514d0c52d9f Mon Sep 17 00:00:00 2001 From: lumtis Date: Tue, 20 Feb 2024 10:37:11 +0100 Subject: [PATCH 4/6] try removing env --- .github/workflows/build.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 160afa6a68..53b6f240cf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -65,7 +65,6 @@ jobs: uses: codecov/codecov-action@v4.0.1 with: file: coverage.out - env: token: ${{ secrets.CODECOV_TOKEN }} slug: zeta-chain/node From 7ec51f5bdb14deec8f276614ebfa3aad0d49b2aa Mon Sep 17 00:00:00 2001 From: lumtis Date: Wed, 21 Feb 2024 17:32:35 +0100 Subject: [PATCH 5/6] add step to publish release --- .github/workflows/publish-release.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 04988adeb0..f53b32f528 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -216,7 +216,14 @@ jobs: command: | echo "Running Build Tests" make clean - make test + make test-coverag + + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v4.0.1 + with: + file: coverage.out + token: ${{ secrets.CODECOV_TOKEN }} + slug: zeta-chain/node - name: Build zetacored and zetaclientd if: ${{ github.event.inputs.skip_checks != 'true' }} From ae34a3cd7d104601ce56f1c9d87ad464b50ed234 Mon Sep 17 00:00:00 2001 From: lumtis Date: Wed, 21 Feb 2024 17:33:50 +0100 Subject: [PATCH 6/6] coverage typ --- .github/workflows/publish-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index f53b32f528..277bc9e654 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -216,7 +216,7 @@ jobs: command: | echo "Running Build Tests" make clean - make test-coverag + make test-coverage - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v4.0.1