-
Notifications
You must be signed in to change notification settings - Fork 28.5k
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
[SPARK-7444][Tests] Eliminate noisy css warn/error logs for UISeleniumSuite #5983
Conversation
@@ -31,7 +31,7 @@ | |||
} | |||
|
|||
.tooltip-inner { | |||
max-width: 500px !important; // Make sure we only have one line tooltip |
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.
I just found this incorrect comment as per the error log. So I think we should not totally turn off all logs. That's why this PR only ignores logs from "bootstrap.min.css" and "vis.min.css".
Merged build triggered. |
Merged build started. |
Test build #32125 has started for PR 5983 at commit |
Can you elaborate a little on what the |
webDriver = new HtmlUnitDriver | ||
webDriver = new HtmlUnitDriver { | ||
|
||
getWebClient.setCssErrorHandler(new DefaultCssErrorHandler { |
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 new handler's code is triplicated. Cant you just define a class?
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.
Is there a place for common test classes for all projects?
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.
We can put the test class into core then have the other projects declare a test-jar test dependency on core. I think that SQL uses this pattern to share test code between SQL core and catalyst.
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.
Does Core build a test-jar now?
@tdas DefaultCssErrorHandler outputs all css warn/error logs. This PR just changes its behavior to: if the warn/error is from "bootstrap.min.css" and "vis.min.css", which should be a false alarm, just ignore it. |
Test build #32125 has finished for PR 5983 at commit
|
Merged build finished. Test PASSed. |
Test PASSed. |
@zsxwing Maybe we could define a log level instead of whitelist? |
@tianyi here I just ignored the trusted libraries's filename, "bootstrap.min.css" and "vis.min.css". I'm also against ignoring all CSS filenames.
Which level are you suggesting? They are "WARN". I cannot find a better level for it. |
Merged build triggered. |
Merged build started. |
Test build #32248 has started for PR 5983 at commit |
Test build #32248 has finished for PR 5983 at commit
|
Merged build finished. Test PASSed. |
Test PASSed. |
Merged build triggered. |
Merged build started. |
Test build #34452 has started for PR 5983 at commit |
Test build #34452 has finished for PR 5983 at commit
|
Merged build finished. Test PASSed. |
Thanks, merging to master! |
…umSuite Eliminate the following noisy logs for `UISeleniumSuite`: ``` 15/05/07 10:09:50.196 pool-1-thread-1-ScalaTest-running-UISeleniumSuite WARN DefaultCssErrorHandler: CSS error: 'http://192.168.0.170:4040/static/bootstrap.min.css' [793:167] Error in style rule. (Invalid token "*". Was expecting one of: <EOF>, <S>, <IDENT>, "}", ";".) 15/05/07 10:09:50.196 pool-1-thread-1-ScalaTest-running-UISeleniumSuite WARN DefaultCssErrorHandler: CSS warning: 'http://192.168.0.170:4040/static/bootstrap.min.css' [793:167] Ignoring the following declarations in this rule. 15/05/07 10:09:50.197 pool-1-thread-1-ScalaTest-running-UISeleniumSuite WARN DefaultCssErrorHandler: CSS error: 'http://192.168.0.170:4040/static/bootstrap.min.css' [799:325] Error in style rule. (Invalid token "*". Was expecting one of: <EOF>, <S>, <IDENT>, "}", ";".) 15/05/07 10:09:50.197 pool-1-thread-1-ScalaTest-running-UISeleniumSuite WARN DefaultCssErrorHandler: CSS warning: 'http://192.168.0.170:4040/static/bootstrap.min.css' [799:325] Ignoring the following declarations in this rule. 15/05/07 10:09:50.198 pool-1-thread-1-ScalaTest-running-UISeleniumSuite WARN DefaultCssErrorHandler: CSS error: 'http://192.168.0.170:4040/static/bootstrap.min.css' [805:18] Error in style rule. (Invalid token "*". Was expecting one of: <EOF>, <S>, <IDENT>, "}", ";".) 15/05/07 10:09:50.198 pool-1-thread-1-ScalaTest-running-UISeleniumSuite WARN DefaultCssErrorHandler: CSS warning: 'http://192.168.0.170:4040/static/bootstrap.min.css' [805:18] Ignoring the following declarations in this rule. ``` Author: zsxwing <zsxwing@gmail.com> Closes apache#5983 from zsxwing/SPARK-7444 and squashes the following commits: 4202728 [zsxwing] Add SparkUICssErrorHandler for all tests d1398ad [zsxwing] Merge remote-tracking branch 'origin/master' into SPARK-7444 7bb7f11 [zsxwing] Merge branch 'master' into SPARK-7444 a59f40e [zsxwing] Eliminate noisy css warn/error logs for UISeleniumSuite
Eliminate the following noisy logs for
UISeleniumSuite
: