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

time_range fix #1378

Merged
merged 1 commit into from
Nov 21, 2024
Merged

time_range fix #1378

merged 1 commit into from
Nov 21, 2024

Conversation

msvinaykumar
Copy link
Contributor

@msvinaykumar msvinaykumar commented Nov 21, 2024

Description

The latest MVP code is encountering this issue: #1377.

The problem occurs because query_range is being called with start=0, end=0, and step=0 when the request payload is empty, resulting in a 400 error.

The proposed fix is to avoid using query_range in PromQL if the time_range is not provided. Instead, use the query parameter.

Fixes # (issue)

Type of change

  • Bug fix
  • New feature
  • Docs update
  • Breaking change (What changes might users need to make in their application due to this PR?)
  • Requires DB changes

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.

  • New Test X
  • Functional testsuite

Test Configuration

  • Kubernetes clusters tested on:

Checklist 🎯

  • Followed coding guidelines
  • Comments added
  • Dependent changes merged
  • Documentation updated
  • Tests added or updated

Additional information

Include any additional information such as links, test results, screenshots here

Signed-off-by: msvinaykumar <[email protected]>
@msvinaykumar msvinaykumar added the bug Something isn't working label Nov 21, 2024
@msvinaykumar msvinaykumar added this to the Kruize 0.2 Release milestone Nov 21, 2024
@msvinaykumar msvinaykumar self-assigned this Nov 21, 2024
@dinogun
Copy link
Contributor

dinogun commented Nov 21, 2024

@msvinaykumar How has this been tested?

@msvinaykumar
Copy link
Contributor Author

@msvinaykumar How has this been tested?

I used

./bulk_service_demo.sh -c openshift -i quay.io/vinakuma/autotune_operator:shk

it ran successfully

Copy link
Contributor

@dinogun dinogun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dinogun dinogun merged commit 888f663 into kruize:mvp_demo Nov 21, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants