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

[1.29] sig-release: change go version for go-compat jobs #34062

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MadhavJivrajani
Copy link
Contributor

Changing the go version of the compatibility job to be 1.22.9 which is the go version of the latest K8s 1.29 patch release

Needed for bumping K8s release-1.29 to go1.23
See kubernetes/kubernetes#126713 (comment)

/assign @liggitt @dims
/hold
for discussion if needed

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 3, 2025
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jan 3, 2025
@k8s-ci-robot k8s-ci-robot requested review from cici37 and puerco January 3, 2025 00:14
@k8s-ci-robot k8s-ci-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. area/config Issues or PRs related to code in /config area/jobs area/release-eng Issues or PRs related to the Release Engineering subproject sig/release Categorizes an issue or PR as relevant to SIG Release. sig/testing Categorizes an issue or PR as relevant to SIG Testing. labels Jan 3, 2025
@dims
Copy link
Member

dims commented Jan 3, 2025

/approve
/lgtm

cc @kubernetes/release-managers

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 3, 2025
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 3, 2025
@MadhavJivrajani MadhavJivrajani changed the title sig-release: change go version for go-compat jobs [1.29] sig-release: change go version for go-compat jobs Jan 4, 2025
Copy link
Member

@cpanato cpanato left a comment

Choose a reason for hiding this comment

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

/lgtm

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

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cpanato, dims, MadhavJivrajani

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

@@ -1935,7 +1935,7 @@ presubmits:
- test
env:
- name: GO_VERSION
value: 1.21.4
value: 1.22.10
Copy link
Member

Choose a reason for hiding this comment

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

/hold

we shouldn't be bumping these up minor versions without discussion… the point is to make sure these pass on the original go minor the kubernetes minor was released on

Copy link
Member

Choose a reason for hiding this comment

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

seems right, thanks for the reminder

/lgtm cancel

@liggitt
Copy link
Member

liggitt commented Jan 5, 2025

Until we can set godebug defaults (which requires go1.23, we shouldn't do anything that requires bumping go minors)

@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 6, 2025
@liggitt
Copy link
Member

liggitt commented Jan 6, 2025

Until we can set godebug defaults (which requires go1.23, we shouldn't do anything that requires bumping go minors)

I think it's probably reasonable to change these concurrent with updating to build with go1.23 AND setting godebug default=go1.21, etc

@@ -1758,7 +1758,7 @@ presubmits:
- runner.sh
env:
- name: GO_VERSION
value: 1.21.4
value: 1.22.10
Copy link
Member

Choose a reason for hiding this comment

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

Why do we have manually encoded go versions here anyhow? We should not be constantly PR-ing specific go versions in more places. If we're trying to test something like "use the latest patch version" we should automatically determine and use that?

Copy link
Member

@BenTheElder BenTheElder Jan 6, 2025

Choose a reason for hiding this comment

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

I see: kubernetes/kubernetes#126713 (comment)

We could probably obtain that value from git but it would be slightly more complex ... and we'd still have a problem in this case.

Copy link
Member

Choose a reason for hiding this comment

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

We could probably obtain that value from git but it would be slightly more complex

we snapshot it from git at the point in time when the minor jobs are forked (https://github.com/kubernetes/test-infra/blob/master/releng/prepare_release_branch.py#L144) :)

less runtime indication and magic is easier to reason about, in my opinion

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, this looked like something we'd be updating regularly, which we should dedupe. Doesn't seem worth it if it's meant to be fixed per branch, we should document this job #34062 (comment)

Copy link
Member

@BenTheElder BenTheElder left a comment

Choose a reason for hiding this comment

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

@BenTheElder
Copy link
Member

("go compat" is ambiguous and if you don't already know, the intent of these jobs is not clear, I forgot we had these to ensure compat with the original release version, we have a standardized field that will show in testgrid etc to describe a job, we should use that)

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/config Issues or PRs related to code in /config area/jobs area/release-eng Issues or PRs related to the Release Engineering subproject cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. sig/release Categorizes an issue or PR as relevant to SIG Release. sig/testing Categorizes an issue or PR as relevant to SIG Testing. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants