Commit Graph

12 Commits (04d5a22ea966c9fc3c803a1424738759d839f99e)

Author SHA1 Message Date
davidjames@chromium.org 0d0001140b Revert "Support Gerrit snapshot versions"
This reverts commit cdd9690946, which
broke gerrit_unittest.py within the chroot, which has Java 6.

Original-Review URL: https://codereview.chromium.org/164023005

TBR=szager
BUG=344786
TEST=Run the unit tests before and after. Confirm this CL fixes them.

Review URL: https://codereview.chromium.org/170423003

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@251976 0039d316-1c4b-4281-b951-d872f2087c98
11 years ago
dborowitz@google.com cdd9690946 Support Gerrit snapshot versions
These may be named git-snapshot-VERSION.war, where VERSION is the long
format defined in git-describe(1). In particular, this may include a
number of commits after the given tag name; treat more commits since
the tag as a higher version number. This is arguably not always
strictly correct due to non-linear history, but the maintainers expect
the total number of such snapshot versions to be low, and can remove
old snapshot versions that don't sort correctly.

Slightly de-obfuscate some of the variable names and logic while we're
at it.

R=szager@chromium.org
BUG=

Review URL: https://codereview.chromium.org/164023005

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@251888 0039d316-1c4b-4281-b951-d872f2087c98
11 years ago
petermayo@chromium.org 130a5c4cb3 Add retries to downloading the gerrit war file(s).
BUG=337921
TEST=local

Review URL: https://codereview.chromium.org/155413002

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@248821 0039d316-1c4b-4281-b951-d872f2087c98
11 years ago
cranger@google.com 80612babd2 Use the latest gerrit 2.8 RC
googlesource.com runs close to master and the latest gerrit RC is
closest to that. Furthermore, this allows the tests to use the latest
REST api endpoints (including create account).

Fix the sorting of gerrit versions to extend the major revsion numbers
before the RC numbers. This makes 2.7-rc4 comparable to 2.7.1.

The gerrit init command now requires download-commands plugin to be
installed in order for the revisions fetch field to be populated (i.e
to show the download schemes).

NOTRY=true

Review URL: https://codereview.chromium.org/69373002

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@238631 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
szager@chromium.org 545260d272 Configure HOME for the gerrit process.
This prevents jgit from parsing the user's existing ~/.gitconfig,
which can skew test results.

BUG=

Review URL: https://codereview.chromium.org/27752003

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@229245 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
szager@chromium.org b469623afd Add git/gerrit-on-borg utilities.
gob_util.py is a general-purpose library for communicating with the
gerrit-on-borg service.

testing_support/gerrit_test_case.py is a unittest framework for
testing code that interacts with gerrit.

R=vadimsh@chromium.org, cmp@chromium.org
BUG=

Review URL: https://codereview.chromium.org/26399002

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@228965 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
szager@chromium.org 7d51b4faa8 Turn off gerrit emails.
BUG=
R=vadimsh@chromium.org

Review URL: https://codereview.chromium.org/23851027

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@222830 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
szager@chromium.org 7495894e43 Add --ssh-port and --http-port parameters.
These will come in handy when testing code that interacts with
multiple gerrit servers (like chromite).

BUG=
R=vadimsh@chromium.org

Review URL: https://codereview.chromium.org/23620021

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@221051 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
vadimsh@chromium.org f691648838 Ability to install custom Gerrit version.
Also generate SSH keypair for default account to enable SSH access.

R=szager@chromium.org

Review URL: https://codereview.chromium.org/20441002

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@216009 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
szager@chromium.org 3592f93a85 Add .git-credentials file.
TBR=cmp@chromium.org

Review URL: https://codereview.chromium.org/19872002

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@212687 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
szager@chromium.org 3e2fff2e03 Download gerrit.war to depot_tools, not cwd.
Also, fix preferred_email.

TBR=cmp@chromium.org

Review URL: https://codereview.chromium.org/19694003

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@212149 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
szager@chromium.org ef2ba74b87 Utility for bootstrapping a local gerrit instance.
BUG=
R=cmp@chromium.org

Review URL: https://codereview.chromium.org/19406002

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@211865 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago