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

Test PR #2

Closed
wants to merge 54 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
2eff6d3
[Gnosis] Don't call ExecuteSystemWithdrawals before Shanghai (#7160)
yperbasis Mar 22, 2023
af4d2c2
--txpool.commit.every panic handling (#7163)
AskAlexSharov Mar 23, 2023
09154c5
Go 1.18 drop (#7159)
AskAlexSharov Mar 23, 2023
a09541c
Add eth_getProof support for historical blocks (#7115)
jyellick Mar 23, 2023
b9b0950
test simplify
AskAlexSharov Mar 23, 2023
eb93217
linter up
AskAlexSharov Mar 23, 2023
9001f66
go 1.19 atomics (#7164)
AskAlexSharov Mar 23, 2023
dfc5f55
fix e3 test
AskAlexSharov Mar 23, 2023
36cce22
to fix txpool startup race (#7165)
AskAlexSharov Mar 23, 2023
256bb1f
CI v4
AskAlexSharov Mar 23, 2023
299ab8d
manual integration tests run allow
AskAlexSharov Mar 23, 2023
e2c5984
attempt to finx bindtest (#7167)
AskAlexSharov Mar 23, 2023
ab87125
save
AskAlexSharov Mar 23, 2023
6c87d19
clean
AskAlexSharov Mar 23, 2023
8957107
panic in trace_adhoc
AskAlexSharov Mar 24, 2023
d3c790c
add eth_getFilterLogs to docs (#7171)
elee1766 Mar 24, 2023
f80efcc
readme dates
AskAlexSharov Mar 24, 2023
f4fb329
e3: remove some iterator (#7174)
AskAlexSharov Mar 24, 2023
25999de
Fixed storage for download (#7175)
Giulio2002 Mar 24, 2023
bedc354
fix(release): http-https redirect working (#7176)
revitteth Mar 25, 2023
7a51a29
e3: DomainGetAsOf, DomainRange (#7177)
AskAlexSharov Mar 25, 2023
5445058
DomainRange
AskAlexSharov Mar 25, 2023
e0dd48c
DomainRange
AskAlexSharov Mar 25, 2023
201572c
enable more linters #954 (#7179)
AskAlexSharov Mar 25, 2023
cff73b8
add constant kv.Unlim=-1 (#7183)
AskAlexSharov Mar 26, 2023
3913a99
integration temporal db
AskAlexSharov Mar 26, 2023
19cf48a
prevent infinity unwind when no --unwind.every flag set
AskAlexSharov Mar 26, 2023
5ddb86d
clean
AskAlexSharov Mar 26, 2023
0f14970
kv_temporal lost commit
AskAlexSharov Mar 26, 2023
e38605b
bump version (#7184)
AlexeyAkhunov Mar 26, 2023
628f52d
Added reverse beacon changeset for beacon state rewind (#7185)
Giulio2002 Mar 26, 2023
be860e3
e3: recon deadlock fix (#7186)
AskAlexSharov Mar 27, 2023
540af96
removed --el.enabled (#7187)
Giulio2002 Mar 27, 2023
70bc7f7
eip-4844: small additions and modified gaspool (#7190)
racytech Mar 27, 2023
ab3a1d2
Remove propagation of lightclient updates (#7192)
Giulio2002 Mar 27, 2023
7f28889
hopefully fix #7130 (#7193)
gfxlabs Mar 28, 2023
bc1b142
add netgo tag
AskAlexSharov Mar 28, 2023
340cf1b
e3: one more reconst deadlock fix
AskAlexSharov Mar 28, 2023
b85d22b
log BLS verification failure (#7196)
yperbasis Mar 28, 2023
e5e97ce
Add maxNumberOfFailedWithdrawalsToProcess to executeSystemWithdrawals…
yperbasis Mar 28, 2023
db726a0
Release transaction in EngineGetPayloadBodiesByRangeV1 (and by hash) …
yperbasis Mar 28, 2023
afe0e38
e4: add flag in tests
AskAlexSharov Mar 29, 2023
3ce1b9b
e4: add tests flag
AskAlexSharov Mar 29, 2023
975e38a
eip-4844: NewEVMBlockContext now expects excessDataGas (#7203)
racytech Mar 29, 2023
417a437
Break dependency of `ethcfg` package to `core`/`consensus`/etc... mo…
AskAlexSharov Mar 29, 2023
f541f61
e3: one more reconst deadlock fix (#7207)
AskAlexSharov Mar 29, 2023
592ec1e
e4: step 1 to run tests (#7209)
AskAlexSharov Mar 29, 2023
2f482b8
Fork-choice graph oriented implementation (#7212)
Giulio2002 Mar 29, 2023
8bb83fe
Skip test in fork_graph_test.go (#7216)
AlexeyAkhunov Mar 29, 2023
331f3ed
e3: deadlock fix
AskAlexSharov Mar 30, 2023
f3ff8dd
sqlite version up
AskAlexSharov Mar 30, 2023
3008c25
e3: enable simulated backed (#7218)
AskAlexSharov Mar 30, 2023
2161c5e
stop using olddb in simulated backend (#7219)
AskAlexSharov Mar 30, 2023
d9f8cc2
close memdb in ./cmd/evm
AskAlexSharov Mar 30, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ 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://discord.gg/hQ2dxbNZ).
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).
52 changes: 15 additions & 37 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,25 +28,15 @@ jobs:
os: [ ubuntu-20.04, macos-11 ] # list of os: https://github.com/actions/virtual-environments
runs-on: ${{ matrix.os }}

steps:
steps:
- uses: actions/checkout@v3
- run: git submodule update --init --recursive --force
- uses: actions/setup-go@v3
- uses: actions/setup-go@v4
with:
go-version: 1.19.x
go-version: '1.19'
- name: Install dependencies on Linux
if: runner.os == 'Linux'
run: sudo apt update && sudo apt install build-essential

- uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/Library/Caches/go-build
~/go/pkg/mod
key: go-${{ matrix.os }}-${{ hashFiles('**/go.sum') }}
restore-keys: go-${{ matrix.os }}-

- name: Build
run: make all

Expand All @@ -64,27 +54,23 @@ jobs:
if: runner.os == 'Linux'
uses: golangci/golangci-lint-action@v3
with:
version: v1.51
version: v1.52

- name: Test
run: make test

# - name: Test HistoryV3
# run: make test3

tests-windows:
if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }}
strategy:
matrix:
os: [ windows-2022 ]
runs-on: ${{ matrix.os }}

steps:
steps:
- uses: actions/checkout@v3
- run: git submodule update --init --recursive --force
- uses: actions/setup-go@v3
- uses: actions/setup-go@v4
with:
go-version: 1.19.x
go-version: '1.19'

- uses: actions/cache@v3
with:
Expand All @@ -97,14 +83,6 @@ jobs:
choco upgrade mingw -y --no-progress --version 11.2.0.07112021
choco install cmake -y --no-progress --version 3.23.1

- uses: actions/cache@v3
with:
path: |
~\AppData\Local\go-build
~\go\pkg\mod
key: go-${{ matrix.os }}-${{ hashFiles('**/go.sum') }}
restore-keys: go-${{ matrix.os }}-

- name: Build
run: .\wmake.ps1 all

Expand All @@ -129,11 +107,11 @@ jobs:
run: sudo DOCKER_TAG=thorax/erigon:ci-$GITHUB_SHA DOCKER_UID=$(id -u) DOCKER_GID=$(id -g) make docker

automated-tests:
runs-on:
ubuntu-20.04
if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }}
steps:
- uses: actions/checkout@v3
- name: run automated testing
run: BUILD_ERIGON=1 ./tests/automated-testing/run.sh
runs-on:
ubuntu-20.04
if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }}
steps:
- uses: actions/checkout@v3

- name: run automated testing
run: BUILD_ERIGON=1 ./tests/automated-testing/run.sh
6 changes: 2 additions & 4 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@ jobs:

steps:
- uses: actions/checkout@v3
- run: git submodule update --init --recursive --force

- uses: actions/setup-go@v3
- uses: actions/setup-go@v4
with:
go-version: 1.19.x
go-version: '1.19'

- name: install dependencies on Linux
if: runner.os == 'Linux'
Expand Down
27 changes: 6 additions & 21 deletions .github/workflows/test-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
- stable
schedule:
- cron: '20 16 * * *' # daily at 16:20 UTC
workflow_dispatch:

jobs:
tests:
strategy:
Expand All @@ -17,22 +19,13 @@ jobs:
steps:
- uses: actions/checkout@v3
- run: git submodule update --init --recursive --force
- uses: actions/setup-go@v3
- uses: actions/setup-go@v4
with:
go-version: 1.19.x
go-version: '1.19'
- name: Install dependencies on Linux
if: runner.os == 'Linux'
run: sudo apt update && sudo apt install build-essential

- uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/Library/Caches/go-build
~/go/pkg/mod
key: go-${{ matrix.os }}-${{ hashFiles('**/go.sum') }}
restore-keys: go-${{ matrix.os }}-

- name: test-integration
run: make test-integration

Expand All @@ -48,9 +41,9 @@ jobs:
steps:
- uses: actions/checkout@v3
- run: git submodule update --init --recursive --force
- uses: actions/setup-go@v3
- uses: actions/setup-go@v4
with:
go-version: 1.19.x
go-version: '1.19'

- uses: actions/cache@v3
with:
Expand All @@ -63,13 +56,5 @@ jobs:
choco upgrade mingw -y --no-progress --version 11.2.0.07112021
choco install cmake -y --no-progress --version 3.23.1

- uses: actions/cache@v3
with:
path: |
~\AppData\Local\go-build
~\go\pkg\mod
key: go-${{ matrix.os }}-${{ hashFiles('**/go.sum') }}
restore-keys: go-${{ matrix.os }}-

- name: test-integration
run: .\wmake.ps1 test-integration
37 changes: 25 additions & 12 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,35 @@ run:
deadline: 10m

linters:
disable-all: true
presets:
- bugs
- error
- unused
- performance
disable:
- exhaustive
- musttag
- contextcheck
- wrapcheck
- goerr113
- unparam
- makezero #TODO: enable me
- noctx #TODO: enable me
- nilerr #TODO: enable me
- errorlint #TODO: enable me
- errchkjson #TODO: enable me
- unused #TODO: enable me
- gocheckcompilerdirectives
enable:
- unconvert
# - predeclared #TODO: enable me
# - thelper #TODO: enable me
# - wastedassign
- gofmt
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
# - structcheck # 1.18
# - unused # 1.18
- gocritic
- bodyclose
- gosec
# - revive
# - forcetypeassert
- prealloc
- unconvert
# - stylecheck

linters-settings:
gocritic:
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, netgo ]
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, netgo ]
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, netgo ]
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, netgo ]
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, netgo ]
ldflags: -s -w


Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ CGO_CFLAGS += -Wno-error=strict-prototypes # for Clang15, remove it when can htt
CGO_CFLAGS := CGO_CFLAGS="$(CGO_CFLAGS)"
DBG_CGO_CFLAGS += -DMDBX_DEBUG=1

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

GO_FLAGS += -trimpath -tags $(BUILD_TAGS) -buildvcs=false
Expand All @@ -42,8 +42,8 @@ default: all

## go-version: print and verify go version
go-version:
@if [ $(shell $(GO) version | cut -c 16-17) -lt 18 ]; then \
echo "minimum required Golang version is 1.18"; \
@if [ $(shell $(GO) version | cut -c 16-17) -lt 19 ]; then \
echo "minimum required Golang version is 1.19"; \
exit 1 ;\
fi

Expand Down Expand Up @@ -166,7 +166,7 @@ lintci:
## lintci-deps: (re)installs golangci-lint to build/bin/golangci-lint
lintci-deps:
rm -f ./build/bin/golangci-lint
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b ./build/bin v1.51.2
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b ./build/bin v1.52.1

## clean: cleans the go cache, build dir, libmdbx db dir
clean:
Expand Down
Loading