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

Merge pre v2.56 #74

Merged
merged 194 commits into from
Jan 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
194 commits
Select commit Hold shift + click to select a range
a068208
Add readonly transaction rollback check rule (#8682)
dlscjf151 Nov 9, 2023
ff88a93
fix-rules-typo (#8681)
dlscjf151 Nov 9, 2023
4297a31
agra hf mainnet (#8684)
temaniarpit27 Nov 9, 2023
c344144
defaults change: increase default --db.read.concurrency 4 times (#8683)
AskAlexSharov Nov 10, 2023
6722334
fix mdbx version in devel branch (#8679)
AskAlexSharov Nov 10, 2023
35bfffd
sys deps up (#8695)
AskAlexSharov Nov 11, 2023
950bb12
metrics: race fix (#8701)
AskAlexSharov Nov 11, 2023
97e94f6
build(deps): bump github.com/consensys/gnark-crypto from 0.12.0 to 0.…
dependabot[bot] Nov 13, 2023
887dd25
chore: remove refs to deprecated io/ioutil (#8557)
testwill Nov 13, 2023
aeec522
params: remove dev from v2.54.0 (#8713)
yperbasis Nov 13, 2023
d60356e
params: begin 2.55 release cycle (#8715)
yperbasis Nov 13, 2023
1857aa4
Remove stale issues workflow (#8716)
yperbasis Nov 13, 2023
8d83680
Add full support to beacon snapshots (#8665)
Giulio2002 Nov 13, 2023
bb44373
cli param for MaxGetProofRewindBlockCount (#8515)
InoMurko Nov 13, 2023
957a94e
Revert ethereum tests back to v12.3 (#8724)
yperbasis Nov 14, 2023
9a9db2d
downloader: whitelist only .seg.torrent files. (#8729)
AskAlexSharov Nov 15, 2023
300931b
grafana board: fix cpu chart (#8733)
AskAlexSharov Nov 15, 2023
b37e980
fix erigon-ext-test golang error (#8734)
battlmonstr Nov 15, 2023
51af060
Added --beacon.api flags to enable experimental beacon api. (#8727)
Giulio2002 Nov 15, 2023
5c57204
bor: update mumbai bootnodes (#8671)
battlmonstr Nov 15, 2023
cc8bdc5
BlockReader: handle nil-body (#8739)
AskAlexSharov Nov 16, 2023
def2457
rpctest: add option to requestAndCompare to permit to save only succe…
lupin012 Nov 16, 2023
4873502
turbo: run tests in parallel (#8738)
estensen Nov 16, 2023
32d05a3
eth/tracers: support traceCall with txIndex (#8736)
jsvisa Nov 16, 2023
27d8865
metrics: switch to using prometheus library (#8741)
taratorio Nov 16, 2023
a6b5297
dvovk/tunnelwws (#8745)
dvovk Nov 16, 2023
274f845
Automation tool to automatically upload caplin's snapshot files to R2…
Giulio2002 Nov 16, 2023
273ca06
Fixed getPayloadBodiesByHash (#8750)
Giulio2002 Nov 16, 2023
1b14921
rpctest: Adapts rpctest error handling all tests (#8744)
lupin012 Nov 17, 2023
3ca7fdf
p2p: fix discovery shutdown (#8725) (#8735)
battlmonstr Nov 17, 2023
fdab99d
core: run tests in parallel (#8743)
estensen Nov 17, 2023
a5ff524
p2p: fix discovery shutdown (#8725) - alternative fix (#8757)
battlmonstr Nov 17, 2023
f3ce5f8
Bor proofgen tests (#8751)
mh0lt Nov 17, 2023
d4cd712
Revisit getPayloadBodiesByHash (#8758)
yperbasis Nov 17, 2023
de60e03
Bor proof findpath (#8764)
mh0lt Nov 17, 2023
b72b5b9
working debug/state/ for early states (#8767)
Giulio2002 Nov 18, 2023
7d28151
Added data model for public keys validator (#8774)
Giulio2002 Nov 18, 2023
073dbe2
Added duties/proposer to beacon api (#8777)
Giulio2002 Nov 19, 2023
33f42df
snaps: mumbai 42.5m (#8784)
AskAlexSharov Nov 20, 2023
06c508c
downloader: don't create .torrent for too small files (#8785)
AskAlexSharov Nov 20, 2023
2f17848
bor: logs prefix, grep-friendly (#8787)
AskAlexSharov Nov 20, 2023
d557679
bor: check nil-header (#8779)
AskAlexSharov Nov 20, 2023
f476fe6
bor: check nil-blocks in other places (#8788)
AskAlexSharov Nov 20, 2023
daacd71
bor: PersistValidatorSets nil header check (#8791)
AskAlexSharov Nov 20, 2023
0a374ab
Review debug_trace* benches (#8773)
Sixtysixter Nov 20, 2023
34c0fe2
metrics: swap remaining VictoriaMetrics usages with erigon-lib/metric…
taratorio Nov 20, 2023
9623b7c
txpool: limit transactions outgoing messages (#8271) (#8742)
battlmonstr Nov 20, 2023
aa55d95
temp fix for erigon-ext-test (#8797)
taratorio Nov 21, 2023
0aa06af
Add benchOtsGetBlockTransactions (#8672)
riuzzoda Nov 21, 2023
4abe1d5
silkworm: internal refactorings (#8675)
battlmonstr Nov 21, 2023
a243345
Keep few beacon block headers in mdbx (#8809)
Giulio2002 Nov 22, 2023
43b8cbb
bor: don't hide `ctx.Err()` (#8792)
AskAlexSharov Nov 22, 2023
30c05cc
cl: disable spec-integration CI on mac - until flaky test fix (#8812)
AskAlexSharov Nov 22, 2023
57bcbaa
Adds flags to enable/disable backfilling and enable full historical b…
Giulio2002 Nov 22, 2023
e390b0e
ots: stop at ctx.Done() (#8790)
AskAlexSharov Nov 23, 2023
55e05c4
--txpool.gossip.disable (#8800)
AskAlexSharov Nov 23, 2023
23f23bc
disable disc tests on Mac (#8822)
AskAlexSharov Nov 23, 2023
19451ac
Return difficulty check into bor header validation (#8815)
AlexeyAkhunov Nov 23, 2023
34b9a70
bor: add more context to error - to understand where it happened (#8811)
AskAlexSharov Nov 23, 2023
fdc75df
Bor: increase client timeout from 5 to 10sec (to cover remote server …
AskAlexSharov Nov 23, 2023
28fff1b
metrics: remove VictoriaMetrics/metrics lib (#8766)
taratorio Nov 23, 2023
59909a7
Added TxDependency Metadata to ExtraData in Block Header in Bor for B…
pratikspatil024 Nov 24, 2023
3db9467
increase peer tasks queue size (#8825)
AskAlexSharov Nov 24, 2023
748359c
webseed: .torrent file validation must check - fileName and hash (#8…
AskAlexSharov Nov 24, 2023
230b013
metrics: separate usage of prometheus counter and gauge interfaces (#…
taratorio Nov 24, 2023
9b74cf0
metrics: use prometheus histogram and summary interfaces (#8808)
taratorio Nov 24, 2023
9cfed88
integration run_migrations: open in non-accede exclusive mode - to cr…
AskAlexSharov Nov 25, 2023
fd6f529
devnet: prevent tx-leak on panic (#8803)
AskAlexSharov Nov 25, 2023
8cfafa4
add command "downloader torrent_cat" (#8824)
AskAlexSharov Nov 27, 2023
a63b893
added logging for slow RPC requests (#8818)
dvovk Nov 28, 2023
3e8a028
evm: remove interpreter interface - step3 (#8842)
AskAlexSharov Nov 29, 2023
a2673c6
[caplin/sentinel] config reorganizations (#8844)
elee1766 Nov 29, 2023
71d7e2c
fix (#8852)
elee1766 Nov 29, 2023
e91dc9f
Update mingw cmake version for windows (#8856)
Nov 29, 2023
427f263
mdbx: hard-limit of small db's dirty_space (#8850)
AskAlexSharov Nov 29, 2023
2e0f9b0
"erigon snapshots diff": setup logger (#8834)
AskAlexSharov Nov 29, 2023
473e041
estimate: at-lest 1 worker (#8859)
AskAlexSharov Nov 29, 2023
8d1758c
Add support for amoy testnet (#8674)
anshalshukla Nov 30, 2023
015f6eb
Call Tracer.CaptureState before memory expansion (#8860)
guidovranken Nov 30, 2023
5ff9ce8
prnt_stages: to show value of --snapshots flag (#8862)
AskAlexSharov Nov 30, 2023
0fbcd5b
downloader: use manifest.txt for public bucket (#8863)
AskAlexSharov Nov 30, 2023
bc0b727
silkworm: use silkworm-go bindings (#8829)
battlmonstr Nov 30, 2023
333e0e5
flags: bump default value of db.size.limit to 8TB (#8869)
yperbasis Nov 30, 2023
ebdfbd8
silkworm: disable on arm64 Linux (#8870)
battlmonstr Nov 30, 2023
98c57e7
[caplin] event source server (#8865)
elee1766 Nov 30, 2023
b72c37c
lint fix: go mod tidy (#8873)
AskAlexSharov Dec 1, 2023
1ae1301
`debug_trace*`: root gas should use tx.gasLimit (#8858)
yperbasis Dec 1, 2023
b5640bb
Bump GraphQL version + implement blocks (block range) (#8872)
SLoeuillet Dec 1, 2023
4211183
fix LoadFromFile empty error (#8877)
AskAlexSharov Dec 1, 2023
ad48ecd
downloader: download rates per peer with webseeds (#8879)
AskAlexSharov Dec 1, 2023
85ade6b
FIx outstanding know header==nil errors + reduce bor heimdall logging…
mh0lt Dec 1, 2023
e7e1bf4
Caplin: Add a request limiter (#8868)
bayram98 Dec 1, 2023
2991a6b
integration: run_migration must not use `Accede` mode (#8867)
AskAlexSharov Dec 2, 2023
b376d3c
allow disable file logging (#8884)
elee1766 Dec 4, 2023
fcb9fce
flags: bump default value of db.size.limit to 12TB (#8889)
yperbasis Dec 4, 2023
49890b3
caplin: to use 1 worker for snapshots compression (#8892)
AskAlexSharov Dec 4, 2023
3fcb1e6
add config files to gitignore (#8894)
elee1766 Dec 4, 2023
6a70aaa
params: begin 2.56 release cycle (#8895)
yperbasis Dec 4, 2023
c5f4c76
fix: ethdb-doc (#8886)
ddl-hust Dec 4, 2023
1492cc4
fixing typos (#8883)
anil2ec4 Dec 4, 2023
47a6ac1
[beacon handler] framework (#8851)
elee1766 Dec 4, 2023
df9b474
fix: Example TOML config file parsing error (#8902)
ddl-hust Dec 5, 2023
9bea4e3
blockReader: read `blockNum == r.FrozenBlocks()` from files (#8890)
AskAlexSharov Dec 5, 2023
f9f36b5
chore:TxPoolGossipDisableFlag usage (#8899)
ddl-hust Dec 5, 2023
edcd7fc
update outdated information (#8906)
ddl-hust Dec 6, 2023
96bb5dd
silkworm: macOS Intel library (#8891)
battlmonstr Dec 6, 2023
e11e374
estimate: less ram for indexing (#8911)
AskAlexSharov Dec 6, 2023
7335dcc
mdbx: print in logs - real limit (#8910)
AskAlexSharov Dec 6, 2023
c477281
Caplin: Parallel historical states reconstruction (#8817)
Giulio2002 Dec 6, 2023
7542769
bor snaps: "erigon snapshots retire" to build bor files (#8912)
AskAlexSharov Dec 6, 2023
8bfff94
Update gnosis bootnodes (#8907)
4rgon4ut Dec 6, 2023
0d2aecf
Backfill only with flag (#8913)
Giulio2002 Dec 6, 2023
624e4d4
Fix snap initialization from frozen blocks (#8908)
mh0lt Dec 6, 2023
d78cbfe
silkworm: disable on incompatible Linux versions (#8893)
battlmonstr Dec 6, 2023
6960ec3
up `golang/x` deps (#8900)
AskAlexSharov Dec 6, 2023
f3822b1
sepolia: auto-gen snaps to 4.7M (#8898)
AskAlexSharov Dec 7, 2023
5987d4e
Enable superfluous ws.port flag to fix some Hive RPC tests (#8909)
somnathb1 Dec 7, 2023
dac73f4
silkworm: check glibcpp compatibility (#8932)
battlmonstr Dec 7, 2023
b86bdb7
silkworm: disable in release binaries (#8927)
battlmonstr Dec 8, 2023
c91ca2d
dvovk/sync file level (#8931)
dvovk Dec 8, 2023
4696769
dvovk/snapshotsstats (#8935)
dvovk Dec 8, 2023
e006db6
evm cli: no logs if --json (#8925)
AskAlexSharov Dec 9, 2023
07331f9
Adds access list sorting (#8933)
3commascapital Dec 9, 2023
be10b7d
bor: block snaps 50m (#8941)
AskAlexSharov Dec 10, 2023
0364467
max blocks in gossipsource (#8944)
elee1766 Dec 10, 2023
3d9cb04
fix: cl/beacon genesisResponse name (#8923)
ddl-hust Dec 11, 2023
34d93fb
makefile: unquote silkworm build tag - to make it concatenatable (#8948)
AskAlexSharov Dec 11, 2023
7fb8f9d
log blocks stat after downloading, before indexing (#8947)
AskAlexSharov Dec 11, 2023
2498787
Resumable beacon state reconstruction (#8918)
Giulio2002 Dec 11, 2023
4217f78
Fix case when there are more than one matching libraries (#8955)
JacekGlen Dec 12, 2023
d41d523
Downloader: add `ProhibitNewDownloads()` (#8939)
AskAlexSharov Dec 12, 2023
faaf5a0
Amend incarnation logic (#8954)
yperbasis Dec 12, 2023
c1146bd
p2p: skip TestUDPv4_smallNetConvergence on Linux (#8731) (#8962)
battlmonstr Dec 12, 2023
06e77d1
don't log cancelation error at graceful shutdown (#8943)
AskAlexSharov Dec 12, 2023
ac1e42b
added grabbing info about downloaded metadata (#8972)
dvovk Dec 13, 2023
4e83ef0
Optimized beacon state retrieval (#8963)
Giulio2002 Dec 13, 2023
58dabdc
Fixup bittorrent/webseed download logs after refactoring (#8976)
AlexeyAkhunov Dec 13, 2023
3b68d57
collect statistics even for download completed or not started files (…
dvovk Dec 14, 2023
b26d0f2
Engine API PR 498 (clarify payloadAttributes checks) (#8982)
yperbasis Dec 14, 2023
ce57b8f
silkworm: make install (#8985)
battlmonstr Dec 14, 2023
1a6b83b
borheimdall: add test for span persistence (#8988)
taratorio Dec 14, 2023
e82147c
added collecting info about snapshot indexing, renamed downloading pr…
dvovk Dec 15, 2023
e018bb0
cmd/evm:fix Env struct json tag (#8986)
ddl-hust Dec 15, 2023
eeb471d
Added Finality_Checkpoints endpoint (#8979)
Giulio2002 Dec 15, 2023
5d0627f
Fix typo in log message (#8984)
phillipleblanc Dec 15, 2023
9ccd8a1
snapshots: --metrics must not affect logs about peers rate (#8990)
AskAlexSharov Dec 15, 2023
d23f306
borheimdall: add tests for state sync events persistence (#8989)
taratorio Dec 15, 2023
a53b1d8
flip this inequality (#8904)
elee1766 Dec 16, 2023
f934ecb
Fix beacon api handler (#8999)
elee1766 Dec 16, 2023
6a1bb1d
Added Blinded blocks type and Beacon endpoints (#9002)
Giulio2002 Dec 16, 2023
47c5f16
downloader: don't log complete files info (#9013)
AskAlexSharov Dec 18, 2023
1468317
erigon snapshots index: build bor indices (#9009)
AskAlexSharov Dec 18, 2023
ffc26b0
Added GET SyncCommittees (#9003)
Giulio2002 Dec 18, 2023
a366629
Cleanuped up request handling (#9007)
Giulio2002 Dec 18, 2023
037754a
rpc: add `txHash` to `debug_traceBlock*` results (#9016)
yperbasis Dec 18, 2023
4f95342
freezeblocks: fix blockreader last frozen bor span and event ids (#9018)
taratorio Dec 18, 2023
33fc53f
build(deps): bump golang.org/x/crypto from 0.16.0 to 0.17.0 (#9020)
dependabot[bot] Dec 19, 2023
a0b9d60
Update Consensus Specification tests (#9024)
Giulio2002 Dec 19, 2023
e75dc25
Disabled caplin phase2 for Gnosis temporairly. (#9006)
Giulio2002 Dec 19, 2023
0c4bebb
Update Ethereum Mainnet storage requirements (#9037)
Dec 20, 2023
1ae3f41
db migration: if stage_snapshots > 0, then create prohibit_new_downlo…
AskAlexSharov Dec 20, 2023
2760eeb
polygon: astrid sync heimdall wrapper (#9017)
battlmonstr Dec 20, 2023
7107cfe
snaps: stop merge to 500K and enjoy immutability (#9034)
AskAlexSharov Dec 21, 2023
379a5f8
harness test: to use `Mock` for genesis write - for e35 compatibility…
AskAlexSharov Dec 21, 2023
4eecd8c
print_stages: bor snaps info (#9008)
AskAlexSharov Dec 21, 2023
8c82225
remove bor mainnet files (#9033)
AskAlexSharov Dec 21, 2023
56c5f65
downloader: handle race between adding magnet link and files from web…
AskAlexSharov Dec 21, 2023
1499fbb
reduce mutex-contention in downloader.ReCalcStats (#9044)
AskAlexSharov Dec 21, 2023
9eb9151
atomic CRUD for .torrent files (#9043)
AskAlexSharov Dec 21, 2023
55d37b9
bor: spanID calculation refactoring (#9040)
battlmonstr Dec 21, 2023
3b10ba9
Fix creation of torrent files (#9048)
AlexeyAkhunov Dec 21, 2023
393dd18
QA Test - Clean exit (#8981)
mriccobene Dec 21, 2023
0e18866
Added fill-up with pre-existing API (#9042)
Giulio2002 Dec 21, 2023
95434d1
webseed: remove dependency on db state (#9051)
AskAlexSharov Dec 22, 2023
657aafd
allow erigon download .torrent from webseed by default (#9052)
AskAlexSharov Dec 22, 2023
a45b4c7
txpool: the same logging style of announced and broadcasted tx (#9054)
jsvisa Dec 22, 2023
eb4685f
mode to produce block snapshots (#9053)
AskAlexSharov Dec 22, 2023
64072ce
polygon/sync: implement header downloader (#9030)
taratorio Dec 22, 2023
a3a6170
Allow proxy paths in Heimdall URL (#8940)
mh0lt Dec 22, 2023
a36071e
dvovk/snapidx (#9049)
dvovk Dec 22, 2023
ec970ac
Fixed duplicate bucket names, remove presigned URLs (#9060)
AlexeyAkhunov Dec 23, 2023
2b87d65
retire: handle case when bor snaps are behind block snaps (#9061)
AskAlexSharov Dec 23, 2023
a2f375c
Add `blocksByRange` & `blocksByRoot` P2P rpc handlers (#8885)
bayram98 Dec 23, 2023
6a83a91
Add create access list test (#9062)
lupin012 Dec 23, 2023
a4d7b6d
Switched Caplin snapshot format to ZSTD blinded blocks (#9058)
Giulio2002 Dec 23, 2023
be4036e
Added tests to sentinel (FINALLY!) (#9066)
Giulio2002 Dec 24, 2023
88a8aa6
rpcademon: eth_createAccessList: fix in retrieve nonce (#9064)
lupin012 Dec 24, 2023
4186213
disable TestSentinelGossipAverage (#9070)
AskAlexSharov Dec 24, 2023
435fa92
Merge commit '4186213f225f79844e94140ff9336c992a2b3d62' into jyellick…
jyellick Jan 16, 2024
262ba8b
Fix txpool disable merge confusion
jyellick Jan 10, 2024
59ca1a3
Disable macos in github actions
jyellick Jan 8, 2024
fa6a61b
Update fork yaml reference commit
jyellick Jan 17, 2024
9d1f561
Merge remote-tracking branch 'boba/boba-develop' into jyellick/merge-…
jyellick Jan 19, 2024
ac5750f
Merge remote-tracking branch 'boba/boba-develop' into jyellick/merge-…
jyellick Jan 19, 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
  •  
  •  
  •  
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }}
strategy:
matrix:
os: [ ubuntu-20.04, macos-11 ] # list of os: https://github.com/actions/virtual-environments
os: [ ubuntu-22.04 ] # Disabling macos as getting inexplicable "this job failed" messages with no logs, macos-13-xlarge ] # list of os: https://github.com/actions/virtual-environments
runs-on: ${{ matrix.os }}

steps:
Expand Down Expand Up @@ -56,7 +56,7 @@ jobs:
if: runner.os == 'Linux'
uses: golangci/golangci-lint-action@v3
with:
version: v1.54.2
version: v1.55.2
skip-build-cache: true
args: --help

Expand Down Expand Up @@ -96,8 +96,8 @@ jobs:
key: chocolatey-${{ matrix.os }}
- name: Install dependencies
run: |
choco upgrade mingw -y --no-progress --version 11.2.0.07112021
choco install cmake -y --no-progress --version 3.23.1
choco upgrade mingw -y --no-progress --version 13.2.0
choco install cmake -y --no-progress --version 3.27.8

- name: Build
run: .\wmake.ps1 all
Expand All @@ -111,7 +111,7 @@ jobs:
docker-build-check:
# don't run this on devel - the PR must have run it to be merged and it misleads that this pushes the docker image
if: (${{ github.event_name == 'push' || !github.event.pull_request.draft }}) && ${{ github.ref != 'refs/heads/devel' }}
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: AutoModality/action-clean@v1
- uses: actions/checkout@v3
Expand All @@ -127,7 +127,7 @@ jobs:

# automated-tests:
# runs-on:
# ubuntu-20.04
# ubuntu-22.04
# if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }}
# steps:
# - uses: actions/checkout@v3
Expand Down
89 changes: 89 additions & 0 deletions .github/workflows/qa-clean-exit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
name: QA - Clean exit on Ctrl-C

on:
push:
branches:
- devel
- alpha
- 'release/**'
pull_request:
branches:
- devel
- alpha
- 'release/**'
types:
- opened
- reopened
- synchronize
- ready_for_review

jobs:
long-running-test:
#if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }}
#strategy:
# matrix:
# os: [ ubuntu-22.04, macos-13-xlarge ]
#runs-on: ${{ matrix.os }}
runs-on: self-hosted
env:
ERIGON_DATA_DIR: ${{ github.workspace }}/erigon_data

steps:
- name: Check out repository
uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'

#- name: Install dependencies
# run: |
# sudo apt-get update
# sudo apt-get install -y build-essential make gcc

- name: Clean Erigon Build Directory
run: |
make clean

- name: Build Erigon
run: |
make erigon
working-directory: ${{ github.workspace }}

#- name: Download Python Script for Logs Checking
# run: |
# curl -o check_erigon_exit.py 'https://gist.githubusercontent.com/mriccobene/8db4030a745de34d527f136f2caa104f/raw/3c1a860cb87d61075e78ce399e17f0ab157cacc6/check_erigon_exit.py'

- name: Run Erigon, send ctrl-c and check for clean exiting
run: |
# Run Erigon, send ctrl-c and check logs
python3 ${{ github.workspace }}/../../../../erigon-qa/test_system/qa-tests/clean-exit/run_and_check_clean_exit.py ${{ github.workspace }}/build/bin $ERIGON_DATA_DIR

# Capture monitoring script exit status
monitoring_exit_status=$?

# Clean up Erigon process if it's still running
if kill -0 $ERIGON_PID 2> /dev/null; then
echo "Terminating Erigon"
kill $ERIGON_PID
wait $ERIGON_PID
else
echo "Erigon has already terminated"
fi

# Clean up Erigon build and data directories
rm -rf $ERIGON_DATA_DIR

# Check monitoring script exit status
if [ $monitoring_exit_status -eq 0 ]; then
echo "Monitoring completed successfully"
else
echo "Error detected in Erigon logs or monitoring script exited unexpectedly"
exit 1
fi
23 changes: 0 additions & 23 deletions .github/workflows/stale-issues.yml

This file was deleted.

7 changes: 4 additions & 3 deletions .github/workflows/test-integration-caplin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ jobs:
tests:
strategy:
matrix:
os: [ ubuntu-20.04, macos-11 ] # list of os: https://github.com/actions/virtual-environments
# disable macos-11 until https://github.com/ledgerwatch/erigon/issues/8789
os: [ ubuntu-22.04 ] # list of os: https://github.com/actions/virtual-environments
runs-on: ${{ matrix.os }}

steps:
Expand Down Expand Up @@ -55,8 +56,8 @@ jobs:
key: chocolatey-${{ matrix.os }}
- name: Install dependencies
run: |
choco upgrade mingw -y --no-progress --version 11.2.0.07112021
choco install cmake -y --no-progress --version 3.23.1
choco upgrade mingw -y --no-progress --version 13.2.0
choco install cmake -y --no-progress --version 3.27.8

- name: test-integration-caplin
run: cd ./cl/spectest/ && .\wmake.ps1 Tests Mainnet
6 changes: 3 additions & 3 deletions .github/workflows/test-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
tests:
strategy:
matrix:
os: [ ubuntu-20.04, macos-11 ] # list of os: https://github.com/actions/virtual-environments
os: [ ubuntu-22.04 ] # Disable macos as it is giving us "This Job Failed" errors with no logs, macos-13-xlarge ] # list of os: https://github.com/actions/virtual-environments
runs-on: ${{ matrix.os }}

steps:
Expand Down Expand Up @@ -63,8 +63,8 @@ jobs:
key: chocolatey-${{ matrix.os }}
- name: Install dependencies
run: |
choco upgrade mingw -y --no-progress --version 11.2.0.07112021
choco install cmake -y --no-progress --version 3.23.1
choco upgrade mingw -y --no-progress --version 13.2.0
choco install cmake -y --no-progress --version 3.27.8

- name: test-integration
run: .\wmake.ps1 test-integration
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,7 @@ jwt.hex
*__debug_bin*
yarn.lock
node_modules

/config.toml
/config.yaml
/config.yml
6 changes: 5 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ linters:
- errorlint #TODO: enable me
- errchkjson #TODO: enable me
- unused #TODO: enable me
- testifylint #TODO: enable me
- perfsprint #TODO: enable me
- gocheckcompilerdirectives
- protogetter
enable:
- unconvert
# - predeclared #TODO: enable me
Expand Down Expand Up @@ -81,7 +84,7 @@ linters-settings:
rules: "rules.go"
hugeParam:
# size in bytes that makes the warning trigger (default 80)
sizeThreshold: 1100
sizeThreshold: 1000
rangeExprCopy:
# size in bytes that makes the warning trigger (default 512)
sizeThreshold: 512
Expand Down Expand Up @@ -124,6 +127,7 @@ issues:
- unused
- deadcode
- gocritic
- perfsprint
- path: hack\.go
linters:
- gosec
Expand Down
10 changes: 5 additions & 5 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ builds:
env:
- CC=o64-clang
- CXX=o64-clang++
tags: [ nosqlite, noboltdb ]
tags: [ nosqlite, noboltdb, nosilkworm ]
ldflags: -s -w

- id: darwin-arm64
Expand All @@ -25,7 +25,7 @@ builds:
env:
- CC=oa64-clang
- CXX=oa64-clang++
tags: [ nosqlite, noboltdb ]
tags: [ nosqlite, noboltdb, nosilkworm ]
ldflags: -s -w

- id: linux-amd64
Expand All @@ -36,7 +36,7 @@ builds:
env:
- CC=x86_64-linux-gnu-gcc
- CXX=x86_64-linux-gnu-g++
tags: [ nosqlite, noboltdb ]
tags: [ nosqlite, noboltdb, nosilkworm ]
ldflags: -s -w -extldflags "-static" # We need to build a static binary because we are building in a glibc based system and running in a musl container

- id: linux-arm64
Expand All @@ -47,7 +47,7 @@ builds:
env:
- CC=aarch64-linux-gnu-gcc
- CXX=aarch64-linux-gnu-g++
tags: [ nosqlite, noboltdb ]
tags: [ nosqlite, noboltdb, nosilkworm ]
ldflags: -s -w -extldflags "-static" # We need to build a static binary because we are building in a glibc based system and running in a musl container

- id: windows-amd64
Expand All @@ -58,7 +58,7 @@ builds:
env:
- CC=x86_64-w64-mingw32-gcc
- CXX=x86_64-w64-mingw32-g++
tags: [ nosqlite, noboltdb ]
tags: [ nosqlite, noboltdb, nosilkworm ]
ldflags: -s -w


Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ ADD . .
RUN --mount=type=cache,target=/root/.cache \
--mount=type=cache,target=/tmp/go-build \
--mount=type=cache,target=/go/pkg/mod \
make all
make BUILD_TAGS=nosqlite,noboltdb,nosilkworm all


FROM docker.io/library/golang:1.20-alpine3.17 AS tools-builder
Expand Down
30 changes: 27 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,28 @@ CGO_CFLAGS += -O
CGO_CFLAGS += -D__BLST_PORTABLE__
CGO_CFLAGS += -Wno-unknown-warning-option -Wno-enum-int-mismatch -Wno-strict-prototypes -Wno-unused-but-set-variable

CGO_LDFLAGS := $(shell $(GO) env CGO_LDFLAGS 2> /dev/null)
ifeq ($(shell uname -s), Darwin)
ifeq ($(filter-out 13.%,$(shell sw_vers --productVersion)),)
CGO_LDFLAGS += -mmacosx-version-min=13.3
endif
endif

# about netgo see: https://github.com/golang/go/issues/30310#issuecomment-471669125 and https://github.com/golang/go/issues/57757
BUILD_TAGS = nosqlite,noboltdb

ifneq ($(shell "$(CURDIR)/turbo/silkworm/silkworm_compat_check.sh"),)
BUILD_TAGS := $(BUILD_TAGS),nosilkworm
endif

PACKAGE = github.com/ledgerwatch/erigon

GO_FLAGS += -trimpath -tags $(BUILD_TAGS) -buildvcs=false
GO_FLAGS += -ldflags "-X ${PACKAGE}/params.GitCommit=${GIT_COMMIT} -X ${PACKAGE}/params.GitBranch=${GIT_BRANCH} -X ${PACKAGE}/params.GitTag=${GIT_TAG}"

GOBUILD = CGO_CFLAGS="$(CGO_CFLAGS)" $(GO) build $(GO_FLAGS)
GO_DBG_BUILD = CGO_CFLAGS="$(CGO_CFLAGS) -DMDBX_DEBUG=1" $(GO) build -tags $(BUILD_TAGS),debug -gcflags=all="-N -l" # see delve docs
GOTEST = CGO_CFLAGS="$(CGO_CFLAGS)" GODEBUG=cgocheck=0 $(GO) test $(GO_FLAGS) ./... -p 2
GOBUILD = CGO_CFLAGS="$(CGO_CFLAGS)" CGO_LDFLAGS="$(CGO_LDFLAGS)" $(GO) build $(GO_FLAGS)
GO_DBG_BUILD = CGO_CFLAGS="$(CGO_CFLAGS) -DMDBX_DEBUG=1" CGO_LDFLAGS="$(CGO_LDFLAGS)" $(GO) build -tags $(BUILD_TAGS),debug -gcflags=all="-N -l" # see delve docs
GOTEST = CGO_CFLAGS="$(CGO_CFLAGS)" CGO_LDFLAGS="$(CGO_LDFLAGS)" GODEBUG=cgocheck=0 $(GO) test $(GO_FLAGS) ./... -p 2

default: all

Expand Down Expand Up @@ -122,6 +134,8 @@ COMMANDS += evm
COMMANDS += sentinel
COMMANDS += caplin
COMMANDS += caplin-regression
COMMANDS += tooling



# build each command using %.cmd rule
Expand Down Expand Up @@ -224,6 +238,16 @@ git-submodules:
@git submodule sync --quiet --recursive || true
@git submodule update --quiet --init --recursive --force || true

## install: copies binaries and libraries to DIST
DIST ?= $(CURDIR)/build/dist
.PHONY: install
install:
mkdir -p "$(DIST)"
cp -f "$$($(CURDIR)/turbo/silkworm/silkworm_lib_path.sh)" "$(DIST)"
cp -f "$(GOBIN)/"* "$(DIST)"
@echo "Copied files to $(DIST):"
@ls -al "$(DIST)"

PACKAGE_NAME := github.com/ledgerwatch/erigon
GOLANG_CROSS_VERSION ?= v1.20.7

Expand Down
Loading
Loading