Skip to content

Commit

Permalink
Merge branch 'master' into feat/better-coins
Browse files Browse the repository at this point in the history
  • Loading branch information
leohhhn authored May 14, 2024
2 parents 3726e62 + c30d0f1 commit 4005e73
Show file tree
Hide file tree
Showing 264 changed files with 5,007 additions and 1,651 deletions.
104 changes: 64 additions & 40 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -3,64 +3,87 @@
# Primary repo maintainers.
* @gnolang/tech-staff

# Tendermint2 (Gno version).
/tm2/* @gnolang/tech-staff
/tm2/pkg @jaekwon @piux2 @moul @zivkovicmilos
/tm2/pkg/crypto @jaekwon @moul @gnolang/security
# Tendermint2.
/tm2/ @jaekwon @moul @piux2 @zivkovicmilos
/tm2/pkg/crypto/ @jaekwon @moul @gnolang/security
/tm2/pkg/crypto/keys/client/ @jaekwon @gnolang/security
/tm2/pkg/db/ @ajnavarro
# TODO: add per package exceptions
# ...

# Docs & Content.
/docs/ @gnolang/devrels
/misc/docusaurus/ @gnolang/devrels
/README.md @gnolang/devrels
/docs/ @moul
/docs/**.md @gnolang/devrels
/docs/**.gif @gnolang/devrels
/docs/Makefile @gnolang/devrels
/README.md @moul @gnolang/devrels
/**/README.md @gnolang/devrels
/.gitpod.yml @gnolang/devrels

# Gno examples and default contracts.
/examples/ @gnolang/tech-staff @gnolang/devrels
/examples/gno.land/p/demo/ @gnolang/tech-staff @gnolang/devrels
/examples/gno.land/r/demo/ @gnolang/tech-staff @gnolang/devrels
/examples/gno.land/r/gnoland/ @moul
/examples/gno.land/p/gov/ @moul
/examples/gno.land/p/sys/ @moul
/examples/gno.land/r/gov/ @moul
/examples/gno.land/r/sys/ @moul
/examples/gno.land/r/worx/ @moul
/examples/gno.land/r/x @gnolang/devrels
# TODO: add people from the community here.
/examples/gno.land/r/jaekwon/ @jaekwon
/examples/gno.land/r/manfred/ @moul
/examples/ @gnolang/tech-staff @gnolang/devrels
/examples/gno.land/p/demo/ @gnolang/tech-staff @gnolang/devrels
/examples/gno.land/p/demo/avl/ @jaekwon
/examples/gno.land/p/demo/bf/ @moul
/examples/gno.land/p/demo/blog/ @gnolang/devrels
/examples/gno.land/p/demo/cford32/ @thehowl
/examples/gno.land/p/demo/memeland/ @leohhhn
/examples/gno.land/p/demo/seqid/ @thehowl
/examples/gno.land/p/demo/ownable/ @leohhhn
/examples/gno.land/p/demo/pausable/ @leohhhn
/examples/gno.land/p/demo/stack/ @harry-hov
/examples/gno.land/p/demo/svg/ @moul
/examples/gno.land/p/demo/tamagotchi/ @moul
/examples/gno.land/p/demo/ui/ @moul
/examples/gno.land/r/demo/ @gnolang/tech-staff @gnolang/devrels
/examples/gno.land/r/demo/art/ @moul
/examples/gno.land/r/demo/memeland/ @leohhhn
/examples/gno.land/r/demo/tamagotchi/ @moul
/examples/gno.land/r/demo/userbook/ @leohhhn
/examples/gno.land/r/gnoland/ @moul
/examples/gno.land/r/sys/ @moul
/examples/gno.land/r/jaekwon/ @jaekwon
/examples/gno.land/r/manfred/ @moul

# Gno.land.
/gno.land/ @moul
/gno.land/pkg/integration @gfanton
/gno.land/ @moul @zivkovicmilos
/gno.land/cmd/genesis/ @zivkovicmilos
/gno.land/cmd/gnokey/ @jaekwon @moul @gfanton
/gno.land/cmd/gnoland/ @zivkovicmilos @gnolang/devops
/gno.land/cmd/gnoweb/ @gfanton @thehowl
/gno.land/pkg/gnoclient/ @zivkovicmilos @leohhhn @gfanton
/gno.land/pkg/gnoland/ @zivkovicmilos @gfanton
/gno.land/pkg/keyscli/ @jaekwon @moul @gfanton
/gno.land/pkg/log/ @zivkovicmilos @gfanton
/gno.land/pkg/sdk/vm/ @moul @gfanton @thehowl
/gno.land/pkg/integration/ @gfanton
/gno.land/genesis/ @moul
#...

# GnoVM/Gnolang.
/gnovm/ @gnolang/tech-staff
/gnovm/stdlibs @jaekwon @thehowl
/gnovm/tests @jaekwon @piux2 @thehowl @moul
/gnovm/cmd/gno @jaekwon @thehowl @harry-hov @moul
/gnovm/pkg/gnolang @jaekwon @piux2 @thehowl @moul
/gnovm/pkg/doc @thehowl
/gnovm/pkg/gnomod @harry-hov
/gnovm/pkg/integration @gfanton
#/gnovm/pkg/gnoenv
#/gnovm/pkg/repl
/gnovm/ @jaekwon @moul @piux2 @thehowl
/gnovm/stdlibs/ @thehowl
/gnovm/tests/ @jaekwon @deelawn @thehowl @mvertes
/gnovm/cmd/gno/ @moul @thehowl @harry-hov
/gnovm/pkg/gnolang/ @jaekwon @moul @piux2 @deelawn
/gnovm/pkg/doc/ @thehowl
/gnovm/pkg/repl/ @mvertes @ajnavarro
/gnovm/pkg/gnomod/ @harry-hov
/gnovm/pkg/gnoenv/ @gfanton
/gnovm/pkg/transpiler/ @thehowl
/gnovm/pkg/integration/ @gfanton

# Contribs
/contribs/ @gnolang/tech-staff
/contribs/gnodev @gfanton
/contribs/gnokeykc @moul
/contribs/gnomd @moul
#...
/contribs/gnodev/ @gfanton
/contribs/gnokeykc/ @moul
/contribs/gnomd/ @moul

# Misc
/misc/ @gnolang/tech-staff
/misc/loop @moul @gnolang/devops
/misc/deployments @moul @gnolang/devops
/misc/genstd @thehowl
#...
/misc/loop/ @moul @gnolang/devops
/misc/deployments/ @moul @gnolang/devops
/misc/genstd/ @thehowl

# Special files.
/PLAN.md @jaekwon @moul
Expand All @@ -69,3 +92,4 @@
/LICENSE.md @jaekwon
/.github/ @moul @gnolang/tech-staff
/.github/CODEOWNERS @jaekwon @moul
/go.mod @gnolang/tech-staff # no unnecessary dependencies
24 changes: 4 additions & 20 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
codecov:
require_ci_to_pass: false
require_ci_to_pass: true
notify:
wait_for_ci: true

ignore:
- misc

comment:
require_changes: false

Expand All @@ -25,7 +22,7 @@ coverage:
patch:
default:
target: auto
threshold: 100 # Allows PRs without tests, overall stats count.
threshold: 10 # Let's decrease this later.
base: auto
if_no_uploads: error
if_not_found: success
Expand All @@ -40,18 +37,5 @@ flag_management:
target: auto
threshold: 10 # Let's decrease this later.
- type: patch
target: auto # Allows PRs without tests, overall stats count.
threshold: 100
individual_flags:
- name: tm2
paths:
- tm2
- name: gnovm
paths:
- gnovm
- name: gno.land
paths:
- gno.land
- name: misc
paths:
- misc
target: auto # Let's decrease this later.
threshold: 10
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
name: docker
on:
pull_request:
paths:
- "**"
- "!misc/**"
- "!docs/**"
- "!**.md"
push:
branches: [ "master" ]

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/autocounterd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/benchmark-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,9 @@ name: run benchmarks on every PR
on:
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
check:
uses: ./.github/workflows/benchmark.yml
uses: ./.github/workflows/benchmark_template.yml
secrets: inherit
with:
publish: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/benchmark-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- cron: '0 0 * * *' # run on default branch every day
jobs:
publish:
uses: ./.github/workflows/benchmark.yml
uses: ./.github/workflows/benchmark_template.yml
secrets: inherit
with:
publish: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
test-flags:
required: true
type: string

env:
CGO_ENABLED: 0

jobs:
benchmarks:
if: ${{ github.repository == 'gnolang/gno' }}
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/build_template.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
on:
workflow_call:
inputs:
modulepath:
required: true
type: string
go-version:
required: true
type: string

jobs:
generated:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ inputs.go-version }}

- name: Checkout code
uses: actions/checkout@v4

- name: Check generated files are up to date
working-directory: ${{ inputs.modulepath }}
run: |
go generate -x ./...
if [ "$(git status -s)" != "" ]; then
echo "command 'go generate' creates file that differ from git tree, please run 'go generate' and commit:"
git status -s
exit 1
fi
36 changes: 0 additions & 36 deletions .github/workflows/codegen.yml

This file was deleted.

84 changes: 21 additions & 63 deletions .github/workflows/contribs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,74 +2,32 @@ name: contribs

on:
push:
branches: [ "master" ]
pull_request:
branches:
- master
workflow_dispatch:
pull_request:
paths:
- "contribs/**"
- ".github/workflows/contribs.yml"
- "gnovm/**.go"
- "gno.land/**.go"
- "tm2/**.go"

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
- ".github/**"

jobs:
install:
strategy:
fail-fast: false
matrix:
goversion:
- "1.22.x"
program:
- "gnomd"
- "gnodev"
- "gnofaucet"
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.goversion }}
- run: make install.${{ matrix.program }}
working-directory: contribs

test:
strategy:
fail-fast: false
matrix:
goversion: # two latest versions
- "1.21.x"
- "1.22.x"
program:
- "gnodev"
setup:
runs-on: ubuntu-latest
timeout-minutes: 5
outputs:
programs: ${{ steps.set-matrix.outputs.programs }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.goversion }}
- run: make test.${{ matrix.program }}
working-directory: contribs

lint:
- id: set-matrix
run: echo "::set-output name=programs::$(ls -d contribs/*/ | cut -d/ -f2 | jq -R -s -c 'split("\n")[:-1]')"
main:
needs: setup
strategy:
fail-fast: false
matrix:
goversion:
- "1.22.x"
program:
- "gnodev"
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.goversion }}
- run: make lint.${{ matrix.program }}
working-directory: contribs

fail-fast: false
matrix:
program: ${{ fromJson(needs.setup.outputs.programs) }}
name: Run Main
uses: ./.github/workflows/main_template.yml
with:
modulepath: contribs/${{ matrix.program }}
secrets:
codecov-token: ${{ secrets.CODECOV_TOKEN }}
Loading

0 comments on commit 4005e73

Please sign in to comment.