Uh oh!
There was an error while loading. Please reload this page.
[SPARK-13583][CORE][STREAMING] Remove unused imports and add checkstyle rule - #11438
[SPARK-13583][CORE][STREAMING] Remove unused imports and add checkstyle rule#11438dongjoon-hyun wants to merge 4 commits into
Conversation
srowen
commented
Feb 29, 2016
I'm OK with this. Can we enforce this in Scala too? Since we've bothered to fail the build if imports aren't in the right order I think it's reasonable to enforce removal of unused imports everywhere too. @dongjoon-hyun I think you could add that too if you feel so inclined. If you're busy I might add it to https://issues.apache.org/jira/browse/SPARK-13423 but I like your focused PR here. |
srowen
commented
Feb 29, 2016
Jenkins, test this please |
dongjoon-hyun
commented
Feb 29, 2016
Thank you, @srowen ! By the way, your SPARK-13423 looks great. |
dongjoon-hyun
commented
Mar 1, 2016
Hi, @srowen . |
zsxwing
commented
Mar 1, 2016
FYI because |
dongjoon-hyun
commented
Mar 1, 2016
Oh, thank you for informing that, @zsxwing . By the way, |
dongjoon-hyun
commented
Mar 1, 2016
@srowen , for the scala code, should we take advantage of |
zsxwing
commented
Mar 1, 2016
@dongjoon-hyun I mean |
dongjoon-hyun
commented
Mar 1, 2016
Oh, I see. Then, this PR will not enforce automatically, just helps developers to check before pushing PR. Thank you, @zsxwing ! |
dongjoon-hyun
commented
Mar 1, 2016
Hi, @srowen . |
SparkQA
commented
Mar 1, 2016
Test build #52203 has finished for PR 11438 at commit
|
dongjoon-hyun
commented
Mar 1, 2016
It seems that Jenkins fails due to irrelevant things like the following. Other PRs' test fail with similar logs. Should we wait for a while and re-trigger to test? |
dongjoon-hyun
commented
Mar 1, 2016
Rebased to trigger the Jenkins test. |
srowen
commented
Mar 1, 2016
If you're willing, I think you're welcome to also remove unused Scala imports, even if you can't enforce it. IDEs can make this easy. Yes the test failure looks unrelated. |
srowen
commented
Mar 1, 2016
Jenkins, retest this please |
SparkQA
commented
Mar 1, 2016
Test build #52233 has finished for PR 11438 at commit
|
dongjoon-hyun
commented
Mar 1, 2016
Thank you for the testing, @srowen . Unfortunately, it still fails. |
zsxwing
commented
Mar 1, 2016
ok to test |
dongjoon-hyun
commented
Mar 1, 2016
Thank you, @zsxwing ! |
SparkQA
commented
Mar 2, 2016
Test build #52254 has finished for PR 11438 at commit
|
dongjoon-hyun
commented
Mar 2, 2016
Hi, @srowen . |
dongjoon-hyun
commented
Mar 2, 2016
I've compared the Jenkins logs. My PR hangs at the following test. Other PR passing this test looks like the following. Up to now, I cannot figure out how to make this PR pass the Jenkins. Could you give me some clue? |
srowen
commented
Mar 2, 2016
Yeah I think it's worth biting the bullet and cleaning up imports in one big go for 2.0. |
SparkQA
commented
Mar 2, 2016
Test build #52313 has finished for PR 11438 at commit
|
SparkQA
commented
Mar 2, 2016
Test build #52310 has finished for PR 11438 at commit
|
dongjoon-hyun
commented
Mar 2, 2016
Thank you. I see. I rebased to test one more time. |
SparkQA
commented
Mar 2, 2016
Test build #52323 has finished for PR 11438 at commit
|
After SPARK-6990, `dev/lint-java` keeps Java code healthy and helps PR review by saving much time. This issue aims to enforce `UnusedImports` rule by adding a `UnusedImports` rule to `checkstyle.xml` and fixing all existing unused imports. ./build/sbt compile ./dev/lint-java
SparkQA
commented
Mar 2, 2016
Test build #52333 has finished for PR 11438 at commit
|
SparkQA
commented
Mar 3, 2016
Test build #52340 has finished for PR 11438 at commit
|
UnusedImports Java checkstyle ruledongjoon-hyun
commented
Mar 3, 2016
It passes the test finally. I updated the title and description of this PR and JIRA.
Thanks to your advice and help, I can finish this PR. |
srowen
commented
Mar 3, 2016
Merged to master |
dongjoon-hyun
commented
Mar 3, 2016
Thank you for merging! |
…le rule ## What changes were proposed in this pull request? After SPARK-6990, `dev/lint-java` keeps Java code healthy and helps PR review by saving much time. This issue aims remove unused imports from Java/Scala code and add `UnusedImports` checkstyle rule to help developers. ## How was this patch tested? ``` ./dev/lint-java ./build/sbt compile ``` Author: Dongjoon Hyun <dongjoon@apache.org> Closesapache#11438 from dongjoon-hyun/SPARK-13583.
…rame decoder apache#12038 [EXT][SPARK-13583][CORE][STREAMING] Remove unused imports and add checkstyle rule apache#11438
What changes were proposed in this pull request?
After SPARK-6990,
dev/lint-javakeeps Java code healthy and helps PR review by saving much time.This issue aims remove unused imports from Java/Scala code and add
UnusedImportscheckstyle rule to help developers.How was this patch tested?