Skip to content

Conversation

@kannon92
Copy link
Contributor

@kannon92 kannon92 commented Nov 2, 2025

What type of PR is this?

/kind cleanup

What this PR does / why we need it:

Add test cases for scheduler for excludeResourcePrefixes.

As I was working on #5800, I notice we don't really have a good test coverage of this excludeResourcePrefixes in the configuration.

There is one test in pod_controller in this but I think it make sense to have this for the scheduler.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Assisted by Claude Code

Does this PR introduce a user-facing change?

NONE

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. labels Nov 2, 2025
@k8s-ci-robot k8s-ci-robot requested a review from mimowo November 2, 2025 17:19
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: kannon92
Once this PR has been reviewed and has the lgtm label, please assign mimowo for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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

@netlify
Copy link

netlify bot commented Nov 2, 2025

Deploy Preview for kubernetes-sigs-kueue canceled.

Name Link
🔨 Latest commit c5318b2
🔍 Latest deploy log https://app.netlify.com/projects/kubernetes-sigs-kueue/deploys/69090ba0507f8c00081b6eff

@k8s-ci-robot k8s-ci-robot requested a review from tenzen-y November 2, 2025 17:19
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Nov 2, 2025
@kannon92 kannon92 force-pushed the add-testing-exclude-resource-prefixes branch from acc2be2 to 481c202 Compare November 3, 2025 19:50
…tion

This adds comprehensive integration tests for the excludeResourcePrefixes
feature in a dedicated test directory following the pattern of other
scheduler tests (fairsharing, podsready).

The tests verify:
- Basic resource exclusion from quota calculations
- Multiple excluded resource prefixes
- Quota enforcement for non-excluded resources
- Exact prefix matching (not substring matching)

All tests create Workload objects directly and use the scheduler test
utilities for robust assertions.
@kannon92 kannon92 force-pushed the add-testing-exclude-resource-prefixes branch from 481c202 to c5318b2 Compare November 3, 2025 20:07
@k8s-ci-robot
Copy link
Contributor

@kannon92: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-kueue-test-integration-baseline-main c5318b2 link true /test pull-kueue-test-integration-baseline-main

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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. release-note-none Denotes a PR that doesn't merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants