Build: Publish SNAPSHOT releases#3353
Conversation
34a4e34 to
8f3ac26
Compare
8f3ac26 to
848b73e
Compare
Thinking on this further, is it correct to say that a nightly build from the master branch is considered a 0.12.1 SNAPSHOT? For the patch release, I had expected we might cherry-pick certain commits and apply them on top of the 0.12.0 release (though I’m not entirely sure if that’s the case or not so please don’t quote me on that - just an assumption on my part). If we don’t always build the next release (specifically point releases) from master, this might confuse some users, particularly those users who integrate Iceberg into their company’s systems and might try out SNAPSHOT releases before a RC is published. I definitely like the idea of publishing SNAPSHOT, but wondering if this will potentially be an issue. |
Going forward, we would probably have to maintain the current development version in a
I'm not entirely sure I can follow here. The latest SNAPSHOT release is whatever is there on |
848b73e to
db44439
Compare
db44439 to
ede5beb
Compare
|
@rdblue suggested that we try and extract the version info from existing tags. It supports searching for tag prefixes via Also |
ede5beb to
3554afb
Compare
dev/source-release.sh
Outdated
|
|
||
| set_version_hash=`git rev-list HEAD 2> /dev/null | head -n 1 ` | ||
| git tag -am "Apache Iceberg $version" $tagrc $set_version_hash | ||
| git tag -a "$tag" -m "Apache Iceberg $version" $tagrc $set_version_hash |
There was a problem hiding this comment.
The tag name is already present later in the command, $tagrc. And the git docs don't say that -a takes any arguments. When I run a test of this, it fails with fatal: too many params, so I don't think that this actually works because it is adding a tag name multiple times.
It looks like you're trying to work around one of two things:
- The tag isn't on the master branch, it is on the commit that adds
verison.txtthat is never in master - The tag name includes the
-rcXsuffix
I think it is more likely that you're working around the first because we add a new tag without the -rcX suffix when the release is final. You can see an example here: https://github.com/apache/iceberg/releases/tag/apache-iceberg-0.12.0
There was a problem hiding this comment.
you're right, I don't know why I ended up assuming that the tagging annotation part was wrong
e55e048 to
5646383
Compare
5646383 to
a43219a
Compare
|
@nastra and I talked on Slack and created a |
|
Thanks, @nastra! |
The idea is that we do
x.y.z-SNAPSHOTreleases whenever something is pushed tomaster. This requires that we haveNEXUS_USER/NEXUS_PWsecrets stored.I also created https://issues.apache.org/jira/browse/INFRA-22437 in order to have a general Maven user/password for publishing the snapshots.