Skip to content

Commit 77bb323

Browse files
sw360cabalbttxzivkovicmilos
authored
ci(supernova): fixing not working supernova reports (#19)
* attempt to run supernova ci * attempt to run supernova ci again * attempt to fix bootstrap of supernova workflow * supernova workflow updated * using nightly build in supernova workflow * hiding extra output of supernova * final tuning on supernova ci * workflow using wrong branch name * preparing PR for supernova workflow * attempt to run supernova reporting * fixing image in ci action * unsleep before running supernova in ci * add daily report * small fixes --------- Co-authored-by: albttx <[email protected]> Co-authored-by: Miloš Živković <[email protected]> Co-authored-by: Miloš Živković <[email protected]> Co-authored-by: Albert Le Batteux <[email protected]> Co-authored-by: sw360cab <[email protected]>
1 parent d45004e commit 77bb323

File tree

345 files changed

+410
-19
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

345 files changed

+410
-19
lines changed

.github/workflows/benchmarks.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Benchmarks
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 1 * * *' # run on default branch every day
7+
jobs:
8+
benchmarks:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: write
12+
steps:
13+
- name: Checkout from gno repository
14+
uses: actions/checkout@v3
15+
with:
16+
repository: gnolang/gno
17+
fetch-depth: 2
18+
ref: 'gh-benchmarks'
19+
- name: Commit & Push changes
20+
uses: stefanzweifel/git-auto-commit-action@v4
21+
with:
22+
branch: gh-pages

.github/workflows/supernova.yml

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ on:
44
branches:
55
- ci/supernova
66
schedule:
7-
- cron: '0 2 * * *' # run at 2 AM UTC
7+
- cron: "0 2 * * *" # run at 2 AM UTC
8+
workflow_dispatch:
89

910
jobs:
1011
supernova:
@@ -15,9 +16,9 @@ jobs:
1516

1617
services:
1718
gnoland:
18-
image: ghcr.io/gnolang/gno:latest
19+
image: ghcr.io/gnolang/gno/gnoland:nightly
1920
# keep the container running
20-
options: --workdir /opt/gno/src/gno.land -it --entrypoint "bash"
21+
options: --workdir /gnoroot -it --entrypoint "sh"
2122
ports:
2223
- 26657:26657
2324
- 36657:36657
@@ -27,27 +28,25 @@ jobs:
2728

2829
- name: setup and start gnoland chain
2930
run: |
30-
docker exec ${{ job.services.gnoland.id }} gnoland -skip-start=true
31-
docker exec ${{ job.services.gnoland.id }} sed -i 's#laddr =.*:26657.*#laddr = "tcp://0.0.0.0:26657"#g' testdir/config/config.toml
32-
docker exec -dit ${{ job.services.gnoland.id }} gnoland
33-
34-
- name: install some softwares
35-
run: |
36-
sudo apt-get update -y && sudo apt-get install -y wget curl unzip sudo
31+
docker exec ${{ job.services.gnoland.id }} gnoland config init
32+
docker exec ${{ job.services.gnoland.id }} sed -i 's#laddr =.*:26657.*#laddr = "tcp://0.0.0.0:26657"#g' gnoland-data/config/config.toml
33+
docker exec ${{ job.services.gnoland.id }} sed -i 's#skip_timeout_commit = false#skip_timeout_commit = true#g' gnoland-data/config/config.toml
34+
docker exec -dit ${{ job.services.gnoland.id }} gnoland start -lazy
3735
3836
- name: download supernova
3937
run: |
40-
export SUPERNOVA_VERSION=1.0.0
41-
wget -c https://github.com/gnolang/supernova/releases/download/v${SUPERNOVA_VERSION}/supernova_${SUPERNOVA_VERSION}_linux_amd64.tar.gz -O - | tar -xz -C /usr/local/bin/
42-
# install supernova scripts
43-
wget -O /tmp/main.zip https://github.com/gnolang/supernova/archive/refs/heads/main.zip
44-
unzip -d /tmp/ /tmp/main.zip
45-
cp -r /tmp/supernova-main/scripts .
38+
rm -rf /tmp/main.zip /tmp/supernova-main
39+
export SUPERNOVA_VERSION=1.3.1
40+
wget -c https://github.com/gnolang/supernova/releases/download/v${SUPERNOVA_VERSION}/supernova_${SUPERNOVA_VERSION}_linux_amd64.tar.gz -O - | tar -xz -C /tmp
4641
42+
- name: wait Gno to be ready (sleep)
43+
run: |
44+
sleep 20
45+
4746
- name: run supernova
4847
run: |
49-
curl -v http://localhost:26657/status
50-
supernova -sub-accounts 5 -transactions 100 -url http://localhost:26657 -mnemonic "source bonus chronic canvas draft south burst lottery vacant surface solve popular case indicate oppose farm nothing bullet exhibit title speed wink action roast" -output result.json
48+
curl -v http://127.0.0.1:26657/status
49+
/tmp/supernova -sub-accounts 10 -transactions 1000 -url http://127.0.0.1:26657 -mnemonic "source bonus chronic canvas draft south burst lottery vacant surface solve popular case indicate oppose farm nothing bullet exhibit title speed wink action roast" -output result.json > /dev/null 2>&1
5150
5251
- name: archive supernova result
5352
uses: actions/upload-artifact@v3
@@ -70,5 +69,4 @@ jobs:
7069
7170
- uses: stefanzweifel/git-auto-commit-action@v4
7271
with:
73-
push_options: '--force'
7472
commit_message: add daily report

reports/codecov/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Codecov snippets
2+
3+
## Badges
4+
5+
- gno/gno.land: ![](https://codecov.io/gh/gnolang/gno/branch/master/graph/badge.svg?token=HPP82HR1P4&flag=gno.land)
6+
- gno/gnovm: ![](https://codecov.io/gh/gnolang/gno/branch/master/graph/badge.svg?token=HPP82HR1P4&flag=gnovm)
7+
- gno/tm2: ![](https://codecov.io/gh/gnolang/gno/branch/master/graph/badge.svg?token=HPP82HR1P4&flag=tm2)
8+
9+
## Graphs
10+
11+
### Gno
12+
13+
![](https://codecov.io/gh/gnolang/gno/branch/master/graphs/sunburst.svg?token=HPP82HR1P4)
14+
15+
![](https://codecov.io/gh/gnolang/gno/branch/master/graphs/tree.svg?token=HPP82HR1P4)
16+
17+
![](https://codecov.io/gh/gnolang/gno/branch/master/graphs/icicle.svg?token=HPP82HR1P4)

reports/gh-stargazers/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
## Stargazers over time
2+
3+
[![Stargazers over time](https://starchart.cc/gnolang/gno.svg)](https://starchart.cc/gnolang/gno)
4+
[![Stargazers over time](https://starchart.cc/gnolang/awesome-gno.svg)](https://starchart.cc/gnolang/awesome-gno)
5+
6+
<!--
7+
- benchmarks
8+
- roadmap
9+
- hackerspace
10+
- meetings
11+
- workshops
12+
- ...
13+
-->
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"averageTPS":97,"blocks":[{"blockNumber":9,"created":"2023-04-22T02:27:40.883849299Z","numTransactions":10,"gasUsed":1590000,"gasLimit":10000000},{"blockNumber":10,"created":"2023-04-22T02:27:57.163166539Z","numTransactions":60,"gasUsed":9637791,"gasLimit":10000000},{"blockNumber":11,"created":"2023-04-22T02:27:58.175372795Z","numTransactions":30,"gasUsed":4820970,"gasLimit":10000000}]}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"averageTPS":98,"blocks":[{"blockNumber":9,"created":"2023-04-23T02:34:39.408239609Z","numTransactions":4,"gasUsed":630948,"gasLimit":10000000},{"blockNumber":10,"created":"2023-04-23T02:34:55.651760148Z","numTransactions":60,"gasUsed":9632652,"gasLimit":10000000},{"blockNumber":11,"created":"2023-04-23T02:34:56.659470821Z","numTransactions":36,"gasUsed":5785161,"gasLimit":10000000}]}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"averageTPS":98,"blocks":[{"blockNumber":9,"created":"2023-04-24T02:29:07.666299254Z","numTransactions":7,"gasUsed":1109211,"gasLimit":10000000},{"blockNumber":10,"created":"2023-04-24T02:29:20.857182595Z","numTransactions":60,"gasUsed":9636483,"gasLimit":10000000},{"blockNumber":11,"created":"2023-04-24T02:29:21.866351125Z","numTransactions":33,"gasUsed":5303067,"gasLimit":10000000}]}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"averageTPS":98,"blocks":[{"blockNumber":9,"created":"2023-04-25T02:27:44.550180139Z","numTransactions":11,"gasUsed":1750603,"gasLimit":10000000},{"blockNumber":10,"created":"2023-04-25T02:28:00.806386394Z","numTransactions":60,"gasUsed":9637887,"gasLimit":10000000},{"blockNumber":11,"created":"2023-04-25T02:28:01.814304289Z","numTransactions":29,"gasUsed":4660271,"gasLimit":10000000}]}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"averageTPS":97,"blocks":[{"blockNumber":9,"created":"2023-04-26T02:27:42.363039437Z","numTransactions":6,"gasUsed":948948,"gasLimit":10000000},{"blockNumber":10,"created":"2023-04-26T02:27:55.615987401Z","numTransactions":60,"gasUsed":9636047,"gasLimit":10000000},{"blockNumber":11,"created":"2023-04-26T02:27:56.632838181Z","numTransactions":34,"gasUsed":5463766,"gasLimit":10000000}]}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"averageTPS":97,"blocks":[{"blockNumber":9,"created":"2023-04-27T02:27:41.943822298Z","numTransactions":6,"gasUsed":948948,"gasLimit":10000000},{"blockNumber":10,"created":"2023-04-27T02:27:58.281743378Z","numTransactions":60,"gasUsed":9636047,"gasLimit":10000000},{"blockNumber":11,"created":"2023-04-27T02:27:59.297851198Z","numTransactions":34,"gasUsed":5463766,"gasLimit":10000000}]}

0 commit comments

Comments
 (0)