Skip to content

Conversation

ffromani
Copy link
Contributor

Up until now, we used "podresources" ambiguosly: it historically referred to podresources API, but we started to use for pod-level resources tests. This PR disambiguate the term, but most notably adds a presubmit job which targets explicitly the podresources API tests, which previously where running incidentally in other lanes.

xref: kubernetes/enhancements#5346 (comment)
xref: kubernetes/kubernetes#132345

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jul 15, 2025
@k8s-ci-robot k8s-ci-robot requested review from kannon92 and klueska July 15, 2025 18:34
@k8s-ci-robot k8s-ci-robot added area/config Issues or PRs related to code in /config area/jobs sig/node Categorizes an issue or PR as relevant to SIG Node. labels Jul 15, 2025
@k8s-ci-robot k8s-ci-robot added the sig/testing Categorizes an issue or PR as relevant to SIG Testing. label Jul 15, 2025
@ffromani
Copy link
Contributor Author

/cc @ndixita @tallclair @guptaNswati

@k8s-ci-robot
Copy link
Contributor

@ffromani: GitHub didn't allow me to request PR reviews from the following users: guptaNswati.

Note that only kubernetes members and repo collaborators can review this PR, and authors cannot review their own PRs.

In response to this:

/cc @ndixita @tallclair @guptaNswati

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.

@ffromani ffromani moved this from Triage to Issues - In progress in SIG Node CI/Test Board Jul 15, 2025
@ffromani ffromani moved this from Issues - In progress to PRs - Needs Reviewer in SIG Node CI/Test Board Jul 15, 2025
@ffromani ffromani changed the title node: add podresources API presubmit and disambiguare pod level resources presubmit node: add podresources API presubmit and disambiguate pod level resources presubmit Jul 15, 2025
@ffromani
Copy link
Contributor Author

ping for review, it's important for KEP 3695

memory: 6Gi
command:
- runner.sh
- /workspace/scenarios/kubernetes_e2e.py

Choose a reason for hiding this comment

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

I think might be important to introduce new jobs using kubetest2 since kubetest its already being deprecated

Copy link
Member

Choose a reason for hiding this comment

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

+1 to this. But not blocking from my POV

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fair enough, I can update

@guptaNswati
Copy link

Nice to have pull-kubernetes-node-kubelet-serial-podresourcesapi Thank you @ffromani

args:
- --deployment=node
- --gcp-zone=us-central1-b
- --node-args=--image-config-file=/home/prow/go/src/k8s.io/test-infra/jobs/e2e_node/containerd/image-config-serial-resource-managers.yaml
Copy link
Member

Choose a reason for hiding this comment

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

is this image the reason we need a separate lane and cannot run them as part of other Serial?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we only need a filter, be it focus or label-filter which captures the podresourcesapi tests explicitly. Everything else is incidental and I can change as needed

Copy link
Member

Choose a reason for hiding this comment

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

perhaps running as part of serial would be OK than? So we avoid an extra test lane

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's surely a tradeoff we can explore. I'm fixing this PR as suggested by review comments, then we can evaluate another approach.
From CI costs perspective my intuition is that a targeted lane is less costly than running a full lenghtier lane only because we are interested in a subset of tests, but I'm totally open to discuss it.

ffromani added 2 commits July 21, 2025 08:30
add a new presubmit job targeting podresources API tests.

Signed-off-by: Francesco Romani <fromani@redhat.com>
rename podlevel resources tests to disambiguate with podresources API
tests.

Signed-off-by: Francesco Romani <fromani@redhat.com>
@ffromani ffromani force-pushed the sig-node-podresources-presubmit branch from 218f16c to f21d6d4 Compare July 21, 2025 06:31
@ffromani
Copy link
Contributor Author

@SergeyKanzhelev I'm not strongly pushing for a separate lane for podresources API. These are the reasons why I think it helps:

  1. being podresources API a sig-node feature, it feels natural to have its own separate lane, but most notably
  2. this PRs removes two footguns:
    a. disambiguate the pod level resources lane (what does "podresources" mean?)
    b. provides a clear entry point for each feature to be exercised; it is counter intuitive to be required to run the full serial suite for the podresources tests.

that said: I'm open to just fix the serial suite. I guess the driver here is to keep the number of lanes manageable, right? The only problem I see is to document somehow that to run podresources tests we need to run the full serial suite, otherwise this fact becomes tribal knowledge which gets lost easily.

@ffromani
Copy link
Contributor Author

still pending: move to kubetest2 (on it)

@ffromani
Copy link
Contributor Author

it seems we can just run these two lanes to exercise the podresources API tests:

pull-kubernetes-node-kubelet-serial-containerd
pull-kubernetes-node-kubelet-serial-containerd-kubetest2

verifying

@ffromani
Copy link
Contributor Author

not great, it seems the serial lanes are experiencing some bitrot? Maybe we "just" need to bump the timeout?
https://prow.k8s.io/pr-history/?org=kubernetes&repo=kubernetes&pr=132940

@guptaNswati
Copy link

not great, it seems the serial lanes are experiencing some bitrot? Maybe we "just" need to bump the timeout? https://prow.k8s.io/pr-history/?org=kubernetes&repo=kubernetes&pr=132940

Found the issue in CI infra with instance type #35205

Now the instance is coming up but tests are still skipped. @ffromani we need to look more deeply and need time to do all the fixes. Is it okay if we don't block this kubernetes/kubernetes#132940

@SergeyKanzhelev
Copy link
Member

/approve
/lgtm

let's use it temporarily as other serial lanes a in a bad shape and we need a KEP to be merged

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

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ffromani, SergeyKanzhelev

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 Jul 24, 2025
@k8s-ci-robot k8s-ci-robot merged commit 92c03ce into kubernetes:master Jul 24, 2025
7 checks passed
@github-project-automation github-project-automation bot moved this from PRs - Needs Reviewer to Done in SIG Node CI/Test Board Jul 24, 2025
@k8s-ci-robot
Copy link
Contributor

@ffromani: Updated the job-config configmap in namespace default at cluster test-infra-trusted using the following files:

  • key sig-node-presubmit.yaml using file config/jobs/kubernetes/sig-node/sig-node-presubmit.yaml

In response to this:

Up until now, we used "podresources" ambiguosly: it historically referred to podresources API, but we started to use for pod-level resources tests. This PR disambiguate the term, but most notably adds a presubmit job which targets explicitly the podresources API tests, which previously where running incidentally in other lanes.

xref: kubernetes/enhancements#5346 (comment)
xref: kubernetes/kubernetes#132345

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.

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. lgtm "Looks good to me", indicates that a PR is ready to be merged. sig/node Categorizes an issue or PR as relevant to SIG Node. sig/testing Categorizes an issue or PR as relevant to SIG Testing. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
Development

Successfully merging this pull request may close these issues.

5 participants