-
Notifications
You must be signed in to change notification settings - Fork 3
206 lines (201 loc) · 8.68 KB
/
Copy pathhive-devnet-5.yaml
File metadata and controls
206 lines (201 loc) · 8.68 KB
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
name: Hive - Devnet 5
# EL + CL spec/conformance tests for glamsterdam-devnet-5.
#
# EL job: hive on ethereum/hive@master, running the standard eels
# simulators (consume-engine / consume-rlp) against each EL client's
# devnet-5 image, same shape as the template-devnet-0 workflow.
#
# CL job: hive on barnabasbusa/hive@cl-specs-simulator (PR
# ethereum/hive#1537) until that lands; runs the `cl` simulator (which
# fires each CL client's native consensus-spec-tests runner) against
# the six CL clients on their glamsterdam-devnet-5 branches. Flip
# `cl_hive_version` to `ethereum/hive@master` once #1537 merges.
on:
workflow_dispatch:
# GitHub limits us to 10 workflow inputs.
inputs:
el_client:
type: string
default: '"erigon","nethermind","ethrex"'
description: EL clients (comma-separated quoted JSON fragment).
el_simulator:
type: string
default: >-
"ethereum/eels/consume-engine",
"ethereum/eels/consume-rlp"
description: EL simulators.
el_common_client_tag:
type: string
default: 'glamsterdam-devnet-5'
description: Common image tag for EL clients (overrides per-client tags).
el_client_source:
type: choice
default: 'docker'
options:
- docker
- git
description: EL client source — pre-built docker images or git build.
el_hive_version:
type: string
default: 'ethereum/hive@master'
description: hive repo@ref for the EL job.
cl_client:
type: string
default: '"lighthouse-specs","lodestar-specs","nimbus-specs","teku-specs","prysm-specs","grandine-specs"'
description: CL spec-runner images (comma-separated quoted JSON fragment).
cl_source_ref:
type: string
default: 'glamsterdam-devnet-5'
description: Branch/tag/SHA on each CL client repo.
cl_consensus_spec_tests_ref:
type: string
default: 'v1.7.0-alpha.10'
description: ethereum/consensus-spec-tests tag (prysm cannot override).
cl_hive_version:
type: string
default: 'barnabasbusa/hive@cl-specs-simulator'
description: hive repo@ref carrying the `cl` simulator.
env:
GOPROXY: "${{ vars.GOPROXY }}"
# EL → spec-/EL-results path used by the EL view in hive-ui.
S3_BUCKET: hive-results
EL_S3_PATH: glamsterdam-devnet-5
EL_S3_PUBLIC_URL: https://hive.ethpandaops.io/#/test/glamsterdam-devnet-5/
# CL → separate path so the CL run doesn't collide with the EL listing.jsonl.
CL_S3_PATH: spec-glamsterdam-devnet-5
CL_S3_PUBLIC_URL: https://hive.ethpandaops.io/#/test/spec-glamsterdam-devnet-5/
INSTALL_RCLONE_VERSION: v1.68.2
# TODO: when a glamsterdam-devnet-5 fixtures release is published on
# ethereum/execution-spec-tests, set EEST_BUILD_ARG_FIXTURES to that
# tarball URL and re-add `--sim.buildarg fixtures=${EEST_BUILD_ARG_FIXTURES}`
# to the EEST flags below. Until then we use the simulator's built-in
# default (`stable@latest`).
GLOBAL_EXTRA_FLAGS: >-
--client.checktimelimit=180s
--sim.parallelism=4
--docker.auth
--docker.buildoutput
EEST_ENGINE_FLAGS: >-
--sim.loglevel=3
EEST_RLP_FLAGS: >-
--sim.loglevel=3
RPC_COMPAT_FLAGS: >-
--sim.loglevel=3
jobs:
prepare-el:
runs-on: ubuntu-latest
outputs:
hive_repo: ${{ steps.client_config.outputs.hive_repo }}
hive_tag: ${{ steps.client_config.outputs.hive_tag }}
client_config: ${{ steps.client_config.outputs.client_config }}
steps:
- uses: ethpandaops/hive-github-action/helpers/client-config@09050fc75bae8a10b1876a0826ca4114ea9ed6e8 # v0.6.3
id: client_config
with:
common_client_tag: ${{ inputs.el_common_client_tag }}
client_source: ${{ inputs.el_client_source }}
hive_version: ${{ inputs.el_hive_version }}
goproxy: ${{ env.GOPROXY }}
# Override the helper's default (docker.ethquokkaops.io/...) and pull
# from Docker Hub directly under the ethpandaops org.
client_images: |
{
"erigon": "ethpandaops/erigon:glamsterdam-devnet-5",
"nethermind": "ethpandaops/nethermind:glamsterdam-devnet-5",
"ethrex": "ethpandaops/ethrex:glamsterdam-devnet-5"
}
test-el:
needs: prepare-el
timeout-minutes: 540
runs-on: >-
${{
matrix.simulator == 'ethereum/rpc-compat' && 'ubuntu-latest' ||
contains(matrix.simulator, 'ethereum/eels/') && 'self-hosted-ghr-size-m-x64' ||
'ubuntu-latest'
}}
concurrency:
group: >-
${{ github.head_ref || inputs }}-el-${{ matrix.client }}-${{ matrix.simulator }}
strategy:
fail-fast: false
matrix:
client: ${{ fromJSON(format('[{0}]', inputs.el_client)) }}
simulator: ${{ fromJSON(format('[{0}]', inputs.el_simulator)) }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: ethpandaops/hive-github-action/helpers/self-hosted-runner-dependencies@09050fc75bae8a10b1876a0826ca4114ea9ed6e8 # v0.6.3
if: runner.environment != 'github-hosted'
- uses: ethpandaops/actions/docker-login@99b48ca2b233a2eff93e6a6df76e46b718aca108
with:
username: ethpandaops
password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: ethpandaops/hive-github-action@09050fc75bae8a10b1876a0826ca4114ea9ed6e8 # v0.6.3
with:
hive_repository: ${{ needs.prepare-el.outputs.hive_repo }}
hive_version: ${{ needs.prepare-el.outputs.hive_tag }}
client: ${{ matrix.client }}
simulator: ${{ matrix.simulator }}
client_config: ${{ needs.prepare-el.outputs.client_config }}
extra_flags: >-
${{ env.GLOBAL_EXTRA_FLAGS }}
${{ matrix.simulator == 'ethereum/rpc-compat' && env.RPC_COMPAT_FLAGS || '' }}
${{ matrix.simulator == 'ethereum/eels/consume-engine' && env.EEST_ENGINE_FLAGS || '' }}
${{ matrix.simulator == 'ethereum/eels/consume-rlp' && env.EEST_RLP_FLAGS || '' }}
s3_upload: true
s3_bucket: ${{ env.S3_BUCKET }}
s3_path: ${{ env.EL_S3_PATH }}
s3_public_url: ${{ env.EL_S3_PUBLIC_URL }}
rclone_config: ${{ secrets.HIVE_RCLONE_CONFIG }}
rclone_version: ${{ env.INSTALL_RCLONE_VERSION }}
workflow_artifact_upload: true
website_upload: true
test-cl:
timeout-minutes: 360
runs-on: ubuntu-latest
concurrency:
group: >-
${{ github.head_ref || inputs }}-cl-${{ matrix.client }}
strategy:
fail-fast: false
matrix:
client: ${{ fromJSON(format('[{0}]', inputs.cl_client)) }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: ethpandaops/hive-github-action/helpers/self-hosted-runner-dependencies@09050fc75bae8a10b1876a0826ca4114ea9ed6e8 # v0.6.3
if: runner.environment != 'github-hosted'
- uses: ethpandaops/actions/docker-login@99b48ca2b233a2eff93e6a6df76e46b718aca108
with:
username: ethpandaops
password: ${{ secrets.DOCKERHUB_TOKEN }}
# Split "owner/repo@ref" into the two args the hive-github-action wants.
- id: hive_ref
run: |
ref="${{ inputs.cl_hive_version }}"
echo "repo=${ref%@*}" >> "$GITHUB_OUTPUT"
echo "tag=${ref#*@}" >> "$GITHUB_OUTPUT"
- uses: ethpandaops/hive-github-action@09050fc75bae8a10b1876a0826ca4114ea9ed6e8 # v0.6.3
with:
hive_repository: ${{ steps.hive_ref.outputs.repo }}
hive_version: ${{ steps.hive_ref.outputs.tag }}
client: ${{ matrix.client }}
simulator: cl
# CL_SPECS_* are not forwarded to the simulator container via env
# (hive only sets HIVE_SIMULATOR/HIVE_PARALLELISM/HIVE_LOGLEVEL/
# HIVE_TEST_PATTERN/HIVE_RANDOM_SEED). We pass them as
# --sim.buildarg so the cl simulator's Dockerfile bakes them as
# ENV before the cl-sim binary runs.
extra_flags: >-
--client-file simulators/cl/clients/default.yaml
--sim.parallelism=1
--docker.buildoutput
--sim.buildarg CL_SPECS_SOURCE_REF=${{ inputs.cl_source_ref }}
--sim.buildarg CL_SPECS_TESTS_REF=${{ inputs.cl_consensus_spec_tests_ref }}
--sim.buildarg CL_SPECS_NETWORK=glamsterdam-devnet-5
s3_upload: true
s3_bucket: ${{ env.S3_BUCKET }}
s3_path: ${{ env.CL_S3_PATH }}
s3_public_url: ${{ env.CL_S3_PUBLIC_URL }}
rclone_config: ${{ secrets.HIVE_RCLONE_CONFIG }}
rclone_version: ${{ env.INSTALL_RCLONE_VERSION }}
workflow_artifact_upload: true
website_upload: true