test(amber): add unit tests for ErrorUtils#4709
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4709 +/- ##
============================================
- Coverage 42.85% 41.88% -0.97%
- Complexity 2027 2035 +8
============================================
Files 957 978 +21
Lines 34077 34569 +492
Branches 3753 3779 +26
============================================
- Hits 14604 14480 -124
- Misses 18692 19314 +622
+ Partials 781 775 -6
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds a dedicated ScalaTest spec for ErrorUtils, improving unit-test coverage for Amber's shared error-handling helpers. It fits into the Amber backend by validating the formatting, wrapping, and reconstruction behavior used when surfacing runtime failures across worker/controller boundaries.
Changes:
- Add a new
ErrorUtilsSpeccoveringsafely,mkConsoleMessage, andmkControlError. - Add reconstruction/formatting tests for
reconstructThrowableandgetStackTraceWithAllCauses. - Add worker-ID parsing tests for
getOperatorFromActorIdOpt, including empty and fallback cases.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Closes apache#4708 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
71e630e to
92b795f
Compare
aglinxinyuan
approved these changes
May 3, 2026
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 changes were proposed in this PR?
Adds scalatest coverage for
amber/src/main/scala/org/apache/texera/amber/error/ErrorUtils.scala. The module had no dedicated spec.Any related issues, documentation, discussions?
Closes #4708.
How was this PR tested?
Was this PR authored or co-authored using generative AI tooling?
Generated-by: Claude Code (claude-opus-4-7)