Skip to content

Conversation

@sisihj
Copy link

@sisihj sisihj commented Apr 8, 2015

check -license will passed in next time when rat jar download failed.

Add 2 step to fix this:

  1. Clean the rat.jar if download failed.
  2. Add a check logic after run rat checking.

@AmplabJenkins
Copy link

Can one of the admins verify this patch?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems fine except that this message needs improvement. 'RAT exited abnormally' is probably fine.

@sisihj
Copy link
Author

sisihj commented Apr 9, 2015

@srowen fixed according you comments, pls review.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually I also just noticed that this should be quoted as "$JAR", and above in the unzip command, to take care with paths containing spaces.

@srowen
Copy link
Member

srowen commented Apr 9, 2015

Looking again at the rest of the script, I don't see the point of if [[ ! -f "$rat_jar" ]]; then, since it's redundant with the check that follows. Both enclose the same code (excepting that final print statement, which doesn't matter). @ScrapCodes is that right? 21109fb

@ScrapCodes
Copy link
Member

You are right, that check is just redundant ! + This PR LGTM given the fix that @srowen suggested is done.

@srowen
Copy link
Member

srowen commented Apr 10, 2015

ok to test

@SparkQA
Copy link

SparkQA commented Apr 10, 2015

Test build #30033 has started for PR 5421 at commit 4958302.

@SparkQA
Copy link

SparkQA commented Apr 10, 2015

Test build #30033 has finished for PR 5421 at commit 4958302.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.
  • This patch does not change any dependencies.

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/30033/
Test PASSed.

@asfgit asfgit closed this in 9f5ed99 Apr 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants