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

ci: Upgrade to Go 1.15 #3642

Merged
merged 4 commits into from
Aug 20, 2020
Merged

Conversation

francislavoie
Copy link
Member

No description provided.

@francislavoie francislavoie force-pushed the ci-unstable-test branch 2 times, most recently from 5fec9ba to a3c8f36 Compare August 6, 2020 13:19
@francislavoie
Copy link
Member Author

@mholt I was just curious whether we could try CI on unstable Go versions, and it seems to work... but the tests fail:

github.com/lucas-clemente/quic-go/internal/handshake.init.2()
	/home/runner/go/pkg/mod/github.com/lucas-clemente/[email protected]/internal/handshake/unsafe.go:26 +0x569
FAIL	github.com/caddyserver/caddy/v2/modules/caddyhttp/headers	0.042s
?   	github.com/caddyserver/caddy/v2/modules/caddyhttp/map	[no test files]
panic: qtls.ClientSessionState not compatible with tls.ClientSessionState

Is this something we can fix while keeping backwards-compat?

@francislavoie
Copy link
Member Author

francislavoie commented Aug 6, 2020

The binaries aren't much smaller - 2.5MB on linux, 3MB on mac, 2MB on windows. 🤔

@mholt
Copy link
Member

mholt commented Aug 6, 2020

Should be? Just looking from the error message it comes from a file that appears to use the unsafe package, so there's probably some voodoo that needs updating. @marten-seemann would know! I'm sure they'll support Go 1.15 once it's released...

The binaries aren't much smaller - 2.5MB on linux,

40 MB to 2.5 MB? Not bad! 😋

j/k... I suppose you meant size delta. 2.5 MB less for free (well, by simply upgrading Go) is pretty good!

@mholt mholt changed the title ci: Try Go 1.15 RC1 out of curiosity ci: Upgrade to Go 1.15 Aug 11, 2020
@mholt
Copy link
Member

mholt commented Aug 11, 2020

@marten-seemann Would you be able to ping us when there's a new release that's compatible with Go 1.15? (We're getting test failures on Go 1.15 in the quic-go lib)

Go 1.15 was only released an hour ago -- there's no hurry. :)

@mholt mholt added the CI/CD 🔩 Automated tests, releases label Aug 11, 2020
@mholt mholt added this to the v2.2.0 milestone Aug 11, 2020
@marten-seemann
Copy link
Contributor

@mholt Yes, definitely. Will be some time later this week. I was planning to cut a new release of quic-go soon anyway - there've been a bunch of bug fixes and - which is important for Caddy - improvements to the QPACK compression efficiency.

@francislavoie
Copy link
Member Author

Thanks @marten-seemann! I think that issue looks to be fixed with the latest release.

There is this new test failure though:

modules/caddyhttp/reverseproxy/fastcgi/client_test.go:252:24: conversion from int to string yields a string of one rune, not a string of digits (did you mean fmt.Sprint(x)?)
modules/caddyhttp/reverseproxy/fastcgi/client_test.go:269:24: conversion from int to string yields a string of one rune, not a string of digits (did you mean fmt.Sprint(x)?)
FAIL	github.com/caddyserver/caddy/v2/modules/caddyhttp/reverseproxy/fastcgi [build failed]

@francislavoie francislavoie marked this pull request as ready for review August 20, 2020 19:27
@francislavoie francislavoie requested a review from mholt August 20, 2020 19:27
@mholt
Copy link
Member

mholt commented Aug 20, 2020

Cool, that error is a new feature of the Go 1.15 compiler.

Anyway, thanks Marten and Francis!

Copy link
Member

@mholt mholt left a comment

Choose a reason for hiding this comment

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

Great work on this, thanks again both of you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI/CD 🔩 Automated tests, releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

qtls via quic-go breaks when building with Go 1.15
3 participants