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

Side by Side Diff: tools/push-to-trunk/test_scripts.py

Issue 657483002: Switch chromium roll script to git. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « tools/push-to-trunk/chromium_roll.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 988 matching lines...) Expand 10 before | Expand all | Expand 10 after
999 os.path.join(chrome_dir, "DEPS")) 999 os.path.join(chrome_dir, "DEPS"))
1000 def WriteDeps(): 1000 def WriteDeps():
1001 TextToFile("Some line\n \"v8_revision\": \"22624\",\n some line", 1001 TextToFile("Some line\n \"v8_revision\": \"22624\",\n some line",
1002 os.path.join(chrome_dir, "DEPS")) 1002 os.path.join(chrome_dir, "DEPS"))
1003 1003
1004 expectations = [ 1004 expectations = [
1005 Cmd("git fetch origin", ""), 1005 Cmd("git fetch origin", ""),
1006 Cmd(("git log -1 --format=%H --grep=" 1006 Cmd(("git log -1 --format=%H --grep="
1007 "\"^Version [[:digit:]]*\.[[:digit:]]*\.[[:digit:]]*\" " 1007 "\"^Version [[:digit:]]*\.[[:digit:]]*\.[[:digit:]]*\" "
1008 "origin/candidates"), "push_hash\n"), 1008 "origin/candidates"), "push_hash\n"),
1009 Cmd("git log -1 --format=%B push_hash", self.C_V8_22624_LOG),
1010 Cmd("git log -1 --format=%s push_hash", 1009 Cmd("git log -1 --format=%s push_hash",
1011 "Version 3.22.5 (based on bleeding_edge revision r22622)\n"), 1010 "Version 3.22.5 (based on bleeding_edge revision r22622)\n"),
1012 URL("https://chromium-build.appspot.com/p/chromium/sheriff_v8.js", 1011 URL("https://chromium-build.appspot.com/p/chromium/sheriff_v8.js",
1013 "document.write('g_name')"), 1012 "document.write('g_name')"),
1014 Cmd("git status -s -uno", "", cwd=chrome_dir), 1013 Cmd("git status -s -uno", "", cwd=chrome_dir),
1015 Cmd("git checkout -f master", "", cwd=chrome_dir), 1014 Cmd("git checkout -f master", "", cwd=chrome_dir),
1016 Cmd("gclient sync --nohooks", "syncing...", cwd=chrome_dir), 1015 Cmd("gclient sync --nohooks", "syncing...", cwd=chrome_dir),
1017 Cmd("git pull", "", cwd=chrome_dir), 1016 Cmd("git pull", "", cwd=chrome_dir),
1018 Cmd("git fetch origin", ""), 1017 Cmd("git fetch origin", ""),
1019 Cmd("git checkout -b v8-roll-22624", "", cwd=chrome_dir), 1018 Cmd("git checkout -b v8-roll-push_hash", "", cwd=chrome_dir),
1020 Cmd("roll-dep v8 22624", "rolled", cb=WriteDeps, cwd=chrome_dir), 1019 Cmd("roll-dep v8 push_hash", "rolled", cb=WriteDeps, cwd=chrome_dir),
1021 Cmd(("git commit -am \"Update V8 to version 3.22.5 " 1020 Cmd(("git commit -am \"Update V8 to version 3.22.5 "
1022 "(based on bleeding_edge revision r22622).\n\n" 1021 "(based on bleeding_edge revision r22622).\n\n"
1023 "Please reply to the V8 sheriff c_name@chromium.org in " 1022 "Please reply to the V8 sheriff c_name@chromium.org in "
1024 "case of problems.\n\nTBR=c_name@chromium.org\" " 1023 "case of problems.\n\nTBR=c_name@chromium.org\" "
1025 "--author \"author@chromium.org <author@chromium.org>\""), 1024 "--author \"author@chromium.org <author@chromium.org>\""),
1026 "", cwd=chrome_dir), 1025 "", cwd=chrome_dir),
1027 Cmd("git cl upload --send-mail --email \"author@chromium.org\" -f", "", 1026 Cmd("git cl upload --send-mail --email \"author@chromium.org\" -f", "",
1028 cwd=chrome_dir), 1027 cwd=chrome_dir),
1029 ] 1028 ]
1030 self.Expect(expectations) 1029 self.Expect(expectations)
(...skipping 788 matching lines...) Expand 10 before | Expand all | Expand 10 after
1819 1818
1820 Review URL: https://codereview.chromium.org/83173002 1819 Review URL: https://codereview.chromium.org/83173002
1821 1820
1822 ------------------------------------------------------------------------""") 1821 ------------------------------------------------------------------------""")
1823 self.assertEquals( 1822 self.assertEquals(
1824 """Prepare push to trunk. Now working on version 3.23.11. 1823 """Prepare push to trunk. Now working on version 3.23.11.
1825 1824
1826 R=danno@chromium.org 1825 R=danno@chromium.org
1827 1826
1828 Committed: https://code.google.com/p/v8/source/detail?r=17997""", body) 1827 Committed: https://code.google.com/p/v8/source/detail?r=17997""", body)
OLDNEW
« no previous file with comments | « tools/push-to-trunk/chromium_roll.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698