fix: return evaluation errors from processAllNodesForRule #497
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 412 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.360
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #497"
general
weight: 0.35
ajaysundark
<!-- Thanks for sending a pull request! Here are some tips for you:
-->
Description
processAllNodesForRulesaves node failures to status but always returnsnil, so failed nodes are never retried.This returns the errors with
errors.Join, likeprocessNodeAgainstAllRulesdoes.Reconcilestill saves status before returning the error.Continues #237 by @dorodb-web22.
<!-- Brief description of changes -->
Related Issue
Fixes #234
<!--
Automatically closes linked issue when PR is merged.
Usage:
Fixes #<issue number>, orFixes (paste link of issue).Fixes #
or
None
-->
Type of Change
/kind bug
<!--
Add one of the following kinds:
/kind cleanup
/kind documentation
/kind feature
/kind design
Optionally add one or more of the following kinds if applicable:
/kind api-change
/kind deprecation
/kind failing-test
/kind flake
/kind regression
-->
Testing
make testpasses.Reconcilereturns the error and savesFailedNodes.<!-- How was this tested? -->
Checklist
make testpassesmake lintpassesDoes this PR introduce a user-facing change?
<!--
If no, just write "NONE" in the release-note block below.
If yes, a release note is required:
1. Enter your extended release note in the block below. If the PR requires additional action from users switching to the new release, include the string "action required".
2. Add 'Doc #(issue)' after the block if there is a follow up
For more information on release notes see: https://git.k8s.io/community/contributors/guide/release-notes.md
-->
``
release-note
``NodeReadinessRule reconciliation now retries when evaluating a node fails, instead of silently dropping the error.
Doc #(issue)
Generative AI Usage Disclosure
<!--
If you used AI tools in preparing this PR, please disclose and how they were used.
Using AI tools to help write your PR is acceptable, but as the author, you are responsible for understanding every change in your contribution.
Please write the PR description in your words. Do not submit AI-generated summary and analysis and do not leave the first review of AI generated changes to the reviewers, please verify the changes (code review, local testing, etc.) before submitting your PR.
For more details please review guidelines on responsible Generative AI usage:
https://www.linuxfoundation.org/legal/generative-aihttps://www.kubernetes.dev/docs/guide/pull-requests/#ai-guidance
-->
<!-- Describe what the AI helped with (e.g., code generation, refactoring, documentation, tests) and which parts of the PR were affected -->