-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-41109][CORE][FOLLOWUP] Re-order error class to fix SparkThrowableSuite
#38658
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
cc @MaxGekk @dongjoon-hyun @HyukjinKwon @srowen @panbingkun for fix GA Task: https://github.com/LuciferYang/spark/actions/runs/3459895559/jobs/5775820010 |
SparkThrowableSuite
SparkThrowableSuite SparkThrowableSuite
|
Thanks for the fix this. Do you know why this suddenly start failing? |
|
Still under investigation. It should have been discovered very early |
itholic
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM when test passed
It seems that incremental testing is triggered after code merging into the master. After #38615 merging, there is a code style issue, which is fixed by #38645. However, the merging of #38645 and #38626 is not determined to have Therefore, the testing of The evidence is that I found the following log in the latest and only tested |
|
friendly ping @cloud-fan |
MaxGekk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
... to make GA task failed.
@LuciferYang In the PR, could you change this to to make GA task passed.
|
+1, LGTM. Merging to master. I have checked the test suite locally: Thank you, @LuciferYang and @cloud-fan @itholic for review. |
|
Thanks @MaxGekk @cloud-fan @itholic |
HyukjinKwon
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks. I was actually looking into these errors.
…ableSuite`
### What changes were proposed in this pull request?
This pr aims to fix error class order of `ESC_IN_THE_MIDDLE` and `ESC_AT_THE_END` to make GA task passed.
### Why are the changes needed?
Fix GA test task failed.
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
- Pass GA
- Manual test:
```
build/sbt "core/testOnly *SparkThrowableSuite"
```
**Before**
```
[info] - Error classes are correctly formatted *** FAILED *** (91 milliseconds)
[info] "...ass" : {
[info] "ESC_[AT_THE_END" : {
[info] "message" : [
[info] "the escape character is not allowed to end with."
[info] ]
[info] },
[info] "ESC_IN_THE_MIDDLE" : {
[info] "message" : [
[info] "the escape character is not allowed to precede <char>]."
[info] ]
[info] }..." did not equal "...ass" : {
[info] "ESC_[IN_THE_MIDDLE" : {
[info] "message" : [
[info] "the escape character is not allowed to precede <char>."
[info] ]
[info] },
[info] "ESC_AT_THE_END" : {
[info] "message" : [
[info] "the escape character is not allowed to end with]."
[info] ]
[info] }..." (SparkThrowableSuite.scala:98)
```
**After**
```
[info] SparkThrowableSuite:
[info] - No duplicate error classes (39 milliseconds)
[info] - Error classes are correctly formatted (61 milliseconds)
[info] - SQLSTATE invariants (13 milliseconds)
[info] - Message invariants (15 milliseconds)
[info] - Message format invariants (33 milliseconds)
[info] - Round trip (33 milliseconds)
[info] - Check if error class is missing (32 milliseconds)
[info] - Check if message parameters match message format (8 milliseconds)
[info] - Error message is formatted (1 millisecond)
[info] - Try catching legacy SparkError (1 millisecond)
[info] - Try catching SparkError with error class (1 millisecond)
[info] - Try catching internal SparkError (1 millisecond)
[info] - Get message in the specified format (15 milliseconds)
[info] - overwrite error classes (190 milliseconds)
[info] - prohibit dots in error class names (57 milliseconds)
[info] Run completed in 2 seconds, 317 milliseconds.
[info] Total number of tests run: 15
[info] Suites: completed 1, aborted 0
[info] Tests: succeeded 15, failed 0, canceled 0, ignored 0, pending 0
[info] All tests passed.
[success] Total time: 16 s, completed 2022-11-14 19:34:11
```
Closes apache#38658 from LuciferYang/SPARK-41109-FOLLOWUP.
Authored-by: yangjie01 <[email protected]>
Signed-off-by: Max Gekk <[email protected]>
What changes were proposed in this pull request?
This pr aims to fix error class order of
ESC_IN_THE_MIDDLEandESC_AT_THE_ENDto make GA task passed.Why are the changes needed?
Fix GA test task failed.
Does this PR introduce any user-facing change?
No
How was this patch tested?
Before
After