Skip to content
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-31860][BUILD] only push release tags on succes #28700

Conversation

holdenk
Copy link
Contributor

@holdenk holdenk commented Jun 1, 2020

What changes were proposed in this pull request?

Only push the release tag after the build has finished.

Why are the changes needed?

If the build fails we don't need a release tag.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Running locally with a fake user in #28667

@holdenk
Copy link
Contributor Author

holdenk commented Jun 2, 2020

cc @dongjoon-hyun here's the master PR

@dongjoon-hyun
Copy link
Member

Thank you, @holdenk .

@dongjoon-hyun
Copy link
Member

cc @dbtsai

@dongjoon-hyun dongjoon-hyun changed the title [SPARK-31860][BUILD][master] only push release tags on succes [SPARK-31860][BUILD] only push release tags on succes Jun 2, 2020
@dbtsai
Copy link
Member

dbtsai commented Jun 2, 2020

LGTM.

@SparkQA
Copy link

SparkQA commented Jun 2, 2020

Test build #123402 has finished for PR 28700 at commit b38181d.

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

@AmplabJenkins
Copy link

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

@asfgit asfgit closed this in 69ba9b6 Jun 2, 2020
asfgit pushed a commit that referenced this pull request Jun 2, 2020
### What changes were proposed in this pull request?

Only push the release tag after the build has finished.

### Why are the changes needed?

If the build fails we don't need a release tag.

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

### How was this patch tested?
Running locally with a fake user in #28667

Closes #28700 from holdenk/SPARK-31860-build-master-only-push-tags-on-success.

Authored-by: Holden Karau <hkarau@apple.com>
Signed-off-by: Holden Karau <hkarau@apple.com>
(cherry picked from commit 69ba9b6)
Signed-off-by: Holden Karau <hkarau@apple.com>
@cloud-fan
Copy link
Contributor

with this patch, does it mean we have to re-do all the release steps if one step failed?

@holdenk
Copy link
Contributor Author

holdenk commented Jun 6, 2020 via email

@cloud-fan
Copy link
Contributor

We only need to re-do all the release steps if the commit of the RC is problematic (e.g. fails the tests). Otherwise, it's OK to push the RC git tag first. When running the release script, it's possible that one step fails with some transient error like a network issue, and it's really a waste of time to re-run all the steps. The script provides the -s option to only run a single step, which can save a lot of time if only one step fails.

I had to revert this commit when I was helping @rxin to cut the RC, as I hit transient errors quite a bit. I think it's very uncommon that we cut the RC tag with a wrong commit, but if it happens, I think it's OK to start the next RC immediately.

Shall we revert it?

@dongjoon-hyun
Copy link
Member

dongjoon-hyun commented Jun 11, 2020

@cloud-fan . Yes, it does. BTW, this was merged to branch-2.4 first when @holdenk did 2.4.6 and you also agreed like the following at that time. And, this PR is a forward port after merging to branch-2.4 to unblock her. (also cc @srowen )

If this patch doesn't fit branch-3.0 due to branch-3.0's flakiness, I'm +1 for @cloud-fan 's request. These release scripts exist to help release managers. 3.0 release managers can do anything on those release scripts if they don't touch branch-2.4.

@holdenk
Copy link
Contributor Author

holdenk commented Jun 11, 2020

If this makes it harder for rolling a release yes lets revert. During the 2.4.6 RC process I ran into non-transient issues with the release process locally that hadn't shown up in Jenkins so we had some "junk" tags pushed and I was trying to avoid that case.

@cloud-fan
Copy link
Contributor

I've reverted it from master/3.0, thanks for the understanding!

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.

7 participants