EW-6888 Improve finishScheduled() outcome reporting#6606
Conversation
There was a problem hiding this comment.
I'm Bonk, and I've done a quick review of your PR.
This PR changes finishScheduled() to return EventOutcome directly instead of the internal FinishScheduledResult enum, improving outcome reporting by propagating richer error information from outcomeFromException().
Issues found (ranked by severity):
- [HIGH] All three new
DetailTypeIdconstants are placeholder0x0ull— they collide with each other and will cause incorrect dispatching inoutcomeFromException(). - [MEDIUM] Leftover commented-out code and bare
// TODOcomments appear to be debug artifacts that should not be merged. - [LOW] The
outcomeFromExceptionfunction takes a non-const lvalue reference but doesn't modify the exception — should beconst.
This review was generated by an AI assistant and may contain inaccuracies.
|
Review posted on PR #6606 with 4 inline comments. Summary of findings:
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #6606 +/- ##
==========================================
+ Coverage 66.55% 66.58% +0.02%
==========================================
Files 402 402
Lines 115890 115858 -32
Branches 19405 19396 -9
==========================================
+ Hits 77131 77142 +11
+ Misses 27188 27143 -45
- Partials 11571 11573 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
e236918 to
bdfac0b
Compare
Merging this PR will not alter performance
Comparing Footnotes
|
bdfac0b to
2224fd6
Compare
15e8a2d to
2b8e6ca
Compare
2b8e6ca to
e85d996
Compare
e85d996 to
a7c34a1
Compare
Fixes a number of footguns that could lead to misleading event outcomes being reported for all events that use finishScheduled() (scheduled, queue, test etc.):
For context, see the recent outcome related changes (#6668, #6589, #6542) as well as the corresponding downstream PRs.