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

fix: bft flaky test #6

Closed
wants to merge 94 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
94 commits
Select commit Hold shift + click to select a range
cfefb3b
ci: tell codecov to wait_for_ci to avoid flappy reports (#1160)
moul Sep 22, 2023
e10c0c7
fix: print declared type in output (#1143)
piux2 Sep 22, 2023
8eeff73
docs(contributing): change instructions for vim, reference gnols (#1113)
thehowl Sep 22, 2023
b449e89
fix: fix vuln demonstrated by #583 (#584)
grepsuzette Sep 22, 2023
2ecbb6d
feat(stdlib): add `net/url` (#1066)
gfanton Sep 22, 2023
78466ce
fix(vm): Release VM properly (#1116)
ajnavarro Sep 22, 2023
5a7d005
chore: use std.PrevRealm() in grc721 package (#992)
r3v4s Sep 22, 2023
fd133bb
chore(deps): Bump github.com/rs/cors from 1.10.0 to 1.10.1 (#1181)
dependabot[bot] Oct 2, 2023
28455d8
chore: configure fossa license detector (#1183)
moul Oct 2, 2023
39ab2da
fix(codecov): increase codecov upload attempt (#1186)
gfanton Oct 2, 2023
c315db6
fix(codecov): merge coverage for a single upload by workflow (#1190)
gfanton Oct 3, 2023
f942d04
chore: update fossa config (#1184)
moul Oct 3, 2023
ce258b1
chore: fix fossa action (#1192)
moul Oct 3, 2023
924d62d
feat: add txtar driver for gnoland integration test (#1117)
gfanton Oct 5, 2023
740e7f7
fix(tm2): make HTTPClient support https (#1158)
thehowl Oct 5, 2023
4af3eb2
fix(gnolang): allow comparisons using uninitialized string values (#1…
thehowl Oct 5, 2023
d865095
feat: use `modfile` package to write modfile (#1077)
harry-hov Oct 5, 2023
fa8eb77
chore(amino): improve error readability (#1179)
albttx Oct 6, 2023
e144d26
chore(deps): Bump golang.org/x/mod from 0.12.0 to 0.13.0 (#1207)
dependabot[bot] Oct 11, 2023
b34816b
chore: improve tests (#1232)
moul Oct 11, 2023
dce345f
fix(make): disable _test.gnoweb temporarily (#1223)
thehowl Oct 11, 2023
eb27a8f
test(gnovm): migrate 'gno build' test to testscript (#1103)
tbruyelle Oct 12, 2023
a2971bf
feat: `gno test` support `/...` pattern (#1078)
harry-hov Oct 12, 2023
89428c5
docs: improve README and CONTRIBUTING, add reference to testing guide…
thehowl Oct 12, 2023
3f2f5a2
ci: add workflow for automatic monthly snapshots (#1260)
thehowl Oct 19, 2023
09dfe6e
test(gno build): remove exit code assertion (#1261)
tbruyelle Oct 19, 2023
0600d41
feat: add file-based transaction indexing (#546)
zivkovicmilos Oct 19, 2023
9e8fbd3
chore(deps): Bump golang.org/x/net from 0.15.0 to 0.17.0 (#1225)
dependabot[bot] Oct 19, 2023
d29509e
feat: portal loop's main contracts and gnoweb improvements (#1176)
moul Oct 20, 2023
235aab6
chore(deps): Bump actions/checkout from 3 to 4 (#1264)
dependabot[bot] Oct 20, 2023
902ccc6
fix: add support for custom node config file (#1240)
zivkovicmilos Oct 20, 2023
2466911
docs: publish static pkg-site generated docs for this repo on GH page…
thehowl Oct 20, 2023
f6d500a
chore: repair-staging (#1268)
moul Oct 20, 2023
5cf3c71
fix: allow constant values of infininitesimal non-zero floating point…
ajnavarro Oct 21, 2023
a3bdd2b
chore: enable analytics on staging (#1279)
moul Oct 22, 2023
4fff7a7
fix: -broadcast true in doc (#1288)
sc0Vu Oct 24, 2023
338be19
docs: comment typos (#1287)
xiaolou86 Oct 24, 2023
f872ca7
feat: add hash (#1273)
notJoon Oct 25, 2023
f39cc46
fix: Error string in decryptPrivKey. Use errors.As in IsErrWrongPassw…
jefft0 Oct 26, 2023
eb42157
chore(deps): Bump toshimaru/auto-author-assign from 1.6.2 to 2.0.1 (#…
dependabot[bot] Oct 26, 2023
ccba538
fix: in TestGnoDoc, fix expected output for `gno doc avl` (#1301)
jefft0 Oct 26, 2023
ca5ce0f
chore: fix typos (#1300)
stanlagermin Oct 26, 2023
34d78b3
chore(deps): bump github.com/gdamore/tcell/v2 from 2.1.0 to 2.6.0 (#862)
dependabot[bot] Oct 26, 2023
7dee385
fix(cmd/gno): change set_exit_status flag to kebab-case (#1304)
thehowl Oct 26, 2023
7105d00
chore: add misc/list-gnophers and .mailmap (#1265)
moul Oct 26, 2023
e10f811
docs(contributing): add ViM instructions to setup gnols (#1282)
tbruyelle Oct 27, 2023
6ba4f74
feat: add genesis command suite (#1252)
zivkovicmilos Oct 28, 2023
199cd29
feat: add simple address validity check (#1303)
leohhhn Oct 28, 2023
0076e48
feat: add p/demo/ownable (#1314)
leohhhn Nov 2, 2023
789f4de
fix(misc/gendocs): convert paths for async-loaded scripts (#1307)
thehowl Nov 2, 2023
4749369
feat: implement `gno mod tidy` (#1035)
harry-hov Nov 6, 2023
ce7a7c6
fix(misc/list-gnophers): make script work when called from any direct…
thehowl Nov 6, 2023
4c7f93c
ci(fix): tidy remaining gno.mod files (#1338)
harry-hov Nov 6, 2023
42c0132
feat(repl): improve support of multi-line statements (#1129)
mvertes Nov 7, 2023
a90a273
chore(deps): bump actions/checkout from 3 to 4 (#1339)
dependabot[bot] Nov 7, 2023
23c5b3b
chore(ci): update tm2 timeout on CI (#1337)
moul Nov 7, 2023
e6b4890
chore(deps): bump github.com/gorilla/websocket from 1.5.0 to 1.5.1 (#…
dependabot[bot] Nov 7, 2023
eab86e8
chore(deps): bump github.com/gorilla/mux from 1.8.0 to 1.8.1 (#1334)
dependabot[bot] Nov 7, 2023
fa7b4c2
chore(deps): bump golang.org/x/mod from 0.13.0 to 0.14.0 (#1336)
dependabot[bot] Nov 7, 2023
fb06d0a
feat: add InMemory `gnoland` node (#1241)
gfanton Nov 7, 2023
a88e3e3
feat: setup testscripts coverage (#1249)
gfanton Nov 7, 2023
1732214
fix: don't pass value types by reference (#1263)
deelawn Nov 7, 2023
49a5fa4
chore(deps): bump go.etcd.io/bbolt from 1.3.7 to 1.3.8 (#1318)
dependabot[bot] Nov 7, 2023
55e88be
chore: remove deprecated io/ioutil methods (#1277)
notJoon Nov 8, 2023
31d2ce9
feat: add `unused` linter (#1294)
zivkovicmilos Nov 8, 2023
11f4359
feat: add contribs/gnomd (#1256)
moul Nov 8, 2023
678686a
fix(ci): remove unused func `parseBalance` (#1344)
harry-hov Nov 8, 2023
041d0a8
chore(gnomod): test package does not exist (#1317)
harry-hov Nov 8, 2023
c33c9f2
fix: txtar tests load full config and execute serially (#1342)
deelawn Nov 8, 2023
e803c45
test: make tests run in parallel (#1312)
zivkovicmilos Nov 9, 2023
da05213
fix: In Keybase GetByAddress, change generic error to NewErrKeyNotFou…
jefft0 Nov 9, 2023
39ea662
feat: add contribs/gnokeykc (#1270)
moul Nov 9, 2023
09d7c52
chore: Add Keybase HasByNameOrAddress, HasByName and HasByAddress (#1…
jefft0 Nov 9, 2023
117bcd1
feat: add p/demo/pausable (#1328)
leohhhn Nov 9, 2023
9c8f248
docs: update Go<>Gno compatibility document with up-to-date info (#1311)
thehowl Nov 9, 2023
afcdc66
docs(grammatical): correct typos and improve grammar (#1321)
AbhineshJha Nov 9, 2023
bc5af65
feat: official documentation (#1046)
zivkovicmilos Nov 9, 2023
98f384e
fix: resolve Docusaurus build (#1351)
zivkovicmilos Nov 10, 2023
94e44d7
docs: migrate `peace.md` out of docs (#1358)
leohhhn Nov 11, 2023
b1a53c0
feat: add local dev setup script (#1237)
zivkovicmilos Nov 12, 2023
f0488c9
chore(misc/loop): upgrade tx-archive to v0.1.1 (#1368)
albttx Nov 13, 2023
c7268cc
chore(deps): bump golang.org/x/term from 0.13.0 to 0.14.0 (#1363)
dependabot[bot] Nov 13, 2023
6c39a75
chore(deps): bump github.com/linxGnu/grocksdb from 1.8.4 to 1.8.5 (#1…
dependabot[bot] Nov 13, 2023
b20eba0
chore(deps): bump actions/setup-node from 3 to 4 (#1362)
dependabot[bot] Nov 13, 2023
bc2d5cf
fix: tidy `gnokeykc` go mod (#1355)
zivkovicmilos Nov 13, 2023
43b3ac5
chore(mod): tidy all go mods (#1370)
thehowl Nov 13, 2023
7d66398
chore: fix link in readme (#1373)
moul Nov 14, 2023
24d89a4
feat(examples): add p/demo/seqid (#1378)
thehowl Nov 16, 2023
0c68394
refactor!: remove `gno build` command (#1297)
tbruyelle Nov 16, 2023
1126d9f
fix: improve error message output in integration tests (#1349)
gfanton Nov 16, 2023
d6acd41
fix: use different listener ID to better identify stuck channel
gfanton Sep 20, 2023
8e2386a
fix: In demo/boards/README.md, the chainid for test3.gno.land should …
jefft0 Nov 20, 2023
ea0f308
fix: use sized channel in subscribe methods in state tests
gfanton Nov 20, 2023
bcac6de
Merge branch 'master' into fix/bft-flaky-test
gfanton Nov 20, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
15 changes: 15 additions & 0 deletions .github/.fossa.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
version: 3

# https://github.com/fossas/fossa-cli/blob/master/docs/references/files/fossa-yml.md

project:
id: github.com/gnolang/gno
name: gno

targets:
only:
- type: gomod

paths:
exclude:
- ./misc/
3 changes: 3 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,6 @@ PHILOSOPHY.md @jaekwon @moul
CONTRIBUTING.md @jaekwon @moul
LICENSE.md @jaekwon @moul
.github/CODEOWNERS @jaekwon @moul

# Documentation.
docs/* @gnolang/devrels
26 changes: 23 additions & 3 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
codecov:
require_ci_to_pass: false
notify:
wait_for_ci: false
wait_for_ci: true

ignore:
- misc
Expand All @@ -12,16 +12,36 @@ comment:
coverage:
round: down
precision: 2
status:
project:
default:
target: auto
threshold: 10 # Let's decrease this later.
base: parent
if_no_uploads: error
if_not_found: success
if_ci_failed: error
only_pulls: false
patch:
default:
target: auto
threshold: 100 # Allows PRs without tests, overall stats count.
base: auto
if_no_uploads: error
if_not_found: success
if_ci_failed: error
only_pulls: false

flag_management:
default_rules:
carryforward: true
statuses:
- type: project
target: auto
threshold: 0.5%
threshold: 10 # Let's decrease this later.
- type: patch
target: auto
target: auto # Allows PRs without tests, overall stats count.
threshold: 100
individual_flags:
- name: tm2
paths:
Expand Down
27 changes: 24 additions & 3 deletions .github/golangci.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
run:
timeout: 5m
concurrency: 8
timeout: 10m
issue-exit-code: 1
tests: true
skip-dirs-use-default: true
modules-download-mode: readonly
allow-parallel-runners: false
go: ""

output:
uniq-by-line: false
path-prefix: ""
sort-results: true

linters:
fast: false
disable-all: true
enable:
- whitespace # Tool for detection of leading and trailing whitespace
Expand All @@ -21,12 +32,11 @@ linters:
- gofmt # Whether the code was gofmt-ed
- goimports # Unused imports
- goconst # Repeated strings that could be replaced by a constant
#- forcetypeassert # Finds forced type assertions
- dogsled # Checks assignments with too many blank identifiers (e.g. x, , , _, := f())
#- dupl # Code clone detection
- errname # Checks that sentinel errors are prefixed with the Err and error types are suffixed with the Error
- errorlint # errorlint is a linter for that can be used to find code that will cause problems with the error wrapping scheme introduced in Go 1.13
- gofumpt # Stricter gofmt
- unused # Checks Go code for unused constants, variables, functions and types

linters-settings:
gofmt:
Expand All @@ -42,9 +52,20 @@ linters-settings:
checks: [ "all", "-ST1022", "-ST1003" ]
errorlint:
asserts: false
gocritic:
enabled-tags:
- diagnostic
- experimental
- opinionated
- performance
- style

issues:
whole-files: true
max-issues-per-linter: 0
max-same-issues: 0
new: false
fix: false
exclude-rules:
- path: _test\.go
linters:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/auto-author-assign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ jobs:
assign-author:
runs-on: ubuntu-latest
steps:
- uses: toshimaru/auto-author-assign@v1.6.2
- uses: toshimaru/auto-author-assign@v2.0.1
1 change: 1 addition & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/contribs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: contribs

on:
push:
branches: [ "master" ]
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

jobs:
install:
strategy:
fail-fast: false
matrix:
goversion: # two latest versions
- "1.21.x"
program:
- "gnomd"
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.goversion }}
- run: make install ${{ matrix.program }}
working-directory: contribs
7 changes: 4 additions & 3 deletions .github/workflows/db-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
strategy:
fail-fast: false
matrix:
go-version:
goversion:
- "1.20.x"
- "1.21.x"
tags:
Expand All @@ -29,10 +29,12 @@ jobs:
- fsdb
- boltdb
steps:
- uses: actions/checkout@v4

# golang
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
go-version: ${{ matrix.goversion }}

# leveldb
- name: install leveldb
Expand All @@ -46,6 +48,5 @@ jobs:
sudo dpkg -i *.deb

# test ./pkgs/db
- uses: actions/checkout@v4
- name: test ./tm2/pkg/db
run: go test -tags ${{ matrix.tags }} ./tm2/pkg/db/...
29 changes: 29 additions & 0 deletions .github/workflows/docusaurus.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: docusaurus build
on:
pull_request:
paths:
- "docs/**"
push:
branches: [ "master" ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '18'

- name: Install Docusaurus Dependencies
run: |
cd misc/docusaurus
yarn install

- name: Build Docusaurus Docs
run: |
cd misc/docusaurus
yarn build
42 changes: 30 additions & 12 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,55 +21,73 @@ jobs:
strategy:
fail-fast: false
matrix:
go-version:
goversion:
- "1.20.x"
- "1.21.x"
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- uses: actions/checkout@v4
go-version: ${{ matrix.goversion }}
- 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
- run: go run ./gnovm/cmd/gno precompile --verbose --gobuild ./examples
test:
strategy:
fail-fast: false
matrix:
go-version:
goversion:
- "1.20.x"
- "1.21.x"
# unittests: TODO: matrix with contracts
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- uses: actions/checkout@v4
go-version: ${{ matrix.goversion }}
- run: go install -v ./gnovm/cmd/gno
- run: go run ./gnovm/cmd/gno test --verbose ./examples
- run: go run ./gnovm/cmd/gno test --verbose ./examples/...
lint:
strategy:
fail-fast: false
matrix:
go-version:
goversion:
- "1.20.x"
- "1.21.x"
# unittests: TODO: matrix with contracts
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- uses: actions/checkout@v4
go-version: ${{ matrix.goversion }}
- 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
mod-tidy:
strategy:
fail-fast: false
matrix:
go-version: [ "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: |
GNO_CMD="$(pwd)/gnovm/cmd/gno"
# Find all directories containing gno.mod file
find ./examples -name "gno.mod" -execdir go run "$GNO_CMD" mod tidy \;
# Check if there are changes after running gno mod tidy
git diff --exit-code || (echo "Some gno.mod files are not tidy, please run 'make tidy'." && exit 1)
50 changes: 50 additions & 0 deletions .github/workflows/fossa.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Dependency License Scanning

on:
workflow_dispatch:
pull_request:
paths:
- ".github/.fossa.yml"
- ".github/workflows/fossa.yml"
schedule:
- cron: '0 0 * * 6' # At 00:00 on saturdays

permissions:
contents: read

jobs:
fossa:
name: Fossa
runs-on: ubuntu-latest
if: github.repository == 'gnolang/gno'
steps:
- name: Checkout
uses: actions/checkout@v4
with:
# we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves
fetch-depth: 0

- name: Move .fossa.yml to root dir
run: mv .github/.fossa.yml .

- name: Cache Coursier cache
uses: coursier/[email protected]

- name: Set up JDK 17
uses: coursier/[email protected]
with:
jvm: temurin:1.17

- name: Set up fossa CLI
run: "curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install-latest.sh | bash"

- name: FOSSA analyze
run: fossa analyze
env:
FOSSA_API_KEY: "${{secrets.FOSSA_API_KEY}}"

- name: FOSSA test
run: fossa test
env:
FOSSA_API_KEY: "${{secrets.FOSSA_API_KEY}}"

Loading
Loading