History log of /external/autotest/client/common_lib/revision_control.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
ae2d0789d9ad14aef0ca266606b945fe05431b24 16-Nov-2016 Shuqian Zhao <shuqianz@chromium.org> [autotest] Automate the deploy process

automated_deploy.py is a script to automate the deploy process. Current
deploy process is:
1. Manually push the prod branch to the lastest tested ToT for both
autotest and chromite.
2. Kick off deploy_server.py script to update all lab server.

This script will automate the whole process. When developers want to
deploy to production, all they need is to run
./site_utils/automated_deploy.py

BUG=None
TEST=unittest and Test on test server.

Change-Id: Ic53278df306c5721c7174b56dc4ff093a5df03a4
Reviewed-on: https://chromium-review.googlesource.com/411533
Reviewed-by: Xixuan Wu <xixuan@chromium.org>
Tested-by: Shuqian Zhao <shuqianz@chromium.org>
Commit-Queue: Shuqian Zhao <shuqianz@chromium.org>
/external/autotest/client/common_lib/revision_control.py
25af06dcfdc05674c90b25e067ec975c6390d146 27-Sep-2016 Allen Li <ayatane@chromium.org> [autotest] Fix typos

BUG=None
TEST=None

Change-Id: I6043c837befe8f8b7348ae5c38b5623df7261049
Reviewed-on: https://chromium-review.googlesource.com/389838
Commit-Ready: Allen Li <ayatane@chromium.org>
Tested-by: Allen Li <ayatane@chromium.org>
Reviewed-by: Prathmesh Prabhu <pprabhu@chromium.org>
/external/autotest/client/common_lib/revision_control.py
5f6b233a9406b4b6b78c6b47c1e6fefa123ccd5e 11-Apr-2015 Prathmesh Prabhu <pprabhu@chromium.org> [autotest] Make push-to-prod sync more aggressive.

Before this CL, the push-to-prod git repo sync through build_externals
would try to 'pull' the relevant repos. This would fail to pull new
branches from the remote repo.

This CL re-works the sync code to make it more aggressive. It now goes
through the more reliable fetch-and-reset path.

While there: fix unittest for unset git_repo_url. There was duplicated
code that was obviously not testing the 'fetch' path at least.

BUG=chromium:476124
TEST=(1) Synced a new remote branch to an existing repo that used to
fail before this CL.
(2) (updated) unittests.

Change-Id: I6d5337532aed62afd270762f21d9f496a823f2d5
Reviewed-on: https://chromium-review.googlesource.com/265351
Reviewed-by: Prathmesh Prabhu <pprabhu@chromium.org>
Commit-Queue: Prathmesh Prabhu <pprabhu@chromium.org>
Tested-by: Prathmesh Prabhu <pprabhu@chromium.org>
/external/autotest/client/common_lib/revision_control.py
98365d89774921bd065fe4bf2d273be7e100af43 21-Feb-2013 beeps <beeps@chromium.org> [autotest] Pylint checks committed versions of a file.

The contents of a file in the git work tree can differ from the
contents of a file in the HEAD commit. This is problematic for the
following reasons:
1. The uploader may not have committed their changes.
2. The uploader might repo upload a stack of commits each of which
builds upon the other. In this case run_hooks is invoked on each
commit and running pylint on the work tree version of the file
doesn't make sense.
To work around this we invoke run pylint on a temp file, into which
we've 'git show'n the committed version of each file, so we're only
checking that specific commit. The change also batch processes files
so we get consolidated error reports and excuses run_once, initialize
and cleanup from needing a docstring.

The 'git show' mentioned above is achieved through a GitRepo object.
This commit also allows revision_control to run git commands without
requiring a giturl, and adds unittests to check that commands that
do need a giturl raise an exception if called without one.

TEST=Ran pylint with malformed non committed/committed files. Made
sure pylint displays multiple errors of the same type in one
report.
BUG=None

Change-Id: I82329d14c0334752941150c61d91e2e723b0c4d2
Reviewed-on: https://gerrit.chromium.org/gerrit/43697
Commit-Queue: Scott Zawalski <scottz@chromium.org>
Reviewed-by: Scott Zawalski <scottz@chromium.org>
Tested-by: Scott Zawalski <scottz@chromium.org>
/external/autotest/client/common_lib/revision_control.py
aae3f1c191a28e1ed4bde92fc50e15b260246b23 19-Mar-2013 beeps <beeps@chromium.org> [Autotest] Git pull instead of fetch/reset when building externals.

Build externals will now perform a git pull -r when a repo
is already present. Previously we attempted to fetch --all and
reset --hard HEAD, for this to achieve what was intended
we need to figure out the name of the upstream branch the
current branch is tracking. This change makes it so
we just fail to build externals when there's a local rebase
conflict (which there shouldn't be in site-packages anyway).

BUG=chromium:222144
TEST=Ran build externals with and without site-packages and imported
git dependent modules. Ran the revision_control unittests.

Change-Id: I1d41f9eea44a86386a28392c315c8802368ccb2f
Reviewed-on: https://gerrit.chromium.org/gerrit/45912
Reviewed-by: Prashanth Balasubramanian <beeps@chromium.org>
Tested-by: Prashanth Balasubramanian <beeps@chromium.org>
Commit-Queue: Prashanth Balasubramanian <beeps@chromium.org>
/external/autotest/client/common_lib/revision_control.py
d9153b52ba5a50c16dce111a9e03d6241c969d11 24-Jan-2013 beeps <beeps@chromium.org> [autotest] Allows us to pull repos as part of build_externals.

Pulls/clones chromite and hdctools/servo into site-packages. Also add
helper methods to revision_control.py and a -work-tree option, along
with a unittest.

TEST=built externals and imported servo/chromite.
BUG=chromium-os:38096

Change-Id: I1bae6e3f730495030665267876c8594800aa27d4
Reviewed-on: https://gerrit.chromium.org/gerrit/41910
Commit-Queue: Prashanth Balasubramanian <beeps@chromium.org>
Reviewed-by: Prashanth Balasubramanian <beeps@chromium.org>
Tested-by: Prashanth Balasubramanian <beeps@chromium.org>
/external/autotest/client/common_lib/revision_control.py
6f27d4f22a1ba5063968b8c322fa0845f3279ade 29-Sep-2010 Eric Li <ericli@chromium.org> Merge remote branch 'cros/upstream' into tempbranch3

Merge to trunk@4817

BUG=
TEST=

Review URL: http://codereview.chromium.org/3554003

Change-Id: I83376bc7d28104ec2678e157eadbe7df7c05c0e0
/external/autotest/client/common_lib/revision_control.py
517d95a1ef4edb04da427763f86068a447d45ec7 29-Sep-2010 Benson Leung <bleung@chromium.org> Revert "Merge remote branch 'cros/upstream' into tempbranch2"

This reverts commit 25fc6d1f28e54c46689f12d3b93c2540ef45323a.

TBR=ericli@chromium.org

Review URL: http://codereview.chromium.org/3541002

Change-Id: Ib0165b19bfdf02264f8a6a74ddf3ae74c8c0f7df
/external/autotest/client/common_lib/revision_control.py
25fc6d1f28e54c46689f12d3b93c2540ef45323a 29-Sep-2010 Eric Li <ericli@chromium.org> Merge remote branch 'cros/upstream' into tempbranch2

Merged to trunk@4816.

BUG=
TEST=we will build a new autotest server instance, and keep cautotest running and then later do a cname switch.

Review URL: http://codereview.chromium.org/3511003

Change-Id: Iee5f52f45f28f84927d6c6f9a74edc370d40288a
/external/autotest/client/common_lib/revision_control.py