Repository navigation
Fix PodSet count error message - #13671
Conversation
✅ Deploy Preview for kubernetes-sigs-kueue ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Hi @cryo-zd. 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 Tip We noticed you've done this a few times! Consider joining the org to skip this step and gain Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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. |
📝 WalkthroughWalkthroughThe podset length error formatting was corrected so messages report the expected podset count before the actual count. ChangesPodset error reporting
Estimated code review effort: 1 (Trivial) | ~2 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
pkg/podset/podset.go (1)
242-242: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick winAdd a regression test for the corrected count ordering.
The implementation now matches the contract. Please ensure
pkg/podset/podset_test.goasserts distinct values, such aswant=2, got=3, render asexpecting 2 podset, got 3.AI-assisted review disclosure: this review was generated with AI assistance. As per coding guidelines, AI usage must be disclosed in pull request descriptions, comments, and issue filings.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@pkg/podset/podset.go` at line 242, Extend the podset validation tests in podset_test.go to cover distinct expected and actual counts, such as want=2 and got=3, and assert the resulting error string is “expecting 2 podset, got 3”.Source: Coding guidelines
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@pkg/podset/podset.go`:
- Line 242: Extend the podset validation tests in podset_test.go to cover
distinct expected and actual counts, such as want=2 and got=3, and assert the
resulting error string is “expecting 2 podset, got 3”.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: f817e8a2-ea4e-452d-82a5-6255eaeeeb72
📒 Files selected for processing (1)
pkg/podset/podset.go
|
/ok-to-test |
|
@mimowo: once the present PR merges, I will cherry-pick it on top of DetailsIn response to this:
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. |
|
LGTM label has been added. DetailsGit tree hash: e7b9c3b0fe13e5e11987ddc6c2bf2e649be98e47 |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cryo-zd, mimowo The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@mimowo: new pull request created: #13672 DetailsIn response to this:
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. |
|
@mimowo: new pull request created: #13673 DetailsIn response to this:
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. |
|
/release-note-edit |
What type of PR is this?
/kind bug
What this PR does / why we need it:
Corrects the expected and actual PodSet counts in invalid PodSet info error message.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Currently none.
Does this PR introduce a user-facing change?
Summary by CodeRabbit