fix(kanban): align failure diagnostics with retry limit#25591
Closed
qWaitCrypto wants to merge 1 commit into
Closed
fix(kanban): align failure diagnostics with retry limit#25591qWaitCrypto wants to merge 1 commit into
qWaitCrypto wants to merge 1 commit into
Conversation
454ee15 to
5d91493
Compare
Contributor
|
Merged via #27868 onto current main. Your commit was cherry-picked with authorship preserved. Thanks! |
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 does this PR do?
Fixes Kanban repeated-failure diagnostics so they line up with the dispatcher's actual circuit-breaker threshold.
On current
main, the dispatcher defaults tokanban.failure_limit: 2, butkanban_diagnostics.pystill defaultedfailure_thresholdto 3 and told operators the circuit breaker default was 5. That means a task can auto-block after two consecutive non-success attempts while the repeated-failure diagnostic remains silent.This PR:
kanban.failure_limitunless the user explicitly setskanban.diagnostics.failure_thresholdor the legacyspawn_failure_threshold.kanban.failure_limit, and explicit diagnostics-threshold override.Related Issue
#25641
Type of Change
Changes Made
config_from_kanban_config()inhermes_cli/kanban_diagnostics.pyto translate the runtimekanbanconfig into diagnostics config.hermes_cli/kanban.pyandplugins/kanban/dashboard/plugin_api.pyto pass the active Kanban config into diagnostics.failure_thresholdand configuredfailure_limit.repeated_failures;failure_limitvalues control diagnostics when no diagnostics override is set;failure_limit.Reproduction
Before the fix, current
mainproduced no repeated-failure diagnostic at the default dispatcher limit:After the fix, the same state surfaces the diagnostic and no longer mentions the stale default of 5:
How to Test
Result: passed.
Result:
35 passed in 9.53s.Result:
cli diagnostics smoke passed.Result:
dashboard diagnostics smoke passed: repeated_failures.Result: installed
fastapi==0.133.1,starlette==1.0.0, andannotated-doc==0.0.4into the local test venv so dashboard imports are available.Result: passed.
Checklist
Code
fix(scope):,feat(scope):, etc.)pytest tests/ -qand all tests passDocumentation & Housekeeping
docs/, docstrings) — or N/Acli-config.yaml.exampleif I added/changed config keys — or N/ACONTRIBUTING.mdorAGENTS.mdif I changed architecture or workflows — or N/AScreenshots / Logs
See the reproduction and test logs above.