Skip to content

Update all the Go dependencies#11741

Merged
frouioui merged 2 commits intovitessio:mainfrom
planetscale:dbussink/test-updating-all-go-deps
Nov 21, 2022
Merged

Update all the Go dependencies#11741
frouioui merged 2 commits intovitessio:mainfrom
planetscale:dbussink/test-updating-all-go-deps

Conversation

@dbussink
Copy link
Member

Description

This seems to work for the basics just fine, so let's have CI take a run at this as well to update these.

Only one small update to the Azure blob storage handling seems needed so far.

Related Issue(s)

Some more critical changes have been separate updated already in for example #11694

Checklist

  • "Backport to:" labels have been added if this change should be back-ported
  • Tests were added or are not required
  • Documentation was added or is not required

@vitess-bot
Copy link
Contributor

vitess-bot bot commented Nov 16, 2022

Review Checklist

Hello reviewers! 👋 Please follow this checklist when reviewing this Pull Request.

General

  • Ensure that the Pull Request has a descriptive title.
  • If this is a change that users need to know about, please apply the release notes (needs details) label so that merging is blocked unless the summary release notes document is included.

If a new flag is being introduced:

  • Is it really necessary to add this flag?
  • Flag names should be clear and intuitive (as far as possible)
  • Help text should be descriptive.
  • Flag names should use dashes (-) as word separators rather than underscores (_).

If a workflow is added or modified:

  • Each item in Jobs should be named in order to mark it as required.
  • If the workflow should be required, the maintainer team should be notified.

Bug fixes

  • There should be at least one unit or end-to-end test.
  • The Pull Request description should include a link to an issue that describes the bug.

Non-trivial changes

  • There should be some code comments as to why things are implemented the way they are.

New/Existing features

  • Should be documented, either by modifying the existing documentation or creating new documentation.
  • New features should have a link to a feature request issue or an RFC that documents the use cases, corner cases and test cases.

Backward compatibility

  • Protobuf changes should be wire-compatible.
  • Changes to _vt tables and RPCs need to be backward compatible.
  • vtctl command output order should be stable and awk-able.
  • RPC changes should be compatible with vitess-operator
  • If a flag is removed, then it should also be removed from VTop, if used there.

@dbussink dbussink added Component: Build/CI Type: Internal Cleanup dependencies Pull requests that update a dependency file labels Nov 16, 2022
@deepthi
Copy link
Collaborator

deepthi commented Nov 16, 2022

I think this is a good idea. We can review after the tests are fixed (since they look like they might need actual code changes to pass).

This seems to work for the basics just fine, so let's have CI take a run
at this as well to update these.

Only one small update to the Azure blob storage handling seems needed so
far.

Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com>
@dbussink dbussink force-pushed the dbussink/test-updating-all-go-deps branch from 545f73c to a5a19d3 Compare November 17, 2022 12:31
@dbussink
Copy link
Member Author

I think this is a good idea. We can review after the tests are fixed (since they look like they might need actual code changes to pass).

@deepthi Yeah, the main issue is that we have many places that end up using reflect.DeepEqual with protobufs which is not supported and only kinda sometimes work. I've updated a lot of cases here but we still have many more of those cases that could break at any change in the protobuf package.

We're using `reflect.DeepEqual` or `testify` helpers that essentially
use that in a number of places are comparing protobufs. This is not
supported though, protobufs are not comparable with `reflect.DeepEqual`.

This is exposed because of the tiny patch bump of protobuf which changes
some internal optimization of how it initializes protobufs that breaks
all this.

Instead, move to the appropriate helpers here.

Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com>
@dbussink dbussink force-pushed the dbussink/test-updating-all-go-deps branch from a5a19d3 to 5597975 Compare November 17, 2022 13:33
@dbussink
Copy link
Member Author

This is now ready for review. The issue in the vtgate_queries is unrelated to the changes here, but @harshit-gangal is looking at that separately.

Copy link
Collaborator

@systay systay left a comment

Choose a reason for hiding this comment

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

Thanks for doing this! ❤️

Comment on lines 93 to 98
out := &Result{
InsertID: result.InsertID,
RowsAffected: result.RowsAffected,
Info: result.Info,
InsertID: result.InsertID,
SessionStateChanges: result.SessionStateChanges,
StatusFlags: result.StatusFlags,
Info: result.Info,
}
Copy link
Member

Choose a reason for hiding this comment

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

looks like unrelated changes for the PR StatusFlags: result.StatusFlags

@frouioui frouioui merged commit c67c790 into vitessio:main Nov 21, 2022
@frouioui frouioui deleted the dbussink/test-updating-all-go-deps branch November 21, 2022 07:00
@dbussink dbussink mentioned this pull request Nov 21, 2022
3 tasks
timvaillancourt pushed a commit to slackhq/vitess that referenced this pull request Apr 8, 2024
* Update all the Go dependencies

This seems to work for the basics just fine, so let's have CI take a run
at this as well to update these.

Only one small update to the Azure blob storage handling seems needed so
far.

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

* Use correct proto comparisons

We're using `reflect.DeepEqual` or `testify` helpers that essentially
use that in a number of places are comparing protobufs. This is not
supported though, protobufs are not comparable with `reflect.DeepEqual`.

This is exposed because of the tiny patch bump of protobuf which changes
some internal optimization of how it initializes protobufs that breaks
all this.

Instead, move to the appropriate helpers here.

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

Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com>
timvaillancourt added a commit to slackhq/vitess that referenced this pull request Apr 9, 2024
timvaillancourt added a commit to slackhq/vitess that referenced this pull request May 22, 2024
…cy (#266)

* `slack-vitess-r15.0.5`: add `slack_cross_cell` custom durability policy

Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>

* go mod tidy

Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>

* go mod tidy

Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>

* go mod tidy again

Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>

* Use tag

Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>

* use v0.15.1

Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>

* update shim

Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>

* Make `Durabler` interface methods public (vitessio#15548)

Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>
Signed-off-by: Manan Gupta <manan@planetscale.com>
Co-authored-by: Manan Gupta <manan@planetscale.com>

* Update `slack_cross_cell` shim

Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>

* go mod tidy

Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>

* go mod tidy again

Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>

* Allow private go module from vitess-additions repo

Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>

* Fix typo

Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>

* Missing non-template update

Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>

* Missing non-template update

Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>

* Missing non-template update, pt 3

Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>

* Fix docker tests

Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>

* make proto

Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>

* fix upgrade/downgrade tests

Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>

* Update all the Go dependencies (vitessio#11741)

* Update all the Go dependencies

This seems to work for the basics just fine, so let's have CI take a run
at this as well to update these.

Only one small update to the Azure blob storage handling seems needed so
far.

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

* Use correct proto comparisons

We're using `reflect.DeepEqual` or `testify` helpers that essentially
use that in a number of places are comparing protobufs. This is not
supported though, protobufs are not comparable with `reflect.DeepEqual`.

This is exposed because of the tiny patch bump of protobuf which changes
some internal optimization of how it initializes protobufs that breaks
all this.

Instead, move to the appropriate helpers here.

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

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

* Resolve signature mismatch

Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>

* revert protobuf version

Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>

* revert protobuf version, pt 2

Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>

* Revert "Update all the Go dependencies (vitessio#11741)"

This reverts commit 18faa1e.

* go mod tidy

Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>

---------

Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>
Signed-off-by: Manan Gupta <manan@planetscale.com>
Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com>
Co-authored-by: Manan Gupta <manan@planetscale.com>
Co-authored-by: Dirkjan Bussink <d.bussink@gmail.com>
timvaillancourt added a commit to slackhq/vitess that referenced this pull request May 29, 2024
Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>
timvaillancourt added a commit to slackhq/vitess that referenced this pull request May 30, 2024
* `slack-15.0`: basic go.mod updates

Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>

* fix signature in `go/vt/mysqlctl/azblobbackupstorage/azblob.go`

Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>

* update expected error for new mysql driver

Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>

* more go.mod updates

Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>

* steal statsd fix from vitessio#11741

Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>

* go mod tidy

Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>

* update flag e2e tests

Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>

* update flag e2e tests

Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>

* update flag e2e tests

Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>

---------

Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Component: Build/CI dependencies Pull requests that update a dependency file Type: Internal Cleanup

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants