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

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

Issue 2584523002: [release] Make release scripts work without gnumbd (Closed)
Patch Set: Created 4 years 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 927 matching lines...) Expand 10 before | Expand all | Expand 10 after
938 938
939 Performance and stability improvements on all platforms. 939 Performance and stability improvements on all platforms.
940 940
941 941
942 1999-04-05: Version 3.22.4 942 1999-04-05: Version 3.22.4
943 943
944 Performance and stability improvements on all platforms.\n""", 944 Performance and stability improvements on all platforms.\n""",
945 change_log) 945 change_log)
946 946
947 expectations = [ 947 expectations = [
948 Cmd("git fetch origin " 948 Cmd("git fetch origin +refs/heads/*:refs/heads/*", ""),
949 "+refs/heads/*:refs/heads/* "
950 "+refs/pending/*:refs/pending/* "
951 "+refs/pending-tags/*:refs/pending-tags/*", ""),
952 Cmd("git checkout -f origin/master", ""), 949 Cmd("git checkout -f origin/master", ""),
953 Cmd("git branch", ""), 950 Cmd("git branch", ""),
954 Cmd("git fetch origin +refs/tags/*:refs/tags/*", ""), 951 Cmd("git fetch origin +refs/tags/*:refs/tags/*", ""),
955 Cmd("git tag", self.TAGS), 952 Cmd("git tag", self.TAGS),
956 Cmd("git checkout -f origin/master -- include/v8-version.h", 953 Cmd("git checkout -f origin/master -- include/v8-version.h",
957 "", cb=self.WriteFakeVersionFile), 954 "", cb=self.WriteFakeVersionFile),
958 Cmd("git log -1 --format=%H 3.22.4", "release_hash\n"), 955 Cmd("git log -1 --format=%H 3.22.4", "release_hash\n"),
959 Cmd("git log -1 --format=%s release_hash", "Version 3.22.4\n"), 956 Cmd("git log -1 --format=%s release_hash", "Version 3.22.4\n"),
960 Cmd("git log -1 --format=%H release_hash^", "abc3\n"), 957 Cmd("git log -1 --format=%H release_hash^", "abc3\n"),
961 Cmd("git log --format=%H abc3..push_hash", "rev1\n"), 958 Cmd("git log --format=%H abc3..push_hash", "rev1\n"),
962 Cmd("git log -1 --format=%s rev1", "Log text 1.\n"), 959 Cmd("git log -1 --format=%s rev1", "Log text 1.\n"),
963 Cmd("git log -1 --format=%B rev1", "Text\nLOG=YES\nBUG=v8:321\nText\n"), 960 Cmd("git log -1 --format=%B rev1", "Text\nLOG=YES\nBUG=v8:321\nText\n"),
964 Cmd("git log -1 --format=%an rev1", "author1@chromium.org\n"), 961 Cmd("git log -1 --format=%an rev1", "author1@chromium.org\n"),
962 Cmd("git push origin push_hash:refs/heads/3.22.5", ""),
965 Cmd("git reset --hard origin/master", ""), 963 Cmd("git reset --hard origin/master", ""),
966 Cmd("git checkout -b work-branch push_hash", ""), 964 Cmd("git new-branch work-branch --upstream origin/3.22.5", ""),
967 Cmd("git checkout -f 3.22.4 -- ChangeLog", "", cb=ResetChangeLog), 965 Cmd("git checkout -f 3.22.4 -- ChangeLog", "", cb=ResetChangeLog),
968 Cmd("git checkout -f 3.22.4 -- include/v8-version.h", "", 966 Cmd("git checkout -f 3.22.4 -- include/v8-version.h", "",
969 cb=self.WriteFakeVersionFile), 967 cb=self.WriteFakeVersionFile),
970 Cmd("git checkout -f 3.22.4 -- WATCHLISTS", "", 968 Cmd("git checkout -f 3.22.4 -- WATCHLISTS", "",
971 cb=self.WriteFakeWatchlistsFile), 969 cb=self.WriteFakeWatchlistsFile),
972 Cmd("git commit -aF \"%s\"" % TEST_CONFIG["COMMITMSG_FILE"], "", 970 Cmd("git commit -aF \"%s\"" % TEST_CONFIG["COMMITMSG_FILE"], "",
973 cb=CheckVersionCommit), 971 cb=CheckVersionCommit),
974 Cmd("git log -1 --format=%H --grep=\"Version 3.22.5\" origin/3.22.5", 972 Cmd("git cl land --bypass-hooks -f", ""),
975 ""),
976 Cmd("git push origin "
977 "refs/heads/work-branch:refs/pending/heads/3.22.5 "
978 "push_hash:refs/pending-tags/heads/3.22.5 "
979 "push_hash:refs/heads/3.22.5", ""),
980 Cmd("git fetch", ""), 973 Cmd("git fetch", ""),
981 Cmd("git log -1 --format=%H --grep=" 974 Cmd("git log -1 --format=%H --grep="
982 "\"Version 3.22.5\" origin/3.22.5", "hsh_to_tag"), 975 "\"Version 3.22.5\" origin/3.22.5", "hsh_to_tag"),
983 Cmd("git tag 3.22.5 hsh_to_tag", ""), 976 Cmd("git tag 3.22.5 hsh_to_tag", ""),
984 Cmd("git push origin 3.22.5", ""), 977 Cmd("git push origin 3.22.5", ""),
985 Cmd("git checkout -f origin/master", ""), 978 Cmd("git checkout -f origin/master", ""),
986 Cmd("git branch", "* master\n work-branch\n"), 979 Cmd("git branch", "* master\n work-branch\n"),
987 Cmd("git branch -D work-branch", ""), 980 Cmd("git branch -D work-branch", ""),
988 Cmd("git gc", ""), 981 Cmd("git gc", ""),
989 ] 982 ]
(...skipping 959 matching lines...) Expand 10 before | Expand all | Expand 10 after
1949 1942
1950 Review URL: https://codereview.chromium.org/83173002 1943 Review URL: https://codereview.chromium.org/83173002
1951 1944
1952 ------------------------------------------------------------------------""") 1945 ------------------------------------------------------------------------""")
1953 self.assertEquals( 1946 self.assertEquals(
1954 """Prepare push to trunk. Now working on version 3.23.11. 1947 """Prepare push to trunk. Now working on version 3.23.11.
1955 1948
1956 R=danno@chromium.org 1949 R=danno@chromium.org
1957 1950
1958 Committed: https://code.google.com/p/v8/source/detail?r=17997""", body) 1951 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