Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DO NOT MERGE] 2.61 vs 2.60 #12479

Closed
wants to merge 119 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
119 commits
Select commit Hold shift + click to select a range
0291417
params: version 2.61.0-dev (#12149)
yperbasis Oct 1, 2024
5c833c3
Turn NoPruneContracts into DepositContract (#12150)
yperbasis Oct 1, 2024
bf742a8
EIP-2935 Historical block hashes (#12152)
yperbasis Oct 1, 2024
51b869d
Implement EIP-7685 and EIP-6110 (#12153)
yperbasis Oct 1, 2024
ee01d5a
BLS: add more subgroup checks and finalized EIP-2537 tests (#12154)
yperbasis Oct 1, 2024
61fb230
add withdrawalRequests to execution payload (#12155)
yperbasis Oct 1, 2024
55e55db
add requests to grpc interfaces (#12156)
yperbasis Oct 1, 2024
7af0551
Add some missing EIP-7685 wirings (#12157)
yperbasis Oct 1, 2024
52685b4
Update EIP-2935: Adjust gas-costs for 2935 (#12158)
yperbasis Oct 1, 2024
9892c85
Implement and add changes for EIPs 7002, 6110, 7685 (#12159)
yperbasis Oct 1, 2024
02728ee
core: Rename Deposit to DepositRequest for EIP-6110 (#12160)
yperbasis Oct 1, 2024
2ce2204
tests: Add prague exec test fixtures and rename requests tests (#12161)
yperbasis Oct 1, 2024
98e72ff
Update EIP-2935 for Prague devnet1 (#12162)
yperbasis Oct 1, 2024
3a9f381
Add EIP-7251 consolidation requests support (#12163)
yperbasis Oct 1, 2024
2e8775b
tests: Undo skip EIP-7685 spec tests (#12164)
yperbasis Oct 1, 2024
e1eab09
Fix compilation (#12171)
yperbasis Oct 2, 2024
bc86e9f
engineapi: Add pectra engine api changes (#12172)
yperbasis Oct 2, 2024
1fbc2fc
rlp: disallow trailing bytes in transactions (#10296) (#12175)
yperbasis Oct 2, 2024
bc4bc69
Move bor_fee_log from core to polygon (#12176)
yperbasis Oct 2, 2024
27783b8
Implement EIP-7702: set code tx (#12178)
yperbasis Oct 2, 2024
60684fe
execution spec tests update for devnet-1 (#12179)
yperbasis Oct 2, 2024
e5cc56f
engineapi: Fix req list check (#12180)
yperbasis Oct 2, 2024
6853eff
txpool changes for set_code_tx support (#12181)
yperbasis Oct 2, 2024
bc6cfb7
Wire OverridePragueTime into txpool (#12185)
yperbasis Oct 2, 2024
d0df1a2
Caplin: Added electra config support (#12186)
yperbasis Oct 2, 2024
92d3354
core/types: Fix JSON (un)marshalling of request types (#12187)
yperbasis Oct 2, 2024
e8f12eb
engineapi: Update interface and Rpc conversion for EIP-7685 Requests …
yperbasis Oct 2, 2024
107ca9b
Fix json name for deposit contract address (#12189)
yperbasis Oct 2, 2024
7418eef
engineapi: Only update req root for pectra+ (#12194)
yperbasis Oct 3, 2024
8ebcc8c
engineapi: Remove redundant nil check (#12195)
yperbasis Oct 3, 2024
771bd47
engineapi: Send status SYNCING for fcu when busy (#12196)
yperbasis Oct 3, 2024
edd42a2
el-consensus: Add 2935 condition to fail silently if no code in Histo…
yperbasis Oct 3, 2024
eb2a2ff
7702 latest spec update (#12198)
yperbasis Oct 3, 2024
c19a0f0
modify EIP-3607 to accept tx type 4 (#12200)
yperbasis Oct 3, 2024
905283b
Stricter validation of EIP-7702 transactions (#12201)
yperbasis Oct 3, 2024
1b6822c
Update spec tests to pectra-devnet-3@v1.5.0 (#12203)
yperbasis Oct 3, 2024
147e26c
Update EIP-7702: simpler transaction validity (#12212)
yperbasis Oct 4, 2024
226b926
Update EIP-7251 address (#12213)
yperbasis Oct 4, 2024
8d66803
Revert changes to non-Prague execution spec tests (#12214)
yperbasis Oct 4, 2024
b481789
qa-tests: use rpcdaemon for rpc tests (Erigon 2) (#12193)
mriccobene Oct 8, 2024
d33a84a
Preserve requests nil-ness in (un)marshalling (#12221)
yperbasis Oct 9, 2024
5ce1d85
e2: Fix state root calculation for EIP-7702 accounts with storage (#1…
yperbasis Oct 9, 2024
870b3d9
qa-tests: Gnosis Tip-Tracking Test - use v2 pre-built database on rel…
mriccobene Oct 16, 2024
4493088
Known cfg 2 61 (#12351)
JkLondon Oct 17, 2024
f05d17a
e2: rpcd to not open file before download complete (#12373)
AskAlexSharov Oct 19, 2024
470b822
e2: don't reopen files when new created (#12375)
AskAlexSharov Oct 20, 2024
c09a3bc
e2: up `bls` dep to support clang16 (#12374)
AskAlexSharov Oct 21, 2024
1f336a7
BodyDownload: differentiate between empty vs nil withdrawals/requests…
yperbasis Oct 23, 2024
837391d
Revert ethereum/tests to 13.1 (#12431)
yperbasis Oct 23, 2024
81ab987
Disable antiquation (#12442)
yperbasis Oct 24, 2024
1ca1a7c
Type of error field in structlog logger differs from geth, alloy (#1…
yperbasis Oct 24, 2024
8fa8ab6
deps: bump libp2p to v0.34.0 (#12445)
yperbasis Oct 24, 2024
f3dfa6d
Bump gqlparser to 2.5.16 in the release/2.60 branch (#12446)
yperbasis Oct 24, 2024
8b3a532
Add early return in `ComputeTxEnv` for state sync transactions (#12447)
yperbasis Oct 24, 2024
1b49666
Removing gasPrice check in UnmarshalJson of dynamicFeeTx (#12448)
yperbasis Oct 24, 2024
8de7eae
Rework release workflow for release/2.60 branch (#12449)
yperbasis Oct 24, 2024
db1a157
rpcdaemon: Only allow large txIndex for state sync transactions (#12450)
yperbasis Oct 24, 2024
c2a332d
rpcdaemon: Add missing flag (#12451)
yperbasis Oct 24, 2024
c5b89b4
e2: port salt assert logic (#12452)
yperbasis Oct 24, 2024
9020781
dbg: env var for heap profile output file path (#12453)
yperbasis Oct 24, 2024
ab5af9f
headerdownload: fix OOM due to inifinitely growing children in link (…
yperbasis Oct 24, 2024
42c0d13
Added Changelog (#12455)
yperbasis Oct 24, 2024
c9954b5
Flatten EIP-7002 withdrawal requests encoding (#12456)
yperbasis Oct 24, 2024
ecf5a1a
Flatten EIP-7251 Consolidation Requests encoding (#12457)
yperbasis Oct 24, 2024
4a2b0b5
tests: Add pectra-devnet-4 tests (All Spec tests Disabled) (#12458)
yperbasis Oct 24, 2024
34d42e1
Rename requestsRoot to requestsHash in block header (#12460)
yperbasis Oct 24, 2024
7a65be6
Block: use generic atomics (#12461)
yperbasis Oct 24, 2024
1502825
Move atomic hash from Block to Header (#12462)
yperbasis Oct 24, 2024
24d8d9b
Merge MiningResultPOSCh with MiningResultCh (#12463)
yperbasis Oct 24, 2024
b37c6d4
Remove EIP-7685 requests from body, block and exeution payload (#12467)
yperbasis Oct 24, 2024
2342e39
Engine API and type changes for flat requests in Pectra (#12468)
yperbasis Oct 25, 2024
b3b915d
Don't pass requests to consensus Finalize (#12474)
yperbasis Oct 25, 2024
6d92c11
Remove remnants of requests from block body downloader (#12475)
yperbasis Oct 25, 2024
3ba3e0a
Simplify EIP-6110 Deposit requests (#12476)
yperbasis Oct 25, 2024
a96cbd5
Modify EIP-7702 Txn impl per pectra-devnet-4 specs (#12478)
yperbasis Oct 25, 2024
9638341
engineapi: Fix json unmarshal issue (#12482)
yperbasis Oct 25, 2024
9490e10
Merge branch 'release/2.60' into release/2.61
yperbasis Oct 25, 2024
223137e
Merge branch 'release/2.60' into release/2.61
yperbasis Oct 25, 2024
b6ef47d
engine: Remove engine_getPayloadBodiesBy{Hash|Range}V2 (#12494)
yperbasis Oct 28, 2024
9599956
params: Update depositContractAddress field in json's (#12528)
yperbasis Oct 29, 2024
edf4149
Update dockerfile to golang 1.22 (#12543)
somnathb1 Oct 30, 2024
6935d08
Fix multiple hive/EEST issues + wait condition loop before sending SY…
somnathb1 Oct 31, 2024
7ffa0fd
trace API: commit state changes from InitializeBlockExecution (#12565)
yperbasis Oct 31, 2024
de588af
Fix bug with sending empty requests list in pectra-devnet-4 (#12588)
somnathb1 Nov 4, 2024
1fd75e3
workflows: Add hive tests to e2 branches (#12590)
somnathb1 Nov 4, 2024
799f16f
workflows: Add ethereum/eest separate workflow (#12599)
somnathb1 Nov 4, 2024
bcf5e29
EIP-4844-pectra (collect blob gas fee) (#12611)
yperbasis Nov 4, 2024
9ac79f4
qa-tests: handle Erigon2 json rpc api improvements regarding the erro…
mriccobene Nov 5, 2024
5bc53cc
[release/2.61] params: v2.61.0-beta1 (#12646)
yperbasis Nov 6, 2024
f475cc4
EIP-7702 authorization: limit chain_id to uint64 and y_parity to uint…
yperbasis Nov 7, 2024
2148546
Block building fixes found for large deposit requests set (#12804)
somnathb1 Nov 20, 2024
9dc3435
Cherry pick PR12658 & PR12721 form release/2.60 (#12807)
lystopad Nov 20, 2024
0273320
Merge branch 'release/2.60' into 'release/2.61' (#12808)
yperbasis Nov 20, 2024
c5d69cb
Fix init cmd aura seal signature import (#12844)
somnathb1 Nov 22, 2024
bfedfd8
workflows: add Pectra kurtosis assertoor tests (#12889) (#12890)
somnathb1 Nov 27, 2024
69aa4ee
workflows: silence rpc compat in hive test for now (#12917)
somnathb1 Nov 29, 2024
d75b5a0
e2: reduce prune limit on chain tip (#12953)
AskAlexSharov Dec 2, 2024
84cb8c5
Feature/lystopad/issue 12900 (#12957) (#12958)
lystopad Dec 3, 2024
79c47e0
workflows: sync kurtosis files with `main` (#12981)
somnathb1 Dec 4, 2024
e29adc6
cherry pick getBadBlocks commit 53b973d (#13001)
sudeepdino008 Dec 5, 2024
a4ca1fa
Pre-Shapella blocks must have nil withdrawals (#13063)
yperbasis Dec 10, 2024
c288fd4
txpool: nil pointer fix (#13033) (#13065)
dvovk Dec 11, 2024
bbfca01
EstimateGas supports overriding state (#13090)
AskAlexSharov Dec 12, 2024
295c6ae
Handle The Merge in remoteConsensusEngine (#13128)
yperbasis Dec 16, 2024
c87800b
workflows: use fixed CL images for kurtosis-assertoor tests (#13105) …
somnathb1 Dec 17, 2024
b381b35
e2: up x deps (#13130)
AskAlexSharov Dec 17, 2024
f4e2b63
Switch tests/execution-spec-tests to git submodule (#13143)
yperbasis Dec 17, 2024
b74df90
Implement AuRa remoteConsensusEngine (#13158)
yperbasis Dec 18, 2024
b16f571
Move log/v3 to erigon-lib in E2 (#13162)
somnathb1 Dec 18, 2024
cce1937
Revert ethereum/tests to 13.1 (#13167)
yperbasis Dec 18, 2024
0b87495
chore:rename ledgerwatch to erigontech in E2 (#13163)
somnathb1 Dec 19, 2024
73aefe3
v2.61.0: params & ChangeLog (#13185)
yperbasis Dec 19, 2024
a7bb5e8
deps: upgrade golang.org/x/net to v0.33.0 (#13184)
yperbasis Dec 20, 2024
1fb5d84
Rollback snapshot lib (#13211)
somnathb1 Dec 24, 2024
b8b99ea
Bump version to 2.61-rc1 (#13223)
VBulikov Dec 24, 2024
c0c67d1
Fix variable definition (#13226)
lystopad Dec 24, 2024
841733c
e2 nodedb: batch updates as in E3 (#13218)
AskAlexSharov Dec 27, 2024
3d348eb
qa-tests: temporary solution for runner n.1 out of space (#13245)
mriccobene Dec 27, 2024
05f92b8
Update qpack and quick-go (fixes Medium CVE-2024-53259) (#13256)
lystopad Dec 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
steps:
- command: './nightly.sh'
label: 'build & run geth'
- command: "./nightly.sh"
label: "build & run geth"
env:
BUILDKITE_GOLANG_IMPORT_PATH: "github.com/ledgerwatch/erigon"
BUILDKITE_GOLANG_IMPORT_PATH: "github.com/erigontech/erigon"
38 changes: 19 additions & 19 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
# Contributing

Thank you for considering to help out with the source code! We welcome
contributions from anyone on the internet, and are grateful for even the
Thank you for considering to help out with the source code! We welcome
contributions from anyone on the internet, and are grateful for even the
smallest of fixes!

If you'd like to contribute to Erigon, please fork, fix, commit and send a
If you'd like to contribute to Erigon, please fork, fix, commit and send a
pull request for the maintainers to review and merge into the main code base. If
you wish to submit more complex changes though, please check up with the core
devs first on [Discord server](https://github.com/ledgerwatch/erigon#erigon-discord-server) to
ensure those changes are in line with the general philosophy of the project
you wish to submit more complex changes though, please check up with the core
devs first on [Discord server](https://github.com/erigontech/erigon#erigon-discord-server) to
ensure those changes are in line with the general philosophy of the project
and/or get some early feedback which can make both your efforts much lighter as
well as our review and merge procedures quick and simple.

## Coding guidelines

Please make sure your contributions adhere to our coding guidelines:

* Code must adhere to the official Go
[formatting](https://golang.org/doc/effective_go.html#formatting) guidelines
(i.e. uses [gofmt](https://golang.org/cmd/gofmt/)).
* Code must be documented adhering to the official Go
[commentary](https://golang.org/doc/effective_go.html#commentary) guidelines.
* Pull requests need to be based on and opened against the `devel` branch.
* Commit messages should be prefixed with the package(s) they modify.
* E.g. "eth, rpc: make trace configs optional"
- Code must adhere to the official Go
[formatting](https://golang.org/doc/effective_go.html#formatting) guidelines
(i.e. uses [gofmt](https://golang.org/cmd/gofmt/)).
- Code must be documented adhering to the official Go
[commentary](https://golang.org/doc/effective_go.html#commentary) guidelines.
- Pull requests need to be based on and opened against the `devel` branch.
- Commit messages should be prefixed with the package(s) they modify.
- E.g. "eth, rpc: make trace configs optional"

## Can I have feature X

Before you submit a feature request, please check and make sure that it isn't
possible through some other means. The JavaScript-enabled console is a powerful
feature in the right hands. Please check our
[Wiki page](https://github.com/ledgerwatch/erigon/wiki) for more info
Before you submit a feature request, please check and make sure that it isn't
possible through some other means. The JavaScript-enabled console is a powerful
feature in the right hands. Please check our
[Wiki page](https://github.com/erigontech/erigon/wiki) for more info
and help.

## Configuration, dependencies, and tests

Please see the [Readme](https://github.com/ledgerwatch/erigon#readme) file
Please see the [Readme](https://github.com/erigontech/erigon#readme) file
for more details on configuring your environment, managing project dependencies
and testing procedures.
8 changes: 4 additions & 4 deletions .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
name: Ask a question
about: Something is unclear
title: ''
labels: 'type:docs'
assignees: ''
title: ""
labels: "type:docs"
assignees: ""
---

This should only be used in very rare cases e.g. if you are not 100% sure if something is a bug or asking a question that leads to improving the documentation. For general questions please use [Erigon's discord](https://github.com/ledgerwatch/erigon#erigon-discord-server).
This should only be used in very rare cases e.g. if you are not 100% sure if something is a bug or asking a question that leads to improving the documentation. For general questions please use [Erigon's discord](https://github.com/erigontech/erigon#erigon-discord-server).
6 changes: 3 additions & 3 deletions .github/workflows/docker-tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Docker tags
on:
push:
tags:
- 'y*.*.*'
- "y*.*.*"
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -33,9 +33,9 @@ jobs:
make release-dry-run
docker images
# docker image push --all-tags thorax/erigon
# docker image push --all-tags ghcr.io/ledgerwatch/erigon
# docker image push --all-tags ghcr.io/erigontech/erigon
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: ${GITHUB_REF#refs/tags/}
DOCKER_USERNAME: ${{ secrets.DOCKERHUB }}
DOCKER_PASSWORD: ${{ secrets.DOCKERHUB_KEY }}
DOCKER_PASSWORD: ${{ secrets.DOCKERHUB_KEY }}
23 changes: 23 additions & 0 deletions .github/workflows/kurtosis/pectra.io
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
participants_matrix:
el:
- el_type: erigon
el_image: test/erigon:current
cl:
- cl_type: lighthouse
cl_image: ethpandaops/lighthouse:pawan-electra-alpha7-0dd215c
- cl_type: teku
cl_image: ethpandaops/teku:mekong
network_params:
electra_fork_epoch: 1
min_validator_withdrawability_delay: 1
shard_committee_period: 1
churn_limit_quotient: 16
additional_services:
- assertoor
snooper_enabled: true
assertoor_params:
run_stability_check: false
run_block_proposal_check: true
tests:
- { file: "https://raw.githubusercontent.com/ethpandaops/assertoor/refs/heads/electra-support/playbooks/pectra-dev/kurtosis/all.yaml"}

27 changes: 27 additions & 0 deletions .github/workflows/kurtosis/regular-assertoor.io
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
participants_matrix:
el:
- el_type: erigon
el_image: test/erigon:current
cl:
- cl_type: lighthouse
cl_image: sigp/lighthouse:v6.0.0
- cl_type: nimbus
cl_image: statusim/nimbus-eth2:multiarch-v24.11.0
network_params:
#electra_fork_epoch: 1
min_validator_withdrawability_delay: 1
shard_committee_period: 1
additional_services:
- assertoor
assertoor_params:
run_stability_check: false
run_block_proposal_check: true
tests:
- https://raw.githubusercontent.com/ethpandaops/assertoor-test/master/assertoor-tests/all-opcodes-test.yaml
- https://raw.githubusercontent.com/ethpandaops/assertoor-test/master/assertoor-tests/blob-transactions-test.yaml
- https://raw.githubusercontent.com/ethpandaops/assertoor-test/master/assertoor-tests/dencun-opcodes-test.yaml
- https://raw.githubusercontent.com/ethpandaops/assertoor-test/master/assertoor-tests/eoa-transactions-test.yaml
- https://raw.githubusercontent.com/ethpandaops/assertoor-test/master/assertoor-tests/synchronized-check.yaml
- https://raw.githubusercontent.com/ethpandaops/assertoor-test/master/assertoor-tests/validator-exit-test.yaml
- https://raw.githubusercontent.com/ethpandaops/assertoor-test/master/assertoor-tests/block-proposal-check.yaml
- https://raw.githubusercontent.com/ethpandaops/assertoor-test/master/assertoor-tests/stability-check.yaml
16 changes: 8 additions & 8 deletions .github/workflows/qa-clean-exit-block-downloading.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,17 @@ jobs:
run: |
python3 $ERIGON_QA_PATH/test_system/db-producer/pause_production.py || true

- name: Restore Erigon Testbed Data Directory
run: |
rsync -a --delete $ERIGON_REFERENCE_DATA_DIR/ $ERIGON_TESTBED_DATA_DIR/
#- name: Restore Erigon Testbed Data Directory
# run: |
# rsync -a --delete $ERIGON_REFERENCE_DATA_DIR/ $ERIGON_TESTBED_DATA_DIR/

- name: Run Erigon, send ctrl-c and check for clean exiting
id: test_step
run: |
set +e # Disable exit on error

# Run Erigon, send ctrl-c and check logs
python3 $ERIGON_QA_PATH/test_system/qa-tests/clean-exit/run_and_check_clean_exit.py ${{ github.workspace }}/build/bin $ERIGON_TESTBED_DATA_DIR $WORKING_TIME_SECONDS Erigon2
python3 $ERIGON_QA_PATH/test_system/qa-tests/clean-exit/run_and_check_clean_exit.py ${{ github.workspace }}/build/bin $ERIGON_REFERENCE_DATA_DIR $WORKING_TIME_SECONDS Erigon2

# Capture monitoring script exit status
test_exit_status=$?
Expand All @@ -72,10 +72,10 @@ jobs:
echo "TEST_RESULT=failure" >> "$GITHUB_OUTPUT"
fi

- name: Delete Erigon Testbed Data Directory
if: always()
run: |
rm -rf $ERIGON_TESTBED_DATA_DIR
#- name: Delete Erigon Testbed Data Directory
# if: always()
# run: |
# rm -rf $ERIGON_TESTBED_DATA_DIR

- name: Resume the Erigon instance dedicated to db maintenance
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/qa-rpc-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Checkout RPC Tests Repository & Install Requirements
run: |
rm -rf ${{ runner.workspace }}/rpc-tests
git -c advice.detachedHead=false clone --depth 1 --branch v0.52.0 https://github.com/erigontech/rpc-tests ${{runner.workspace}}/rpc-tests
git -c advice.detachedHead=false clone --depth 1 --branch erigon_v2.6x https://github.com/erigontech/rpc-tests ${{runner.workspace}}/rpc-tests
cd ${{ runner.workspace }}/rpc-tests
pip3 install -r requirements.txt

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/qa-tip-tracking-gnosis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,4 @@ jobs:
if: steps.test_step.outputs.TEST_RESULT != 'success'
run: |
echo "::error::Error detected during tests"
exit 1
exit 1
16 changes: 8 additions & 8 deletions .github/workflows/qa-tip-tracking.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ jobs:
run: |
python3 $ERIGON_QA_PATH/test_system/db-producer/pause_production.py || true

- name: Restore Erigon Testbed Data Directory
run: |
rsync -a --delete $ERIGON_REFERENCE_DATA_DIR/ $ERIGON_TESTBED_DATA_DIR/
#- name: Restore Erigon Testbed Data Directory
# run: |
# rsync -a --delete $ERIGON_REFERENCE_DATA_DIR/ $ERIGON_TESTBED_DATA_DIR/

- name: Run Erigon, wait sync and check ability to maintain sync
id: test_step
Expand All @@ -52,7 +52,7 @@ jobs:
# 1. Launch the testbed Erigon instance
# 2. Allow time for the Erigon to achieve synchronization
# 3. Begin timing the duration that Erigon maintains synchronization
python3 $ERIGON_QA_PATH/test_system/qa-tests/tip-tracking/run_and_check_tip_tracking.py ${{ github.workspace }}/build/bin $ERIGON_TESTBED_DATA_DIR $TRACKING_TIME_SECONDS $TOTAL_TIME_SECONDS Erigon2 $CHAIN
python3 $ERIGON_QA_PATH/test_system/qa-tests/tip-tracking/run_and_check_tip_tracking.py ${{ github.workspace }}/build/bin $ERIGON_REFERENCE_DATA_DIR $TRACKING_TIME_SECONDS $TOTAL_TIME_SECONDS Erigon2 $CHAIN

# Capture monitoring script exit status
test_exit_status=$?
Expand All @@ -76,10 +76,10 @@ jobs:
echo "TEST_RESULT=failure" >> "$GITHUB_OUTPUT"
fi

- name: Delete Erigon Testbed Data Directory
if: always()
run: |
rm -rf $ERIGON_TESTBED_DATA_DIR
#- name: Delete Erigon Testbed Data Directory
# if: always()
# run: |
# rm -rf $ERIGON_TESTBED_DATA_DIR

- name: Resume the Erigon instance dedicated to db maintenance
run: |
Expand Down
34 changes: 31 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: Release
run-name: Build release ${{ inputs.release_version }} from branch ${{ inputs.checkout_ref }} by @${{ github.actor }}

env:
APPLICATION: "erigon"
BUILDER_IMAGE: "golang:1.22-bookworm"
DOCKER_BASE_IMAGE: "debian:12.7-slim"
DOCKER_BASE_IMAGE: "debian:12.8-slim"
APP_REPO: "erigontech/erigon"
PACKAGE: "github.com/erigontech/erigon"
DOCKERHUB_REPOSITORY: "erigontech/erigon"
Expand Down Expand Up @@ -43,22 +44,26 @@ jobs:
name: Build Artifacts and multi-platform Docker image, publish draft of the Release Notes

steps:
- name: Checkout git repository ${{ env.APP_REPO }}
- name: Checkout git repository ${{ env.APP_REPO }} reference ${{ inputs.checkout_ref }}
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 ## 4.1.7 release
with:
repository: ${{ env.APP_REPO }}
fetch-depth: 0
ref: ${{ inputs.checkout_ref }}
path: 'erigon'

- name: Check if tag ${{ inputs.release_version }} already exists in case perform_release is set.
- name: Check if tag ${{ inputs.release_version }} already exists and create it in case perform_release is set.
if: ${{ (inputs.perform_release) && (inputs.release_version != '') }}
run: |
cd erigon
if git ls-remote --exit-code --quiet --tags origin '${{ inputs.release_version }}'; then
echo "ERROR: tag ${{ inputs.release_version }} exists and workflow is performing release. Exit."
exit 1
else
echo "OK: tag ${{ inputs.release_version }} does not exists. Proceeding."
git tag ${{ inputs.release_version }}
git push origin ${{ inputs.release_version }}
echo; echo "Git TAG ${{ inputs.release_version }} created and pushed."
fi

- name: Run some commands, get commit id
Expand Down Expand Up @@ -230,3 +235,26 @@ jobs:
--notes "**Improvements:**<br>- ...coming soon <br><br>**Bugfixes:**<br><br>- ...coming soon<br><br>**Docker images:**<br><br>Docker image released:<br> ${{ env.DOCKER_TAGS }}<br><br>... coming soon<br>" \
${{ inputs.release_version }} \
*.tar.gz ${{ env.APPLICATION }}_${{ inputs.release_version }}_checksums.txt

In-case-of-failure:
name: "In case of failure: remove remote git tag pointing to the new version."
needs: [ build-release ]
if: always() && !contains(needs.build-release.result, 'success')
runs-on: ubuntu-22.04

steps:
- name: Checkout git repository ${{ env.APP_REPO }} reference ${{ inputs.checkout_ref }}
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 ## 4.1.7 release
with:
repository: ${{ env.APP_REPO }}
fetch-depth: 0
ref: ${{ inputs.checkout_ref }}
path: 'erigon'

- name: Rollback - remove git tag ${{ inputs.release_version }}
if: ${{ (inputs.perform_release) && (inputs.release_version != '') }}
run: |
cd erigon
git push -d origin ${{ inputs.release_version }}


Loading
Loading