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

[alpha] Move devel to alpha #4112

Merged
merged 35 commits into from
May 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
6927ffc
penalize naughty peers on PoS (#4060)
Giulio2002 May 4, 2022
4529cc3
Small performance optimization (hash already calculated) (#4053)
yperbasis May 4, 2022
b713716
speedup logIndex test (#4068)
AskAlexSharov May 4, 2022
1529987
Torrent: increase network request size (#4067)
AskAlexSharov May 4, 2022
7ee46ea
CI: run integration tests on trunk after PR is merged (#4075)
battlmonstr May 4, 2022
7744191
Update header_algos.go (#4078)
AlexeyAkhunov May 4, 2022
a5683fe
p2p: TestUDPv4_LookupIterator failures workaround (#4079)
battlmonstr May 5, 2022
a0af7c0
CI: run integration tests on Windows (#4076)
battlmonstr May 5, 2022
14557a2
[erigon2] Support for binary tree commitments (#4077)
AlexeyAkhunov May 5, 2022
bc43a3f
CI: more caching (#4083)
battlmonstr May 6, 2022
0fc99b7
rpcdaemon: optimize tests (#4082)
battlmonstr May 6, 2022
f480865
Downloader atomic snapshot dir, step 1 (#4085)
AskAlexSharov May 6, 2022
f900dba
[Docs] Add PoS downloader diagram (#4084)
yperbasis May 6, 2022
7f60171
Revert "state_processor: fix ignored SkipAnalysis() result (#4046)" (…
AskAlexSharov May 6, 2022
3dc77e7
Revert changes in decompressor (#4089)
AlexeyAkhunov May 6, 2022
ba987cf
Remove preverified hashes (#4088)
AlexeyAkhunov May 6, 2022
6468403
p2p: define DiscReason as uint8 (#4090)
AlexeyAkhunov May 6, 2022
f54628b
remove metrics package, step 1 (#4094)
AskAlexSharov May 7, 2022
32d8ab3
atomic snapshot dir, step 2 (#4093)
AskAlexSharov May 7, 2022
ad74e8a
switch toml lib to release version (#4095)
AskAlexSharov May 7, 2022
55af137
save (#4096)
AskAlexSharov May 7, 2022
54076c9
Snapshots: restore logInterval #4098
AskAlexSharov May 7, 2022
62fddbe
torrent not found fix (#4101)
AskAlexSharov May 8, 2022
e9dcc2e
Torrent: increase network-request size to 2Mb (#4100)
AskAlexSharov May 8, 2022
05c4a57
Amend description of override.mergeForkBlock flag (#4106)
yperbasis May 9, 2022
396bef4
p2p: move v4_lookup_test to integration tests (#4107)
battlmonstr May 10, 2022
459b26d
make: wmake refactoring (#4105)
battlmonstr May 10, 2022
4ba1f03
Snapshots: atomic dir, step 3 (#4103)
AskAlexSharov May 10, 2022
3e4fb5d
up linter version (#4108)
AskAlexSharov May 10, 2022
2c26583
Rename sentry.ControlServerImpl to sentry.MultyClient and sentry.Sent…
AskAlexSharov May 10, 2022
8001cf2
Simplify header downloader (#4104)
AlexeyAkhunov May 10, 2022
763563e
RPCDaemon: open snapshots on startup (because now snapshots dir is at…
AskAlexSharov May 10, 2022
4571e75
Merge remote-tracking branch 'origin/devel' into pre-alpha
May 10, 2022
2071399
Bumb alpha version
May 10, 2022
84d4a4a
Update to erigon-lib alpha
May 10, 2022
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
68 changes: 46 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,22 @@ jobs:
- uses: actions/setup-go@v3
with:
go-version: 1.18.x
- name: Install dependencies
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
sudo apt update && sudo apt install build-essential
fi
shell: bash
- name: Install dependencies on Linux
if: runner.os == 'Linux'
run: sudo apt update && sudo apt install build-essential

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

- name: Build
run: make all

- name: Reproducible build test
run: |
make erigon
Expand All @@ -43,33 +48,52 @@ jobs:
if ! cmp -s erigon1.sha256 erigon2.sha256; then
echo >&2 "Reproducible build broken"; cat erigon1.sha256; cat erigon2.sha256; exit 1
fi

- name: Lint
if: matrix.os == 'ubuntu-20.04'
if: runner.os == 'Linux'
uses: golangci/golangci-lint-action@v3
with:
version: v1.45
version: v1.46
skip-pkg-cache: true
skip-build-cache: true
- run: make test

win:
strategy:
matrix:
os: [ windows-2019 ]
runs-on: ${{ matrix.os }}
- name: Test
run: make test

tests-windows:
runs-on: windows-2019

steps:
- uses: actions/checkout@v3
- run: git submodule update --init --recursive --force
- uses: actions/setup-go@v3
with:
go-version: 1.18.x
- run: choco upgrade mingw cmake -y --no-progress
- name: Build

- uses: actions/cache@v3
with:
path: |
C:\ProgramData\chocolatey\lib\mingw
C:\ProgramData\chocolatey\lib\cmake
key: chocolatey
- name: Install dependencies
run: |
.\wmake.ps1
make test
shell: powershell
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: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ runner.os }}-go-

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

- name: Test
run: .\wmake.ps1 test

docker:
runs-on: ubuntu-20.04
Expand Down
59 changes: 43 additions & 16 deletions .github/workflows/test-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,10 @@ on:
- devel
- alpha
- stable
pull_request:
branches:
- devel
- alpha
- stable
types:
- closed
schedule:
- cron: '20 16 * * *' # daily at 16:20 UTC
jobs:
tests:
if: github.event.schedule || github.event.pull_request.merged

strategy:
matrix:
os: [ ubuntu-20.04, macos-11 ] # list of os: https://github.com/actions/virtual-environments
Expand All @@ -29,14 +20,50 @@ jobs:
- uses: actions/setup-go@v3
with:
go-version: 1.18.x
- 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: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ runner.os }}-go-

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

tests-windows:
runs-on: windows-2019

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

- uses: actions/cache@v3
with:
path: |
C:\ProgramData\chocolatey\lib\mingw
C:\ProgramData\chocolatey\lib\cmake
key: chocolatey
- name: Install dependencies
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
sudo apt update && sudo apt install build-essential
fi
shell: bash
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: ~/go/pkg/mod
key: ${{ matrix.os }}-go-${{ hashFiles('**/go.sum') }}
- run: make test-integration
path: |
~\AppData\Local\go-build
~\go\pkg\mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ runner.os }}-go-

- name: test-integration
run: .\wmake.ps1 test-integration
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ linters:
- structcheck
- unused
- varcheck
- gocritic
# - gocritic
- bodyclose
# - gosec
# - forcetypeassert
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ lintci:

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.45.2
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b ./build/bin v1.46.0

clean:
go clean -cache
Expand Down
4 changes: 1 addition & 3 deletions cmd/cons/commands/clique.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@ import (

grpc_middleware "github.com/grpc-ecosystem/go-grpc-middleware"
grpc_recovery "github.com/grpc-ecosystem/go-grpc-middleware/recovery"
common2 "github.com/ledgerwatch/erigon-lib/common"

//grpc_prometheus "github.com/grpc-ecosystem/go-grpc-prometheus"
"github.com/holiman/uint256"
common2 "github.com/ledgerwatch/erigon-lib/common"
"github.com/ledgerwatch/erigon-lib/gointerfaces"
proto_cons "github.com/ledgerwatch/erigon-lib/gointerfaces/consensus"
"github.com/ledgerwatch/erigon-lib/kv"
Expand Down
Loading