Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CPU Scaler: Make CPU scaler test wait for metrics window #5294

Merged
merged 1 commit into from
Dec 18, 2023

Commits on Dec 17, 2023

  1. Make cpu scaler test wait for metrics window

    The CPU scaler test assumes a default metrics window of 30s, so those
    testing on platforms where it is set to a larger value will potentially
    fail the CPU scaler test because the metrics won't be ready by the time
    the test starts.
    
    This:
    - Adds a helper that waits for either the metrics to show up in the
    HPA, or for some amount of time to pass, whichever happens first
    - Uses said helper to ensure that the metrics are ready before the CPU
    test starts testing scaling
    
    Signed-off-by: John Kyros <jkyros@redhat.com>
    jkyros committed Dec 17, 2023
    Configuration menu
    Copy the full SHA
    0a524fb View commit details
    Browse the repository at this point in the history