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

fix: fix waiting to reach failureThreshold before fallback #6520

Merged
merged 2 commits into from
Feb 10, 2025

Conversation

y-rabie
Copy link
Contributor

@y-rabie y-rabie commented Feb 1, 2025

The change removes a part that used to manually and immediately scale to Fallback.Replicas on encountering an error. Scaling to fallback is already done in GetMetricsWithFallback by recording an appropriate metric value the HPA will use, but only after Fallback.FailureThreshold failures.

The current existence of this part causes Fallback.FailureThreshold to be effectively unused.

doFallbackScaling and setFallbackCondition functions are removed since they are no longer used. The test TestScaleToFallbackReplicasWhenNotActiveAndIsError is no longer applicable I think

Checklist

@y-rabie y-rabie requested a review from a team as a code owner February 1, 2025 21:57
@y-rabie y-rabie force-pushed the fix-fallback-failurethreshold branch 2 times, most recently from 371c33b to 2e7aa89 Compare February 1, 2025 22:28
@JorTurFer
Copy link
Member

JorTurFer commented Feb 3, 2025

/run-e2e fallback
Update: You can check the progress here

@y-rabie y-rabie force-pushed the fix-fallback-failurethreshold branch from 2e7aa89 to 58e7586 Compare February 4, 2025 00:58
@y-rabie
Copy link
Contributor Author

y-rabie commented Feb 4, 2025

I've pushed a trivial change that should fix the failing test. @JorTurFer if you can re-trigger the e2e tests 😄

@JorTurFer JorTurFer mentioned this pull request Feb 4, 2025
24 tasks
@zroubalik
Copy link
Member

zroubalik commented Feb 6, 2025

/run-e2e fallback
Update: You can check the progress here

@y-rabie y-rabie force-pushed the fix-fallback-failurethreshold branch from 58e7586 to dbc7efd Compare February 9, 2025 16:06
@JorTurFer
Copy link
Member

JorTurFer commented Feb 9, 2025

/run-e2e fallback
Update: You can check the progress here

Copy link
Member

@JorTurFer JorTurFer left a comment

Choose a reason for hiding this comment

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

nice job! Thanks 😄

@zroubalik zroubalik merged commit 914163c into kedacore:main Feb 10, 2025
20 checks passed
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.

3 participants