Skip to content

Commit

Permalink
temp ci
Browse files Browse the repository at this point in the history
Signed-off-by: Ignacio Hagopian <[email protected]>
  • Loading branch information
jsign committed Jan 12, 2023
1 parent 3e8bae5 commit 939ef88
Showing 1 changed file with 50 additions and 50 deletions.
100 changes: 50 additions & 50 deletions .github/workflows/block_replay.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,58 +2,58 @@ name: Block replay test

on:
push:
branches: [ master ]
branches: [master, jsign/multiplefr]

jobs:
replay:
runs-on: self-hosted
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18

- name: Extract converted db
run: |
mkdir .ethereum
tar xf /home/devops/verkle-test-dependencies/preimages_small.tar --strip-components=4 -C .ethereum
- name: Download geth from the proper repo
run: git clone https://github.com/gballet/go-ethereum -b verkle/replay-change-with-tree-group-tryupdate geth

- name: Edit geth to use this repo
run: |
cd geth
cp /home/devops/verkle-test-dependencies/precomp .
go mod edit -replace=github.com/gballet/go-verkle=$PWD/..
go mod edit -replace=github.com/crate-crypto/go-ipa=github.com/crate-crypto/go-ipa@`grep go-ipa ../go.mod | cut -d'-' -f 5`
go mod download github.com/crate-crypto/go-ipa
go mod tidy
go build ./cmd/geth/...
- name: Run replay
run: |
cd geth
./geth import --datadir=../.ethereum /home/devops/verkle-test-dependencies/next_blocks4
- name: Upload profiler file
uses: actions/upload-artifact@v3
with:
name: cpu.out
path: ./geth/cpu.out

- name: Generate profile diagram
run: |
cd geth
go tool pprof -png cpu.out > profile001.png
- name: Upload profiler picture
uses: actions/upload-artifact@v3
with:
name: profile.png
path: ./geth/profile001.png

- name: Cleanup
if: always()
run: rm -rf geth .ethereum precomp
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18

- name: Extract converted db
run: |
mkdir .ethereum
tar xf /home/devops/verkle-test-dependencies/preimages_small.tar --strip-components=4 -C .ethereum
- name: Download geth from the proper repo
run: git clone https://github.com/gballet/go-ethereum -b verkle/replay-change-with-tree-group-tryupdate geth

- name: Edit geth to use this repo
run: |
cd geth
cp /home/devops/verkle-test-dependencies/precomp .
go mod edit -replace=github.com/gballet/go-verkle=$PWD/..
go mod edit -replace=github.com/crate-crypto/go-ipa=github.com/crate-crypto/go-ipa@`grep go-ipa ../go.mod | cut -d'-' -f 5`
go mod download github.com/crate-crypto/go-ipa
go mod tidy
go build ./cmd/geth/...
- name: Run replay
run: |
cd geth
./geth import --datadir=../.ethereum /home/devops/verkle-test-dependencies/next_blocks4
- name: Upload profiler file
uses: actions/upload-artifact@v3
with:
name: cpu.out
path: ./geth/cpu.out

- name: Generate profile diagram
run: |
cd geth
go tool pprof -png cpu.out > profile001.png
- name: Upload profiler picture
uses: actions/upload-artifact@v3
with:
name: profile.png
path: ./geth/profile001.png

- name: Cleanup
if: always()
run: rm -rf geth .ethereum precomp

0 comments on commit 939ef88

Please sign in to comment.