Skip to content

Conversation

@ScrapCodes
Copy link
Member

@ScrapCodes ScrapCodes commented Aug 6, 2020

What changes were proposed in this pull request?

  1. URL encode the ASF_PASSWORD of the release manager.
  2. Update the image to install qpdf and jq dep
  3. Increase the JVM HEAM memory for maven build.

Why are the changes needed?

Release script takes hours to run, and if a single failure happens about somewhere midway, then either one has to get down to manually doing stuff or re run the entire script. (This is my understanding) So, I have made the fixes of a few failures, discovered so far.

  1. If the release manager password contains a char, that is not allowed in URL, then it fails the build at the clone spark step.
    git clone "https://$ASF_USERNAME:$ASF_PASSWORD@$ASF_SPARK_REPO" -b $GIT_BRANCH

       ^^^ Fails with bad URL
    

ASF_USERNAME may not be URL encoded, but we need to encode ASF_PASSWORD.

Does this PR introduce any user-facing change?

No

How was this patch tested?

By running the release for branch-2.4, using both type of passwords, i.e. passwords with special chars and without it.

@ScrapCodes
Copy link
Member Author

@zhengruifeng Hi, it might be useful for you, as you are working on 3.0.1 release.

@SparkQA
Copy link

SparkQA commented Aug 6, 2020

Test build #127131 has finished for PR 29373 at commit 78d12b3.

  • This patch fails due to an unknown error code, -9.
  • This patch merges cleanly.
  • This patch adds no public classes.

```
[INFO] Spark Integration for Kafka 0.10 ................... SUCCESS [ 57.801 s]
[INFO] Kafka 0.10+ Source for Structured Streaming ........ SUCCESS [01:13 min]
[INFO] Spark Kinesis Integration .......................... SUCCESS [ 59.862 s]
[INFO] Spark Project Examples ............................. SUCCESS [02:10 min]
[INFO] Spark Integration for Kafka 0.10 Assembly .......... SUCCESS [ 45.454 s]
[INFO] Spark Avro ......................................... SUCCESS [01:58 min]
[INFO] Spark Project External Flume Sink .................. SUCCESS [01:34 min]
[INFO] Spark Project External Flume ....................... FAILURE [20:04 min]
[INFO] Spark Project External Flume Assembly .............. SKIPPED
[INFO] Spark Project Kinesis Assembly 2.4.7 ............... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 54:10 min
[INFO] Finished at: 2020-08-06T10:10:12Z
[INFO] ------------------------------------------------------------------------
[ERROR] Java heap space -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/OutOfMemoryError

```
@SparkQA
Copy link

SparkQA commented Aug 6, 2020

Test build #127139 has finished for PR 29373 at commit 0edf23e.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

Copy link
Member

@HyukjinKwon HyukjinKwon left a comment

Choose a reason for hiding this comment

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

Looks good

@asfgit asfgit closed this in 6c3d0a4 Aug 7, 2020
asfgit pushed a commit that referenced this pull request Aug 7, 2020
…where required

### What changes were proposed in this pull request?
1. URL encode the `ASF_PASSWORD` of the release manager.
2. Update the image to install `qpdf` and `jq` dep
3. Increase the JVM HEAM memory for maven build.

### Why are the changes needed?
Release script takes hours to run, and if a single failure happens about somewhere midway, then either one has to get down to manually doing stuff or re run the entire script. (This is my understanding) So, I have made the fixes of a few failures, discovered so far.

1. If the release manager password contains a char, that is not allowed in URL, then it fails the build at the clone spark step.
`git clone "https://$ASF_USERNAME:$ASF_PASSWORD$ASF_SPARK_REPO" -b $GIT_BRANCH`

          ^^^ Fails with bad URL

`ASF_USERNAME` may not be URL encoded, but we need to encode `ASF_PASSWORD`.

### Does this PR introduce _any_ user-facing change?
No

### How was this patch tested?
By running the release for branch-2.4, using both type of passwords, i.e. passwords with special chars and without it.

Closes #29373 from ScrapCodes/release-script-fix2.

Lead-authored-by: Prashant Sharma <[email protected]>
Co-authored-by: Prashant Sharma <[email protected]>
Signed-off-by: Prashant Sharma <[email protected]>
(cherry picked from commit 6c3d0a4)
Signed-off-by: Prashant Sharma <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants