From b7bf42aa5ebc7024e83f44199b2e0138d611ff2b Mon Sep 17 00:00:00 2001 From: Antonio Navarro Perez Date: Mon, 18 Sep 2023 16:45:40 +0200 Subject: [PATCH 1/2] chore: Fix codecov (#1146) Split coverages by component. Check if it works better than prev iteration after doing some research: https://docs.codecov.com/docs/carryforward-flags Signed-off-by: Antonio Navarro Perez - [x] Added new tests, or not needed, or not feasible - [x] Provided an example (e.g. screenshot) to aid review or the PR is self-explanatory - [x] Updated the official documentation or not needed - [x] No breaking changes were made, or a `BREAKING CHANGE: xxx` message was included in the description - [x] Added references to related issues and PRs - [x] Provided any useful hints for running manual tests - [x] Added new benchmarks to [generated graphs](https://gnoland.github.io/benchmarks), if any. More info [here](https://github.com/gnolang/gno/blob/master/.benchmarks/README.md). Signed-off-by: Antonio Navarro Perez --- .github/codecov.yml | 36 +++++++++++++++--------------------- 1 file changed, 15 insertions(+), 21 deletions(-) diff --git a/.github/codecov.yml b/.github/codecov.yml index fbc48d2d22b..cd8860c3a68 100644 --- a/.github/codecov.yml +++ b/.github/codecov.yml @@ -7,34 +7,28 @@ ignore: - misc comment: - layout: "header, diff, flags, components" - require_changes: true + require_changes: false coverage: - #range: 50..100 round: down precision: 2 - status: - project: - default: + +flag_management: + default_rules: + carryforward: true + statuses: + - type: project target: auto threshold: 0.5% - #informational: true - patch: - default: + - type: patch target: auto - -component_management: - individual_components: - - component_id: tm2 - name: tm2 + individual_flags: + - name: tm2 paths: - - tm2 - - component_id: gnovm - name: gnovm + - tm2 + - name: gnovm paths: - - gnovm - - component_id: gno.land - name: gno.land + - gnovm + - name: gno.land paths: - - gno.land + - gno.land From 61f3adaaa758d6c8026cb18e5595b2967469cff2 Mon Sep 17 00:00:00 2001 From: Manfred Touron <94029+moul@users.noreply.github.com> Date: Mon, 18 Sep 2023 18:09:05 +0200 Subject: [PATCH 2/2] chore: add empty test files for consistent coverage (#1147) Fixing this: ![CleanShot 2023-09-18 at 16 29 59](https://github.com/gnolang/gno/assets/94029/f0139de3-f1d6-412d-9ba9-4f897bf4d2f3) Related with #1139 Signed-off-by: Manfred Touron <94029+moul@users.noreply.github.com> --- gno.land/cmd/gnofaucet/main_test.go | 1 + gno.land/cmd/gnokey/main_test.go | 1 + gno.land/cmd/gnotxsync/main_test.go | 1 + 3 files changed, 3 insertions(+) create mode 100644 gno.land/cmd/gnofaucet/main_test.go create mode 100644 gno.land/cmd/gnokey/main_test.go create mode 100644 gno.land/cmd/gnotxsync/main_test.go diff --git a/gno.land/cmd/gnofaucet/main_test.go b/gno.land/cmd/gnofaucet/main_test.go new file mode 100644 index 00000000000..06ab7d0f9a3 --- /dev/null +++ b/gno.land/cmd/gnofaucet/main_test.go @@ -0,0 +1 @@ +package main diff --git a/gno.land/cmd/gnokey/main_test.go b/gno.land/cmd/gnokey/main_test.go new file mode 100644 index 00000000000..06ab7d0f9a3 --- /dev/null +++ b/gno.land/cmd/gnokey/main_test.go @@ -0,0 +1 @@ +package main diff --git a/gno.land/cmd/gnotxsync/main_test.go b/gno.land/cmd/gnotxsync/main_test.go new file mode 100644 index 00000000000..06ab7d0f9a3 --- /dev/null +++ b/gno.land/cmd/gnotxsync/main_test.go @@ -0,0 +1 @@ +package main