Skip to content

update golang version of project and testimages to 1.19#2510

Merged
RiSKeD merged 2 commits into
u-root:mainfrom
RiSKeD:golang-version-bump-to-1.18
Oct 13, 2022
Merged

update golang version of project and testimages to 1.19#2510
RiSKeD merged 2 commits into
u-root:mainfrom
RiSKeD:golang-version-bump-to-1.18

Conversation

@RiSKeD
Copy link
Copy Markdown
Contributor

@RiSKeD RiSKeD commented Oct 4, 2022

To include native golang fuzzing tests in u-root, a version bump to golang version 1.18 is necessary.
The testimage-amd64 Dockerfile uses the latest commit of multiboot-test-kernel with updated build flags.

Signed-off-by: Fabian Wienand fabian.wienand@9elements.com

@RiSKeD
Copy link
Copy Markdown
Contributor Author

RiSKeD commented Oct 4, 2022

Will remain in draft until I am able to push the updated docker images to docker hub.

@hugelgupf
Copy link
Copy Markdown
Member

@rminnich one last release on 1.17 before the bump?

@rminnich
Copy link
Copy Markdown
Member

rminnich commented Oct 4, 2022

so ... how do you folks feel about 1.20? It has the new error trees instead of error chains stuff. Or at least the PR went in ... maybe we need 1.21?

multierror is SO MUCH NICER with error trees.

@MDr164
Copy link
Copy Markdown
Contributor

MDr164 commented Oct 5, 2022

so ... how do you folks feel about 1.20?

I mean go 1.20 is scheduled for February 2023, is your plan to keep this PR on halt until then to skip directly to 1.20? I think 1.18 is a reasonable bump as 1.19 is the current latest release and quite a few potentially necessary things got added in 1.18. I mean improved error handling is nice, but I don't think it's holding out for a version bump that long if 1.18 brings things we could need.

Or am I misinterpreting the comment?

@RiSKeD
Copy link
Copy Markdown
Contributor Author

RiSKeD commented Oct 5, 2022

@rminnich I built the docker images and ran the tests for go 1.19 locally as well. It really depends on if we want to move up to the latest version to be up-to-date or stick to 1.18 to enable more functionality. Either way, in my opinion bumping up now to at least go 1.18 comes with new opportunities like the native golang fuzzing support.

@RiSKeD RiSKeD force-pushed the golang-version-bump-to-1.18 branch from 8f9506c to d4f4754 Compare October 11, 2022 10:07
@RiSKeD
Copy link
Copy Markdown
Contributor Author

RiSKeD commented Oct 11, 2022

Fixed up a small issue regarding the working directory because of the newer cimg/go image.

@RiSKeD RiSKeD force-pushed the golang-version-bump-to-1.18 branch from 9885bba to e54b83e Compare October 11, 2022 12:51
@RiSKeD RiSKeD marked this pull request as ready for review October 11, 2022 13:03
@RiSKeD RiSKeD changed the title update golang version of project and testimages to 1.18 update golang version of project and testimages to 1.19 Oct 11, 2022
@RiSKeD
Copy link
Copy Markdown
Contributor Author

RiSKeD commented Oct 11, 2022

@rminnich There is a test TestNoActionDoubleWait in the syscallfilter pkg, which never returns due to a change in the handling of Wait() in the os/exec pkg for go1.19. The expected error in the test is never returned because of this and just idles. Could you take a look at it? Thanks

@rminnich
Copy link
Copy Markdown
Member

see #2519

@RiSKeD RiSKeD force-pushed the golang-version-bump-to-1.18 branch from e54b83e to 10c7643 Compare October 11, 2022 22:58
@RiSKeD RiSKeD requested a review from rminnich October 11, 2022 23:14
@codecov
Copy link
Copy Markdown

codecov Bot commented Oct 11, 2022

Codecov Report

Base: 73.73% // Head: 73.90% // Increases project coverage by +0.17% 🎉

Coverage data is based on head (9cd1a2b) compared to base (dcbb18f).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2510      +/-   ##
==========================================
+ Coverage   73.73%   73.90%   +0.17%     
==========================================
  Files         403      403              
  Lines       40937    40937              
==========================================
+ Hits        30183    30253      +70     
+ Misses      10754    10684      -70     
Impacted Files Coverage Δ
cmds/contrib/spidev/spidev.go 83.72% <ø> (ø)
cmds/core/basename/basename.go 82.35% <ø> (ø)
cmds/core/cat/cat.go 65.00% <ø> (ø)
cmds/core/chmod/chmod.go 90.81% <ø> (ø)
cmds/core/cmp/cmp.go 90.78% <ø> (ø)
cmds/core/comm/comm.go 90.14% <ø> (ø)
cmds/core/cp/cp.go 84.93% <ø> (ø)
cmds/core/cpio/cpio.go 62.02% <ø> (ø)
cmds/core/date/date.go 90.83% <ø> (ø)
cmds/core/dd/dd.go 64.79% <ø> (ø)
... and 76 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

rminnich
rminnich previously approved these changes Oct 12, 2022
Copy link
Copy Markdown
Member

@rminnich rminnich left a comment

Choose a reason for hiding this comment

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

this is a hard review given the insane amount of seemingly unnecessary reformatting ... The only thing that puzzled me is the # in the comment in that one go file. I guess the reformatting comes with the territoty.

Comment thread cmds/boot/pxeboot/pxeboot.go Outdated
Signed-off-by: Fabian Wienand <fabian.wienand@9elements.com>
Signed-off-by: Fabian Wienand <fabian.wienand@9elements.com>
@RiSKeD RiSKeD force-pushed the golang-version-bump-to-1.18 branch from cdd462d to 9cd1a2b Compare October 12, 2022 09:48
@RiSKeD RiSKeD requested review from MDr164 and rminnich October 13, 2022 06:49
Copy link
Copy Markdown
Contributor

@MDr164 MDr164 left a comment

Choose a reason for hiding this comment

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

Not sure if the go doc change in 1.19 caused you to reformat the package docs but I went through all of them and the changes all look sane, The content of the docs is unmodified and they are all uniform now to the go package doc spec. As the CI runs through and the changes to bump us to 1.19 are minimal I'll approve this PR. I also recently marked a new tag (v0.10.0) in case you want to jump back to 1.17

@RiSKeD RiSKeD merged commit 0efaafb into u-root:main Oct 13, 2022
@RiSKeD RiSKeD deleted the golang-version-bump-to-1.18 branch October 13, 2022 13:11
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.

4 participants