node-feature-discovery icon indicating copy to clipboard operation
node-feature-discovery copied to clipboard

fix topology-updater cpu report

Open AllenXu93 opened this issue 11 months ago • 16 comments

Fix #1978

AllenXu93 avatar Dec 13 '24 06:12 AllenXu93

CLA Signed

The committers listed above are authorized under a signed CLA.

  • :white_check_mark: login: AllenXu93 (913b34baddd78b75cf1b13ff7035dbe777165d2c)

Welcome @AllenXu93!

It looks like this is your first PR to kubernetes-sigs/node-feature-discovery 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes-sigs/node-feature-discovery has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. :smiley:

k8s-ci-robot avatar Dec 13 '24 06:12 k8s-ci-robot

Hi @AllenXu93. Thanks for your PR.

I'm waiting for a kubernetes-sigs 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-sigs/prow repository.

k8s-ci-robot avatar Dec 13 '24 06:12 k8s-ci-robot

Deploy Preview for kubernetes-sigs-nfd ready!

Name Link
Latest commit 913b34baddd78b75cf1b13ff7035dbe777165d2c
Latest deploy log https://app.netlify.com/projects/kubernetes-sigs-nfd/deploys/6891ec9a993e5f000839e871
Deploy Preview https://deploy-preview-1979--kubernetes-sigs-nfd.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

netlify[bot] avatar Dec 13 '24 06:12 netlify[bot]

/cc

Need to review the code before to comment :) While I get again up to speed, do we have test coverage for this change? can we use more unit/e2e tests?

ffromani avatar Dec 16 '24 11:12 ffromani

/ok-to-test

ffromani avatar Dec 16 '24 11:12 ffromani

While I get again up to speed, do we have test coverage for this change? can we use more unit/e2e tests?

We seem to have some as the tests failed. But yes, we should have specific test case for this scenario-

@AllenXu93 could you fix and update the tests?

marquiz avatar Dec 17 '24 13:12 marquiz

While I get again up to speed, do we have test coverage for this change? can we use more unit/e2e tests?

We seem to have some as the tests failed. But yes, we should have specific test case for this scenario-

@AllenXu93 could you fix and update the tests?

ok I will fix in this week

AllenXu93 avatar Dec 17 '24 13:12 AllenXu93

/test pull-node-feature-discovery-build-image-cross-generic

AllenXu93 avatar Dec 23 '24 02:12 AllenXu93

Now the unit tests fail

marquiz avatar Jan 08 '25 09:01 marquiz

@marquiz @ffromani Sorry to bother you, can you help to review this PR ?

AllenXu93 avatar Mar 25 '25 12:03 AllenXu93

Sorry to bother you, can you help to review this PR ?

@AllenXu93 any thoughts on these comments? https://github.com/kubernetes-sigs/node-feature-discovery/pull/1979#discussion_r1925199335

marquiz avatar Mar 25 '25 17:03 marquiz

Sorry to bother you, can you help to review this PR ?

@AllenXu93 any thoughts on these comments? #1979 (comment)

The latest code is updated as you suggestion. I rename suggestion

Sorry to bother you, can you help to review this PR ?

@AllenXu93 any thoughts on these comments? #1979 (comment)

Updated the code just now

isIntegralGuaranteed := hasExclusiveCPUs(pod)

rename to :

isPodHasIntegralCPUs := podHasIntegralCPUs(pod)

Do you think these changes ok ?

AllenXu93 avatar Mar 27 '25 02:03 AllenXu93

The Kubernetes project currently lacks enough contributors to adequately respond to all PRs.

This bot triages PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the PR is closed

You can:

  • Mark this PR as fresh with /remove-lifecycle stale
  • Close this PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

k8s-triage-robot avatar Jun 25 '25 13:06 k8s-triage-robot

@ffromani PTAL. I think your review comments have been addressed

marquiz avatar Jul 28 '25 10:07 marquiz

LGTM label has been added.

Git tree hash: 63b710a85fa71091a8e2648405bf1518c66f2a05

k8s-ci-robot avatar Aug 05 '25 07:08 k8s-ci-robot

New changes are detected. LGTM label has been removed.

@ffromani Reslove a conflict, PTAL. https://github.com/kubernetes-sigs/node-feature-discovery/pull/1979/commits/5dab33b3ebe0cfd0e53289a4f1bb72a74bd58447

AllenXu93 avatar Aug 05 '25 08:08 AllenXu93

/lgtm

post-rebase change looks minimal and OK

ffromani avatar Aug 05 '25 08:08 ffromani

LGTM label has been added.

Git tree hash: e6eafc4b8147eeecad7e7e37b36ceb9a4cb796d7

k8s-ci-robot avatar Aug 05 '25 08:08 k8s-ci-robot

@AllenXu93 could you please rebase the PR and also squash the commits?

marquiz avatar Aug 05 '25 09:08 marquiz

/retest

AllenXu93 avatar Aug 05 '25 10:08 AllenXu93

@AllenXu93 could you please rebase the PR and also squash the commits?

push again and squash the commits, PTAL

AllenXu93 avatar Aug 05 '25 12:08 AllenXu93

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: AllenXu93, marquiz

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 avatar Aug 06 '25 05:08 k8s-ci-robot

LGTM label has been added.

Git tree hash: e6eafc4b8147eeecad7e7e37b36ceb9a4cb796d7

k8s-ci-robot avatar Aug 06 '25 05:08 k8s-ci-robot