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

Open telemetry setup #3

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
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
ecdd68b
enabled opentelemetry metrics
deelawn Nov 17, 2023
ec1d3d7
configurable port and fake metrics now possible
deelawn Nov 20, 2023
f816e2c
Added instrumentation for tracing VM ops
deelawn Nov 28, 2023
5cfdde5
don't require passing context for tracing. this has some issues
deelawn Nov 28, 2023
053d38a
use goroutine ids to track span parents to avoid missing spans
deelawn Nov 28, 2023
839c137
fixes
deelawn Dec 7, 2023
9797e8a
gomod
deelawn Dec 7, 2023
64d447a
cleaned up telemetry code
deelawn Dec 8, 2023
46fd513
reset
deelawn Jan 31, 2024
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
  •  
  •  
  •  
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
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
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
21 changes: 20 additions & 1 deletion .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
with:
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
Expand All @@ -73,3 +73,22 @@ jobs:
- 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)
7 changes: 4 additions & 3 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: "cd misc/devdeps && make install"
- run: "cd misc/gendocs && make gen"
- run: "find docs/ -type f -ls"
- uses: actions/setup-go@v4
with:
go-version: "1.21.x"
- run: "cd misc/gendocs && make install gen"
- uses: actions/configure-pages@v3
id: pages
- uses: actions/upload-pages-artifact@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gnoland.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
- _test.gnoland
- _test.gnokey
- _test.pkgs
#- _test.gnoweb # this test should be rewritten to run an inmemory localnode
- _test.gnoweb
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
Expand Down
43 changes: 38 additions & 5 deletions .github/workflows/gnovm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,35 +67,68 @@ jobs:
- _test.gnolang.other
runs-on: ubuntu-latest
timeout-minutes: 15
env:
COVERAGE_DIR: "/tmp/coverage"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.goversion }}
- name: test
working-directory: gnovm
env:
TXTARCOVERDIR: ${{ env.COVERAGE_DIR }}
run: |
mkdir -p $COVERAGE_DIR

# Setup testing environements variables
export GOPATH=$HOME/go
export GOTEST_FLAGS="-v -p 1 -timeout=30m -coverprofile=coverage.out -covermode=atomic"
export GOTEST_FLAGS="-v -p 1 -timeout=30m -covermode=atomic -test.gocoverdir=$COVERAGE_DIR"

# Run target test
make ${{ matrix.args }}
- uses: actions/upload-artifact@v3
if: ${{ runner.os == 'Linux' && matrix.goversion == '1.21.x' }}
with:
name: ${{runner.os}}-coverage-gnovm-${{ matrix.args}}-${{matrix.goversion}}
path: ./gnovm/coverage.out
path: ${{ env.COVERAGE_DIR }}

upload-coverage:
needs: test
runs-on: ubuntu-latest
env:
COVERAGE_DATA: /tmp/coverage/coverage-raw
COVERAGE_OUTPUT: /tmp/coverage/coverage-out
COVERAGE_PROFILE: /tmp/coverage/coverage.txt
steps:
- name: Download all previous coverage artifacts
- run: mkdir -p $COVERAGE_DATA $COVERAGE_OUTPUT
- name: Download all previous coverage data artifacts
uses: actions/download-artifact@v3
with:
path: ${{ runner.temp }}/coverage
path: ${{ env.COVERAGE_DATA }}
- uses: actions/setup-go@v4
with:
go-version: "1.21.x"
- name: Merge coverages
working-directory: ${{ env.COVERAGE_DATA }}
run: |
# Create coverage directory list separate by comma
export COVERAGE_DIRS="$(ls | tr '\n' ',' | sed s/,$//)"

# Merge all coverage data directories from previous tests
go tool covdata merge -v 1 -i="$COVERAGE_DIRS" -o $COVERAGE_OUTPUT

# Print coverage percent for debug purpose if needed
echo 'coverage results:'
go tool covdata percent -i=$COVERAGE_OUTPUT

# Generate coverage profile
go tool covdata textfmt -v 1 -i=$COVERAGE_OUTPUT -o $COVERAGE_PROFILE

- name: Upload combined coverage to Codecov
uses: codecov/codecov-action@v3
with:
directory: ${{ runner.temp }}/coverage
files: ${{ env.COVERAGE_PROFILE }}
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: ${{ github.repository == 'gnolang/gno' }}

5 changes: 3 additions & 2 deletions .github/workflows/misc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,9 @@ jobs:

- name: Check go.mods
run: |
sums="$(sha256sum go.mod misc/devdeps/go.mod)"
for path in . ./misc/devdeps; do
gomods=$(find . -type f -name go.mod)
sums="$(sha256sum ${gomods})"
for path in $(dirname $(gomods)); do
env -C $path go mod tidy -v || exit 1
done
echo "$sums" | sha256sum -c
22 changes: 22 additions & 0 deletions .github/workflows/monthly-snapshots.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Monthly Snapshots

on:
schedule:
- cron: '0 0 1 * *'
workflow_dispatch:

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Generate tag name
id: tag_name
run: echo "::set-output name=tag_name::v0.0.1-dev.$(date +'%Y.%m.%d')"
- name: Release
uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
prerelease: true
tag_name: '${{ steps.tag_name.outputs.tag_name }}'
4 changes: 2 additions & 2 deletions .github/workflows/tm2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
- _test.pkg.bft
- _test.pkg.others
runs-on: ubuntu-latest
timeout-minutes: 15
timeout-minutes: 21
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
Expand All @@ -65,7 +65,7 @@ jobs:
working-directory: tm2
run: |
export GOPATH=$HOME/go
export GOTEST_FLAGS="-v -p 1 -timeout=30m -coverprofile=coverage.out -covermode=atomic"
export GOTEST_FLAGS="-v -p 1 -timeout=20m -coverprofile=coverage.out -covermode=atomic"
make ${{ matrix.args }}
touch coverage.out
- uses: actions/upload-artifact@v3
Expand Down
12 changes: 12 additions & 0 deletions .mailmap
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# man 5 gitmailmap
# git log --mailmap --pretty=short | grep ^Author: | sort -u
Jae Kwon <53785+jaekwon@users.noreply.github.com> Jae Kwon <jae@tendermint.com>
Jae Kwon <53785+jaekwon@users.noreply.github.com> Jae Kwon <jae@gno.land>
Jae Kwon <53785+jaekwon@users.noreply.github.com> jaekwon <jae@tendermint.com>
Jae Kwon <53785+jaekwon@users.noreply.github.com> Naut Jae <naut_jae@Nauts-Mac-mini.local>
Thomas Bruyelle <thomas.bruyelle@tendermint.com> Thomas Bruyelle <thomas.bruyelle@gmail.com>
Thomas Bruyelle <thomas.bruyelle@tendermint.com> Thomas Bruyelle <thomasbruyelle@hey.com>
Miloš Živković <milos.zivkovic@tendermint.com> Miloš Živković <milos@zmilos.com>
Hariom Verma <hariom.verma@tendermint.com> Hariom Verma <hariom18599@gmail.com>
Giancarlos Salas <me@giansalex.dev> Giancarlos Salas <giansalex@gmail.com>
Morgan <morgan@morganbaz.com> Morgan <git@howl.moe>
Loading
Loading