From f4381622bc19f32a7d1574d1409c0f4ced94ca8e Mon Sep 17 00:00:00 2001 From: Manfred Touron <94029+moul@users.noreply.github.com> Date: Thu, 21 Sep 2023 14:11:16 +0200 Subject: [PATCH 01/13] Update codecov.yml --- .github/codecov.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/codecov.yml b/.github/codecov.yml index cd8860c3a68..08f1e48cc46 100644 --- a/.github/codecov.yml +++ b/.github/codecov.yml @@ -1,7 +1,7 @@ codecov: require_ci_to_pass: false notify: - wait_for_ci: false + wait_for_ci: true ignore: - misc From 8ed74e1ea2048e0796fa58bfe88991f8cf889034 Mon Sep 17 00:00:00 2001 From: Manfred Touron <94029+moul@users.noreply.github.com> Date: Thu, 21 Sep 2023 14:19:47 +0200 Subject: [PATCH 02/13] Update gh-pages.yml --- .github/workflows/gh-pages.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 2233132e745..230a1f9cdb9 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -30,6 +30,7 @@ jobs: path: ./misc/gendocs/godoc deploy: + if: ${{ github.repository == 'gnolang/gno' }} # Alternatively, validate based on provided tokens and permissions. runs-on: ubuntu-latest environment: name: github-pages From 0fccd2021fbc05db2db2f83f348b8907869540f8 Mon Sep 17 00:00:00 2001 From: Manfred Touron <94029+moul@users.noreply.github.com> Date: Thu, 21 Sep 2023 14:31:28 +0200 Subject: [PATCH 03/13] Update gh-pages.yml --- .github/workflows/gh-pages.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 230a1f9cdb9..8f57bec80a1 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -17,6 +17,7 @@ concurrency: jobs: build: + if: ${{ github.repository == 'gnolang/gno' }} # Alternatively, validate based on provided tokens and permissions. runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 From ce42c1d4908c493e652cac72c1acbed748c1e2f8 Mon Sep 17 00:00:00 2001 From: Manfred Touron <94029+moul@users.noreply.github.com> Date: Thu, 21 Sep 2023 14:55:15 +0200 Subject: [PATCH 04/13] Update benchmark.yml --- .github/workflows/benchmark.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 8b8c6f618c5..63490c0bfa1 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -10,6 +10,7 @@ on: type: string jobs: benchmarks: + if: ${{ github.repository == 'gnolang/gno' }} runs-on: [self-hosted, Linux, X64, benchmark-v1] steps: - name: checkout From f531d8b11a66588e16a2bce7dbc553bdcd9c0781 Mon Sep 17 00:00:00 2001 From: Manfred Touron <94029+moul@users.noreply.github.com> Date: Thu, 21 Sep 2023 15:10:26 +0200 Subject: [PATCH 05/13] Update tm2.yml --- .github/workflows/tm2.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tm2.yml b/.github/workflows/tm2.yml index 1be5bedc6c9..24ff72cb1a0 100644 --- a/.github/workflows/tm2.yml +++ b/.github/workflows/tm2.yml @@ -66,7 +66,7 @@ jobs: with: token: ${{ secrets.CODECOV_TOKEN }} name: tm2 - flags: tm2-${{matrix.args}} + flags: tm2-${{matrix.args}}-${{matrix.go-version}} files: ./tm2/coverage.out #fail_ci_if_error: ${{ github.repository == 'gnolang/gno' }} fail_ci_if_error: false # temporarily From 3f4b028af8a1551e47cab287615d1a7c18f65d60 Mon Sep 17 00:00:00 2001 From: Manfred Touron <94029+moul@users.noreply.github.com> Date: Thu, 21 Sep 2023 15:10:44 +0200 Subject: [PATCH 06/13] Update gnovm.yml --- .github/workflows/gnovm.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/gnovm.yml b/.github/workflows/gnovm.yml index e545e4ac6db..7c1f27df141 100644 --- a/.github/workflows/gnovm.yml +++ b/.github/workflows/gnovm.yml @@ -77,7 +77,7 @@ jobs: with: token: ${{ secrets.CODECOV_TOKEN }} name: gnovm - flags: gnovm-${{matrix.args}} + flags: gnovm-${{matrix.args}}-${{matrix.go-version}} files: ./gnovm/coverage.out #fail_ci_if_error: ${{ github.repository == 'gnolang/gno' }} fail_ci_if_error: false # temporarily From d88345ac9d03931e579be90610761b75928434b2 Mon Sep 17 00:00:00 2001 From: Manfred Touron <94029+moul@users.noreply.github.com> Date: Thu, 21 Sep 2023 15:10:59 +0200 Subject: [PATCH 07/13] Update gnoland.yml --- .github/workflows/gnoland.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/gnoland.yml b/.github/workflows/gnoland.yml index 902d0f41954..e99fc9e0fea 100644 --- a/.github/workflows/gnoland.yml +++ b/.github/workflows/gnoland.yml @@ -73,7 +73,7 @@ jobs: with: token: ${{ secrets.CODECOV_TOKEN }} name: gno.land - flags: gno.land-${{matrix.args}} + flags: gno.land-${{matrix.args}}-${{matrix.go-version}} files: ./gno.land/coverage.out #fail_ci_if_error: ${{ github.repository == 'gnolang/gno' }} fail_ci_if_error: false # temporarily From 5e5e349814f90e351de664e8da9c9e5b771508ea Mon Sep 17 00:00:00 2001 From: Manfred Touron <94029+moul@users.noreply.github.com> Date: Thu, 21 Sep 2023 15:18:55 +0200 Subject: [PATCH 08/13] Update alloc.go --- gnovm/pkg/gnolang/alloc.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/gnovm/pkg/gnolang/alloc.go b/gnovm/pkg/gnolang/alloc.go index a83f8102a2b..a68006a4a0a 100644 --- a/gnovm/pkg/gnolang/alloc.go +++ b/gnovm/pkg/gnolang/alloc.go @@ -14,6 +14,19 @@ type Allocator struct { // for gonative, which doesn't consider the allocator. var nilAllocator = (*Allocator)(nil) + +func untestedCodeForCI() { + if true { + if true { + if true { + if true { + if true { + if true { + var _ = 42 + }}}}}} +} + + const ( // go elemental _allocBase = 24 // defensive... XXX From 3b1012ab41ce71805b71726e23a49aed99831568 Mon Sep 17 00:00:00 2001 From: Manfred Touron <94029+moul@users.noreply.github.com> Date: Thu, 21 Sep 2023 15:19:16 +0200 Subject: [PATCH 09/13] Update alloc.go --- gnovm/pkg/gnolang/alloc.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/gnovm/pkg/gnolang/alloc.go b/gnovm/pkg/gnolang/alloc.go index a68006a4a0a..a83f8102a2b 100644 --- a/gnovm/pkg/gnolang/alloc.go +++ b/gnovm/pkg/gnolang/alloc.go @@ -14,19 +14,6 @@ type Allocator struct { // for gonative, which doesn't consider the allocator. var nilAllocator = (*Allocator)(nil) - -func untestedCodeForCI() { - if true { - if true { - if true { - if true { - if true { - if true { - var _ = 42 - }}}}}} -} - - const ( // go elemental _allocBase = 24 // defensive... XXX From f785711b9ccaeeae52d90e4175d4e28eebd8de4c Mon Sep 17 00:00:00 2001 From: Manfred Touron <94029+moul@users.noreply.github.com> Date: Thu, 21 Sep 2023 15:37:47 +0200 Subject: [PATCH 10/13] Update codecov.yml --- .github/codecov.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/codecov.yml b/.github/codecov.yml index 08f1e48cc46..b5dbe3f6cd5 100644 --- a/.github/codecov.yml +++ b/.github/codecov.yml @@ -12,6 +12,14 @@ comment: coverage: round: down precision: 2 + status: + project: + default: + threshold: 0.5% + patch: + default: + threshold: 0.5% + flag_management: default_rules: @@ -21,7 +29,7 @@ flag_management: target: auto threshold: 0.5% - type: patch - target: auto + threshold: 0.5% individual_flags: - name: tm2 paths: From c39fec8421a372352ec723d235e56ace47b6b623 Mon Sep 17 00:00:00 2001 From: Manfred Touron <94029+moul@users.noreply.github.com> Date: Thu, 21 Sep 2023 15:37:57 +0200 Subject: [PATCH 11/13] Update codecov.yml --- .github/codecov.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/codecov.yml b/.github/codecov.yml index b5dbe3f6cd5..a09ccd937d3 100644 --- a/.github/codecov.yml +++ b/.github/codecov.yml @@ -19,7 +19,6 @@ coverage: patch: default: threshold: 0.5% - flag_management: default_rules: From 1d6397ef1d8465550021900606368753b0fede35 Mon Sep 17 00:00:00 2001 From: Manfred Touron <94029+moul@users.noreply.github.com> Date: Thu, 21 Sep 2023 15:19:26 +0200 Subject: [PATCH 12/13] Update alloc.go --- gnovm/pkg/gnolang/alloc.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/gnovm/pkg/gnolang/alloc.go b/gnovm/pkg/gnolang/alloc.go index a83f8102a2b..a68006a4a0a 100644 --- a/gnovm/pkg/gnolang/alloc.go +++ b/gnovm/pkg/gnolang/alloc.go @@ -14,6 +14,19 @@ type Allocator struct { // for gonative, which doesn't consider the allocator. var nilAllocator = (*Allocator)(nil) + +func untestedCodeForCI() { + if true { + if true { + if true { + if true { + if true { + if true { + var _ = 42 + }}}}}} +} + + const ( // go elemental _allocBase = 24 // defensive... XXX From 9c52f553bcb67748c40eb0caaab95a8c6d119f0f Mon Sep 17 00:00:00 2001 From: moul <94029+moul@users.noreply.github.com> Date: Thu, 21 Sep 2023 15:23:19 +0200 Subject: [PATCH 13/13] chore: fixup Signed-off-by: moul <94029+moul@users.noreply.github.com> --- gnovm/pkg/gnolang/alloc.go | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/gnovm/pkg/gnolang/alloc.go b/gnovm/pkg/gnolang/alloc.go index a68006a4a0a..a1f700adaf8 100644 --- a/gnovm/pkg/gnolang/alloc.go +++ b/gnovm/pkg/gnolang/alloc.go @@ -14,19 +14,22 @@ type Allocator struct { // for gonative, which doesn't consider the allocator. var nilAllocator = (*Allocator)(nil) - func untestedCodeForCI() { if true { - if true { - if true { - if true { - if true { - if true { - var _ = 42 - }}}}}} + if true { + if true { + if true { + if true { + if true { + _ = 42 + } + } + } + } + } + } } - const ( // go elemental _allocBase = 24 // defensive... XXX