Commit Graph

21 Commits

Author SHA1 Message Date
Benjamin Gilbert
7751296fda tag_release: fix version validation when bumping patch on branch
1632.2.0 -> 1632.2.1 was being rejected.
2018-02-03 01:56:14 -08:00
Benjamin Gilbert
463d191d6b tag_release: by default, prompt before pushing 2017-11-07 16:10:10 -08:00
Benjamin Gilbert
7e93698c9b tag_release: Verify SDK version exists
Some releases may omit the SDK for expediency.
2017-06-29 17:20:29 -07:00
David Michael
47a9913de4 tag_release: branch important projects automatically for alpha tags
Now when an alpha is tagged (i.e. it branches off master.xml), the
manifest repository still gets a tag, a commit on master, and a new
build branch pointing at that commit, but by default an additional
commit is appended to the build branch that branches the projects
coreos-overlay, portage-stable, and scripts in the manifest.  When
given the --push option, a build branch is created in each of these
project repositories so everything is prepared for future minor
releases to build upon.

This is implemented in yet another option so that the previous
behavior is still available, but it probably makes sense to just
hard-code the default behavior of --branch and --branch_projects
and drop those options.
2017-04-18 14:13:45 -07:00
David Michael
1f2a44214c tag_release: always sign release tags 2017-04-03 14:22:01 -07:00
Benjamin Gilbert
7965d657c7 tag_release: Semi-document "keep" argument to --sdk_version 2017-02-27 13:48:44 -08:00
Alex Crawford
95de8f428f tag_release: operate on copy of manifest.xml
Without this, repo will sometimes empty the contents of manifest.xml.
2016-08-24 16:21:23 -07:00
Michael Marineau
31a479553b tag_release: support branches, add a branch tracking manifest
To make branches easier to use this splits the branch manifest into two:
build-????.xml is now only pins revisions of projects that do not have a
corresponding branch (yet) while release.xml pins all revisions. Unlike
before the script can now be used to tag branched releases.

The step to switch any particular project to a branch is still manual
but that will be a simple future expansion. First this will be migrated
to Go though, this script has hit the limit of sophistication that
should be attempted with mixing XML and bash. ;-)
2016-05-15 17:49:43 -07:00
Michael Marineau
f60d2762c2 tag_release: remove old BUILD/BRANCH/PATCH values
These old names are left over from ChromeOS and never really made sense
for us. The last things using them were fixed up a while ago.
2016-05-15 16:28:34 -07:00
Michael Marineau
15988a936a tag_release: drop pushing to old dev-channel branch 2016-05-11 11:09:39 -07:00
Michael Marineau
4815c38194 fix(tag_release): Fix compatibility with portage's config parser
Another fix for 10d98e7. Empty values must be quoted, otherwise the
tokenizer gets confused and everything falls apart. :(
2014-05-04 22:52:53 -07:00
Michael Marineau
06bcb50a5f fix(tag_release): Finish partially completed flag rename.
Didn't quite complete all the renames in 10d98e7, breaking everything...
2014-05-04 22:31:38 -07:00
Michael Marineau
10d98e7b32 fix(common): Switch to os-release style names in version.txt
The existing version.txt is kinda annoying. The common case of referring
to the current version requires joining three values and the names of
those values only make sense in ChromeOS. Instead just use version as a
string, using VERSION, VERSION_ID, and BUILD_ID just as they appear in
os-release. It is up to the few scripts that need the individual parts
to break the version apart.

The old values remain for the sake of compatibility.
2014-04-29 01:44:47 -04:00
Michael Marineau
5c420c188e fix(tag_release): increment minor version if major is unchanged 2014-02-10 15:03:16 -08:00
Michael Marineau
5524a7ce9a fix(common): Define VERSION_ID and BUILD_ID
Scripts can now use COREOS_VERSION_ID to get the base version instead of
having to strip off the BUILD_ID that is appended for unofficial builds.
2014-02-09 13:59:42 -08:00
Michael Marineau
b841916b74 fix(tag_release): Add a few sanity checks.
- it shouldn't be possible to set the SDK version to the same as the new
  tag's version. The SDK must always be a previous build.
- don't fail if there isn't any old manifests to git rm.

There are ways to improve, it'd be sexy if it was truly safe and we
could throw around annoying terms like idempotent to make this kind of
sequence just work but doesn't yet: tag_release; tag_release --push
2013-12-07 23:17:41 -08:00
Michael Marineau
c5c9ea0b9b fix(common.sh): New variables for .cache and .repo/manfests
A number of places refer to these paths and that number is going to
grow. Since the standard pattern is to use environment variables for
commonly used paths it is time to add ones for these:
REPO_CACHE_DIR
REPO_MANIFESTS_DIR
2013-11-22 16:13:49 -08:00
Michael Marineau
e290235b18 fix(tag_release): Fix default SDK version 2013-11-07 12:56:38 -08:00
Michael Marineau
ec62584f8a fix(tag_release): Fix cleanup of old branch manifests. 2013-10-24 11:33:19 -07:00
Michael Marineau
955ad2990b fix(tag_release): Default to bumping the SDK version
This keeps the SDK version by default only one version behind the
current build version.
2013-10-18 16:56:31 -07:00
Michael Marineau
243ab47a87 add(tag_release): Switch to tagging releases off of master. 2013-10-18 16:55:24 -07:00