Repository navigation
Fix LeaderWorkerSet workload update atomicity - #14143
Conversation
Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
✅ Deploy Preview for kubernetes-sigs-kueue ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
📝 WalkthroughWalkthroughThe reconciler now persists workload queue and ChangesWorkload metadata reconciliation
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related issues
Possibly related PRs
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.
Actionable comments posted: 1
🤖 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.
Inline comments:
In `@pkg/controller/jobs/leaderworkerset/leaderworkerset_reconciler_test.go`:
- Around line 2213-2220: Update the interceptor in the atomic Workload update
test to count every Workload Update invocation instead of failing the first one
via workloadUpdateErr. For the scenario where both queue name and
AdmissionGatedBy change, assert exactly one Workload update and retain
assertions for the resulting state; add or update the corresponding unit and
integration coverage for this controller behavior.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 85141326-f013-40db-aeb7-6d45dbb84a46
📒 Files selected for processing (2)
pkg/controller/jobs/leaderworkerset/leaderworkerset_reconciler.gopkg/controller/jobs/leaderworkerset/leaderworkerset_reconciler_test.go
mimowo
left a comment
There was a problem hiding this comment.
/lgtm
/approve
/cherrypick release-0.19
/cherrypick release-0.18
Thank you for hardening LWS 👍
|
LGTM label has been added. DetailsGit tree hash: d329b766dae060ef771f65d628d5797b8b9d598b |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mimowo, tenzen-y 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 |
|
/cherrypick release-0.19 |
|
@tenzen-y: 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. |
|
@tenzen-y: new pull request created: #14144 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. |
|
@tenzen-y: new pull request created: #14145 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 |
|
/release-note-edit |
What type of PR is this?
/kind bug
/area integrations
What this PR does / why we need it:
I fixed potential atomicity problem described in #14137
Which issue(s) this PR fixes:
Fixes #14137
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Summary by CodeRabbit