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-build-and-push-k8s-at-golang-tip should test tip of k/k and k/release #34246

Conversation

dims
Copy link
Member

@dims dims commented Jan 31, 2025

Let's drop the hard coded SHA(s) please

xref: #34237

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Jan 31, 2025
@dims
Copy link
Member Author

dims commented Jan 31, 2025

/assign @liggitt @BenTheElder

@k8s-ci-robot k8s-ci-robot requested a review from mborsz January 31, 2025 21:06
@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jan 31, 2025
@k8s-ci-robot k8s-ci-robot requested a review from mm4tt January 31, 2025 21:06
@k8s-ci-robot k8s-ci-robot added the area/config Issues or PRs related to code in /config label Jan 31, 2025
@k8s-ci-robot k8s-ci-robot added sig/scalability Categorizes an issue or PR as relevant to SIG Scalability. sig/testing Categorizes an issue or PR as relevant to SIG Testing. labels Jan 31, 2025
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.

/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 31, 2025
@BenTheElder
Copy link
Member

Also: We should verify that this is still actually testing with go tip, k/k will control the go version unless you override that and I don't see an override here

@BenTheElder
Copy link
Member

/hold

@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 31, 2025
@dims
Copy link
Member Author

dims commented Jan 31, 2025

@BenTheElder i want to see what happens and then will start tweaking it again

@@ -25,7 +24,6 @@ periodics:
path_alias: k8s.io/perf-tests
Copy link
Member

Choose a reason for hiding this comment

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

does this repo's makefile handle clobbering GOTOOLCHAIN? if not we should add that somewhere

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

@tosi3k
Copy link
Member

tosi3k commented Feb 3, 2025

/hold

The intention of this test, together with ci-golang-tip-k8s-1-23, was to detect performance regressions in K8s that would come from the new Golang versions, not the K8s code itself. This test builds a fixed K8s version using newest Golang version and pushes it to some GCS bucket and ci-golang-tip-k8s-1-23 uses that version to check whether or not newest Golang version contains some performance regression that might be detrimental to K8s's performance.

This is the reason why we use fixed commits for the k/k repo in this job - to make sure that we are able to narrow down such regressions before they are even released in Golang itself and not get noise from the changes to the K8s code in case of a test failure. The k/release repo is also fixed because changes in the scripts from that repo that are used in this CI job had negative impact on that test's stability.

Before we had those CI jobs, it took us weeks to narrow down the performance regressions in K8s coming from Golang. These CI jobs allow us to catch them much more quickly, even before they reach Go releases.

Rather than using master branch directly for the k8s.io/{kubernetes,release} repos in that test, I'd suggest changing ci-golang-tip-k8s-1-23 in the following way:

  1. Make it use either --extract=gs://k8s-infra-scale-golang-builds/ci/latest.txt or --extract=gs://k8s-infra-scale-golang-builds/ci/latest-1.32.txt.
  2. Rename that test to ci-golang-tip-k8s-1-32.

@BenTheElder
Copy link
Member

The problem with that approach is that it's not staying up to date, we should use the latest stable tagged release or something and stop hardcoding specific versions

The K8s version used in the ci-build-and-push-k8s-at-golang-tip CI job was bumped recently to 1.32 in #33436.

Yes... before which it sat for almost three years exactly meaning it was on an unsupported branch for O(years)

-    base_sha: 0ff1922aa2269879957646a232f657bcb57824b1 # head of master branch as of 2021-09-25
+    base_sha: 75a8e7ef8b22fe41525d28c1818384aab795f145 # head of master branch as of 2024-09-05

Can we use https://github.com/kubernetes/community/blob/322066e7dba7c5043071392fec427a57f8660734/contributors/devel/sig-release/kubernetes-versions.md to get k8s-stable1 isntead?
cc @kubernetes/release-engineering

@BenTheElder
Copy link
Member

BTW You should check these binaries, I don't think it's actually using the intended go version anyhow for years now: kubernetes/perf-tests#3146

AFAICT this tooling is not overriding how go builds actually work in Kubernetes when it attempts to locally commit a patch to the k/k sources (!), not only is this fragile but at a glance the builds are ignoring go tip and using .go-version anyhow since we've been using GOTOOLCHAIN for some time now.

If this script had been using the kubernetes-specific GO_VERSION env prior to GOTOOLCHAIN we shimmed that, but the approach of patching the build scripts with a local commit doesn't work.

Also, this means the reported commit in the build is a commit that doesn't exist upstream.

kubernetes/perf-tests#3146

Copy link
Member

@saschagrunert saschagrunert 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
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: BenTheElder, dims, saschagrunert

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

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 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. lgtm "Looks good to me", indicates that a PR is ready to be merged. sig/scalability Categorizes an issue or PR as relevant to SIG Scalability. 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