Skip to content

Commit d6d74ec

Browse files
mpaulucciCopilot
andauthored
ci(l1): ensure ethrex:main is not cached when using kurtosis in CI (#5091)
**Motivation** Ensure we use the lastest version, kurtosis tends to use the cached one Regression was introduced in this PR: #4499 --------- Co-authored-by: Copilot <[email protected]>
1 parent 105ced6 commit d6d74ec

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

.github/actions/snapsync-run/action.yml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,37 @@ inputs:
77
timeout:
88
description: Assertoor test timeout.
99
required: true
10+
ethrex_image:
11+
description: Ethrex Docker image repository.
12+
required: false
13+
default: ghcr.io/lambdaclass/ethrex
14+
ethrex_tag:
15+
description: Ethrex Docker image tag.
16+
required: false
17+
default: main
1018

1119
runs:
1220
using: composite
1321
steps:
1422
- uses: actions/checkout@v4
1523

24+
# We need to run this step because kurtosis uses cached docker images but we want the latest ethrex image
25+
- name: Remove cached ethrex image
26+
shell: bash
27+
run: docker image rm -f ${{ inputs.ethrex_image }}:${{ inputs.ethrex_tag }} || true
28+
1629
- name: Generate Kurtosis args
1730
shell: bash
1831
env:
1932
NETWORK_NAME: ${{ inputs.network }}
2033
TIMEOUT: ${{ inputs.timeout }}
34+
ETHREX_IMAGE: ${{ inputs.ethrex_image }}
35+
ETHREX_TAG: ${{ inputs.ethrex_tag }}
2136
run: |
2237
cat > .github/config/assertoor/network_params.generated.yaml <<YAML
2338
participants:
2439
- el_type: ethrex
25-
el_image: ghcr.io/lambdaclass/ethrex:main
40+
el_image: ${ETHREX_IMAGE}:${ETHREX_TAG}
2641
el_extra_params:
2742
- "--syncmode=snap"
2843
cl_type: lighthouse
@@ -61,3 +76,15 @@ runs:
6176
ethereum_package_url: github.com/ethpandaops/ethereum-package
6277
ethereum_package_branch: 82e5a7178138d892c0c31c3839c89d53ffd42d9a
6378
ethereum_package_args: .github/config/assertoor/network_params.generated.yaml
79+
80+
- name: Summarize ethrex version
81+
if: ${{ always() }}
82+
shell: bash
83+
run: |
84+
image="${{ inputs.ethrex_image }}:${{ inputs.ethrex_tag }}"
85+
version="$(docker run --rm "$image" --version 2>/dev/null || true)"
86+
{
87+
echo "### Ethrex Version"
88+
echo ""
89+
echo "- ${version:-unavailable}"
90+
} >> "${GITHUB_STEP_SUMMARY}"

.github/workflows/daily_snapsync.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ jobs:
5858
name: Sync ${{ matrix.network }}
5959
runs-on: ethrex-sync
6060
strategy:
61+
fail-fast: false
6162
matrix:
6263
include: ${{ fromJson(needs.prepare.outputs.matrix) }}
6364
steps:

0 commit comments

Comments
 (0)