-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Site: Troubleshooting/Website publishing improvements in release guide #3517
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -806,7 +806,7 @@ git clean -xn | |
./gradlew prepareVote -Prc=0 | ||
|
||
# Push release candidate to ASF servers | ||
./gradlew prepareVote -Prc=0 -Pasf -Pasf.git.pushRepositoryProvider=GITBOX | ||
./gradlew prepareVote -Prc=0 -Pasf -Pasf.git.pushRepositoryProvider=GITHUB | ||
{% endhighlight %} | ||
|
||
#### Troubleshooting | ||
|
@@ -927,12 +927,6 @@ thread to discuss. | |
Julian | ||
{% endhighlight %} | ||
|
||
Use the [Apache URL shortener](https://s.apache.org) to generate | ||
shortened URLs for the vote proposal and result emails. Examples: | ||
[s.apache.org/calcite-1.2-vote](https://s.apache.org/calcite-1.2-vote) and | ||
[s.apache.org/calcite-1.2-result](https://s.apache.org/calcite-1.2-result). | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It seems there are no steps need to use this, I propose to remove it to make the document clean. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. +1, Since the release script generates the emails, I think most RMs will just copy that verbatim, so the shortening of links seem redundant. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. My understanding is that these steps are for creating mnemonic URLs that people can easily find and refer to it in future. I don't think was ever meant to be used for the voting process it self but for later reference to it if needed. I don't have a strong opinion on keeping or removing them but they do serve a purpose. For instance, typing the following just works and brings me what I need: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I also agree that it served for some purpose. The problem now is that it sometimes confuses new RMs (this has happened during 1.35.0 releasing: https://lists.apache.org/thread/nv2xclvgrw84866o0q2ngdx4c2dg6pqq). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If the explanation that I gave above clarifies a bit the situation then we could enrich the doc accordingly. If you feel that there might be still confusion then feel free to remove the section altogether. |
||
|
||
|
||
## Publishing a release | ||
|
||
After a successful release vote, we need to push the release | ||
|
@@ -948,14 +942,23 @@ Remember that UTC date changes at 4 pm Pacific time. | |
./gradlew publishDist -Prc=0 | ||
|
||
# Publish the release to ASF servers | ||
./gradlew publishDist -Prc=0 -Pasf -Pasf.git.pushRepositoryProvider=GITBOX | ||
./gradlew publishDist -Prc=0 -Pasf -Pasf.git.pushRepositoryProvider=GITHUB | ||
{% endhighlight %} | ||
|
||
If for whatever reason the `publishDist` task fails | ||
(e.g. [failed to release nexus repository](https://github.com/vlsi/vlsi-release-plugins/issues/64), | ||
it is still possible to perform the publishing tasks manually. Ask for help in the dev list if | ||
you are not sure what needs to be done. | ||
|
||
If the `releaseRepository` task prints something like: | ||
{% highlight text%} | ||
> Task :releaseRepository | ||
Initialized stagingRepositoryId orgapachecalcite-1219 for repository nexus | ||
GET request failed. 404: Not Found, body: [errors:[[id:*, msg:No such repository: orgapachecalcite-1219]]] | ||
Requested operation was executed successfully in attempt 83 (maximum allowed 601) | ||
{% endhighlight %} | ||
it's most likely that the repository has been successfully released, you can check it in [ASF Nexus](https://repository.apache.org/). | ||
|
||
Svnpubsub will publish to the | ||
[release repo](https://dist.apache.org/repos/dist/release/calcite) and propagate to the | ||
[mirrors](https://www.apache.org/dyn/closer.cgi/calcite) almost immediately. | ||
|
@@ -983,7 +986,9 @@ Add a release announcement by copying | |
[site/_posts/2016-10-12-release-1.10.0.md]({{ site.sourceRoot }}/site/_posts/2016-10-12-release-1.10.0.md), | ||
and adapt the release date in `history.md` if necessary. Preview the changes locally, by following the | ||
instructions in [site/README.md]({{ site.sourceRoot }}/site/README.md), and then commit and push | ||
the changes to the `main` branch. | ||
the changes to the `main` branch. Please note that due to [CALCITE-5584](https://issues.apache.org/jira/browse/CALCITE-5584), | ||
the commit should be pushed to Github as the last commit, do not chain it with "Prepare for next development iteration" | ||
commit. | ||
|
||
Ensure that all changes to the website (news, release notes, javadoc) are correctly displayed. | ||
|
||
|
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.
Throws following exception with
GITBOX
: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.
For avatica, I also have
-Pasf.git.pushRepositoryProvider=GITBOX
in the release script: https://github.com/apache/calcite-avatica/blob/main/docker.sh#L298I haven't used this recently, so not sure if it still works.
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.
CC @NobiGo @zabetak since you are the latest release managers.
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.
The
asf.git.pushRepositoryProvider
should be inline withasfGitSourceUsername
andasfGitSourcePassword
. If you are usingGITBOX
then you should use the ASF credentials; if you useGITHUB
you should use the GitHub credentials. I assume both providers should work fine if the correct credentials are set.I think there were some misconception that GITHUB was not working in the past (https://issues.apache.org/jira/browse/CALCITE-4856) but I suspect that the underlying reason was the same (mixing ASF vs. GitHub credentials).
If we want to improve something it makes sense to clarify somewhere this story about the different credentials and not just change again the default values.
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.
I was following this line to setup the environment:
calcite/site/_docs/howto.md
Lines 686 to 687 in 816edd1
I thought this is the suggested way to interact with Git. (Actually I'm not sure how to setup Gitbox credentials, I guess
asfGitSourcePassword
is the apache password which is the same withasfNexusPassword
andasfSvnPassword
?)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.
Yes, the Gitbox credentials is the usual username and password combination that is used to access most (if not all) ASF services.
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.
I'll leave the default as 'GITBOX', and add more comments about it.