- 13 Dec, 2013 1 commit
-
-
digit@chromium.org authored
'fetch chromium' will fail if the build dependencies are not already installed on the host machine, because it runs 'gclient sync' which, by default, will run hooks that will try to run build/gyp_chromium (which will then fail). This introduces a --nohooks option that solve the problem by allowing the user to do the following: 1) fetch --nohooks <recipe> 2) src/build/install-build-deps.sh 3) fetch <recipe> BUG=325795 TEST=Run 'fetch --nohooks chromium' in a temporary 'clean' chroot directory. R=maruel@chromium.org,jochen@chromium.org,scottmg@chromium.org,agable@chromium.org Review URL: https://codereview.chromium.org/106403003 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@240680 0039d316-1c4b-4281-b951-d872f2087c98
-
- 12 Dec, 2013 3 commits
-
-
bratell@opera.com authored
If os.kill(os.getpid(), signal.CTRL_C_EVENT) doesn't do what the test author hopes it will do, the test will hang until it has calculated a million out-of-thread/process results. That is approximately an infinite hang. BUG= Review URL: https://codereview.chromium.org/110883004 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@240319 0039d316-1c4b-4281-b951-d872f2087c98
-
bratell@opera.com authored
Actually, don't run presubmit checks on anything starting with python and ending with _bin. BUG=326975 Review URL: https://codereview.chromium.org/111643002 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@240316 0039d316-1c4b-4281-b951-d872f2087c98
-
hinoka@chromium.org authored
Code path: 1. plugins.sso_auth is imported, which adds the AuthHandler class to the global state. 2. HasConfiguredCredentials() in gslib/utils.py is called by gsutil, and will return true if "prodaccess" exists on the system, which tells the system that we don't want a no-op auth handler. 3. When a command is called, all the auth handlers are cycled through and sso_auth.SSOAuth is called, which calls a stubby command to emit a gaiamint'ed oauth2 access token, which is then used as the Authorization Header if --bypass_prodaccess is passed in, then: 1. HasConfiguredCredentials() will bypass the check for prodaccess, as if it didn't exist. 2. plugins.sso_auth does not get imported. Which will essentially cause gsutil to behave as if this patch never existed. So the expected behavior is: =.boto file does not exist, prodaccess exists, but unauthenticated= Failure: No handler was ready to authenticate. 3 handlers were checked. ['OAuth2Auth', 'HmacAuthV1Handler', 'SSOAuth'] Check your credentials. =.boto file exists, prodaccess exists, but unauthenticated= sso_auth will raise NotReadyToAuthenticate, and the .boto file will be used instead =.boto file exists, prodaccess exists, authenticated= sso_auth will be run _after_ the default gsutil authenticator, which causes the sso_auth to be used over whatever the default authentication is. bypass_prodaccess is passed in by default to upload_to_google_storage because we expect people who use upload_to_google_storage to not need prodaccess and have their own boto file already. Also the sso_auth plugin will only request a readonlyi token, which will not work for uploading. BUG=258152 Review URL: https://codereview.chromium.org/86123002 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@240266 0039d316-1c4b-4281-b951-d872f2087c98
-
- 10 Dec, 2013 2 commits
-
-
jsbell@chromium.org authored
R=dpranke@chromium.org Review URL: https://codereview.chromium.org/94033007 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@239830 0039d316-1c4b-4281-b951-d872f2087c98
-
enne@chromium.org authored
This will also enable git cl format to be more easily runnable by presubmit within a subdirectory. BUG=none Review URL: https://codereview.chromium.org/108353005 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@239821 0039d316-1c4b-4281-b951-d872f2087c98
-
- 09 Dec, 2013 2 commits
-
-
bratell@opera.com authored
I hope this will fix the problem with presubmits trying to check the coding styles inside python. BUG=326975 Review URL: https://codereview.chromium.org/103543003 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@239489 0039d316-1c4b-4281-b951-d872f2087c98
-
bratell@opera.com authored
Not all Linux machines have vim preinstalled (example: Ubuntu 12.04). All machines have vi though. And it's actually vim but stripped down. BUG= Review URL: https://codereview.chromium.org/101823005 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@239488 0039d316-1c4b-4281-b951-d872f2087c98
-
- 06 Dec, 2013 1 commit
-
-
brettw@chromium.org authored
This should make Cygwin work to match "win32". Review URL: https://codereview.chromium.org/108743002 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@239244 0039d316-1c4b-4281-b951-d872f2087c98
-
- 05 Dec, 2013 2 commits
-
-
brettw@chromium.org authored
Review URL: https://codereview.chromium.org/107323002 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@239057 0039d316-1c4b-4281-b951-d872f2087c98
-
brettw@chromium.org authored
This normalizes sys.platform so people running cygwin are treated like Windows. Review URL: https://codereview.chromium.org/104763003 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@238999 0039d316-1c4b-4281-b951-d872f2087c98
-
- 04 Dec, 2013 1 commit
-
-
cranger@google.com authored
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
-
- 03 Dec, 2013 2 commits
-
-
maruel@chromium.org authored
This is useful to diagnose slow tests. Make this multiprocessing aware. Stop printing when the commands are added but use the proper message system instead. R=iannucci@chromium.org BUG= Review URL: https://codereview.chromium.org/99453003 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@238388 0039d316-1c4b-4281-b951-d872f2087c98
-
erikchen@google.com authored
I've unified the checks for language specific exceptions to line length. There is a behavior change where cpp compiler directives no longer have a maximum line length (previously they were restricted to 150% of max line length). This change was made to match the behavior for java files. BUG=NONE Review URL: https://codereview.chromium.org/100163002 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@238268 0039d316-1c4b-4281-b951-d872f2087c98
-
- 02 Dec, 2013 1 commit
-
-
thestig@chromium.org authored
R=maruel@chromium.org Review URL: https://codereview.chromium.org/92533002 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@238220 0039d316-1c4b-4281-b951-d872f2087c98
-
- 28 Nov, 2013 1 commit
-
-
ukai@chromium.org authored
BUG=maruel@chromium.org,szager@chromium.org Review URL: https://codereview.chromium.org/90763004 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@237657 0039d316-1c4b-4281-b951-d872f2087c98
-
- 27 Nov, 2013 1 commit
-
-
ukai@chromium.org authored
Tell download tools/hooks/commit-msg mannually if it looks broken. chrome-internal-reviews.googlesource.com requires authentication to access tools/hooks/commit-msg, and we'll get Google Sign-in page rather than expected shell script. R=szager@chromium.org,maruel@chromium.org,ilevy@chromium.org BUG= Review URL: https://codereview.chromium.org/87173002 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@237454 0039d316-1c4b-4281-b951-d872f2087c98
-
- 26 Nov, 2013 2 commits
-
-
maruel@chromium.org authored
Internal teams are relying on git-try as the sole mean to run try jobs so revert this. Hopefully most target users (chromium folks) got the message at least once. R=cmp@chromium.org BUG= Review URL: https://codereview.chromium.org/88743003 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@237361 0039d316-1c4b-4281-b951-d872f2087c98
-
maruel@chromium.org authored
This is a serious bug, if a version is unpinned, it would become stuck at whatever a local branch 'master' may point to. This is extremely bad when a pinned dependency is unpinned on purpose, for example on a canary master. We reproduced this problem on the chromium.swarm master by setting a custom_vars swarming_revision to '', which then stopped syncing at the expected origin/master commit but instead got stuck to what happened to be a local master branch. This happens on git dependencies if the main solution is using svn. This doesn't happen on git checkouts using .DEPS.git due to bug 323233. The issue looks like: ________ running 'git reset --hard HEAD' in '/path/src/tools/swarming_client' HEAD is now at 4727bd5 Some commit Checked out revision d908a546e28d1e9f85f5690cf6c3a080f06ba711 Note that HEAD and what is checked out do not match. Also reduce the hardcoding of 'origin' by creating a variable named 'remote'. R=petermayo@chromium.org BUG=322961 Review URL: https://codereview.chromium.org/85473007 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@237332 0039d316-1c4b-4281-b951-d872f2087c98
-
- 25 Nov, 2013 3 commits
-
-
scottmg@chromium.org authored
Seems overly verbose when run in "gclient runhooks". R=iannucci@chromium.org, brettw@chromium.org Review URL: https://codereview.chromium.org/58783002 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@237120 0039d316-1c4b-4281-b951-d872f2087c98
-
sbc@chromium.org authored
BUG=321279 Review URL: https://codereview.chromium.org/86133002 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@237110 0039d316-1c4b-4281-b951-d872f2087c98
-
tzik@chromium.org authored
.git can be a file that contains actual git-dir. crup-runner couldn't handle this case as managed checkout. Review URL: https://codereview.chromium.org/84543002 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@237074 0039d316-1c4b-4281-b951-d872f2087c98
-
- 21 Nov, 2013 1 commit
-
-
stip@chromium.org authored
Will cause buildbot exceptions otherwise. TBR=maruel@chromium.org Review URL: https://codereview.chromium.org/78843007 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@236437 0039d316-1c4b-4281-b951-d872f2087c98
-
- 20 Nov, 2013 1 commit
-
-
stip@chromium.org authored
BUG=170427 Review URL: https://codereview.chromium.org/60613005 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@236101 0039d316-1c4b-4281-b951-d872f2087c98
-
- 19 Nov, 2013 3 commits
-
-
hinoka@chromium.org authored
BUG=321254 Review URL: https://codereview.chromium.org/76583002 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@236039 0039d316-1c4b-4281-b951-d872f2087c98
-
iannucci@chromium.org authored
Compatible with any git topology (multiple roots, weird branching/merging, etc.) I can't get it to be any faster (in python). Suggestions welcome :). On z600/linux, this takes 5.1s to calculate the initial count for 2e3de954ef0a (HEAD on src.git at the time of writing). Subsequent lookups take ~0.06s. For reference, this machine takes 3s to just list the revisions in sorted order without any additional processing (using rev-list). All calculations are stored in a git-notes-style ref with the exception that the leaf 'tree' object which would normally be stored in a git-notes world is replaced with a packed binary file which consists of records [hash int]. Each run of this script will create only 1 commit object on this internal ref which will have as its parents: * The previous git number commit * All of the target commits we calculated numbers for. This ref is then excluded on subsequent invocations of rev-list, which means that git-number will only ever process commit objects which it hasn't already calculated a value for. It also prevents you from attempting to number this special ref :). This implementation only has a 1-byte fanout which seems to be the best performance for the repos we're dealing with (i.e. on the order of 500k commit objects). Bumping this up to a 2-byte fanout became extremely slow (I suspect the internal caching structures I'm using are not efficient in this mode and could be improved). Using no fanout is slower than the 1 byte fanout for lookups by about 30%. R=agable@chromium.org, stip@chromium.org, szager@chromium.org BUG=280154,309692,skia:1639 Review URL: https://codereview.chromium.org/26109002 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@236035 0039d316-1c4b-4281-b951-d872f2087c98
-
pgervais@chromium.org authored
BUG= Review URL: https://codereview.chromium.org/65933005 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@235857 0039d316-1c4b-4281-b951-d872f2087c98
-
- 18 Nov, 2013 1 commit
-
-
hinoka@chromium.org authored
boto config does the right thing by using the http_proxy env var to set the proxy, and gsutil removes that var which isn't the behavior we want. This should allow gsutil to respect the http_proxy env var. BUG=318478 Review URL: https://codereview.chromium.org/68763013 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@235818 0039d316-1c4b-4281-b951-d872f2087c98
-
- 17 Nov, 2013 1 commit
-
-
maruel@chromium.org authored
Some people just don't want to read chromium-dev@. Wake them up. R=iannucci@chromium.org BUG= Review URL: https://codereview.chromium.org/74273002 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@235548 0039d316-1c4b-4281-b951-d872f2087c98
-
- 15 Nov, 2013 2 commits
-
-
pgervais@chromium.org authored
This modification make gclient-new-workdir.py display explicit error messages instead of cryptic Python backtraces. BUG= Review URL: https://codereview.chromium.org/68213010 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@235408 0039d316-1c4b-4281-b951-d872f2087c98
-
maruel@chromium.org authored
2.7.5 has bug http://bugs.python.org/issue17998 in re package that is affecting the chromium team so it can't be used. The bug is fixed in 2.7.6. This update still respects DEPOT_TOOLS_PYTHON_275=0. Since the name doesn't represent what is being installed, it also respects DEPOT_TOOLS_PYTHON_27=0. R=iannucci@chromium.org BUG=241769 Review URL: https://codereview.chromium.org/73013003 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@235384 0039d316-1c4b-4281-b951-d872f2087c98
-
- 14 Nov, 2013 3 commits
-
-
maruel@chromium.org authored
It may help when the directory is created at high integrity level. This hypothesis is unconfirmed. TBR=iannucci@chromium.org BUG=241769,314257 Review URL: https://codereview.chromium.org/72803002 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@235149 0039d316-1c4b-4281-b951-d872f2087c98
-
maruel@chromium.org authored
Clean up stray spaces. TBR=iannucci@chromium.org BUG=241769 Review URL: https://codereview.chromium.org/72783002 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@235145 0039d316-1c4b-4281-b951-d872f2087c98
-
maruel@chromium.org authored
This will automatically upgrade python to 2.7.5 unless set DEPOT_TOOLS_PYTHON_275=0 is used. R=iannucci@chromium.org BUG=241769 Review URL: https://codereview.chromium.org/53313002 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@235140 0039d316-1c4b-4281-b951-d872f2087c98
-
- 13 Nov, 2013 1 commit
-
-
deymo@chromium.org authored
ChromiumOS only developers don't always have a Chromium checkout and a Rietveld cookie file (~/.codereview_upload_cookies) with the auth keys. This patch proceeds with the activity lookup from other services such as Gerrit and GoB if there's no Rietveld cookie present, displaying an error message when this happens. BUG=chromium:316961 TEST=Remove ~/.codereview_upload_cookies and ran my_activity. ChromeOS activity listed. Review URL: https://codereview.chromium.org/68763004 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@234874 0039d316-1c4b-4281-b951-d872f2087c98
-
- 11 Nov, 2013 1 commit
-
-
brettw@chromium.org authored
R=maruel@chromium.org Review URL: https://codereview.chromium.org/69693002 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@234321 0039d316-1c4b-4281-b951-d872f2087c98
-
- 08 Nov, 2013 1 commit
-
-
brettw@chromium.org authored
This automatically searches the path for a source root (or takes one from the command line), and then executes the current platform's GN binary inside that source tree. This will allow the user to have a "gn" command on their path, and allow our scripts to run GN without having to bake-in the logic for finding the correct platform's GN binary. Review URL: https://codereview.chromium.org/66013002 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@233983 0039d316-1c4b-4281-b951-d872f2087c98
-
- 07 Nov, 2013 2 commits
-
-
iannucci@chromium.org authored
Previously this relied on being able to track branches which didn't have a remote refspec. Now we add a fake origin for the git-svn test repo, and use --prefix so that git has a remote to track and the refs are correctly namespaced. Should also be backwards compatible with older versions of git. R=maruel@chromium.org BUG= Review URL: https://codereview.chromium.org/61893006 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@233649 0039d316-1c4b-4281-b951-d872f2087c98
-
iannucci@chromium.org authored
R=maruel@chromium.org BUG= Review URL: https://codereview.chromium.org/63813002 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@233566 0039d316-1c4b-4281-b951-d872f2087c98
-
- 06 Nov, 2013 1 commit
-
-
deymo@chromium.org authored
This patch adds a new function QueryAllChanges to gerrit_util.py allowing the caller to iterate the list of changes regardless the maximum limit of changes per request that the server supports (by default 500 according to gerrit's documentation). my_activity.py is ported to use this function instead of urllib2 to manually make the request. This also adds support for authentication since gerrit_util.py already supports it, and the internal gerrit instance is now re-enabled. Finally, two minor bugs are fixed on the hanlding of returned results: The DETAILED_ACCOUNTS option is passed to gerrit to request the email addresses of the referenced users and users without an email address, such as the "Gerrit Code Review" user on the internal gerrit, are now supported. BUG=chromium:311649,chromium:281695 TEST=Manual run "my_activity.py -u USER" for some users. Review URL: https://codereview.chromium.org/50283002 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@233166 0039d316-1c4b-4281-b951-d872f2087c98
-