Add functional tests for Pod Count feature#1899
Conversation
Reviewer's GuideAdds functional tests around the new /recommendations v1 API and pod count-related behavior, including helper wrappers and documentation of the new test coverage. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
@sourcery-ai review |
This comment was marked as outdated.
This comment was marked as outdated.
1 similar comment
This comment was marked as outdated.
This comment was marked as outdated.
|
Archive.zip |
| experiment = data[0] | ||
| assert 'kubernetes_objects' in experiment | ||
|
|
||
| k8s_obj = experiment['kubernetes_objects'][0] |
There was a problem hiding this comment.
@khansaad I don't see any validation for pod count here, can you please point me to where it is being validated
Signed-off-by: Saad Khan <saakhan@ibm.com>
Signed-off-by: Saad Khan <saakhan@ibm.com>
Signed-off-by: Saad Khan <saakhan@ibm.com>
Signed-off-by: Saad Khan <saakhan@ibm.com>
Signed-off-by: Saad Khan <saakhan@ibm.com>
…enarios Signed-off-by: Saad Khan <saakhan@ibm.com>
Signed-off-by: Saad Khan <saakhan@ibm.com>
|
@khansaad - If this new v1/recommendations is going to be replacing the older API, all existing recommendations tests should work with this new v1/recommendations API too. Can you run the scale test as well using this new API? |
Signed-off-by: Saad Khan <saakhan@ibm.com>
Signed-off-by: Saad Khan <saakhan@ibm.com>
Signed-off-by: Saad Khan <saakhan@ibm.com>
Signed-off-by: Saad Khan <saakhan@ibm.com>
Signed-off-by: Saad Khan <saakhan@ibm.com>
https://ci.app-svc-perf.corp.redhat.com/job/ExternalTeams/job/Autotune/job/kruize_scale_tests/126/ |
| return True | ||
|
|
||
|
|
||
| def validate_current(current_config, metrics, experiment_type, v1=False): |
There was a problem hiding this comment.
@khansaad I don't see this being called for local monitoring reco validation
There was a problem hiding this comment.
For local monitoring, the validate_config_local_monitoring method is being used instead for both current and recommended config.
|
@khansaad Can you please trigger the runs on jenkins and share the results after the latest changes |
Started this run : https://ci.app-svc-perf.corp.redhat.com/job/ExternalTeams/job/Autotune/job/kruize_functional_tests/552/ |
Signed-off-by: Saad Khan <saakhan@ibm.com>
Description
This PR contains tests for the pod count API added as part of #1879
Fixes # (issue)
Type of change
How has this been tested?
Please describe the tests that were run to verify your changes and steps to reproduce. Please specify any test configuration required.
Test Configuration
Checklist 🎯
Additional information
Include any additional information such as links, test results, screenshots here
Summary by Sourcery
Add functional tests for the v1 recommendations API, covering the new recommendation schema including replicas, nested resource structures, and pod count metrics for container and namespace experiments.
Tests: