forked from ethereum/hive
-
Notifications
You must be signed in to change notification settings - Fork 2
117 lines (107 loc) · 3.29 KB
/
dashboard_debug.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
name: Debug Gnosis Tests
on:
workflow_dispatch:
inputs:
client:
description: "Client"
required: true
default: "nethermind-gnosis"
type: choice
options:
- nethermind-gnosis
- erigon-gnosis
- nethermind-old
- erigon-old
suite:
description: "Suite to run"
required: true
default: "withdrawals"
type: choice
options:
- ""
- withdrawals
- cancun
- engine-api
- engine-auth
- engine-exchange-capabilities
- network
branch:
description: "Branch to run tests on"
required: true
default: "reflow"
simulator:
description: "Hive simulator"
required: true
default: "ethereum/gnosis-engine-jq"
type: choice
options:
- ethereum/gnosis-engine-jq
- ethereum/engine-gnosis-erigon
- ethereum/engine-gnosis-nethermind
- smoke
parallelism:
description: "Parallelism"
required: true
default: "1"
type: number
min: 1
max: 10
hive_ttd_enabled:
description: "Hive TTD Enabled"
required: true
default: "true"
type: boolean
log_level:
description: "Log level"
default: "5"
type: number
min: 1
max: 5
sim_log_level:
description: "Simulator log level"
default: "5"
type: number
min: 1
max: 5
client_check_time_limit:
description: "Single test timeout"
default: "10m"
type: string
jobs:
hive-run:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: stable
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Install Linux packages
run: |
sudo apt-get update
sudo apt-get install libsnappy-dev libc6-dev libc6 build-essential
- name: Checkout code
uses: actions/checkout@v2
with:
ref: ${{ github.event.inputs.branch }}
- name: Download dependencies
run: go get -v ./...
- name: Build hive
run: go build -v -o hive hive.go
- name: Run tests
continue-on-error: true
run: |
HIVE_TTD_ENABLED=${{ github.event.inputs.hive_ttd_enabled }} ./hive --sim "${{ github.event.inputs.simulator }}" --sim.limit="${{ github.event.inputs.suite }}" --client "${{ github.event.inputs.client }}" --results-root=${{ github.workspace }}/runs --sim.loglevel=${{ github.event.inputs.sim_log_level }} --loglevel=${{ github.event.inputs.log_level }} --client.checktimelimit=${{ github.event.inputs.client_check_time_limit }} --docker.output --sim.parallelism=${{ github.event.inputs.parallelism }}
- name: Send file over SSH
if: always()
uses: appleboy/scp-action@master
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
key: ${{ secrets.SSH_KEY }}
port: ${{ secrets.SSH_PORT }}
source: ${{ github.workspace }}/runs/*
target: ${{ secrets.DIR }}/