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

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

Issue 914973002: Create v8 roll branches in refs/heads. (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/create_release.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 897 matching lines...) Expand 10 before | Expand all | Expand 10 after
908 908
909 Performance and stability improvements on all platforms. 909 Performance and stability improvements on all platforms.
910 910
911 911
912 1999-04-05: Version 3.22.4 912 1999-04-05: Version 3.22.4
913 913
914 Performance and stability improvements on all platforms.\n""", 914 Performance and stability improvements on all platforms.\n""",
915 change_log) 915 change_log)
916 916
917 expectations = [ 917 expectations = [
918 Cmd("git fetch origin +refs/heads/*:refs/heads/*", ""), 918 Cmd("git fetch origin "
919 Cmd("git fetch origin +refs/branch-heads/*:refs/branch-heads/*", ""), 919 "+refs/heads/*:refs/heads/* "
920 Cmd("git fetch origin +refs/pending/*:refs/pending/*", ""), 920 "+refs/pending/*:refs/pending/* "
921 Cmd("git fetch origin +refs/pending-tags/*:refs/pending-tags/*", ""), 921 "+refs/pending-tags/*:refs/pending-tags/*", ""),
922 Cmd("git checkout -f origin/master", ""), 922 Cmd("git checkout -f origin/master", ""),
923 Cmd("git branch", ""), 923 Cmd("git branch", ""),
924 Cmd("git log -1 --format=\"%H %T\" push_hash", "push_hash tree_hash"), 924 Cmd("git log -1 --format=\"%H %T\" push_hash", "push_hash tree_hash"),
925 Cmd("git log -200 --format=\"%H %T\" refs/pending/heads/master", 925 Cmd("git log -200 --format=\"%H %T\" refs/pending/heads/master",
926 "not_right wrong\npending_hash tree_hash\nsome other\n"), 926 "not_right wrong\npending_hash tree_hash\nsome other\n"),
927 Cmd("git fetch origin +refs/tags/*:refs/tags/*", ""), 927 Cmd("git fetch origin +refs/tags/*:refs/tags/*", ""),
928 Cmd("git tag", self.TAGS), 928 Cmd("git tag", self.TAGS),
929 Cmd("git checkout -f origin/master -- src/version.cc", 929 Cmd("git checkout -f origin/master -- src/version.cc",
930 "", cb=self.WriteFakeVersionFile), 930 "", cb=self.WriteFakeVersionFile),
931 Cmd("git log -1 --format=%H 3.22.4", "release_hash\n"), 931 Cmd("git log -1 --format=%H 3.22.4", "release_hash\n"),
932 Cmd("git log -1 --format=%s release_hash", 932 Cmd("git log -1 --format=%s release_hash",
933 "Version 3.22.4 (based on abc3)\n"), 933 "Version 3.22.4 (based on abc3)\n"),
934 Cmd("git log --format=%H abc3..push_hash", "rev1\n"), 934 Cmd("git log --format=%H abc3..push_hash", "rev1\n"),
935 Cmd("git log -1 --format=%s rev1", "Log text 1.\n"), 935 Cmd("git log -1 --format=%s rev1", "Log text 1.\n"),
936 Cmd("git log -1 --format=%B rev1", "Text\nLOG=YES\nBUG=v8:321\nText\n"), 936 Cmd("git log -1 --format=%B rev1", "Text\nLOG=YES\nBUG=v8:321\nText\n"),
937 Cmd("git log -1 --format=%an rev1", "author1@chromium.org\n"), 937 Cmd("git log -1 --format=%an rev1", "author1@chromium.org\n"),
938 Cmd("git reset --hard origin/master", ""), 938 Cmd("git reset --hard origin/master", ""),
939 Cmd("git checkout -b work-branch pending_hash", ""), 939 Cmd("git checkout -b work-branch pending_hash", ""),
940 Cmd("git checkout -f 3.22.4 -- ChangeLog", "", cb=ResetChangeLog), 940 Cmd("git checkout -f 3.22.4 -- ChangeLog", "", cb=ResetChangeLog),
941 Cmd("git checkout -f 3.22.4 -- src/version.cc", "", 941 Cmd("git checkout -f 3.22.4 -- src/version.cc", "",
942 cb=self.WriteFakeVersionFile), 942 cb=self.WriteFakeVersionFile),
943 Cmd("git commit -aF \"%s\"" % TEST_CONFIG["COMMITMSG_FILE"], "", 943 Cmd("git commit -aF \"%s\"" % TEST_CONFIG["COMMITMSG_FILE"], "",
944 cb=CheckVersionCommit), 944 cb=CheckVersionCommit),
945 Cmd("git push origin " 945 Cmd("git push origin "
946 "refs/heads/work-branch:refs/pending/branch-heads/3.22.5 " 946 "refs/heads/work-branch:refs/pending/heads/3.22.5 "
947 "pending_hash:refs/pending-tags/branch-heads/3.22.5 " 947 "pending_hash:refs/pending-tags/heads/3.22.5 "
948 "push_hash:refs/branch-heads/3.22.5", ""), 948 "push_hash:refs/heads/3.22.5", ""),
949 Cmd("git fetch", ""), 949 Cmd("git fetch", ""),
950 Cmd("git log -1 --format=%H --grep=" 950 Cmd("git log -1 --format=%H --grep="
951 "\"Version 3.22.5\" branch-heads/3.22.5", "hsh_to_tag"), 951 "\"Version 3.22.5\" origin/3.22.5", "hsh_to_tag"),
952 Cmd("git tag 3.22.5 hsh_to_tag", ""), 952 Cmd("git tag 3.22.5 hsh_to_tag", ""),
953 Cmd("git push origin 3.22.5", ""), 953 Cmd("git push origin 3.22.5", ""),
954 Cmd("git checkout -f origin/master", ""), 954 Cmd("git checkout -f origin/master", ""),
955 Cmd("git branch", "* master\n work-branch\n"), 955 Cmd("git branch", "* master\n work-branch\n"),
956 Cmd("git branch -D work-branch", ""), 956 Cmd("git branch -D work-branch", ""),
957 Cmd("git gc", ""), 957 Cmd("git gc", ""),
958 ] 958 ]
959 self.Expect(expectations) 959 self.Expect(expectations)
960 960
961 args = ["-a", "author@chromium.org", 961 args = ["-a", "author@chromium.org",
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after
1494 1494
1495 Review URL: https://codereview.chromium.org/83173002 1495 Review URL: https://codereview.chromium.org/83173002
1496 1496
1497 ------------------------------------------------------------------------""") 1497 ------------------------------------------------------------------------""")
1498 self.assertEquals( 1498 self.assertEquals(
1499 """Prepare push to trunk. Now working on version 3.23.11. 1499 """Prepare push to trunk. Now working on version 3.23.11.
1500 1500
1501 R=danno@chromium.org 1501 R=danno@chromium.org
1502 1502
1503 Committed: https://code.google.com/p/v8/source/detail?r=17997""", body) 1503 Committed: https://code.google.com/p/v8/source/detail?r=17997""", body)
OLDNEW
« no previous file with comments | « tools/release/create_release.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698