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

slack-vitess-r15.0.5: use go1.20.14 #255

Merged
merged 13 commits into from Mar 15, 2024

Conversation

timvaillancourt
Copy link
Member

@timvaillancourt timvaillancourt commented Mar 15, 2024

Description

This PR updates the v15 release to go1.20.14 (latest) because v15's "upgrade test" passes CI on go1.20.x. Also the Vitess "bootstrap" docker image was updated to 14.1

A more-recent go version was not used to avoid breaking changes in the go runtime ahead of this version

Getting CI to pass required these v16 backports:

  1. Fix the golangci-lint config vitessio/vitess#11812
  2. update golangci-lint to 1.50.1 vitessio/vitess#11873
  3. Add timeout to golangci-lint and bump its version vitessio/vitess#12852
  4. Upgrade release-16.0 to go1.20.1 vitessio/vitess#12398
  5. [release-16.0] Remove recent golangci-lint version bump vitessio/vitess#12909

Related Issue(s)

Checklist

  • "Backport to:" labels have been added if this change should be back-ported
  • Tests were added or are not required
  • Did the new or modified tests pass consistently locally and on the CI
  • Documentation was added or is not required

Deployment Notes

Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>
Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>
timvaillancourt and others added 2 commits March 15, 2024 03:34
Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>
There's a bunch of deprecated linters that don't work anymore, so let's
remove them:

```
WARN [runner] The linter 'deadcode' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter.  Replaced by unused.
WARN [runner] The linter 'structcheck' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter.  Replaced by unused.
WARN [runner] The linter 'varcheck' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter.  Replaced by unused.
WARN [linters context] structcheck is disabled because of generics. You can track the evolution of the generics support by following the golangci/golangci-lint#2649.
```

Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com>

Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com>
Copy link

Thanks for the contribution! Before we can merge this, we need @dbussink to sign the Salesforce Inc. Contributor License Agreement.

Signed-off-by: Andres Taylor <andres@planetscale.com>

Signed-off-by: Andres Taylor <andres@planetscale.com>
Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>
Copy link

Thanks for the contribution! Before we can merge this, we need @dbussink @systay to sign the Salesforce Inc. Contributor License Agreement.

…itessio#12853)

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>
Copy link

Thanks for the contribution! Before we can merge this, we need @dbussink @systay @frouioui to sign the Salesforce Inc. Contributor License Agreement.

frouioui and others added 5 commits March 15, 2024 05:09
* Upgrade release-16.0 to go1.19.6

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* upgrade to 1.20.1

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* bump the golangci-lint version

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* Apply linter suggestions

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* Apply linter suggestions

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* fix TestTLSClientVerifyIdentity

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* Switch to using new Go 1.19 CRL parser (vitessio#12315)

`x509.ParseCRL` is deprecated, we should use `x509.ParseRevocationList`
instead which is new in Go 1.19.

Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com>
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

* Skip TestFuzz for now

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>

---------

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com>
Co-authored-by: Dirkjan Bussink <d.bussink@gmail.com>
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>
Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>
Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>
Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>
# I will hardcode the previous Slack release here because it is static.
#
echo slack-vitess-r14.0.5
Copy link
Member Author

Choose a reason for hiding this comment

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

NOTE: this hack makes slack-vitess-r14.0.5 the previous release for our v15 release always

Updating the version-parsing logic for Slack naming didn't go well and there is no need for this to be dynamic when we know slack-vitess-r14.0.5 is the previous release

Without this fix CI tries to use upstream's v14.0.5 tag as "previous" and this fails to build on go1.20 🙈

@timvaillancourt timvaillancourt marked this pull request as ready for review March 15, 2024 17:25
@timvaillancourt timvaillancourt requested a review from a team as a code owner March 15, 2024 17:25
@timvaillancourt timvaillancourt merged commit 3548975 into slack-vitess-r15.0.5 Mar 15, 2024
194 of 195 checks passed
@timvaillancourt timvaillancourt deleted the go1.20-slack-vitess-r15.0.5 branch March 15, 2024 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants