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

Bump go version to 1.19 #2189

Merged
merged 5 commits into from
Oct 4, 2023
Merged

Bump go version to 1.19 #2189

merged 5 commits into from
Oct 4, 2023

Conversation

hbandura
Copy link
Contributor

Upstream cherry pick of go19 build & Dockerfile bump. A godoc whitespace change in go19 provoked many changes in the code.

@github-actions
Copy link

github-actions bot commented Sep 23, 2023

Coverage from tests in ./e2e_test/... for ./consensus/istanbul/... at commit 9ec64bb

coverage: 50.3% of statements across all listed packages
coverage:  63.2% of statements in consensus/istanbul
coverage:  42.9% of statements in consensus/istanbul/announce
coverage:  55.8% of statements in consensus/istanbul/backend
coverage:   0.0% of statements in consensus/istanbul/backend/backendtest
coverage:  24.3% of statements in consensus/istanbul/backend/internal/replica
coverage:  63.1% of statements in consensus/istanbul/core
coverage:  50.0% of statements in consensus/istanbul/db
coverage:   0.0% of statements in consensus/istanbul/proxy
coverage:  64.2% of statements in consensus/istanbul/uptime
coverage:  51.8% of statements in consensus/istanbul/validator
coverage:  79.2% of statements in consensus/istanbul/validator/random

@github-actions
Copy link

github-actions bot commented Sep 23, 2023

5862 passed, 45 skipped

@codecov
Copy link

codecov bot commented Sep 23, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (2c70933) 55.09% compared to head (eb32682) 55.12%.
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2189      +/-   ##
==========================================
+ Coverage   55.09%   55.12%   +0.03%     
==========================================
  Files         681      681              
  Lines      114407   114405       -2     
==========================================
+ Hits        63032    63068      +36     
+ Misses      47495    47452      -43     
- Partials     3880     3885       +5     
Files Coverage Δ
accounts/abi/reflect.go 88.19% <ø> (ø)
accounts/accounts.go 100.00% <ø> (ø)
accounts/hd.go 82.14% <ø> (ø)
accounts/url.go 70.00% <ø> (ø)
cmd/devp2p/internal/ethtest/transaction.go 0.00% <ø> (ø)
cmd/ethkey/utils.go 0.00% <ø> (ø)
common/hexutil/hexutil.go 82.30% <ø> (ø)
common/math/big.go 78.40% <ø> (ø)
common/prque/lazyqueue.go 90.10% <ø> (ø)
consensus/istanbul/announce/val_enode_db.go 29.94% <ø> (ø)
... and 48 more

... and 20 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@karlb karlb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, with the exception of the lint failures.

.golangci.yml Outdated Show resolved Hide resolved
accounts/usbwallet/ledger.go Outdated Show resolved Hide resolved
build/ci.go Outdated Show resolved Hide resolved
trie/stacktrie.go Outdated Show resolved Hide resolved
karalabe and others added 5 commits October 2, 2023 12:15
This changes the CI / release builds to use the latest Go version. It also
upgrades golangci-lint to a newer version compatible with Go 1.19.

In Go 1.19, godoc has gained official support for links and lists. The
syntax for code blocks in doc comments has changed and now requires a
leading tab character. gofmt adapts comments to the new syntax
automatically, so there are a lot of comment re-formatting changes in this
PR. We need to apply the new format in order to pass the CI lint stage with
Go 1.19.

With the linter upgrade, I have decided to disable 'gosec' - it produces
too many false-positive warnings. The 'deadcode' and 'varcheck' linters
have also been removed because golangci-lint warns about them being
unmaintained. 'unused' provides similar coverage and we already have it
enabled, so we don't lose much with this change.
@hbandura hbandura merged commit 9ec64bb into master Oct 4, 2023
28 checks passed
@hbandura hbandura deleted the hbandura/go19 branch October 4, 2023 14:07
@palango palango mentioned this pull request Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants