Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Unified Diff: tools/bots/dart_sdk.py

Issue 2218723003: Archive SDK by git hash in addition to version number (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/bots/dart_sdk.py
diff --git a/tools/bots/dart_sdk.py b/tools/bots/dart_sdk.py
index 00e7d35db646bf0be42bfbec50ac1f31615276bd..ce1f7944735e8263de50f7f21e8009f522b8c975 100644
--- a/tools/bots/dart_sdk.py
+++ b/tools/bots/dart_sdk.py
@@ -81,8 +81,9 @@ def CreateUploadSDKZips():
def DartArchiveUploadSDKs(system, sdk32_zip, sdk64_zip):
namer = bot_utils.GCSNamer(CHANNEL, bot_utils.ReleaseType.RAW)
- revision = utils.GetArchiveVersion()
- for revision in [revision, 'latest']:
+ git_number = utils.GetArchiveVersion()
kustermann 2016/08/05 11:32:37 Is this really a number of a semantic version? If
Bill Hesse 2016/08/05 22:07:28 This is a consecutive number for 'be', which I wan
+ git_hash = 'hash/' + utils.GetGitRevision()
Bill Hesse 2016/08/05 11:28:11 Should I use 'hash/%s' % instead of 'hash/' +?
kustermann 2016/08/05 11:32:37 Yes, I think this is the "python way" of doing it
+ for revision in [git_number, git_hash, 'latest']:
path32 = namer.sdk_zipfilepath(revision, system, 'ia32', 'release')
path64 = namer.sdk_zipfilepath(revision, system, 'x64', 'release')
DartArchiveFile(sdk32_zip, path32, checksum_files=True)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698