Skip to content

Commit 9f71e5e

Browse files
committed
Merge branch 'master' into hash-writer-aristo
2 parents 0419fde + 58c297f commit 9f71e5e

Some content is hidden

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

56 files changed

+721
-635
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
name: Nimbus CI
1212
on:
1313
push:
14+
branches:
15+
- master
1416
paths-ignore:
1517
- 'doc/**'
1618
- 'portal/docs/**'
@@ -34,6 +36,10 @@ on:
3436

3537
workflow_dispatch:
3638

39+
concurrency: # Cancel stale PR builds (but not push builds)
40+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
41+
cancel-in-progress: true
42+
3743
jobs:
3844
matrix_config:
3945
uses: ./.github/workflows/matrix_config.yml
@@ -68,10 +74,7 @@ jobs:
6874
run: |
6975
gcc --version
7076
DEFAULT_MAKE_FLAGS="-j${ncpu} ENABLE_VMLOWMEM=${ENABLE_VMLOWMEM} ROCKSDB_CI_CACHE=RocksBinCache"
71-
mingw32-make ${DEFAULT_MAKE_FLAGS} all test_import build_fuzzers
72-
build/nimbus_execution_client.exe --help
73-
# give us more space
74-
# find . -type d -name ".git" -exec rm -rf {} +
77+
mingw32-make ${DEFAULT_MAKE_FLAGS} all test_import build_fuzzers check_revision
7578
find . -type d -name "nimcache" -exec rm -rf {} +
7679
mingw32-make ${DEFAULT_MAKE_FLAGS} test t8n_test eest_full_test
7780
@@ -80,29 +83,18 @@ jobs:
8083
run: |
8184
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/usr/local/lib"
8285
DEFAULT_MAKE_FLAGS="-j${ncpu} ROCKSDB_CI_CACHE=RocksBinCache"
83-
env CC=gcc make ${DEFAULT_MAKE_FLAGS} all test_import build_fuzzers
86+
env CC=gcc make ${DEFAULT_MAKE_FLAGS} all test_import build_fuzzers check_revision
8487
build/nimbus_execution_client --help
8588
# CC, GOARCH, and CGO_ENABLED are needed to select correct compiler 32/64 bit
86-
# pushd vendor/nimbus-eth2
87-
# env NIMBUSEL_BINARY=../../build/nimbus_execution_client NIMBUSEL_GENESIS=scripts/nimbusel_genesis.json \
88-
# ./scripts/launch_local_testnet.sh --nodes=3 --stop-at-epoch=7 \
89-
# --disable-htop --reuse-binaries --run-nimbus-el --dl-eth2 --verbose --kill-old-processes
90-
# popd
9189
env CC=gcc GOARCH=${GOARCH} CXX=g++ CGO_ENABLED=1 make ${DEFAULT_MAKE_FLAGS} test t8n_test eest_full_test
9290
9391
- name: Run nimbus-eth1 tests (Macos)
9492
if: runner.os == 'Macos'
9593
run: |
9694
export ZERO_AR_DATE=1 # avoid timestamps in binaries
9795
DEFAULT_MAKE_FLAGS="-j${ncpu} ROCKSDB_CI_CACHE=RocksBinCache"
98-
make ${DEFAULT_MAKE_FLAGS} all test_import build_fuzzers
99-
build/nimbus_execution_client --help
96+
make ${DEFAULT_MAKE_FLAGS} all test_import build_fuzzers check_revision
10097
# "-static" option will not work for osx unless static system libraries are provided
101-
# pushd vendor/nimbus-eth2
102-
# env NIMBUSEL_BINARY=../../build/nimbus_execution_client NIMBUSEL_GENESIS=scripts/nimbusel_genesis.json \
103-
# ./scripts/launch_local_testnet.sh --nodes=3 --stop-at-epoch=7 \
104-
# --disable-htop --reuse-binaries --run-nimbus-el --dl-eth2 --verbose --kill-old-processes
105-
# popd
10698
make ${DEFAULT_MAKE_FLAGS} test t8n_test eest_full_test
10799
108100
lint:

.github/workflows/kurtosis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ on:
2525
- 'docker/**'
2626

2727
pull_request:
28-
branches:
29-
- master
3028
paths-ignore:
3129
- 'doc/**'
3230
- 'portal/docs/**'
@@ -37,6 +35,10 @@ on:
3735
- '.github/workflows/build_base_image.yml'
3836
- 'docker/**'
3937

38+
concurrency: # Cancel stale PR builds (but not push builds)
39+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
40+
cancel-in-progress: true
41+
4042
jobs:
4143
build:
4244
name: Nimbus eth1 - eth2 interop check

.github/workflows/nimbus_verified_proxy.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
name: Nimbus verified proxy CI
1212
on:
1313
push:
14+
branches:
15+
- master
1416
paths:
1517
- '.github/workflows/nimbus_verified_proxy.yml'
1618
- 'nimbus_verified_proxy/**'
@@ -32,6 +34,10 @@ on:
3234
- 'Makefile'
3335
- 'nimbus.nimble'
3436

37+
concurrency: # Cancel stale PR builds (but not push builds)
38+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
39+
cancel-in-progress: true
40+
3541
jobs:
3642
matrix_config:
3743
uses: ./.github/workflows/matrix_config.yml

.github/workflows/portal.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
name: Nimbus Portal CI
99
on:
1010
push:
11+
branches:
12+
- master
1113
paths-ignore:
1214
- 'doc/**'
1315
- 'portal/docs/**'
@@ -29,6 +31,10 @@ on:
2931

3032
workflow_dispatch:
3133

34+
concurrency: # Cancel stale PR builds (but not push builds)
35+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
36+
cancel-in-progress: true
37+
3238
jobs:
3339
# separate job so it can run concurrently with other tests
3440
testutp:

.github/workflows/release.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,21 +60,17 @@ jobs:
6060
make dist-${{ matrix.os }}-${{ matrix.cpu }}
6161
cd dist
6262
ARCHIVE=$(echo *.tar.gz)
63+
ARCHIVE_DIR=$(basename -s .tar.gz -- *.tar.gz)
6364
tar -xzf ${ARCHIVE}
64-
NEW_ARCHIVE_DIR="nimbus-eth1-${{ matrix.os }}-${{ matrix.cpu }}-${{ steps.extract_branch.outputs.tag_name }}-$(git rev-parse --short=8 HEAD)"
65-
mv ${ARCHIVE%.tar.gz} ${NEW_ARCHIVE_DIR}
66-
tar -czf ${NEW_ARCHIVE_DIR}.tar.gz ${NEW_ARCHIVE_DIR}
67-
cp ${NEW_ARCHIVE_DIR}.tar.gz nimbus-eth1-${{ matrix.os }}-${{ matrix.cpu }}.tar.gz
68-
echo "archive=${NEW_ARCHIVE_DIR}.tar.gz" >> $GITHUB_OUTPUT
69-
echo "archive_dir=${NEW_ARCHIVE_DIR}" >> $GITHUB_OUTPUT
65+
echo "archive=${ARCHIVE}" >> $GITHUB_OUTPUT
66+
echo "archive_dir=${ARCHIVE_DIR}" >> $GITHUB_OUTPUT
7067
7168
- name: Upload archive artefact
7269
uses: actions/upload-artifact@v4
7370
with:
7471
name: ${{ matrix.os }}-${{ matrix.cpu }}-archive
7572
path: |
7673
./dist/${{ steps.make_dist.outputs.archive }}
77-
./dist/nimbus-eth1-${{ matrix.os }}-${{ matrix.cpu }}.tar.gz
7874
retention-days: 2
7975

8076
- name: Upload checksum artefact
@@ -87,7 +83,7 @@ jobs:
8783
- name: Login to Docker Hub
8884
# This step runs only if the tag starts with 'v'
8985
if: matrix.os == 'linux' && startsWith(github.ref, 'refs/tags/v')
90-
uses: docker/login-action@v1
86+
uses: docker/login-action@v3
9187
with:
9288
username: ${{ secrets.DOCKERHUB_USERNAME }}
9389
password: ${{ secrets.DOCKERHUB_TOKEN }}
@@ -168,7 +164,7 @@ jobs:
168164
macos-arm64-checksum
169165
170166
#- name: Login to Docker Hub
171-
# uses: docker/login-action@v1
167+
# uses: docker/login-action@v3
172168
# with:
173169
# username: ${{ secrets.DOCKERHUB_USERNAME }}
174170
# password: ${{ secrets.DOCKERHUB_TOKEN }}

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# at your option. This file may not be copied, modified, or distributed except
99
# according to those terms.
1010

11-
FROM debian:testing-slim AS build
11+
FROM debian:trixie-slim AS build
1212

1313
SHELL ["/bin/bash", "-c"]
1414

@@ -26,7 +26,7 @@ RUN cd /root/nimbus-eth1 \
2626
# --------------------------------- #
2727
# Starting new image to reduce size #
2828
# --------------------------------- #
29-
FROM debian:testing-slim AS deploy
29+
FROM debian:trixie-slim AS deploy
3030

3131
SHELL ["/bin/bash", "-c"]
3232
RUN apt-get clean && apt update \

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,9 @@ VERIF_PROXY_OUT_PATH ?= build/libverifproxy/
122122
dist-windows-amd64 \
123123
dist-macos-arm64 \
124124
dist \
125-
eest
125+
eest \
126+
t8n \
127+
t8n_test
126128

127129
ifeq ($(NIM_PARAMS),)
128130
# "variables.mk" was not included, so we update the submodules.
@@ -211,6 +213,9 @@ nimbus_execution_client: | build deps rocksdb
211213
echo -e $(BUILD_MSG) "build/nimbus_execution_client" && \
212214
$(ENV_SCRIPT) nim c $(NIM_PARAMS) -d:chronicles_log_level=TRACE -o:build/nimbus_execution_client "execution_chain/nimbus_execution_client.nim"
213215

216+
check_revision: nimbus_execution_client
217+
scripts/check_revision.sh
218+
214219
nimbus: nimbus_execution_client
215220
echo "The nimbus target is deprecated and will soon change meaning, use 'nimbus_execution_client' instead"
216221

docker/dist/entry_point.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ mkdir "${DIST_PATH}/build"
205205
# copy and checksum binaries, copy docs
206206
EXT=""
207207
if [[ "${PLATFORM}" == "windows_amd64" ]]; then
208+
cp -a vendor/nim-rocksdb/build/librocksdb.dll "${DIST_PATH}/build/"
208209
EXT=".exe"
209210
fi
210211

@@ -230,13 +231,13 @@ done
230231
sed -e "s/GIT_COMMIT/${GIT_COMMIT}/" docker/dist/README.md.tpl > "${DIST_PATH}/README.md"
231232

232233
if [[ "${PLATFORM}" == "linux_amd64" ]]; then
233-
sed -i -e 's/^make dist$/make dist-amd64/' "${DIST_PATH}/README.md"
234-
elif [[ "${PLATFORM}" == "linux_arm64v8" ]]; then
235-
sed -i -e 's/^make dist$/make dist-arm64/' "${DIST_PATH}/README.md"
234+
sed -i -e 's/^make dist$/make dist-linux-amd64/' "${DIST_PATH}/README.md"
235+
elif [[ "${PLATFORM}" == "linux_arm64" ]]; then
236+
sed -i -e 's/^make dist$/make dist-linux-arm64/' "${DIST_PATH}/README.md"
236237
elif [[ "${PLATFORM}" == "windows_amd64" ]]; then
237-
sed -i -e 's/^make dist$/make dist-win64/' "${DIST_PATH}/README.md"
238+
sed -i -e 's/^make dist$/make dist-windows-amd64/' "${DIST_PATH}/README.md"
238239
cp -a docker/dist/README-Windows.md.tpl "${DIST_PATH}/README-Windows.md"
239-
elif [[ "${PLATFORM}" == "macOS_arm64" ]]; then
240+
elif [[ "${PLATFORM}" == "macos_arm64" ]]; then
240241
sed -i -e 's/^make dist$/make dist-macos-arm64/' "${DIST_PATH}/README.md"
241242
fi
242243

execution_chain/common/common.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ proc initializeDb(com: CommonRef) =
140140
doAssert(canonicalHeadHashKey().toOpenArray in txFrame)
141141

142142
txFrame.checkpoint(com.genesisHeader.number)
143-
com.db.persist(txFrame, Opt.none(Hash32))
143+
com.db.persist(txFrame)
144144

145145
# The database must at least contain the base and head pointers - the base
146146
# is implicitly considered finalized

0 commit comments

Comments
 (0)