-
Notifications
You must be signed in to change notification settings - Fork 28.3k
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-24573][INFRA] Runs SBT checkstyle after the build to work around a side-effect #21579
Conversation
Test build #91979 has started for PR 21579 at commit |
Test build #91980 has finished for PR 21579 at commit
|
Test build #91981 has started for PR 21579 at commit |
Test build #91986 has finished for PR 21579 at commit
|
@@ -366,6 +366,9 @@ def build_spark_assembly_sbt(hadoop_version): | |||
" ".join(profiles_and_goals)) | |||
exec_sbt(profiles_and_goals) | |||
|
|||
if checkstyle: | |||
run_java_style_checks() |
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 takes 2-ish mins now given my past tries.
This reverts commit 14351d6.
Build / checkstyle passed in https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/91981/console |
cc @cloud-fan |
Test build #91988 has started for PR 21579 at commit |
Test build #91989 has started for PR 21579 at commit |
Test build #91987 has finished for PR 21579 at commit
|
^ I just double checked if it affects Unidoc too which we run after the build. |
Any idea why this issue suddenly happens? |
|
This reverts commit 96f5458.
Test build #91997 has finished for PR 21579 at commit
|
retest this please |
Test build #91995 has finished for PR 21579 at commit
|
Test build #91999 has finished for PR 21579 at commit
|
ping @cloud-fan Shall we merge this to unblock the testing of other PRs? |
Let me merge this one. We can revert this at any moment if we see other problems and go another root, for example, clean before assembly. |
Or, please revert this and propose another change if anyone is clear on this. I don't mind. Merged to master. |
Thanks for reviewing this @viirya and @felixcheung. |
thanks for the fix! |
What changes were proposed in this pull request?
Seems checkstyle affects the build in the PR builder in Jenkins. I can't reproduce in my local and seems it can only be reproduced in the PR builder.
I was checking the places it goes through and this is just a speculation that checkstyle's compilation in SBT has a side effect to the assembly build.
This PR proposes to run the SBT checkstyle after the build.
How was this patch tested?
Jenkins tests.