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

Side by Side Diff: tools/release/test_scripts.py

Issue 869613007: Retrieve recent v8 release information based on tags. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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 unified diff | Download patch
« no previous file with comments | « tools/release/releases.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2013 the V8 project authors. All rights reserved. 2 # Copyright 2013 the V8 project authors. All rights reserved.
3 # Redistribution and use in source and binary forms, with or without 3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions are 4 # modification, are permitted provided that the following conditions are
5 # met: 5 # met:
6 # 6 #
7 # * Redistributions of source code must retain the above copyright 7 # * Redistributions of source code must retain the above copyright
8 # notice, this list of conditions and the following disclaimer. 8 # notice, this list of conditions and the following disclaimer.
9 # * Redistributions in binary form must reproduce the above 9 # * Redistributions in binary form must reproduce the above
10 # copyright notice, this list of conditions and the following 10 # copyright notice, this list of conditions and the following
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 # due to clustefuzz results. 400 # due to clustefuzz results.
401 return [] 401 return []
402 402
403 def Sleep(self, seconds): 403 def Sleep(self, seconds):
404 pass 404 pass
405 405
406 def GetDate(self): 406 def GetDate(self):
407 return "1999-07-31" 407 return "1999-07-31"
408 408
409 def GetUTCStamp(self): 409 def GetUTCStamp(self):
410 return "100000" 410 return "1000000"
411 411
412 def Expect(self, *args): 412 def Expect(self, *args):
413 """Convenience wrapper.""" 413 """Convenience wrapper."""
414 self._mock.Expect(*args) 414 self._mock.Expect(*args)
415 415
416 def setUp(self): 416 def setUp(self):
417 self._mock = SimpleMock() 417 self._mock = SimpleMock()
418 self._tmp_files = [] 418 self._tmp_files = []
419 self._state = {} 419 self._state = {}
420 TEST_CONFIG["DEFAULT_CWD"] = self.MakeEmptyTempDirectory() 420 TEST_CONFIG["DEFAULT_CWD"] = self.MakeEmptyTempDirectory()
(...skipping 805 matching lines...) Expand 10 before | Expand all | Expand 10 after
1226 1226
1227 def ResetDEPS(revision): 1227 def ResetDEPS(revision):
1228 return lambda: WriteDEPS(revision) 1228 return lambda: WriteDEPS(revision)
1229 1229
1230 self.Expect([ 1230 self.Expect([
1231 Cmd("git status -s -uno", ""), 1231 Cmd("git status -s -uno", ""),
1232 Cmd("git status -s -b -uno", "## some_branch\n"), 1232 Cmd("git status -s -b -uno", "## some_branch\n"),
1233 Cmd("git fetch", ""), 1233 Cmd("git fetch", ""),
1234 Cmd("git branch", " branch1\n* branch2\n"), 1234 Cmd("git branch", " branch1\n* branch2\n"),
1235 Cmd("git new-branch %s" % TEST_CONFIG["BRANCHNAME"], ""), 1235 Cmd("git new-branch %s" % TEST_CONFIG["BRANCHNAME"], ""),
1236 Cmd("git branch -r", " branch-heads/3.21\n branch-heads/3.3\n"), 1236 Cmd("git fetch origin +refs/tags/*:refs/tags/*", ""),
1237 Cmd("git reset --hard branch-heads/3.3", ""), 1237 Cmd("git rev-list --max-age=395200 --tags",
1238 Cmd("git log --format=%H", "hash1\nhash_234"), 1238 "bad_tag\nhash_234\nhash_123\nhash_345\n"),
1239 Cmd("git diff --name-only hash1 hash1^", ""), 1239 Cmd("git describe --tags bad_tag", "3.23.42-1-deadbeef"),
1240 Cmd("git describe --tags hash_234", "3.3.1.1"),
1241 Cmd("git describe --tags hash_123", "3.21.2"),
1242 Cmd("git describe --tags hash_345", "3.22.3"),
1240 Cmd("git diff --name-only hash_234 hash_234^", VERSION_FILE), 1243 Cmd("git diff --name-only hash_234 hash_234^", VERSION_FILE),
1241 Cmd("git checkout -f hash_234 -- %s" % VERSION_FILE, "", 1244 Cmd("git checkout -f hash_234 -- %s" % VERSION_FILE, "",
1242 cb=ResetVersion(3, 1, 1)), 1245 cb=ResetVersion(3, 1, 1)),
1246 Cmd("git branch -r --contains hash_234", " branch-heads/3.3\n"),
1243 Cmd("git log -1 --format=%B hash_234", c_hash_234_commit_log), 1247 Cmd("git log -1 --format=%B hash_234", c_hash_234_commit_log),
1244 Cmd("git log -1 --format=%s hash_234", ""), 1248 Cmd("git log -1 --format=%s hash_234", ""),
1245 Cmd("git log -1 --format=%B hash_234", c_hash_234_commit_log), 1249 Cmd("git log -1 --format=%B hash_234", c_hash_234_commit_log),
1246 Cmd("git log -1 --format=%ci hash_234", "18:15"), 1250 Cmd("git log -1 --format=%ci hash_234", "18:15"),
1247 Cmd("git checkout -f HEAD -- %s" % VERSION_FILE, "", 1251 Cmd("git checkout -f HEAD -- %s" % VERSION_FILE, "",
1248 cb=ResetVersion(22, 5)), 1252 cb=ResetVersion(22, 5)),
1249 Cmd("git reset --hard branch-heads/3.21", ""), 1253
1250 Cmd("git log --format=%H", "hash_123\nhash4\nhash5\n"),
1251 Cmd("git diff --name-only hash_123 hash_123^", VERSION_FILE), 1254 Cmd("git diff --name-only hash_123 hash_123^", VERSION_FILE),
1252 Cmd("git checkout -f hash_123 -- %s" % VERSION_FILE, "", 1255 Cmd("git checkout -f hash_123 -- %s" % VERSION_FILE, "",
1253 cb=ResetVersion(21, 2)), 1256 cb=ResetVersion(21, 2)),
1257 Cmd("git branch -r --contains hash_123", " branch-heads/3.21\n"),
1254 Cmd("git log -1 --format=%B hash_123", c_hash_123_commit_log), 1258 Cmd("git log -1 --format=%B hash_123", c_hash_123_commit_log),
1255 Cmd("git log -1 --format=%s hash_123", ""), 1259 Cmd("git log -1 --format=%s hash_123", ""),
1256 Cmd("git log -1 --format=%B hash_123", c_hash_123_commit_log), 1260 Cmd("git log -1 --format=%B hash_123", c_hash_123_commit_log),
1257 Cmd("git log -1 --format=%ci hash_123", "03:15"), 1261 Cmd("git log -1 --format=%ci hash_123", "03:15"),
1258 Cmd("git checkout -f HEAD -- %s" % VERSION_FILE, "", 1262 Cmd("git checkout -f HEAD -- %s" % VERSION_FILE, "",
1259 cb=ResetVersion(22, 5)), 1263 cb=ResetVersion(22, 5)),
1260 Cmd("git reset --hard origin/candidates", ""), 1264
1261 Cmd("git log --format=%H", "hash_345\n"),
1262 Cmd("git diff --name-only hash_345 hash_345^", VERSION_FILE), 1265 Cmd("git diff --name-only hash_345 hash_345^", VERSION_FILE),
1263 Cmd("git checkout -f hash_345 -- %s" % VERSION_FILE, "", 1266 Cmd("git checkout -f hash_345 -- %s" % VERSION_FILE, "",
1264 cb=ResetVersion(22, 3)), 1267 cb=ResetVersion(22, 3)),
1268 Cmd("git branch -r --contains hash_345", " origin/candidates\n"),
1265 Cmd("git log -1 --format=%B hash_345", c_hash_345_commit_log), 1269 Cmd("git log -1 --format=%B hash_345", c_hash_345_commit_log),
1266 Cmd("git log -1 --format=%s hash_345", ""), 1270 Cmd("git log -1 --format=%s hash_345", ""),
1267 Cmd("git log -1 --format=%B hash_345", c_hash_345_commit_log), 1271 Cmd("git log -1 --format=%B hash_345", c_hash_345_commit_log),
1268 Cmd("git log -1 --format=%ci hash_345", ""), 1272 Cmd("git log -1 --format=%ci hash_345", ""),
1269 Cmd("git checkout -f HEAD -- %s" % VERSION_FILE, "", 1273 Cmd("git checkout -f HEAD -- %s" % VERSION_FILE, "",
1270 cb=ResetVersion(22, 5)), 1274 cb=ResetVersion(22, 5)),
1271 Cmd("git reset --hard origin/master", ""),
1272 Cmd("git status -s -uno", "", cwd=chrome_dir), 1275 Cmd("git status -s -uno", "", cwd=chrome_dir),
1273 Cmd("git checkout -f master", "", cwd=chrome_dir), 1276 Cmd("git checkout -f master", "", cwd=chrome_dir),
1274 Cmd("git pull", "", cwd=chrome_dir), 1277 Cmd("git pull", "", cwd=chrome_dir),
1275 Cmd("git new-branch %s" % TEST_CONFIG["BRANCHNAME"], "", 1278 Cmd("git new-branch %s" % TEST_CONFIG["BRANCHNAME"], "",
1276 cwd=chrome_dir), 1279 cwd=chrome_dir),
1277 Cmd("git fetch origin", "", cwd=chrome_v8_dir), 1280 Cmd("git fetch origin", "", cwd=chrome_v8_dir),
1278 Cmd("git log --format=%H --grep=\"V8\"", "c_hash1\nc_hash2\nc_hash3\n", 1281 Cmd("git log --format=%H --grep=\"V8\"", "c_hash1\nc_hash2\nc_hash3\n",
1279 cwd=chrome_dir), 1282 cwd=chrome_dir),
1280 Cmd("git diff --name-only c_hash1 c_hash1^", "", cwd=chrome_dir), 1283 Cmd("git diff --name-only c_hash1 c_hash1^", "", cwd=chrome_dir),
1281 Cmd("git diff --name-only c_hash2 c_hash2^", "DEPS", cwd=chrome_dir), 1284 Cmd("git diff --name-only c_hash2 c_hash2^", "DEPS", cwd=chrome_dir),
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
1380 1383
1381 Review URL: https://codereview.chromium.org/83173002 1384 Review URL: https://codereview.chromium.org/83173002
1382 1385
1383 ------------------------------------------------------------------------""") 1386 ------------------------------------------------------------------------""")
1384 self.assertEquals( 1387 self.assertEquals(
1385 """Prepare push to trunk. Now working on version 3.23.11. 1388 """Prepare push to trunk. Now working on version 3.23.11.
1386 1389
1387 R=danno@chromium.org 1390 R=danno@chromium.org
1388 1391
1389 Committed: https://code.google.com/p/v8/source/detail?r=17997""", body) 1392 Committed: https://code.google.com/p/v8/source/detail?r=17997""", body)
OLDNEW
« no previous file with comments | « tools/release/releases.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698