fix(execution): clear omitted payload envelope optionals - #3439
Conversation
Signed-off-by: elonfliter <elonfliter@outlook.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 2 included reviews per hour; 1 remains after this review. 📝 WalkthroughWalkthrough
ChangesEngine payload unmarshalling
Estimated code review effort: 1 (Trivial) | ~5 minutes Merge Risk: ⚪ Minimal · up to The change clears omitted optional response fields so reused Engine API payload objects cannot retain stale values from an earlier response. No actionable merge-blocking risk remains beyond normal checks and review. Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3439 +/- ##
==========================================
- Coverage 69.26% 69.25% -0.01%
==========================================
Files 121 121
Lines 11948 11948
==========================================
- Hits 8276 8275 -1
- Misses 3672 3673 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Overview
When an Engine API payload envelope is decoded into a reused object, omitted Requests/Override fields can retain values from an earlier response. I propose clearing those optionals during decoding and adding a regression test in execution/evm.
Clear stale
RequestsandOverrideoptionals when an Engine API payload envelope is reused, and add regression coverage for the reuse case.Summary by CodeRabbit
Bug Fixes
Tests