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

Upgrade Go v1.15.6 / Bazel v3.4.1 #10550

Merged

Conversation

bmelbourne
Copy link
Contributor

@bmelbourne bmelbourne commented Jan 10, 2021

What this PR does / why we need it:

  • Upgrade Go v1.15.5 -> v1.15.6
  • Upgrade Bazel v2.2.0 -> v3.4.1
  • Upgrade Bazel Rules v0.24.7 -> v0.25.1
  • Upgrade Bazel Gazelle v0.19.1/v0.22.2 -> v0.22.3

Which issue(s) this PR fixes:

Special notes for your reviewer:

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jan 10, 2021
@k8s-ci-robot
Copy link
Contributor

Hi @bmelbourne. Thanks for your PR.

I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jan 10, 2021
@hakman
Copy link
Member

hakman commented Jan 10, 2021

Really nice to see Bazel bumped to latest. Thanks for doing this @bmelbourne.
/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jan 10, 2021
@olemarkus
Copy link
Member

/ok-to-test

@bmelbourne
Copy link
Contributor Author

@hakman @olemarkus
The pull-kops-bazel-build job appears to be using an image gcr.io/k8s-testimages/kubekins-e2e:v20210107-e4af2d6-experimental which doesn't have Bazel v3.7.2 installed.

Do you know how I could build an updated image with the correct version of Bazel installed and then update the CI job?

@hakman
Copy link
Member

hakman commented Jan 10, 2021

I think the bazel version should be 3.4.1 for now:
https://github.com/kubernetes/test-infra/blob/master/images/kubekins-e2e/variants.yaml

@bmelbourne
Copy link
Contributor Author

I think the bazel version should be 3.4.1 for now:
https://github.com/kubernetes/test-infra/blob/master/images/kubekins-e2e/variants.yaml

That would work and would align with Kubernetes.

https://github.com/kubernetes/kubernetes/blob/master/build/root/.bazelversion

It would mean downgrading Go to v1.15.5 though.

@hakman
Copy link
Member

hakman commented Jan 10, 2021

Why would Go need downgrading?

@bmelbourne
Copy link
Contributor Author

Why would Go need downgrading?

Not necessarily I guess, it's only if you wanted to keep it consistent with the kOps workflows.

variants:
  experimental:
    CONFIG: experimental
    GO_VERSION: 1.15.5
    K8S_RELEASE: stable
    BAZEL_VERSION: 3.4.1
    OLD_BAZEL_VERSION: 2.2.0
    UPGRADE_DOCKER: 'true'

I'm happy to stick with Go v1.15.6 otherwise it means creating another branch and PR.

@hakman
Copy link
Member

hakman commented Jan 10, 2021

Let's just try Bazel 3.4.1. The go version from the image is not that important in this case. Bazel should pull the one set in the workspace.

@bmelbourne bmelbourne changed the title Upgrade Go 1.15.6 / Bazel v3.7.2 Upgrade Go 1.15.6 / Bazel v3.4.1 Jan 10, 2021
@bmelbourne bmelbourne changed the title Upgrade Go 1.15.6 / Bazel v3.4.1 Upgrade Go v1.15.6 / Bazel v3.4.1 Jan 10, 2021
@bmelbourne
Copy link
Contributor Author

/assign @rdrgmnzs

@hakman
Copy link
Member

hakman commented Jan 11, 2021

I think we have a winner. Thanks @bmelbourne.
/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 11, 2021
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bmelbourne, hakman

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 11, 2021
@olemarkus
Copy link
Member

/test pull-kops-e2e-k8s-containerd

@hakman
Copy link
Member

hakman commented Jan 11, 2021

/retest

@k8s-ci-robot k8s-ci-robot merged commit 065daaa into kubernetes:master Jan 11, 2021
@k8s-ci-robot k8s-ci-robot added this to the v1.20 milestone Jan 11, 2021
@bmelbourne bmelbourne deleted the update-workflows-go-1.15.6 branch January 11, 2021 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/kops-controller cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants