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

[Merged by Bors] - Update to go 1.21 #4865

Closed
wants to merge 11 commits into from
Closed

[Merged by Bors] - Update to go 1.21 #4865

wants to merge 11 commits into from

Conversation

fasmat
Copy link
Member

@fasmat fasmat commented Aug 17, 2023

Motivation

This updates our codebase to Go 1.21.

Changes

  • Update all uses of go to 1.21: go.mod, Dockerfiles, documentation
  • replace custom max & min functions with builtin max and mins, use clear to clear slices & maps
  • fix staticcheck and lint complaints

DevOps Notes

  • This PR does not require configuration changes (e.g., environment variables, GitHub secrets, VM resources)
  • This PR does not affect public APIs
  • This PR does not rely on a new version of external services (PoET, elasticsearch, etc.)
  • This PR does not make changes to log messages (which monitoring infrastructure may rely on)

@fasmat fasmat self-assigned this Aug 17, 2023
@fasmat fasmat changed the title Update go 1.21 Update to go 1.21 Aug 17, 2023
@bors bors bot changed the base branch from update-go-1.20 to develop August 17, 2023 13:09
@fasmat fasmat force-pushed the update-go-1.21 branch 3 times, most recently from 3abda5e to bb00534 Compare August 23, 2023 19:05
mesh/mesh.go Outdated Show resolved Hide resolved
hare/broker.go Outdated Show resolved Hide resolved
go.mod Outdated Show resolved Hide resolved
hare/broker.go Outdated Show resolved Hide resolved
common/types/layer.go Outdated Show resolved Hide resolved
@poszu poszu self-assigned this Aug 29, 2023
@codecov
Copy link

codecov bot commented Aug 29, 2023

Codecov Report

Merging #4865 (9ffe6ec) into develop (83b165a) will increase coverage by 0.0%.
The diff coverage is 89.5%.

@@           Coverage Diff           @@
##           develop   #4865   +/-   ##
=======================================
  Coverage     77.1%   77.1%           
=======================================
  Files          255     254    -1     
  Lines        30279   30253   -26     
=======================================
- Hits         23355   23343   -12     
+ Misses        5411    5395   -16     
- Partials      1513    1515    +2     
Files Changed Coverage Δ
common/types/layer.go 83.1% <ø> (-2.0%) ⬇️
tortoise/model/core.go 79.5% <ø> (+1.4%) ⬆️
tortoise/recover.go 48.5% <0.0%> (ø)
tortoise/util.go 65.6% <ø> (-2.4%) ⬇️
hare3/hare.go 83.8% <40.0%> (-0.7%) ⬇️
common/util/json.go 70.1% <60.0%> (+0.5%) ⬆️
mesh/mesh.go 68.6% <92.8%> (+0.1%) ⬆️
blocks/generator.go 91.0% <100.0%> (ø)
blocks/utils.go 88.1% <100.0%> (ø)
common/types/beacon.go 100.0% <100.0%> (ø)
... and 7 more

... and 4 files with indirect coverage changes

📢 Have feedback on the report? Share it here.

@poszu poszu self-requested a review August 29, 2023 19:51
@fasmat fasmat force-pushed the update-go-1.21 branch 2 times, most recently from d58df2b to 3600ff6 Compare September 4, 2023 12:39
@fasmat fasmat marked this pull request as ready for review September 4, 2023 13:18
@fasmat
Copy link
Member Author

fasmat commented Sep 4, 2023

bors try

bors bot added a commit that referenced this pull request Sep 4, 2023
@bors
Copy link

bors bot commented Sep 4, 2023

try

Build failed:

@fasmat
Copy link
Member Author

fasmat commented Sep 4, 2023

bors try

bors bot added a commit that referenced this pull request Sep 4, 2023
@bors
Copy link

bors bot commented Sep 4, 2023

try

Build failed:

@fasmat
Copy link
Member Author

fasmat commented Sep 4, 2023

bors try

bors bot added a commit that referenced this pull request Sep 4, 2023
@bors
Copy link

bors bot commented Sep 4, 2023

try

Build failed:

@fasmat fasmat requested a review from poszu September 5, 2023 11:54
@bors
Copy link

bors bot commented Sep 5, 2023

try

Build failed:

@fasmat fasmat force-pushed the update-go-1.21 branch 2 times, most recently from c371fc6 to ffca6ca Compare September 7, 2023 07:54
@poszu poszu self-requested a review September 7, 2023 11:48
@fasmat fasmat force-pushed the update-go-1.21 branch 2 times, most recently from ffc33a9 to be82556 Compare September 7, 2023 14:48
@fasmat
Copy link
Member Author

fasmat commented Sep 7, 2023

bors try

bors bot added a commit that referenced this pull request Sep 7, 2023
@bors
Copy link

bors bot commented Sep 7, 2023

try

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

@fasmat
Copy link
Member Author

fasmat commented Sep 8, 2023

bors merge

bors bot pushed a commit that referenced this pull request Sep 8, 2023
## Motivation
This updates our codebase to Go 1.21.

## Changes
- Update all uses of go to 1.21: `go.mod`, `Dockerfile`s, documentation
- replace custom max & min functions with builtin `max` and `mins`, use `clear` to clear slices & maps
- fix `staticcheck` and `lint` complaints

## DevOps Notes
- [x] This PR does not require configuration changes (e.g., environment variables, GitHub secrets, VM resources)
- [x] This PR does not affect public APIs
- [x] This PR does not rely on a new version of external services (PoET, elasticsearch, etc.)
- [x] This PR does not make changes to log messages (which monitoring infrastructure may rely on)
@bors
Copy link

bors bot commented Sep 8, 2023

Pull request successfully merged into develop.

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

@bors bors bot changed the title Update to go 1.21 [Merged by Bors] - Update to go 1.21 Sep 8, 2023
@bors bors bot closed this Sep 8, 2023
@bors bors bot deleted the update-go-1.21 branch September 8, 2023 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants