Skip to content

Commit 8fb4044

Browse files
committed
Merge branch 'main' of github.com:lambdaclass/ethrex into refactor-ci-docker
2 parents bdbcaba + 9b877cd commit 8fb4044

File tree

115 files changed

+3494
-934
lines changed

Some content is hidden

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

115 files changed

+3494
-934
lines changed

.github/config/assertoor/network_params_blob.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ participants:
66
validator_count: 32
77
count: 2
88
- el_type: ethrex
9-
el_image: ethrex:latest
9+
el_image: ethrex:ci
1010
cl_type: lighthouse
1111
cl_image: sigp/lighthouse:v7.1.0
1212
validator_count: 32

.github/config/assertoor/network_params_ethrex_multiple_cl.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
participants:
22
- el_type: ethrex
3-
el_image: ethrex:latest
3+
el_image: ethrex:ci
44
cl_type: lighthouse
55
cl_image: sigp/lighthouse:v7.1.0
66
validator_count: 32
77
ethereum_metrics_exporter_enabled: true
88
- el_type: ethrex
9-
el_image: ethrex:latest
9+
el_image: ethrex:ci
1010
cl_type: teku
1111
cl_image: consensys/teku:25.6.0
1212
validator_count: 32
1313
ethereum_metrics_exporter_enabled: true
1414
- el_type: ethrex
15-
el_image: ethrex:latest
15+
el_image: ethrex:ci
1616
cl_type: prysm
1717
cl_image: gcr.io/offchainlabs/prysm/beacon-chain:v6.0.4
1818
validator_count: 32

.github/config/assertoor/network_params_tx.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ participants:
55
cl_image: sigp/lighthouse:v7.1.0
66
validator_count: 32
77
- el_type: ethrex
8-
el_image: ethrex:latest
8+
el_image: ethrex:ci
99
cl_type: lighthouse
1010
cl_image: sigp/lighthouse:v7.1.0
1111
validator_count: 32
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
- client: ethrex
22
build_args:
33
baseimage: ethrex
4+
tag: ci

.github/workflows/common_hive_reports.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ jobs:
5555

5656
- name: Build image
5757
if: ${{ inputs.job_type != 'main' }}
58-
uses: ./.github/actions/setup-docker
5958
with:
6059
image_name: ethrex
6160
upload_artifact: false
@@ -67,7 +66,7 @@ jobs:
6766
run: |
6867
docker pull ghcr.io/lambdaclass/ethrex:unstable
6968
# Tests use ethrex:latest so we retag it
70-
docker tag ghcr.io/lambdaclass/ethrex:unstable ethrex:latest
69+
docker tag ghcr.io/lambdaclass/ethrex:unstable ethrex:ci
7170
7271
- name: Setup Go
7372
uses: actions/setup-go@v5
@@ -87,7 +86,7 @@ jobs:
8786
fi
8887
8988
- name: Run Hive Simulation
90-
run: cd hive && ./hive --client-file ../fixtures/network/hive_clients/ethrex.yml --client ethrex --sim ${{ matrix.test.simulation }} --sim.parallelism 16 ${{ env.HIVE_FLAGS }} --sim.loglevel 1
89+
run: cd hive && ./hive --client-file ../.github/config/hive/clients.yaml --client ethrex --sim ${{ matrix.test.simulation }} --sim.parallelism 16 ${{ env.HIVE_FLAGS }} --sim.loglevel 1
9190
continue-on-error: true
9291

9392
- name: Upload results

.github/workflows/main_flamegraph_report.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
${{ env.HOME }}/.cargo/bin/addr2line
3535
${{ env.HOME }}/.cargo/bin/flamegraph
3636
${{ env.HOME }}/.cargo/bin/inferno-*
37-
${{ env.HOME }}/ethrex/ethrex/cmd/ef_tests/state/vectors
37+
${{ env.HOME }}/ethrex/ethrex/tooling/ef_tests/state/vectors
3838
key: ${{ runner.os }}-extra-binaries
3939

4040
- name: Change perf settings
@@ -85,8 +85,8 @@ jobs:
8585
8686
- name: Download EF Tests
8787
run: |
88-
if [ ! -f "$HOME/ethrex/ethrex/cmd/ef_tests/state/vectors" ]; then
89-
cd cmd/ef_tests/state
88+
if [ ! -f "$HOME/ethrex/ethrex/tooling/ef_tests/state/vectors" ]; then
89+
cd tooling/ef_tests/state
9090
make download-evm-ef-tests
9191
fi
9292

.github/workflows/main_prover_l1.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: Replay proving
22
on:
33
push:
44
branches: ["main"]
5+
pull_request:
6+
branches: ["**"]
7+
paths:
8+
- ".github/workflows/main_prover_l1.yaml"
59

610
concurrency:
711
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
@@ -58,11 +62,11 @@ jobs:
5862
env:
5963
# TODO(): use RPC
6064
# RPC_URL: $${{ secrets.ETHREX_L2_RPC_URL }}
61-
RPC_URL: "http://dummy"
65+
RPC_URL: "http://eth-testnet-rpc:8547"
6266
run: |
63-
cp fixtures/cache/rpc_prover/cache_690403.json cmd/ethrex_replay
67+
cp fixtures/cache/rpc_prover/cache_hoodi_974567.json cmd/ethrex_replay
6468
cd cmd/ethrex_replay
65-
make prove-${{ matrix.backend }}-gpu-ci BLOCK_NUMBER=690403 NETWORK=hoodi
69+
make prove-${{ matrix.backend }}-gpu-ci BLOCK_NUMBER=974567 NETWORK=hoodi
6670
6771
- name: Store benchmark result
6872
uses: benchmark-action/github-action-benchmark@v1

.github/workflows/manual_docker_performance_publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish Docker
1+
name: Publish Performance tag Docker
22

33
on:
44
workflow_dispatch:

.github/workflows/pr-main_l1.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
6868
- name: Run Blockchain EF tests
6969
run: |
70-
make -C cmd/ef_tests/blockchain test
70+
make -C tooling/ef_tests/blockchain test
7171
7272
docker_build:
7373
name: Build Docker
@@ -226,7 +226,7 @@ jobs:
226226
docker load --input /tmp/${{ needs.docker_build.outputs.artifact_filename }}
227227
228228
- name: Run Hive Simulation
229-
run: chmod +x hive && ./hive --client-file fixtures/network/hive_clients/ethrex.yml --client ethrex --sim ${{ matrix.simulation }} --sim.limit "${{ matrix.test_pattern }}" --sim.parallelism 16 --sim.loglevel 1
229+
run: chmod +x hive && ./hive --client-file .github/config/hive/clients.yaml --client ethrex --sim ${{ matrix.simulation }} --sim.limit "${{ matrix.test_pattern }}" --sim.parallelism 16 --sim.loglevel 1
230230

231231
# The purpose of this job is to add it as a required check in GitHub so that we don't have to add every individual job as a required check
232232
all-tests:

.github/workflows/pr-main_levm.yaml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ on:
66
pull_request:
77
branches: ["**"]
88
paths:
9-
- "cmd/ef_tests/state/**"
9+
- "tooling/ef_tests/state/**"
1010
- "crates/vm/levm/**"
1111
- ".github/workflows/pr-main_levm.yaml"
12-
- "cmd/ef_tests/state"
12+
- "tooling/ef_tests/state"
1313
workflow_dispatch:
1414

1515
concurrency:
@@ -32,34 +32,34 @@ jobs:
3232

3333
- name: Download EF Tests
3434
run: |
35-
cd cmd/ef_tests/state
35+
cd tooling/ef_tests/state
3636
make download-evm-ef-tests
3737
3838
- name: Run tests
3939
run: |
40-
cd cmd/ef_tests/state
40+
cd tooling/ef_tests/state
4141
set -o pipefail
4242
make run-evm-ef-tests-ci | tee test_result_pr.txt
4343
4444
- name: Show test summary -- full
4545
run: |
46-
cd cmd/ef_tests/state && awk '/Summary: /,0' test_result_pr.txt
46+
cd tooling/ef_tests/state && awk '/Summary: /,0' test_result_pr.txt
4747
4848
- name: Show test summary -- short
4949
run: |
50-
bash .github/scripts/parse_test_result.sh cmd/ef_tests/state/test_result_pr.txt | tee cmd/ef_tests/state/test_result_pr_short.txt
50+
bash .github/scripts/parse_test_result.sh tooling/ef_tests/state/test_result_pr.txt | tee tooling/ef_tests/state/test_result_pr_short.txt
5151
echo "PR's test results:"
52-
cat cmd/ef_tests/state/test_result_pr_short.txt
52+
cat tooling/ef_tests/state/test_result_pr_short.txt
5353
5454
- name: Upload PR branch EF-test results.
5555
uses: actions/upload-artifact@v4
5656
with:
5757
name: pr-ef-test-data
58-
path: cmd/ef_tests/state/test_result_pr_short.txt
58+
path: tooling/ef_tests/state/test_result_pr_short.txt
5959

6060
- name: Check EF-TESTS status is 100%
6161
run: |
62-
cd cmd/ef_tests/state
62+
cd tooling/ef_tests/state
6363
if [ "$(awk '/Summary:/ {print $(NF)}' test_result_pr_short.txt)" != "(100.00%)" ]; then
6464
echo "Percentage is not 100%."
6565
# exit 1 # uncomment when we expect 100% pass-rate
@@ -77,30 +77,30 @@ jobs:
7777

7878
- name: Download EF Tests
7979
run: |
80-
cd cmd/ef_tests/state
80+
cd tooling/ef_tests/state
8181
make download-evm-ef-tests
8282
8383
- name: Run tests
8484
run: |
85-
cd cmd/ef_tests/state
85+
cd tooling/ef_tests/state
8686
set -o pipefail
8787
make run-evm-ef-tests-ci | tee test_result_main.txt
8888
8989
- name: Show test summary -- full
9090
run: |
91-
cd cmd/ef_tests/state && awk '/Summary: /,0' test_result_main.txt
91+
cd tooling/ef_tests/state && awk '/Summary: /,0' test_result_main.txt
9292
9393
- name: Show test summary -- short
9494
run: |
95-
bash .github/scripts/parse_test_result.sh cmd/ef_tests/state/test_result_main.txt | tee cmd/ef_tests/state/test_result_main_short.txt
95+
bash .github/scripts/parse_test_result.sh tooling/ef_tests/state/test_result_main.txt | tee tooling/ef_tests/state/test_result_main_short.txt
9696
echo "Main's test results:"
97-
cat cmd/ef_tests/state/test_result_main_short.txt
97+
cat tooling/ef_tests/state/test_result_main_short.txt
9898
9999
- name: Upload main branch EF-test results.
100100
uses: actions/upload-artifact@v4
101101
with:
102102
name: main-ef-test-data
103-
path: cmd/ef_tests/state/test_result_main_short.txt
103+
path: tooling/ef_tests/state/test_result_main_short.txt
104104

105105
compare-ef-tests:
106106
if: ${{ github.event_name != 'merge_group' }}
@@ -115,26 +115,26 @@ jobs:
115115
uses: actions/download-artifact@v4
116116
with:
117117
name: main-ef-test-data
118-
path: cmd/ef_tests/state/
118+
path: tooling/ef_tests/state/
119119

120120
- name: Download PR branch ef tests
121121
uses: actions/download-artifact@v4
122122
with:
123123
name: pr-ef-test-data
124-
path: cmd/ef_tests/state/
124+
path: tooling/ef_tests/state/
125125

126126
# NOTE: diff will exit with a non 0 exit code when there are differences
127127
- name: Compare files
128128
id: branch_diffs
129129
continue-on-error: true
130130
run: |
131-
cd cmd/ef_tests/state
131+
cd tooling/ef_tests/state
132132
diff test_result_main_short.txt test_result_pr_short.txt
133133
134134
- name: Compare results
135135
if: ${{ steps.branch_diffs.outcome == 'failure' && github.event_name == 'pull_request' }}
136136
run: |
137-
bash .github/scripts/compare_ef_tests.sh cmd/ef_tests/state/test_result_main_short.txt cmd/ef_tests/state/test_result_pr_short.txt | tee cmd/ef_tests/state/ef_tests_comparison.md
137+
bash .github/scripts/compare_ef_tests.sh tooling/ef_tests/state/test_result_main_short.txt tooling/ef_tests/state/test_result_pr_short.txt | tee tooling/ef_tests/state/ef_tests_comparison.md
138138
139139
- name: Find comment
140140
continue-on-error: true
@@ -154,7 +154,7 @@ jobs:
154154
comment-id: ${{ steps.fc.outputs.comment-id }}
155155
token: ${{ secrets.GITHUB_TOKEN }}
156156
issue-number: ${{ github.event.pull_request.number }}
157-
body-path: cmd/ef_tests/state/ef_tests_comparison.md
157+
body-path: tooling/ef_tests/state/ef_tests_comparison.md
158158
edit-mode: replace
159159

160160
# If we don't have a failure, means that there are no differences in EF-tests.

0 commit comments

Comments
 (0)