Skip to content

Conversation

@nurali-techie
Copy link
Contributor

Pull Request Description

To improve coverage for podautoscaler, added unit tests for WorkloadScale.SetDesiredReplicas().

Related Issues

Resolves: part of [#1649] (SetDesiredReplicas() unit tests)

Important: Before submitting, please complete the description above and review the checklist below.


Contribution Guidelines (Expand for Details)

We appreciate your contribution to aibrix! To ensure a smooth review process and maintain high code quality, please adhere to the following guidelines:

Pull Request Title Format

Your PR title should start with one of these prefixes to indicate the nature of the change:

  • [Bug]: Corrections to existing functionality
  • [CI]: Changes to build process or CI pipeline
  • [Docs]: Updates or additions to documentation
  • [API]: Modifications to aibrix's API or interface
  • [CLI]: Changes or additions to the Command Line Interface
  • [Misc]: For changes not covered above (use sparingly)

Note: For changes spanning multiple categories, use multiple prefixes in order of importance.

Submission Checklist

  • PR title includes appropriate prefix(es)
  • Changes are clearly explained in the PR description
  • New and existing tests pass successfully
  • Code adheres to project style and best practices
  • Documentation updated to reflect changes (if applicable)
  • Thorough testing completed, no regressions introduced

By submitting this PR, you confirm that you've read these guidelines and your changes align with the project's contribution standards.

@nurali-techie nurali-techie marked this pull request as ready for review October 22, 2025 11:09
@nurali-techie
Copy link
Contributor Author

@googs1025 this PR is ready for review. I have added all postive unit tests for WorkloadScale.SetDesiredReplicas() using table test.

@nurali-techie
Copy link
Contributor Author

@googs1025 I think we are sort of good with code coverage for WorkloadScale with this PR. Three methods are covered. Only Validate() is remaining, but I don't see it's getting used in code. Let me know if you want me to add tests for it 👍

image

@nurali-techie nurali-techie force-pushed the nur/patch-workload-scale-test branch from 2f735b2 to 28723ca Compare October 23, 2025 07:07
@googs1025 googs1025 self-assigned this Oct 23, 2025
@googs1025
Copy link
Collaborator

will review in these day

@nurali-techie nurali-techie force-pushed the nur/patch-workload-scale-test branch from 28723ca to 14d913e Compare October 23, 2025 09:38
@googs1025 googs1025 merged commit 27c24ec into vllm-project:main Oct 24, 2025
14 checks passed
@nurali-techie
Copy link
Contributor Author

nurali-techie commented Oct 24, 2025

Thanks @googs1025 for review. Let me know if you see any value in adding test for Validate() method (plz check -- comment_link) 👍

@nurali-techie nurali-techie deleted the nur/patch-workload-scale-test branch October 24, 2025 07:49
xvoron pushed a commit to xvoron/aibrix that referenced this pull request Oct 29, 2025
…oject#1692)

* test: added test for SetDesiredReplicas

Signed-off-by: Nurali Techie <[email protected]>

* chore: fix lint issue

Signed-off-by: Nurali Techie <[email protected]>

---------

Signed-off-by: Nurali Techie <[email protected]>
Signed-off-by: Artyom Voronin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants