workflow-engine: persist step error for exhaustion + regression test#4185
workflow-engine: persist step error for exhaustion + regression test#4185NathanFlurry wants to merge 1 commit intomainfrom
Conversation
|
🚅 Deployed to the rivet-pr-4185 environment in rivet-frontend
|
How to use the Graphite Merge QueueAdd the label merge-queue to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Code ReviewSummaryThis PR fixes a bug where step exhaustion errors could lose the underlying error information when driver implementations crash or partially persist state between attempts. The fix ensures that metadata.error is persisted as a fallback source of truth. Strengths
Issues FoundCritical: Indentation inconsistency (context.ts:446-502)The success and error handling blocks have incorrect indentation. All code from line 446 onwards should be dedented by one tab to align with the surrounding code structure. This appears to be a formatting artifact. Minor: metadata.error clearing on success (line 451)While the PR adds metadata.error = undefined at line 451 when a step completes successfully, this is good practice but should be verified. Recommendations
Security and PerformanceNo security concerns or performance impact identified. Overall AssessmentApprove with changes required - The logic fix is sound and the test coverage is excellent, but the indentation issue must be corrected before merging. |

Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context.
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Checklist: