Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moul patch 1 #1159

Closed
wants to merge 54 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
59d9c53
chore: use self-hosted instance for benchmark (#1002)
moul Jul 30, 2023
3a7c7aa
chore(.github): fix broken link (#1005)
ajnavarro Jul 31, 2023
6c9a1c6
chore: more concise PR template (#998)
moul Jul 31, 2023
3ade982
feat: initial 'gno lint' (#981)
moul Jul 31, 2023
1fc25f9
chore(cmd): print shortHelp if longHelp is empty (#1011)
tbruyelle Aug 3, 2023
ce2daf4
docs: fix outdated documentation in r/demo/boards (#1019)
gfanton Aug 3, 2023
e8016f3
fix(gnovm): PrevRealm in _test files (#896)
tbruyelle Aug 6, 2023
5d3be42
feat: add GNOROOT environment variables (#1014)
gfanton Aug 6, 2023
9045a8e
chore(deps): bump golang.org/x/crypto from 0.11.0 to 0.12.0 (#1028)
dependabot[bot] Aug 8, 2023
a612e57
feat: implement `gno mod init` command (#955)
harry-hov Aug 9, 2023
ffe18b0
docs: fix demo/boards/README, fix typos and change to a local node (#…
jefft0 Aug 10, 2023
0beb958
feat(repl): support multi-line inputs and declarations (#978)
ajnavarro Aug 10, 2023
b884a6e
feat: use `PackageClauseOnly` for parsing pkg name (#994)
harry-hov Aug 10, 2023
6e2a0a3
docs: bootstrap a glossary, with p/ and r/ (#1043)
moul Aug 10, 2023
0c3aca3
chore(deps): bump golang.org/x/net from 0.11.0 to 0.14.0 (#1027)
dependabot[bot] Aug 10, 2023
5a1d497
feat: make gnovm wasm-friendly (#1012)
moul Aug 10, 2023
60d6605
chore(deps): bump github.com/mattn/go-runewidth from 0.0.14 to 0.0.15…
dependabot[bot] Aug 10, 2023
5240e97
feat: fix `gno test` for `_test.gno` and `_filetest.gno` files (#945)
harry-hov Aug 10, 2023
902b7d9
test(gnovm): "*_filetest.gno" instructions (#1023)
tbruyelle Aug 12, 2023
c6c601c
feat(repl): Add support for new declarations. (#1044)
ajnavarro Aug 15, 2023
7464b94
chore: use the Github version of the Boards realm (#1049)
D4ryl00 Aug 16, 2023
9d9143d
test(gnovm): fix TestPackages (#964)
tbruyelle Aug 17, 2023
c0aea10
fix: correct panic message for ParseMemPackage() (#1052)
harry-hov Aug 17, 2023
b40ac9c
docs(gnovm): gno test help long description (#1010)
tbruyelle Aug 17, 2023
aa7c1df
fix: remove ambiguous import by downgrading btcutil v1.1.1 to v1.0.0 …
D4ryl00 Aug 24, 2023
debf7d9
feat(stdlib): add `path` package (#1065)
gfanton Aug 28, 2023
236c112
fix(pkg/commands): readPassword support for windows (#1089)
thehowl Aug 31, 2023
64f0fd0
refactor: tm2 clean up against the latest main branch (#1080)
piux2 Aug 31, 2023
6a0493d
chore(deps): bump golang.org/x/term from 0.11.0 to 0.12.0 (#1094)
dependabot[bot] Sep 4, 2023
c79df9d
chore(deps): bump github.com/linxGnu/grocksdb from 1.7.15 to 1.8.4 (#…
dependabot[bot] Sep 4, 2023
3cd11c1
chore: bump golang at go1.21 (#1093)
moul Sep 4, 2023
6152030
fix(mempkg): don't attempt to validate name of an empty package (#1076)
gfanton Sep 5, 2023
df3a5bf
test: add reverseiterator tests (#1058)
wolkykim Sep 6, 2023
4586060
test: refactor kvpair, add tests (#1057)
wolkykim Sep 6, 2023
4bd1789
chore(deps): bump actions/checkout from 3 to 4 (#1098)
dependabot[bot] Sep 6, 2023
207d66d
fix: panic in `store.SprintStoreOps` (#1036)
tbruyelle Sep 7, 2023
6190894
fix: change default rpc config + upgrade CORS library (#1118)
zivkovicmilos Sep 13, 2023
bee921e
chore: update codecov.yml (#1120)
moul Sep 14, 2023
3e6d139
chore: update PHILOSOPHY.md (#1111)
moul Sep 14, 2023
5aa4349
chore(deps): Bump golang.org/x/crypto from 0.12.0 to 0.13.0 (#1109)
dependabot[bot] Sep 14, 2023
ef6a55b
chore(deps): Bump golang.org/x/net from 0.14.0 to 0.15.0 (#1110)
dependabot[bot] Sep 14, 2023
6695e4e
chore(deps): Bump codecov/codecov-action from 3 to 4 (#1126)
dependabot[bot] Sep 16, 2023
b0aebaa
Revert "chore(deps): Bump codecov/codecov-action from 3 to 4 (#1126)"
moul Sep 16, 2023
5636546
feat: add realm /r/demo/math_eval (#965)
schollz Sep 16, 2023
d5f14ff
chore: fix codecov config (h/t @the-howl) (#1137)
moul Sep 16, 2023
ae577ec
feat: add realm r/demo/keystore (#958)
schollz Sep 16, 2023
5a5278c
chore: disable codecov flags that can overlap (#1140)
moul Sep 17, 2023
07ff4ab
chore: Fix codecov (#1144)
ajnavarro Sep 18, 2023
b7bf42a
chore: Fix codecov (#1146)
ajnavarro Sep 18, 2023
61f3ada
chore: add empty test files for consistent coverage (#1147)
moul Sep 18, 2023
f438162
Update codecov.yml
moul Sep 21, 2023
8ed74e1
Update gh-pages.yml
moul Sep 21, 2023
0fccd20
Update gh-pages.yml
moul Sep 21, 2023
c7ac020
Create test.gno
moul Sep 21, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 20 additions & 16 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,34 @@
codecov:
require_ci_to_pass: no
require_ci_to_pass: false
notify:
wait_for_ci: no
wait_for_ci: true

ignore:
- misc

comment: false # will use it later.
comment:
require_changes: false

coverage:
status:
project: off
patch: off
round: down
precision: 2

flags:
flag_management:
default_rules:
carryforward: true
tm2:
paths:
statuses:
- type: project
target: auto
threshold: 0.5%
- type: patch
target: auto
individual_flags:
- name: tm2
paths:
- tm2
after_n_builds: 4
gnovm:
paths:
- name: gnovm
paths:
- gnovm
after_n_builds: 9
gno.land:
paths:
- name: gno.land
paths:
- gno.land
after_n_builds: 3
8 changes: 3 additions & 5 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
Please provide a detailed description of the changes made in this pull request.
<!-- please provide a detailed description of the changes made in this pull request. -->

<details><summary>Checklists...</summary>

## Contributors Checklist
<details><summary>Contributors' checklist...</summary>

- [ ] Added new tests, or not needed, or not feasible
- [ ] Provided an example (e.g. screenshot) to aid review or the PR is self-explanatory
- [ ] Updated the official documentation or not needed
- [ ] No breaking changes were made, or a `BREAKING CHANGE: xxx` message was included in the description
- [ ] Added references to related issues and PRs
- [ ] Provided any useful hints for running manual tests
- [ ] Added new benchmarks to [generated graphs](https://gnoland.github.io/benchmarks), if any. More info [here](../.benchmarks/README.md).
- [ ] 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).
</details>
14 changes: 7 additions & 7 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: run benchmarks
name: benchmarks
on:
workflow_call:
inputs:
Expand All @@ -10,15 +10,15 @@ on:
type: string
jobs:
benchmarks:
runs-on: ubuntu-latest
runs-on: [self-hosted, Linux, X64, benchmark-v1]
steps:
- name: checkout
uses: actions/checkout@v3
with:
uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: actions/setup-go@v4
with:
go-version: "1.20"
with:
go-version: "1.21.x"
- name: "gobenchdata publish: ${{ inputs.publish }}"
run: go run go.bobheadxi.dev/gobenchdata@v1 action
env:
Expand All @@ -28,4 +28,4 @@ jobs:
INPUT_PUBLISH_BRANCH: gh-benchmarks
INPUT_BENCHMARKS_OUT: benchmarks.json
INPUT_CHECKS: ${{ !inputs.publish }}
INPUT_CHECKS_CONFIG: .benchmarks/gobenchdata-checks.yml
INPUT_CHECKS_CONFIG: .benchmarks/gobenchdata-checks.yml
6 changes: 4 additions & 2 deletions .github/workflows/db-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ jobs:
strategy:
fail-fast: false
matrix:
go-version: [ "1.19.x", "1.20.x" ]
go-version:
- "1.20.x"
- "1.21.x"
tags:
- cleveldb
- memdb
Expand All @@ -44,6 +46,6 @@ jobs:
sudo dpkg -i *.deb

# test ./pkgs/db
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: test ./tm2/pkg/db
run: go test -tags ${{ matrix.tags }} ./tm2/pkg/db/...
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Build main Docker image
env:
Expand Down
33 changes: 29 additions & 4 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,30 +21,55 @@ jobs:
strategy:
fail-fast: false
matrix:
go-version: [ "1.19.x", "1.20.x" ]
go-version:
- "1.20.x"
- "1.21.x"
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: go install -v ./gnovm/cmd/gno
- run: go run ./gnovm/cmd/gno precompile --verbose ./examples
- run: go run ./gnovm/cmd/gno build --verbose ./examples
test:
strategy:
fail-fast: false
matrix:
go-version: [ "1.19.x", "1.20.x" ]
go-version:
- "1.20.x"
- "1.21.x"
# unittests: TODO: matrix with contracts
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: go install -v ./gnovm/cmd/gno
- run: go run ./gnovm/cmd/gno test --verbose ./examples
lint:
strategy:
fail-fast: false
matrix:
go-version:
- "1.20.x"
- "1.21.x"
# unittests: TODO: matrix with contracts
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- uses: actions/checkout@v4
- run: go install -v ./gnovm/cmd/gno
# testing official directories, basically examples/ minus examples/.../x/.
- run: go run ./gnovm/cmd/gno lint --verbose ./examples/gno.land/p
- run: go run ./gnovm/cmd/gno lint --verbose ./examples/gno.land/r/demo
- run: go run ./gnovm/cmd/gno lint --verbose ./examples/gno.land/r/gnoland
- run: go run ./gnovm/cmd/gno lint --verbose ./examples/gno.land/r/system
# TODO: track coverage
4 changes: 3 additions & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ concurrency:

jobs:
build:
if: ${{ github.repository == 'gnolang/gno' }} # Alternatively, validate based on provided tokens and permissions.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: "cd misc/devdeps && make install"
- run: "cd misc/gendocs && make gen"
- run: "find docs/ -type f -ls"
Expand All @@ -30,6 +31,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
Expand Down
17 changes: 11 additions & 6 deletions .github/workflows/gnoland.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,24 @@ jobs:
strategy:
fail-fast: false
matrix:
go-version: [ "1.19.x", "1.20.x" ]
go-version:
- "1.20.x"
- "1.21.x"
goarch: [ "amd64" ]
goos: [ "linux" ]
program:
- gnoland
- gnokey
- gnoweb
- gnofaucet
- gnotxsync
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: go install
working-directory: gno.land
run: GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go install ./cmd/${{ matrix.program }}
Expand All @@ -44,7 +47,9 @@ jobs:
strategy:
fail-fast: false
matrix:
go-version: [ "1.19.x", "1.20.x" ]
go-version:
- "1.20.x"
- "1.21.x"
args:
- _test.gnoland
- _test.gnokey
Expand All @@ -56,7 +61,7 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: test
working-directory: gno.land
run: |
Expand All @@ -68,7 +73,7 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}
name: gno.land
flags: gno.land,gno.land-${{matrix.args}},go-${{ matrix.go-version }}
flags: gno.land-${{matrix.args}}
files: ./gno.land/coverage.out
#fail_ci_if_error: ${{ github.repository == 'gnolang/gno' }}
fail_ci_if_error: false # temporarily
Expand All @@ -79,7 +84,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
# TODO: setup docker caching
- run: make test.docker
- run: docker logs int_gnoland || true
Expand Down
24 changes: 15 additions & 9 deletions .github/workflows/gnovm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,26 +23,32 @@ jobs:
strategy:
fail-fast: false
matrix:
go-version: [ "1.19.x", "1.20.x" ]
goarch: [ "amd64" ]
goos: [ "linux" ]
program: [ "gno" ]
go-version: # two latest versions
- "1.20.x"
- "1.21.x"
goenv: # TODO: replace with pairs, so it's easier to read in the GH interface.
- "GOARCH=amd64 GOOS=linux"
- "GOARCH=wasm GOOS=js"
program:
- "gno"
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: go install
working-directory: gnovm
run: GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go install ./cmd/${{ matrix.program }}
run: ${{ matrix.goenv }} go install ./cmd/${{ matrix.program }}

test:
strategy:
fail-fast: false
matrix:
go-version: [ "1.19.x", "1.20.x" ]
go-version:
- "1.20.x"
- "1.21.x"
args:
- _test.cmd
- _test.pkg
Expand All @@ -59,7 +65,7 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: test
working-directory: gnovm
run: |
Expand All @@ -71,7 +77,7 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}
name: gnovm
flags: gnovm,gnovm-${{matrix.args}},go-${{ matrix.go-version }}
flags: gnovm-${{matrix.args}}
files: ./gnovm/coverage.out
#fail_ci_if_error: ${{ github.repository == 'gnolang/gno' }}
fail_ci_if_error: false # temporarily
10 changes: 5 additions & 5 deletions .github/workflows/misc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ jobs:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: 1.20.x
go-version: 1.21.x

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

- name: Lint
uses: golangci/golangci-lint-action@v3
with:
# sync with misc/devdeps/go.mod
version: v1.53
version: v1.54
args:
--config=./.github/golangci.yml
fmt:
Expand All @@ -40,7 +40,7 @@ jobs:
run: sudo apt-get install -y make

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

# prefill dependencies so that mod messages don't show up in make output
- name: Fetch dependencies
Expand All @@ -67,7 +67,7 @@ jobs:
go-version: 1.20.x

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

- name: Check go.mods
run: |
Expand Down
Loading