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

Unified Diff: tools/push-to-trunk/test_scripts.py

Issue 676713003: Switch release scripts to new git workflow. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/push-to-trunk/common_includes.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/push-to-trunk/test_scripts.py
diff --git a/tools/push-to-trunk/test_scripts.py b/tools/push-to-trunk/test_scripts.py
index 6925929481a5ee87b3f779a6d688ea7ff6d252b4..e0e1d8657a81cb2923072e3e63ccae3134092213 100644
--- a/tools/push-to-trunk/test_scripts.py
+++ b/tools/push-to-trunk/test_scripts.py
@@ -446,6 +446,7 @@ class ScriptTest(unittest.TestCase):
self.Expect([
Cmd("git status -s -uno", ""),
Cmd("git status -s -b -uno", "## some_branch"),
+ Cmd("git fetch", ""),
Cmd("git svn fetch", ""),
Cmd("git branch", " branch1\n* %s" % TEST_CONFIG["BRANCHNAME"]),
RL("Y"),
@@ -459,6 +460,7 @@ class ScriptTest(unittest.TestCase):
self.Expect([
Cmd("git status -s -uno", ""),
Cmd("git status -s -b -uno", "## some_branch"),
+ Cmd("git fetch", ""),
Cmd("git svn fetch", ""),
Cmd("git branch", " branch1\n* %s" % TEST_CONFIG["BRANCHNAME"]),
RL("n"),
@@ -471,6 +473,7 @@ class ScriptTest(unittest.TestCase):
self.Expect([
Cmd("git status -s -uno", ""),
Cmd("git status -s -b -uno", "## some_branch"),
+ Cmd("git fetch", ""),
Cmd("git svn fetch", ""),
Cmd("git branch", " branch1\n* %s" % TEST_CONFIG["BRANCHNAME"]),
RL("Y"),
@@ -628,7 +631,7 @@ class ScriptTest(unittest.TestCase):
self.Expect([
Cmd("git checkout -f hash1 -- src/version.cc", ""),
- Cmd("git checkout -f svn/bleeding_edge -- src/version.cc",
+ Cmd("git checkout -f origin/master -- src/version.cc",
"", cb=lambda: self.WriteFakeVersionFile(22, 6)),
RL("Y"), # Increment build number.
])
@@ -646,7 +649,7 @@ class ScriptTest(unittest.TestCase):
f.write(change_log)
self.Expect([
- Cmd("git diff svn/trunk hash1", "patch content"),
+ Cmd("git diff origin/candidates hash1", "patch content"),
Cmd("git svn find-rev hash1", "123455\n"),
])
@@ -818,7 +821,8 @@ Performance and stability improvements on all platforms.""", commit)
]
self.Expect(expectations)
- args = ["-a", "author@chromium.org", "--revision", "123455"]
+ args = ["-a", "author@chromium.org", "--revision", "123455",
+ "--vc-interface", "git_svn",]
if force: args.append("-f")
if manual: args.append("-m")
else: args += ["-r", "reviewer@chromium.org"]
@@ -1042,7 +1046,7 @@ def get_list():
self.Expect([
Cmd(("git log -1 --format=%H --grep="
"\"^Version [[:digit:]]*\.[[:digit:]]*\.[[:digit:]]* (based\" "
- "svn/trunk"), "hash2\n"),
+ "origin/candidates"), "hash2\n"),
Cmd("git log -1 --format=%s hash2",
"Version 3.4.5 (based on bleeding_edge revision r99)\n"),
])
@@ -1060,6 +1064,7 @@ def get_list():
self.Expect([
Cmd("git status -s -uno", ""),
Cmd("git status -s -b -uno", "## some_branch\n"),
+ Cmd("git fetch", ""),
Cmd("git svn fetch", ""),
URL("https://v8-status.appspot.com/current?format=json",
"{\"message\": \"Tree is throttled\"}"),
@@ -1067,7 +1072,7 @@ def get_list():
URL("https://v8-status.appspot.com/lkgr", "100"),
Cmd(("git log -1 --format=%H --grep=\""
"^Version [[:digit:]]*\.[[:digit:]]*\.[[:digit:]]* (based\""
- " svn/trunk"), "push_hash\n"),
+ " origin/candidates"), "push_hash\n"),
Cmd("git log -1 --format=%s push_hash",
"Version 3.4.5 (based on bleeding_edge revision r79)\n"),
])
@@ -1088,6 +1093,7 @@ def get_list():
self.Expect([
Cmd("git status -s -uno", ""),
Cmd("git status -s -b -uno", "## some_branch\n"),
+ Cmd("git fetch", ""),
Cmd("git svn fetch", ""),
])
@@ -1102,6 +1108,7 @@ def get_list():
self.Expect([
Cmd("git status -s -uno", ""),
Cmd("git status -s -b -uno", "## some_branch\n"),
+ Cmd("git fetch", ""),
Cmd("git svn fetch", ""),
URL("https://v8-status.appspot.com/current?format=json",
"{\"message\": \"Tree is throttled (no push)\"}"),
@@ -1767,58 +1774,6 @@ git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3456 0039-1c4b
"--svn", svn_root,
"--svn-config", "[CONFIG_DIR]"])
Michael Achenbach 2014/10/23 14:21:24 Deprecated script. Will fix the test expectations
- def testAutoTag(self):
- self.WriteFakeVersionFile()
-
- def ResetVersion(minor, build, patch=0):
- return lambda: self.WriteFakeVersionFile(minor=minor,
- build=build,
- patch=patch)
-
- self.Expect([
- Cmd("git status -s -uno", ""),
- Cmd("git status -s -b -uno", "## some_branch\n"),
- Cmd("git svn fetch", ""),
- Cmd("git branch", " branch1\n* branch2\n"),
- Cmd("git checkout -f master", ""),
- Cmd("git svn rebase", ""),
- Cmd("git checkout -b %s" % TEST_CONFIG["BRANCHNAME"], "",
- cb=ResetVersion(4, 5)),
- Cmd("git branch -r",
- "svn/tags/3.4.2\nsvn/tags/3.2.1.0\nsvn/branches/3.4"),
- Cmd(("git log --format=%H --grep="
- "\"\\[Auto\\-roll\\] Bump up version to\""),
- "hash125\nhash118\nhash111\nhash101"),
- Cmd("git checkout -f hash125 -- %s" % VERSION_FILE, "",
- cb=ResetVersion(4, 4)),
- Cmd("git checkout -f HEAD -- %s" % VERSION_FILE, "",
- cb=ResetVersion(4, 5)),
- Cmd("git checkout -f hash118 -- %s" % VERSION_FILE, "",
- cb=ResetVersion(4, 3)),
- Cmd("git checkout -f HEAD -- %s" % VERSION_FILE, "",
- cb=ResetVersion(4, 5)),
- Cmd("git checkout -f hash111 -- %s" % VERSION_FILE, "",
- cb=ResetVersion(4, 2)),
- Cmd("git checkout -f HEAD -- %s" % VERSION_FILE, "",
- cb=ResetVersion(4, 5)),
- URL("https://v8-status.appspot.com/revisions?format=json",
- "[{\"revision\": \"126\", \"status\": true},"
- "{\"revision\": \"123\", \"status\": true},"
- "{\"revision\": \"112\", \"status\": true}]"),
- Cmd("git svn find-rev hash118", "118"),
- Cmd("git svn find-rev hash125", "125"),
- Cmd("git svn find-rev r123", "hash123"),
- Cmd("git log -1 --format=%at hash123", "1"),
- Cmd("git reset --hard hash123", ""),
- Cmd("git svn fetch", ""),
- Cmd("git rebase svn/bleeding_edge", ""),
- Cmd("git svn tag 3.4.3 -m \"Tagging version 3.4.3\"", ""),
- Cmd("git checkout -f some_branch", ""),
- Cmd("git branch -D %s" % TEST_CONFIG["BRANCHNAME"], ""),
- ])
-
- AutoTag(TEST_CONFIG, self).Run(["-a", "author@chromium.org"])
-
# Test that we bail out if the last change was a version change.
def testBumpUpVersionBailout1(self):
self._state["latest"] = "latest_hash"
« no previous file with comments | « tools/push-to-trunk/common_includes.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698