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.32] Upgrade select dependencies #17334

Merged
merged 3 commits into from
Apr 3, 2025

Conversation

rifelpet
Copy link
Member

Patching some CVEs

@k8s-ci-robot
Copy link
Contributor

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Mar 30, 2025
@rifelpet rifelpet marked this pull request as ready for review March 30, 2025 20:20
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 30, 2025
@k8s-ci-robot k8s-ci-robot requested a review from olemarkus March 30, 2025 20:20
@hakman
Copy link
Member

hakman commented Mar 30, 2025

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added lgtm "Looks good to me", indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Mar 30, 2025
@hakman
Copy link
Member

hakman commented Mar 30, 2025

/override tests-e2e-scenarios-bare-metal

@k8s-ci-robot
Copy link
Contributor

@hakman: Overrode contexts on behalf of hakman: tests-e2e-scenarios-bare-metal

In response to this:

/override tests-e2e-scenarios-bare-metal

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-sigs/prow repository.

@k8s-triage-robot
Copy link

The Kubernetes project has merge-blocking tests that are currently too flaky to consistently pass.

This bot retests PRs for certain kubernetes repos according to the following rules:

  • The PR does have any do-not-merge/* labels
  • The PR does not have the needs-ok-to-test label
  • The PR is mergeable (does not have a needs-rebase label)
  • The PR is approved (has cncf-cla: yes, lgtm, approved labels)
  • The PR is failing tests required for merge

You can:

/retest

2 similar comments
@k8s-triage-robot
Copy link

The Kubernetes project has merge-blocking tests that are currently too flaky to consistently pass.

This bot retests PRs for certain kubernetes repos according to the following rules:

  • The PR does have any do-not-merge/* labels
  • The PR does not have the needs-ok-to-test label
  • The PR is mergeable (does not have a needs-rebase label)
  • The PR is approved (has cncf-cla: yes, lgtm, approved labels)
  • The PR is failing tests required for merge

You can:

/retest

@k8s-triage-robot
Copy link

The Kubernetes project has merge-blocking tests that are currently too flaky to consistently pass.

This bot retests PRs for certain kubernetes repos according to the following rules:

  • The PR does have any do-not-merge/* labels
  • The PR does not have the needs-ok-to-test label
  • The PR is mergeable (does not have a needs-rebase label)
  • The PR is approved (has cncf-cla: yes, lgtm, approved labels)
  • The PR is failing tests required for merge

You can:

/retest

@hakman
Copy link
Member

hakman commented Mar 31, 2025

/lgtm cancel
@ameukam @justinsb any idea why override fails?

@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 31, 2025
@rifelpet rifelpet closed this Apr 1, 2025
@rifelpet rifelpet reopened this Apr 1, 2025
@rifelpet
Copy link
Member Author

rifelpet commented Apr 1, 2025

@hakman lets try it now

@hakman
Copy link
Member

hakman commented Apr 1, 2025

/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 Apr 1, 2025
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: 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

@hakman
Copy link
Member

hakman commented Apr 1, 2025

/override tests-e2e-scenarios-bare-metal

@k8s-ci-robot
Copy link
Contributor

@hakman: /override requires failed status contexts, check run or a prowjob name to operate on.
The following unknown contexts/checkruns were given:

  • tests-e2e-scenarios-bare-metal

Only the following failed contexts/checkruns were expected:

  • EasyCLA
  • build-linux-amd64
  • build-linux-arm64
  • build-macos-amd64
  • build-windows-amd64
  • pull-kops-build
  • pull-kops-test
  • pull-kops-verify-boilerplate
  • pull-kops-verify-generated
  • pull-kops-verify-govet
  • tide
  • verify-amd64
  • verify-arm64

If you are trying to override a checkrun that has a space in it, you must put a double quote on the context.

In response to this:

/override tests-e2e-scenarios-bare-metal

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-sigs/prow repository.

@rifelpet
Copy link
Member Author

rifelpet commented Apr 1, 2025

We might need make to make the e2e bare metal job manually-triggered only instead of ran every time.

@k8s-triage-robot
Copy link

The Kubernetes project has merge-blocking tests that are currently too flaky to consistently pass.

This bot retests PRs for certain kubernetes repos according to the following rules:

  • The PR does have any do-not-merge/* labels
  • The PR does not have the needs-ok-to-test label
  • The PR is mergeable (does not have a needs-rebase label)
  • The PR is approved (has cncf-cla: yes, lgtm, approved labels)
  • The PR is failing tests required for merge

You can:

/retest

@hakman
Copy link
Member

hakman commented Apr 1, 2025

We might need make to make the e2e bare metal job manually-triggered only instead of ran every time.

The odd thing is that it used to work fine to override it...

@hakman
Copy link
Member

hakman commented Apr 1, 2025

I am ok with manual for now + on merge

@k8s-triage-robot
Copy link

The Kubernetes project has merge-blocking tests that are currently too flaky to consistently pass.

This bot retests PRs for certain kubernetes repos according to the following rules:

  • The PR does have any do-not-merge/* labels
  • The PR does not have the needs-ok-to-test label
  • The PR is mergeable (does not have a needs-rebase label)
  • The PR is approved (has cncf-cla: yes, lgtm, approved labels)
  • The PR is failing tests required for merge

You can:

/retest

@rifelpet
Copy link
Member Author

rifelpet commented Apr 1, 2025

/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 Apr 1, 2025
@rifelpet
Copy link
Member Author

rifelpet commented Apr 2, 2025

/override e2e/tests-e2e-scenarios-bare-metal

@k8s-ci-robot
Copy link
Contributor

@rifelpet: /override requires failed status contexts, check run or a prowjob name to operate on.
The following unknown contexts/checkruns were given:

  • e2e/tests-e2e-scenarios-bare-metal

Only the following failed contexts/checkruns were expected:

  • EasyCLA
  • build-linux-amd64
  • build-linux-arm64
  • build-macos-amd64
  • build-windows-amd64
  • pull-kops-build
  • pull-kops-test
  • pull-kops-verify-boilerplate
  • pull-kops-verify-generated
  • pull-kops-verify-govet
  • tide
  • verify-amd64
  • verify-arm64

If you are trying to override a checkrun that has a space in it, you must put a double quote on the context.

In response to this:

/override e2e/tests-e2e-scenarios-bare-metal

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-sigs/prow repository.

@rifelpet
Copy link
Member Author

rifelpet commented Apr 2, 2025

For background, this provides a good comparison of the Github Status vs Checks APIs

@hakman @ameukam based on this prow code my only theory is that prow used to use app authentication but now uses a personal access token. The Checks API doesn't support PATs. I'm guessing we need to use the checks API to fix the status on the PR.

In my testing I was able to update the PR's head commit's "status" but it had no effect on the failing check on the PR itself. . The check-run returns a 403 when used with a fine-grained PAT and they can only work with the repos of a single organization or user, so my own account's token wont work on kubernetes/kops.

Status API

echo '{"state": "success", "description": "test from peter", "context": "tests-e2e-scenarios-bare-metal"}' | gh api "repos/kubernetes/kops/statuses/050a8dede17b1688c0b5140d4a95c21cb015590f" --input -

{
  "url": "https://api.github.com/repos/kubernetes/kops/statuses/050a8dede17b1688c0b5140d4a95c21cb015590f",
  "avatar_url": "https://avatars.githubusercontent.com/u/1455650?v=4",
  "id": 35332425941,
  "node_id": "SC_kwDOA7NwS88AAAAIOfoI1Q",
  "state": "success",
  "description": "test from peter",
  "target_url": null,
  "context": "tests-e2e-scenarios-bare-metal",
  "created_at": "2025-04-02T02:51:35Z",
  "updated_at": "2025-04-02T02:51:35Z",
...

Checks API

With a fine-grainted PAT

echo '{"conclusion": "success"}' | gh api -X PATCH "repos/kubernetes/kops/check-runs/39773935476" --input -

{
  "message": "Resource not accessible by personal access token",
  "documentation_url": "https://docs.github.com/rest/checks/runs#update-a-check-run",
  "status": "403"
}

@ameukam do you know if prow's authentication to github has changed in the past year or two? Perhaps related to any sig-k8s-infra migration?

@ameukam
Copy link
Member

ameukam commented Apr 2, 2025

We didn't change the Oauth config during the migration, IIRC. And I think we still use the classic PAT for prow. It's possible we are dealing some changes with the Check API since the fine-grained tokens are GA.

@rifelpet
Copy link
Member Author

rifelpet commented Apr 3, 2025

I discovered that the job is failing because the staging etcd-manager image isn't found:

${KOPS} edit cluster metal.k8s.local --set 'spec.etcdClusters[*].manager.image=us-central1-docker.pkg.dev/k8s-staging-images/etcd-manager/etcd-manager-static:latest'

crane manifest us-central1-docker.pkg.dev/k8s-staging-images/etcd-manager/etcd-manager-static:latest

Error: fetching manifest us-central1-docker.pkg.dev/k8s-staging-images/etcd-manager/etcd-manager-static:latest: GET https://us-central1-docker.pkg.dev/v2/k8s-staging-images/etcd-manager/etcd-manager-static/manifests/latest: MANIFEST_UNKNOWN: Failed to fetch "latest"

The repo has a lifecycle setting to delete images after 90 days:

https://console.cloud.google.com/artifacts/docker/k8s-staging-images/us-central1/etcd-manager?invt=AbtuQQ

and the last etcd-manager commit was 4 months ago. I opened this PR just to trigger a new staging build: kubernetes-sigs/etcd-manager#20

@rifelpet
Copy link
Member Author

rifelpet commented Apr 3, 2025

/hold cancel

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Apr 3, 2025
@k8s-ci-robot k8s-ci-robot merged commit 06e3575 into kubernetes:release-1.32 Apr 3, 2025
23 of 24 checks passed
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. 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. 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.

5 participants