-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-30482][SQL][CORE][TESTS] Add sub-class of AppenderSkeleton reusable in tests
#27166
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
|
@maropu Please, review the PR. |
|
It follows up #27092 (comment) |
|
Test build #116478 has finished for PR 27166 at commit
|
|
jenkins, retest this, please |
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.
Looks fine if the tests passed, thanks, @MaxGekk ! cc: @dongjoon-hyun @HyukjinKwon
|
Test build #116484 has finished for PR 27166 at commit
|
|
retest this please |
|
Test build #116489 has finished for PR 27166 at commit
|
|
I don't think the failure of python tests is related to the PR. |
|
Test build #116504 has finished for PR 27166 at commit
|
|
The related thread: #27162 |
|
retest this please |
|
Test build #116507 has finished for PR 27166 at commit
|
|
Test build #116539 has finished for PR 27166 at commit
|
|
Retest this please. |
|
Test build #116542 has finished for PR 27166 at commit
|
|
Not sure how it is related to my changes: |
| override def requiresLayout(): Boolean = false | ||
| } | ||
|
|
||
| private def withLogLevelAndAppender(level: Level, appender: Appender)(f: => Unit): Unit = { |
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.
This is removed because the method is not used in the test suite.
|
The difference between the master and this PR is some tests could put more log event in log appender like https://github.com/apache/spark/pull/27166/files#diff-5a20f7138b31f3c344a4af7ab6f426daL45 but log appender should be removed at the end of the test. The problem could happen if a log appender is not removed and continue gather other log events. I will add a check for maximum number of logged events in |
|
Test build #116549 has finished for PR 27166 at commit
|
This reverts commit e17793c.
|
@MaxGekk, I can't take a close look right now but it might be related to the Jenkins machine itself, and it happens consistently in some machines only. This can be checked via Jenkins log. I plan to check it tomorrow but it might be a good hint for you to investigate further. |
|
Test build #116553 has finished for PR 27166 at commit
|
|
jenkins, retest this, please |
|
Test build #116557 has finished for PR 27166 at commit
|
This reverts commit 83b4b70.
|
Test build #116565 has finished for PR 27166 at commit
|
|
I reverted all the changes of this PR, and python tests passed (#27166 (comment)), but when I reverted everything back - the test failed again (#27166 (comment)). At the moment, I cannot figure out how my changes impact on the python test. |
|
retest this please |
|
Should be fixed as of 0823aec ... |
|
Test build #116628 has finished for PR 27166 at commit
|
|
@HyukjinKwon 's fix helped, @maropu this can be merged. |
|
yea, I will, thanks! |
|
Merged to master. |
What changes were proposed in this pull request?
In the PR, I propose to define a sub-class of
AppenderSkeletoninSparkFunSuiteand reuse it from other tests. The class stores incomingLoggingEventin an array which is available to tests for future analysis of logged events.Why are the changes needed?
This eliminates code duplication in tests.
Does this PR introduce any user-facing change?
No
How was this patch tested?
By existing test suites -
CSVSuite,OptimizerLoggingSuite,JoinHintSuite,CodeGenerationSuiteandSQLConfSuite.