Repository navigation
fix(swiss): show a held scale step on the scaler card and deploy page - #105
Merged
Merged
Conversation
The scaler card and the standalone deploy page's Scaling step showed AbleToScale=True with RolloutInProgress, ScaleDownSettling or ScaleDownStabilized as steady, while the Overview tile showed it as waiting. Both now show "holding: <reason>" in the existing waiting style. - scalerFailing, scalerHold and scalerNeutral move to swiss/lib/scaler.ts - the inferences Scaling step, the scaler card and the deploy page's Scaling step all use them; the inferences step behaves as before - tests for the helpers and the deploy page's Scaling step Co-authored-by: aceforeverd <11715200+aceforeverd@users.noreply.github.com>
huskcass
commented
Oct 26, 2026
huskcass
left a comment
Collaborator
Author
There was a problem hiding this comment.
No blockers.
Verdict: rules now live once in swiss/lib/scaler.ts, Overview output is unchanged, and holds read the same on the card, deploy page and Overview; good to merge.
— Review Golden
A hold (AbleToScale=True with RolloutInProgress, ScaleDownSettling or ScaleDownStabilized) is not a state of its own: the scaler is ok or bad. - the Overview tile, the deploy page's Scaling step and the scaler card report a hold as steady, even before the replica count catches up - the only sign of a hold is a warning dot on the AbleToScale condition, through a new warn list on Conditions; other callers are unchanged - drop the unused "deferred" locale strings Co-authored-by: aceforeverd <11715200+aceforeverd@users.noreply.github.com>
huskcass
commented
Oct 26, 2026
huskcass
left a comment
Collaborator
Author
There was a problem hiding this comment.
No blockers.
Verdict: holds now read as steady on the Overview, deploy page and scaler card with only a yellow AbleToScale dot, failure still wins, and the bad rule is unchanged; good to merge.
— Review Golden
aceforeverd
approved these changes
Oct 26, 2026
aceforeverd
added a commit
that referenced
this pull request
Oct 26, 2026
…#105) * fix(swiss): show a held scale step on the scaler card and deploy page The scaler card and the standalone deploy page's Scaling step showed AbleToScale=True with RolloutInProgress, ScaleDownSettling or ScaleDownStabilized as steady, while the Overview tile showed it as waiting. Both now show "holding: <reason>" in the existing waiting style. - scalerFailing, scalerHold and scalerNeutral move to swiss/lib/scaler.ts - the inferences Scaling step, the scaler card and the deploy page's Scaling step all use them; the inferences step behaves as before - tests for the helpers and the deploy page's Scaling step Co-authored-by: aceforeverd <11715200+aceforeverd@users.noreply.github.com> * fix(swiss): report a scaler hold as steady A hold (AbleToScale=True with RolloutInProgress, ScaleDownSettling or ScaleDownStabilized) is not a state of its own: the scaler is ok or bad. - the Overview tile, the deploy page's Scaling step and the scaler card report a hold as steady, even before the replica count catches up - the only sign of a hold is a warning dot on the AbleToScale condition, through a new warn list on Conditions; other callers are unchanged - drop the unused "deferred" locale strings Co-authored-by: aceforeverd <11715200+aceforeverd@users.noreply.github.com> --------- Co-authored-by: huskcass <333684917+huskcass@users.noreply.github.com> Co-authored-by: aceforeverd <11715200+aceforeverd@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
What this PR does and why
Follow-up to #104. A scaler hold is
AbleToScale=Truewith reasonRolloutInProgress,ScaleDownSettlingorScaleDownStabilized. It is not a state of its own: a scaler is either ok or bad.AbleToScaledot is yellow (bg-warning)AbleToScale=FalseorScalingActive=False) still wins.Conditionstakes an optionalwarnlist of condition types. Only the scaler card passes one (["AbleToScale"], while held); other callers are unchanged.web/src/modules/swiss/lib/scaler.tsholds the failing, hold and neutral rules (scalerFailing,scalerHold,scalerNeutral), shared by the scaler card, the deploy page and the inferencesscalerStep.steps.scaler.deferredlocale strings are removed.Which issue(s) this PR fixes
Refs #104
How it was tested
inferences/lib.test.tsandswiss/lib/scaler.test.ts: each of the three hold reasons is ok/steady with current 3, desired 1; a hold together withScalingActive=Falseis bad.swiss/lib/scaler.test.ts(replacescomponents/scaler-conditions.test.ts):scalerFailing,scalerHold,scalerNeutral, and the deploy page'sscalerStepfor steady, failing, a healthy 0.5.0 object (DecisionAvailable=True) and a Prometheus object with no conditions.swiss/components/Conditions.test.tsx: rendersConditionsand checks that theAbleToScaledot isbg-warningonly when it is listed inwarn.npm test(49 files, 446 tests),npm run typecheck,npm run buildandnpm run build:swisspass inweb/.Checks
go test ./...andgofmt -l .is empty (no Go change)npm run typecheck && npm test && npm run buildinweb/(ifweb/changed)helm lint --strict helm/console(if the chart changed)Notes for reviewers
scalerStepinroutes/DeploymentDetail.tsxis now exported so it can be tested.Release note