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

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

Issue 1077633002: [release-tools] Make chromium roll more robust after failing rolls. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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
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 996 matching lines...) Expand 10 before | Expand all | Expand 10 after
1007 Cmd("git fetch origin", ""), 1007 Cmd("git fetch origin", ""),
1008 Cmd("git fetch origin +refs/tags/*:refs/tags/*", ""), 1008 Cmd("git fetch origin +refs/tags/*:refs/tags/*", ""),
1009 Cmd("git log -1 --format=%s roll_hsh", 1009 Cmd("git log -1 --format=%s roll_hsh",
1010 "Version 3.22.4 (based on abc)\n"), 1010 "Version 3.22.4 (based on abc)\n"),
1011 Cmd("git describe --tags roll_hsh", "3.22.4"), 1011 Cmd("git describe --tags roll_hsh", "3.22.4"),
1012 Cmd("git describe --tags last_roll_hsh", "3.22.2.1"), 1012 Cmd("git describe --tags last_roll_hsh", "3.22.2.1"),
1013 URL("https://chromium-build.appspot.com/p/chromium/sheriff_v8.js", 1013 URL("https://chromium-build.appspot.com/p/chromium/sheriff_v8.js",
1014 "document.write('g_name')"), 1014 "document.write('g_name')"),
1015 Cmd("git status -s -uno", "", cwd=chrome_dir), 1015 Cmd("git status -s -uno", "", cwd=chrome_dir),
1016 Cmd("git checkout -f master", "", cwd=chrome_dir), 1016 Cmd("git checkout -f master", "", cwd=chrome_dir),
1017 Cmd("git branch", "", cwd=chrome_dir),
1017 Cmd("gclient sync --nohooks", "syncing...", cwd=chrome_dir), 1018 Cmd("gclient sync --nohooks", "syncing...", cwd=chrome_dir),
1018 Cmd("git pull", "", cwd=chrome_dir), 1019 Cmd("git pull", "", cwd=chrome_dir),
1019 Cmd("git fetch origin", ""), 1020 Cmd("git fetch origin", ""),
1020 Cmd("git new-branch v8-roll-roll_hsh", "", cwd=chrome_dir), 1021 Cmd("git new-branch work-branch", "", cwd=chrome_dir),
1021 Cmd("roll-dep v8 roll_hsh", "rolled", cb=WriteDeps, cwd=chrome_dir), 1022 Cmd("roll-dep v8 roll_hsh", "rolled", cb=WriteDeps, cwd=chrome_dir),
1022 Cmd(("git commit -am \"%s\" " 1023 Cmd(("git commit -am \"%s\" "
1023 "--author \"author@chromium.org <author@chromium.org>\"" % 1024 "--author \"author@chromium.org <author@chromium.org>\"" %
1024 self.ROLL_COMMIT_MSG), 1025 self.ROLL_COMMIT_MSG),
1025 "", cwd=chrome_dir), 1026 "", cwd=chrome_dir),
1026 Cmd("git cl upload --send-mail --email \"author@chromium.org\" -f", "", 1027 Cmd("git cl upload --send-mail --email \"author@chromium.org\" -f", "",
1027 cwd=chrome_dir), 1028 cwd=chrome_dir),
1029 Cmd("git checkout -f master", "", cwd=chrome_dir),
1030 Cmd("git branch -D work-branch", "", cwd=chrome_dir),
1028 ] 1031 ]
1029 self.Expect(expectations) 1032 self.Expect(expectations)
1030 1033
1031 args = ["-a", "author@chromium.org", "-c", chrome_dir, 1034 args = ["-a", "author@chromium.org", "-c", chrome_dir,
1032 "--sheriff", 1035 "--sheriff",
1033 "-r", "reviewer@chromium.org", 1036 "-r", "reviewer@chromium.org",
1034 "--last-roll", "last_roll_hsh", 1037 "--last-roll", "last_roll_hsh",
1035 "roll_hsh"] 1038 "roll_hsh"]
1036 ChromiumRoll(TEST_CONFIG, self).Run(args) 1039 ChromiumRoll(TEST_CONFIG, self).Run(args)
1037 1040
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after
1512 1515
1513 Review URL: https://codereview.chromium.org/83173002 1516 Review URL: https://codereview.chromium.org/83173002
1514 1517
1515 ------------------------------------------------------------------------""") 1518 ------------------------------------------------------------------------""")
1516 self.assertEquals( 1519 self.assertEquals(
1517 """Prepare push to trunk. Now working on version 3.23.11. 1520 """Prepare push to trunk. Now working on version 3.23.11.
1518 1521
1519 R=danno@chromium.org 1522 R=danno@chromium.org
1520 1523
1521 Committed: https://code.google.com/p/v8/source/detail?r=17997""", body) 1524 Committed: https://code.google.com/p/v8/source/detail?r=17997""", body)
OLDNEW
« tools/release/chromium_roll.py ('K') | « tools/release/chromium_roll.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698