OLD | NEW |
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 773 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
784 cb=ResetChangeLog), | 784 cb=ResetChangeLog), |
785 Cmd("git checkout -f svn/trunk -- src/version.cc", "", | 785 Cmd("git checkout -f svn/trunk -- src/version.cc", "", |
786 cb=self.WriteFakeVersionFile), | 786 cb=self.WriteFakeVersionFile), |
787 Cmd("git commit -aF \"%s\"" % TEST_CONFIG["COMMITMSG_FILE"], "", | 787 Cmd("git commit -aF \"%s\"" % TEST_CONFIG["COMMITMSG_FILE"], "", |
788 cb=CheckSVNCommit), | 788 cb=CheckSVNCommit), |
789 ] | 789 ] |
790 if manual: | 790 if manual: |
791 expectations.append(RL("Y")) # Sanity check. | 791 expectations.append(RL("Y")) # Sanity check. |
792 expectations += [ | 792 expectations += [ |
793 Cmd("git svn dcommit 2>&1", ""), | 793 Cmd("git svn dcommit 2>&1", ""), |
| 794 Cmd("git svn fetch", ""), |
| 795 Cmd("git rebase svn/trunk", ""), |
794 Cmd("git svn tag 3.22.5 -m \"Tagging version 3.22.5\"", ""), | 796 Cmd("git svn tag 3.22.5 -m \"Tagging version 3.22.5\"", ""), |
795 Cmd("git checkout -f some_branch", ""), | 797 Cmd("git checkout -f some_branch", ""), |
796 Cmd("git branch -D %s" % TEST_CONFIG["BRANCHNAME"], ""), | 798 Cmd("git branch -D %s" % TEST_CONFIG["BRANCHNAME"], ""), |
797 Cmd("git branch -D %s" % TEST_CONFIG["TRUNKBRANCH"], ""), | 799 Cmd("git branch -D %s" % TEST_CONFIG["TRUNKBRANCH"], ""), |
798 ] | 800 ] |
799 self.Expect(expectations) | 801 self.Expect(expectations) |
800 | 802 |
801 args = ["-a", "author@chromium.org", "--revision", "123455"] | 803 args = ["-a", "author@chromium.org", "--revision", "123455"] |
802 if force: args.append("-f") | 804 if force: args.append("-f") |
803 if manual: args.append("-m") | 805 if manual: args.append("-m") |
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1136 RL("Y"), # Automatically increment patch level? | 1138 RL("Y"), # Automatically increment patch level? |
1137 Cmd("git commit -aF \"%s\"" % TEST_CONFIG["COMMITMSG_FILE"], ""), | 1139 Cmd("git commit -aF \"%s\"" % TEST_CONFIG["COMMITMSG_FILE"], ""), |
1138 RL("reviewer@chromium.org"), # V8 reviewer. | 1140 RL("reviewer@chromium.org"), # V8 reviewer. |
1139 Cmd("git cl upload --send-mail -r \"reviewer@chromium.org\" " | 1141 Cmd("git cl upload --send-mail -r \"reviewer@chromium.org\" " |
1140 "--bypass-hooks --cc \"ulan@chromium.org\"", ""), | 1142 "--bypass-hooks --cc \"ulan@chromium.org\"", ""), |
1141 Cmd("git checkout -f %s" % TEST_CONFIG["BRANCHNAME"], ""), | 1143 Cmd("git checkout -f %s" % TEST_CONFIG["BRANCHNAME"], ""), |
1142 RL("LGTM"), # Enter LGTM for V8 CL. | 1144 RL("LGTM"), # Enter LGTM for V8 CL. |
1143 Cmd("git cl presubmit", "Presubmit successfull\n"), | 1145 Cmd("git cl presubmit", "Presubmit successfull\n"), |
1144 Cmd("git cl dcommit -f --bypass-hooks", "Closing issue\n", | 1146 Cmd("git cl dcommit -f --bypass-hooks", "Closing issue\n", |
1145 cb=VerifySVNCommit), | 1147 cb=VerifySVNCommit), |
| 1148 Cmd("git svn fetch", ""), |
| 1149 Cmd("git rebase svn/trunk", ""), |
1146 Cmd("git svn tag 3.22.5.1 -m \"Tagging version 3.22.5.1\"", ""), | 1150 Cmd("git svn tag 3.22.5.1 -m \"Tagging version 3.22.5.1\"", ""), |
1147 Cmd("git checkout -f some_branch", ""), | 1151 Cmd("git checkout -f some_branch", ""), |
1148 Cmd("git branch -D %s" % TEST_CONFIG["BRANCHNAME"], ""), | 1152 Cmd("git branch -D %s" % TEST_CONFIG["BRANCHNAME"], ""), |
1149 ]) | 1153 ]) |
1150 | 1154 |
1151 # r12345 and r34567 are patches. r23456 (included) and r45678 are the MIPS | 1155 # r12345 and r34567 are patches. r23456 (included) and r45678 are the MIPS |
1152 # ports of r12345. r56789 is the MIPS port of r34567. | 1156 # ports of r12345. r56789 is the MIPS port of r34567. |
1153 args = ["-f", "-p", extra_patch, "--branch", "trunk", | 1157 args = ["-f", "-p", extra_patch, "--branch", "trunk", |
1154 "--vc-interface", "git_svn", "12345", "23456", "34567"] | 1158 "--vc-interface", "git_svn", "12345", "23456", "34567"] |
1155 | 1159 |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1265 RL("Y"), # Automatically increment patch level? | 1269 RL("Y"), # Automatically increment patch level? |
1266 Cmd("git commit -aF \"%s\"" % TEST_CONFIG["COMMITMSG_FILE"], ""), | 1270 Cmd("git commit -aF \"%s\"" % TEST_CONFIG["COMMITMSG_FILE"], ""), |
1267 RL("reviewer@chromium.org"), # V8 reviewer. | 1271 RL("reviewer@chromium.org"), # V8 reviewer. |
1268 Cmd("git cl upload --send-mail -r \"reviewer@chromium.org\" " | 1272 Cmd("git cl upload --send-mail -r \"reviewer@chromium.org\" " |
1269 "--bypass-hooks --cc \"ulan@chromium.org\"", ""), | 1273 "--bypass-hooks --cc \"ulan@chromium.org\"", ""), |
1270 Cmd("git checkout -f %s" % TEST_CONFIG["BRANCHNAME"], ""), | 1274 Cmd("git checkout -f %s" % TEST_CONFIG["BRANCHNAME"], ""), |
1271 RL("LGTM"), # Enter LGTM for V8 CL. | 1275 RL("LGTM"), # Enter LGTM for V8 CL. |
1272 Cmd("git cl presubmit", "Presubmit successfull\n"), | 1276 Cmd("git cl presubmit", "Presubmit successfull\n"), |
1273 Cmd("git cl dcommit -f --bypass-hooks", "Closing issue\n", | 1277 Cmd("git cl dcommit -f --bypass-hooks", "Closing issue\n", |
1274 cb=VerifySVNCommit), | 1278 cb=VerifySVNCommit), |
| 1279 # FIXME(machenbach): This won't work when setting tags on the git repo. |
| 1280 Cmd("git svn fetch", ""), |
| 1281 Cmd("git rebase origin/candidates", ""), |
1275 Cmd("git svn tag 3.22.5.1 -m \"Tagging version 3.22.5.1\"", ""), | 1282 Cmd("git svn tag 3.22.5.1 -m \"Tagging version 3.22.5.1\"", ""), |
1276 Cmd("git checkout -f some_branch", ""), | 1283 Cmd("git checkout -f some_branch", ""), |
1277 Cmd("git branch -D %s" % TEST_CONFIG["BRANCHNAME"], ""), | 1284 Cmd("git branch -D %s" % TEST_CONFIG["BRANCHNAME"], ""), |
1278 ]) | 1285 ]) |
1279 | 1286 |
1280 # r12345 and r34567 are patches. r23456 (included) and r45678 are the MIPS | 1287 # r12345 and r34567 are patches. r23456 (included) and r45678 are the MIPS |
1281 # ports of r12345. r56789 is the MIPS port of r34567. | 1288 # ports of r12345. r56789 is the MIPS port of r34567. |
1282 args = ["-f", "-p", extra_patch, "--branch", "candidates", | 1289 args = ["-f", "-p", extra_patch, "--branch", "candidates", |
1283 "--vc-interface", "git_read_svn_write", "12345", "23456", "34567"] | 1290 "--vc-interface", "git_read_svn_write", "12345", "23456", "34567"] |
1284 | 1291 |
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1597 cb=ResetVersion(4, 5)), | 1604 cb=ResetVersion(4, 5)), |
1598 URL("https://v8-status.appspot.com/revisions?format=json", | 1605 URL("https://v8-status.appspot.com/revisions?format=json", |
1599 "[{\"revision\": \"126\", \"status\": true}," | 1606 "[{\"revision\": \"126\", \"status\": true}," |
1600 "{\"revision\": \"123\", \"status\": true}," | 1607 "{\"revision\": \"123\", \"status\": true}," |
1601 "{\"revision\": \"112\", \"status\": true}]"), | 1608 "{\"revision\": \"112\", \"status\": true}]"), |
1602 Cmd("git svn find-rev hash118", "118"), | 1609 Cmd("git svn find-rev hash118", "118"), |
1603 Cmd("git svn find-rev hash125", "125"), | 1610 Cmd("git svn find-rev hash125", "125"), |
1604 Cmd("git svn find-rev r123", "hash123"), | 1611 Cmd("git svn find-rev r123", "hash123"), |
1605 Cmd("git log -1 --format=%at hash123", "1"), | 1612 Cmd("git log -1 --format=%at hash123", "1"), |
1606 Cmd("git reset --hard hash123", ""), | 1613 Cmd("git reset --hard hash123", ""), |
| 1614 Cmd("git svn fetch", ""), |
| 1615 Cmd("git rebase svn/bleeding_edge", ""), |
1607 Cmd("git svn tag 3.4.3 -m \"Tagging version 3.4.3\"", ""), | 1616 Cmd("git svn tag 3.4.3 -m \"Tagging version 3.4.3\"", ""), |
1608 Cmd("git checkout -f some_branch", ""), | 1617 Cmd("git checkout -f some_branch", ""), |
1609 Cmd("git branch -D %s" % TEST_CONFIG["BRANCHNAME"], ""), | 1618 Cmd("git branch -D %s" % TEST_CONFIG["BRANCHNAME"], ""), |
1610 ]) | 1619 ]) |
1611 | 1620 |
1612 AutoTag(TEST_CONFIG, self).Run(["-a", "author@chromium.org"]) | 1621 AutoTag(TEST_CONFIG, self).Run(["-a", "author@chromium.org"]) |
1613 | 1622 |
1614 # Test that we bail out if the last change was a version change. | 1623 # Test that we bail out if the last change was a version change. |
1615 def testBumpUpVersionBailout1(self): | 1624 def testBumpUpVersionBailout1(self): |
1616 self._state["latest"] = "latest_hash" | 1625 self._state["latest"] = "latest_hash" |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1665 | 1674 |
1666 Review URL: https://codereview.chromium.org/83173002 | 1675 Review URL: https://codereview.chromium.org/83173002 |
1667 | 1676 |
1668 ------------------------------------------------------------------------""") | 1677 ------------------------------------------------------------------------""") |
1669 self.assertEquals( | 1678 self.assertEquals( |
1670 """Prepare push to trunk. Now working on version 3.23.11. | 1679 """Prepare push to trunk. Now working on version 3.23.11. |
1671 | 1680 |
1672 R=danno@chromium.org | 1681 R=danno@chromium.org |
1673 | 1682 |
1674 Committed: https://code.google.com/p/v8/source/detail?r=17997""", body) | 1683 Committed: https://code.google.com/p/v8/source/detail?r=17997""", body) |
OLD | NEW |