Skip to content

test: Refactor distributed job creation in testing#1482

Open
itsomri wants to merge 1 commit into
mainfrom
omric/unified-distributed-batch-job-helper
Open

test: Refactor distributed job creation in testing#1482
itsomri wants to merge 1 commit into
mainfrom
omric/unified-distributed-batch-job-helper

Conversation

@itsomri

@itsomri itsomri commented Apr 27, 2026

Copy link
Copy Markdown
Collaborator

Description

Our e2e tests relied on several different helper functions to simulate jobs, distributed jobs, elastic, kwok etc. With the introduction of fine-grained minMember annotation for batch jobs, all these helpers can be consolidated, simplifying tests and potentially improving test performance, as we offload distributed pod creation to the k8s job controller instead of the test client.

Checklist

  • Self-reviewed
  • Added/updated tests (if needed)
  • Updated documentation (if needed)

Breaking Changes

Additional Notes

@coderabbitai

coderabbitai Bot commented Apr 27, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. 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: Pro

Run ID: ce5e49bf-f3e8-4293-b4d6-449bd2378ac6

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
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch omric/unified-distributed-batch-job-helper

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.

❤️ Share

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

@github-actions

Copy link
Copy Markdown

Merging this branch will not change overall coverage

Impacted Packages Coverage Δ 🤖
github.com/kai-scheduler/KAI-scheduler/test/e2e/modules/resources/rd 0.00% (ø)
github.com/kai-scheduler/KAI-scheduler/test/e2e/scale 0.00% (ø)
github.com/kai-scheduler/KAI-scheduler/test/e2e/suites/allocate/topology 0.00% (ø)

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/kai-scheduler/KAI-scheduler/test/e2e/modules/resources/rd/distributed_batch_job.go 0.00% (ø) 0 0 0
github.com/kai-scheduler/KAI-scheduler/test/e2e/scale/kwok_job_creation.go 0.00% (ø) 0 0 0
github.com/kai-scheduler/KAI-scheduler/test/e2e/scale/kwok_test_utils.go 0.00% (ø) 0 0 0

Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

Changed unit test files

  • github.com/kai-scheduler/KAI-scheduler/test/e2e/suites/allocate/topology/topology_test.go

@itsomri itsomri force-pushed the omric/unified-distributed-batch-job-helper branch from 42fd500 to c536d88 Compare May 25, 2026 08:54
@github-actions

github-actions Bot commented May 25, 2026

Copy link
Copy Markdown

Total coverage: 49.9% -> 49.8%

Merging this branch will not change overall coverage

Impacted Packages Coverage Δ 🤖
github.com/kai-scheduler/KAI-scheduler/test/e2e/modules/resources/rd 0.00% (ø)
github.com/kai-scheduler/KAI-scheduler/test/e2e/scale 0.00% (ø)
github.com/kai-scheduler/KAI-scheduler/test/e2e/suites/allocate/topology 0.00% (ø)

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/kai-scheduler/KAI-scheduler/test/e2e/modules/resources/rd/distributed_batch_job.go 0.00% (ø) 0 0 0
github.com/kai-scheduler/KAI-scheduler/test/e2e/scale/kwok_job_creation.go 0.00% (ø) 0 0 0
github.com/kai-scheduler/KAI-scheduler/test/e2e/scale/kwok_test_utils.go 0.00% (ø) 0 0 0

Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

Changed unit test files

  • github.com/kai-scheduler/KAI-scheduler/test/e2e/suites/allocate/topology/topology_test.go

@itsomri itsomri force-pushed the omric/unified-distributed-batch-job-helper branch from c536d88 to 80c9168 Compare May 26, 2026 12:47
Signed-off-by: itsomri <omric@nvidia.com>
@itsomri itsomri force-pushed the omric/unified-distributed-batch-job-helper branch from 80c9168 to cf48f08 Compare May 26, 2026 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant