Skip to content

Commit 4eedd7b

Browse files
authored
restore supernova benchmarks (#20)
1 parent 80089d3 commit 4eedd7b

File tree

1 file changed

+14
-16
lines changed

1 file changed

+14
-16
lines changed

.github/workflows/supernova.yml

+14-16
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ on:
99

1010
jobs:
1111
supernova:
12-
runs-on: [self-hosted, Linux, X64, benchmark-v1]
12+
runs-on: ubuntu-latest
1313

1414
permissions:
1515
contents: write
1616

1717
services:
1818
gnoland:
19-
image: ghcr.io/gnolang/gno:latest
19+
image: ghcr.io/gnolang/gno/gnoland:nightly
2020
# keep the container running
21-
options: --workdir /opt/gno/src/gno.land -it --entrypoint "bash"
21+
options: --workdir /gnoroot -it --entrypoint "sh"
2222
ports:
2323
- 26657:26657
2424
- 36657:36657
@@ -28,27 +28,25 @@ jobs:
2828

2929
- name: setup and start gnoland chain
3030
run: |
31-
docker exec ${{ job.services.gnoland.id }} gnoland start -skip-start=true
32-
docker exec ${{ job.services.gnoland.id }} sed -i 's#laddr =.*:26657.*#laddr = "tcp://0.0.0.0:26657"#g' testdir/config/config.toml
33-
docker exec ${{ job.services.gnoland.id }} sed -i 's#skip_timeout_commit = false#skip_timeout_commit = true#g' testdir/config/config.toml
34-
docker exec -dit ${{ job.services.gnoland.id }} gnoland start
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
3535
3636
- name: download supernova
3737
run: |
3838
rm -rf /tmp/main.zip /tmp/supernova-main
39-
40-
export SUPERNOVA_VERSION=1.0.0
39+
export SUPERNOVA_VERSION=1.3.1
4140
wget -c https://github.com/gnolang/supernova/releases/download/v${SUPERNOVA_VERSION}/supernova_${SUPERNOVA_VERSION}_linux_amd64.tar.gz -O - | tar -xz -C /tmp
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 .
4641
42+
- name: wait Gno to be ready (sleep)
43+
run: |
44+
sleep 20
45+
4746
- name: run supernova
4847
run: |
49-
sleep 10
50-
curl -v http://localhost:26657/status
51-
/tmp/supernova -sub-accounts 10 -transactions 1000 -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
5250
5351
- name: archive supernova result
5452
uses: actions/upload-artifact@v3

0 commit comments

Comments
 (0)