Skip to content

queue: use cmp.Or for requeueWorkload nil fallback in TestRequeueWorkload [0.18] - #15198

Merged
kubernetes-prow[bot] merged 1 commit into
kubernetes-sigs:release-0.18from
kavix:cherry-pick-15168-to-release-0.18
Sep 4, 2026
Merged

kubernetes-prow[bot] merged 1 commit into
kubernetes-sigs:release-0.18from
kavix:cherry-pick-15168-to-release-0.18

Conversation

@kavix

@kavix kavix commented Sep 4, 2026

Copy link
Copy Markdown
Member

What type of PR is this?

/kind cleanup
/area testing

What this PR does / why we need it:

Cherry-pick of #15168 onto release-0.18.

Replaces the explicit nil-fallback pattern for requeueWorkload in
TestRequeueWorkload with the standard-library cmp.Or, which expresses
the intended fallback directly.

Aliases github.com/google/go-cmp/cmp as gocmp to avoid a name conflict
with the newly imported standard-library cmp package. Updates all
existing cmp. references in pkg/cache/queue/manager_test.go to use the
gocmp alias.

AI assistance was used in creating this pull request.

Which issue(s) this PR fixes:

Cherry-pick of #15168 (original issue: #14911)

Special notes for your reviewer:

Manual cherry-pick of #15168 onto release-0.18; the automated bot failed due to merge conflicts caused by line-number drift between main and the release branch.

Does this PR introduce a user-facing change?

NONE

…load

Replaces the explicit nil-fallback pattern for requeueWorkload in
TestRequeueWorkload with the standard-library cmp.Or, which expresses
the intended fallback directly.

Aliases github.com/google/go-cmp/cmp as gocmp to avoid a name conflict
with the newly imported standard-library cmp package. Updates all
existing cmp. references in pkg/cache/queue/manager_test.go to use the
gocmp alias.

Cherry-pick of 697af9a from main (PR kubernetes-sigs#15168)
@kubernetes-prow kubernetes-prow Bot added the release-note-none Denotes a PR that doesn't merit a release note. label Sep 4, 2026
@kubernetes-prow kubernetes-prow Bot added this to the v0.18 milestone Sep 4, 2026
@kubernetes-prow kubernetes-prow Bot added kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. area/testing Testing - related stuff labels Sep 4, 2026
@netlify

netlify Bot commented Sep 4, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for kubernetes-sigs-kueue ready!

Name Link
🔨 Latest commit 8346255
🔍 Latest deploy log https://app.netlify.com/projects/kubernetes-sigs-kueue/deploys/6a9aa4ae0d320d0008a6c235
😎 Deploy Preview https://deploy-preview-15198--kubernetes-sigs-kueue.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.

@coderabbitai

coderabbitai Bot commented Sep 4, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

🗂️ Base branches to auto review (1)
  • main

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Team

Run ID: dc6e1a52-738e-4cb0-8bf4-d091b93b17b2

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands.

@kubernetes-prow kubernetes-prow Bot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Sep 4, 2026
@kubernetes-prow kubernetes-prow Bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Sep 4, 2026
@kavix

kavix commented Sep 4, 2026

Copy link
Copy Markdown
Member Author

/ok-to-test

@kubernetes-prow kubernetes-prow Bot added the ok-to-test Indicates a non-member PR verified by an org member that is safe to test. label Sep 4, 2026
@mimowo

mimowo commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

/lgtm
/approve

@kubernetes-prow kubernetes-prow Bot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 4, 2026
@kubernetes-prow

Copy link
Copy Markdown

LGTM label has been added.

DetailsGit tree hash: 1b30f31f15a8f837761e1f85b561b403e5960add

@kubernetes-prow

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kavix, mimowo

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details 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

@kubernetes-prow kubernetes-prow Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 4, 2026
@kubernetes-prow
kubernetes-prow Bot merged commit bd6d11a into kubernetes-sigs:release-0.18 Sep 4, 2026
58 checks passed
@mimowo

mimowo commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

/retitle queue: use cmp.Or for requeueWorkload nil fallback in TestRequeueWorkload [0.18]

@kubernetes-prow kubernetes-prow Bot changed the title queue: use cmp.Or for requeueWorkload nil fallback in TestRequeueWorkload queue: use cmp.Or for requeueWorkload nil fallback in TestRequeueWorkload [0.18] Sep 4, 2026
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/testing Testing - related stuff cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. release-note-none Denotes a PR that doesn't merit a release note. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants