- 15 May, 2017 3 commits
-
-
Aaron Gable authored
If every file in a change has OWNERS, then the code would find them fine. Similarly, if no files has OWNERS, then this code would return an empty set just fine. But if some files had OWNERS while others didn't, it would crash when it tried to find an OWNER for file 'foo' while all the possible OWNERS only provided coverage for file 'bar'. This code purges the list of possible OWNERS as they become useless for providing additional coverage, and returns whatever set we have accumulated so far when the set of possible OWNERS becomes empty. R=iannucci@chromium.org Bug: 715062 Change-Id: I408601bd89379381db1cc7df56beed97ab3c27e6 Reviewed-on: https://chromium-review.googlesource.com/506239 Commit-Queue: Aaron Gable <agable@chromium.org> Reviewed-by:
Robbie Iannucci <iannucci@chromium.org>
-
Scott Graham authored
This adds support for 'hooks_os' in .gclient which runs the given hooks only when the associated os is specifed in target_os. Bug: 706592 Change-Id: If70e51e0e784f8a8c6e45b33f59605b883a16f6e Reviewed-on: https://chromium-review.googlesource.com/503534Reviewed-by:
Paweł Hajdan Jr. <phajdan.jr@chromium.org> Reviewed-by:
Dirk Pranke <dpranke@chromium.org> Commit-Queue: Paweł Hajdan Jr. <phajdan.jr@chromium.org>
-
Paweł Hajdan, Jr authored
Bug: none Change-Id: I447f66765679b7b66b5748af1cf1f501610603bf Reviewed-on: https://chromium-review.googlesource.com/504408Reviewed-by:
Andrii Shyshkalov <tandrii@chromium.org> Commit-Queue: Paweł Hajdan Jr. <phajdan.jr@chromium.org>
-
- 11 May, 2017 3 commits
-
-
Andrii Shyshkalov authored
Previously landed as: > Change-Id: Ieb6415d55e85b91f11f9052b0fd08cf982b64d51 > Reviewed-on: https://chromium-review.googlesource.com/501849 R=agable@chromium.org,machenbach@chromium.org Bug: 717504 Change-Id: Iede5c29ff4c317b68d8c2bca319edec140a176f5 Reviewed-on: https://chromium-review.googlesource.com/502908 Commit-Queue: Andrii Shyshkalov <tandrii@chromium.org> Reviewed-by:
Michael Achenbach <machenbach@chromium.org>
-
Andrii Shyshkalov authored
This reverts commit 28a5d5de. Reason for revert: breaks assumption in function for adding footers Original change's description: > Relax git_footers parsing to match that of Gerrit (JGit). > > R=agable@chromium.org > > Bug: 717504 > Change-Id: Ieb6415d55e85b91f11f9052b0fd08cf982b64d51 > Reviewed-on: https://chromium-review.googlesource.com/501849 > Commit-Queue: Andrii Shyshkalov <tandrii@chromium.org> > Reviewed-by: Aaron Gable <agable@chromium.org> > TBR=agable@chromium.org,machenbach@chromium.org,tandrii@chromium.org NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true Bug: 717504 Change-Id: I9b4d619b2972be8434aff9464f1959fbcb3abd32 Reviewed-on: https://chromium-review.googlesource.com/503030Reviewed-by:
Andrii Shyshkalov <tandrii@chromium.org> Commit-Queue: Andrii Shyshkalov <tandrii@chromium.org>
-
Paweł Hajdan, Jr authored
Bug: 570091 Change-Id: I1297f817f2e3d791c22b256de40f12c0c23dceb5 Reviewed-on: https://chromium-review.googlesource.com/500807 Commit-Queue: Paweł Hajdan Jr. <phajdan.jr@chromium.org> Reviewed-by:
Dirk Pranke <dpranke@chromium.org>
-
- 10 May, 2017 1 commit
-
-
Andrii Shyshkalov authored
R=agable@chromium.org Bug: 717504 Change-Id: Ieb6415d55e85b91f11f9052b0fd08cf982b64d51 Reviewed-on: https://chromium-review.googlesource.com/501849 Commit-Queue: Andrii Shyshkalov <tandrii@chromium.org> Reviewed-by:
Aaron Gable <agable@chromium.org>
-
- 09 May, 2017 2 commits
-
-
Aaron Gable authored
The old system had two faults: * It set reviewers and ccs via different mechanisms, which is confusing * It set CCs with a single call for each, resulting in N separate emails, with each email going to the uploader and all reviewers and all previous CCs. This new system just collects all reviewers and CCs, and sets them in a single call. That call will fail if *any* of the individual reviewers or ccs fail, so it also parses the response and retries with only the ones which would have succeeded on their own. If that second call fails, or the first fails in an unexpected way, it raises an exception like normal Bug: 710028 Change-Id: I1be508487a41f0b68f9c41908229b8f5342830a3 Reviewed-on: https://chromium-review.googlesource.com/479712 Commit-Queue: Aaron Gable <agable@chromium.org> Reviewed-by:
Andrii Shyshkalov <tandrii@chromium.org>
-
Paweł Hajdan, Jr authored
Inspired by https://chromium-review.googlesource.com/c/411515/ . Bug: 570091 Change-Id: I7bf9653178c06125ae8be1dee021acfc187b2bdc Reviewed-on: https://chromium-review.googlesource.com/497848 Commit-Queue: Paweł Hajdan Jr. <phajdan.jr@chromium.org> Reviewed-by:
Dirk Pranke <dpranke@chromium.org>
-
- 01 May, 2017 1 commit
-
-
Aaron Gable authored
This CL wholly revamps the way presubmit_support adds CQ_INCLUDE_TRYBOTS lines in commit descriptions. In particular, when the CL is being uploaded to Gerrit, it uses our pre-existing support for manipulating git footers to make the whole process much simpler. R=tandrii@chromium.org Bug: 710547 Change-Id: I5858282a44c590f131021fa3820f1cb3f70ef620 Reviewed-on: https://chromium-review.googlesource.com/487831 Commit-Queue: Aaron Gable <agable@chromium.org> Reviewed-by:
Andrii Shyshkalov <tandrii@chromium.org>
-
- 27 Apr, 2017 2 commits
-
-
Aaron Gable authored
When uploading to either Rietveld or Gerrit, this will cause git-cl to add the appropriate reviewers to the cherry-pick review, so they're aware the change is being copied to the release branch. When uploading to Gerrit, this will also cause git-cl to set the Code-Review+1 bit, allowing the CL to be landed R=tandrii@chromium.org Bug: 714720 Change-Id: Ie04e2657a91e4345796ac2200c0115fb18e460a1 Reviewed-on: https://chromium-review.googlesource.com/486961 Commit-Queue: Aaron Gable <agable@chromium.org> Reviewed-by:
Andrii Shyshkalov <tandrii@chromium.org>
-
Aaron Gable authored
This allows inserted footers to be specified as either before or after other potentially-present footers. It has one slight behavior change (reflected in the tests): If after_keys is specified but *doesn't match* any pre-existing footers, then the behavior does *not* switch to "insert as early as possible". The behavior switch only happens if the after_keys actually match a footer. R=iannucci@chromium.org Bug: 710547 Change-Id: If557978fe9309785285056eb557acbdc87960bb2 Reviewed-on: https://chromium-review.googlesource.com/487606Reviewed-by:
Robbie Iannucci <iannucci@chromium.org> Reviewed-by:
Andrii Shyshkalov <tandrii@chromium.org> Commit-Queue: Aaron Gable <agable@chromium.org>
-
- 26 Apr, 2017 1 commit
-
-
Andrii Shyshkalov authored
R=agable@chromium.org,iannucci@chromium.org Before, this block of footers won't be recognized by git_footers: Bug: Change-Id: xxx because of empty value for "Bug:". This CL fixes this behavior. Bug: 715614 Change-Id: Iabe45bfc027fda15cbe0cd5ce9b883ce3b891220 Reviewed-on: https://chromium-review.googlesource.com/487963 Commit-Queue: Andrii Shyshkalov <tandrii@chromium.org> Reviewed-by:
Robbie Iannucci <iannucci@chromium.org> Reviewed-by:
Aaron Gable <agable@chromium.org>
-
- 25 Apr, 2017 1 commit
-
-
Kenneth Russell authored
BUG=710547 Change-Id: I6558ba08683b8e010ac5051dabfd82d9a5b9c551 Reviewed-on: https://chromium-review.googlesource.com/486083Reviewed-by:
Aaron Gable <agable@chromium.org> Commit-Queue: Kenneth Russell <kbr@chromium.org>
-
- 20 Apr, 2017 2 commits
-
-
Andrii Shyshkalov authored
R=maruel@chromium.org,jrobbins@chromium.org BUG=712060 Change-Id: I16651d9926fe0f3a74549a4c03896220f9a58f94 Reviewed-on: https://chromium-review.googlesource.com/482659Reviewed-by:
Marc-Antoine Ruel <maruel@chromium.org> Commit-Queue: Andrii Shyshkalov <tandrii@chromium.org>
-
Jochen Eisinger authored
A comment that is preceded with an empty line (or starts at the beginning of the file) will be attributed to owners listed directly below the comment. Otherwise, if the comment is in the middle of a list of owners, it will only be attributed to the next owner. BUG=712589 R=dpranke@chromium.org Change-Id: I19bd7809836b6ee65ef56e2ec399e5cd09eaa132 Reviewed-on: https://chromium-review.googlesource.com/481303 Commit-Queue: Jochen Eisinger <jochen@chromium.org> Reviewed-by:
Dirk Pranke <dpranke@chromium.org>
-
- 18 Apr, 2017 6 commits
-
-
Aaron Gable authored
This makes the library behave more like what we'd expect, while still allowing certain function to specify that returning 204 or 404 is expected/acceptable behavior. Change-Id: If3ce5598d1603819ee97aaeab0072a9e786ed96d Reviewed-on: https://chromium-review.googlesource.com/481043Reviewed-by:
Robbie Iannucci <iannucci@chromium.org> Commit-Queue: Aaron Gable <agable@chromium.org>
-
Aaron Gable authored
Gerrit sometimes returns a full response json object at the same time as returning a non-200 status code. This refactor makes it easier for calling code to request access to that object and handle error cases on its own. The original version of this commit had a bug where ReadHttpResponse properly set the default value for accept_statuses, but all calls which came through ReadHttpJsonResponse were setting None instead. Bug: 710028 Change-Id: I8cee435d8acd487fb777b3fd69b5e48e19d2e5a3 Reviewed-on: https://chromium-review.googlesource.com/481060Reviewed-by:
Robbie Iannucci <iannucci@chromium.org> Reviewed-by:
Andrii Shyshkalov <tandrii@chromium.org> Commit-Queue: Aaron Gable <agable@chromium.org>
-
Aaron Gable authored
This reverts commit 6d7ab1bf. Reason for revert: Stacktrace: File "/s/depot_tools/gerrit_util.py", line 816, in GetAccountDetails return ReadHttpJsonResponse(conn) File "/s/depot_tools/gerrit_util.py", line 376, in ReadHttpJsonResponse fh = ReadHttpResponse(conn, accept_statuses) File "/s/depot_tools/gerrit_util.py", line 365, in ReadHttpResponse if response.status not in accept_statuses: TypeError: argument of type 'NoneType' is not iterable Original change's description: > Refactor ReadHttpResponse to be error-friendlier > > Gerrit sometimes returns a full response json object at > the same time as returning a non-200 status code. This > refactor makes it easier for calling code to request > access to that object and handle error cases on its own. > > Bug: 710028 > Change-Id: Id1017d580d2fb843d5ca6287efcfed8775c52cd6 > Reviewed-on: https://chromium-review.googlesource.com/479450 > Commit-Queue: Aaron Gable <agable@chromium.org> > Reviewed-by: Andrii Shyshkalov <tandrii@chromium.org> > TBR=agable@chromium.org,tandrii@chromium.org,chromium-reviews@chromium.org NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true Change-Id: Ia9d9ce835e207a32e7cc8ee35c0cf40c823c7b78 Reviewed-on: https://chromium-review.googlesource.com/481059Reviewed-by:
Aaron Gable <agable@chromium.org> Commit-Queue: Aaron Gable <agable@chromium.org>
-
Robert Iannucci authored
Bug: Change-Id: I6c8ffaa5d8b934e287c97b97faf6909df5d02978 Reviewed-on: https://chromium-review.googlesource.com/479781 Commit-Queue: Robbie Iannucci <iannucci@chromium.org> Reviewed-by:
Andrii Shyshkalov <tandrii@chromium.org>
-
Aaron Gable authored
Gerrit sometimes returns a full response json object at the same time as returning a non-200 status code. This refactor makes it easier for calling code to request access to that object and handle error cases on its own. Bug: 710028 Change-Id: Id1017d580d2fb843d5ca6287efcfed8775c52cd6 Reviewed-on: https://chromium-review.googlesource.com/479450 Commit-Queue: Aaron Gable <agable@chromium.org> Reviewed-by:
Andrii Shyshkalov <tandrii@chromium.org>
-
Andrii Shyshkalov authored
This CL propagates <diff_base> all the way to become parent commit of the syntentic commit generated by squashing the current branch. BUG=649846 R=agable@chromium.org Change-Id: Ided7ebbb5c3a1114cac18adb62b3a9c27610018c Reviewed-on: https://chromium-review.googlesource.com/475229Reviewed-by:
Aaron Gable <agable@chromium.org> Commit-Queue: Andrii Shyshkalov <tandrii@chromium.org>
-
- 17 Apr, 2017 1 commit
-
-
Jochen Eisinger authored
BUG=141253 R=dpranke@chromium.org Change-Id: Iacbc2f0571e725e4f2ccf5ea7878f101972289bb Reviewed-on: https://chromium-review.googlesource.com/476610Reviewed-by:
Dirk Pranke <dpranke@chromium.org> Commit-Queue: Jochen Eisinger <jochen@chromium.org>
-
- 12 Apr, 2017 2 commits
-
-
Andrii Shyshkalov authored
R=machenbach@chromium.org Change-Id: I54f4a0507352f4d4e460188c9bc6425ff83f28bb Reviewed-on: https://chromium-review.googlesource.com/475910Reviewed-by:
Michael Achenbach <machenbach@chromium.org> Commit-Queue: Andrii Shyshkalov <tandrii@chromium.org>
-
Andrii Shyshkalov authored
Shorten lines and remove useless stacktrace to make sure the actually usefull exception fits on tandrii@'s screen :) R=sergiyb@chromium.org Change-Id: I387da6c70f72a122d64f7a044d201d72a858fc3f Reviewed-on: https://chromium-review.googlesource.com/475811Reviewed-by:
Sergiy Byelozyorov <sergiyb@chromium.org> Commit-Queue: Andrii Shyshkalov <tandrii@chromium.org>
-
- 11 Apr, 2017 4 commits
-
-
Aaron Gable authored
While working on fixing git-cl-status for gerrit, I realized it would be really easy to bring the Rietveld version up to parity and simplify it at the same time. Bug: 706460 Change-Id: Icff32b532fa29f8869205111cd117176e0d34b8f Reviewed-on: https://chromium-review.googlesource.com/470448 Commit-Queue: Aaron Gable <agable@chromium.org> Reviewed-by:
Andrii Shyshkalov <tandrii@chromium.org>
-
Andrii Shyshkalov authored
* if --rietveld or --gerrit is given, parse only using appropriate parser. * if url has '$HOST-review' in the beginning, assume it's Gerrit * if type of codereview is detected based on URL, then print this information for the user. This also applies to `git cl description` but message is logged instead, because in '-d|--display' option git cl is supposed to print only description, and some tooling likely relies on this :( R=jochen@chromium.org BUG=706406 Change-Id: I21c9355c5334fd71db27618cda11287f75168b59 Reviewed-on: https://chromium-review.googlesource.com/473186 Commit-Queue: Andrii Shyshkalov <tandrii@chromium.org> Reviewed-by:
Jochen Eisinger <jochen@chromium.org>
-
Paweł Hajdan, Jr authored
See https://codereview.chromium.org/2808833003/ for context. Bug: 699120, 693058 Change-Id: I1420c347d4ae2bac8bea54bc1b921fe6b65e6161 Reviewed-on: https://chromium-review.googlesource.com/474027Reviewed-by:
Robbie Iannucci <iannucci@chromium.org> Commit-Queue: Paweł Hajdan Jr. <phajdan.jr@chromium.org>
-
Matt Giuca authored
BUG=709835 Change-Id: Ia203cf24adf752ef3acdf660b4fe0990503782b9 Reviewed-on: https://chromium-review.googlesource.com/472587Reviewed-by:
Robbie Iannucci <iannucci@chromium.org> Commit-Queue: Matt Giuca <mgiuca@chromium.org>
-
- 10 Apr, 2017 4 commits
-
-
Andrii Shyshkalov authored
R=jochen@chromium.org BUG=706406 Change-Id: I477d1cf629bb0bccebead6e5c0189830ea76be7e Reviewed-on: https://chromium-review.googlesource.com/472867 Commit-Queue: Andrii Shyshkalov <tandrii@chromium.org> Reviewed-by:
Jochen Eisinger <jochen@chromium.org>
-
Matt Giuca authored
This could, in extreme cases, result in a crash due to the wrong line number being out of bounds of the file line count. BUG=709831 Change-Id: I08ec75362d49c4a72e7ee9fd489d5f9baa6d31bd Reviewed-on: https://chromium-review.googlesource.com/472648Reviewed-by:
Nico Weber <thakis@chromium.org> Reviewed-by:
Jochen Eisinger <jochen@chromium.org> Commit-Queue: Nico Weber <thakis@chromium.org>
-
Andrii Shyshkalov authored
This is temporary, and will be changed in subsequent CLs. For now, it suffices to stop relying on pseudo-random dictionary order in tests and prod. R=jochen@chromium.org BUG=706406 Change-Id: I26c467a28bc63b5f81d20fc222a2b6f0511c507f Reviewed-on: https://chromium-review.googlesource.com/472750Reviewed-by:
Jochen Eisinger <jochen@chromium.org> Commit-Queue: Andrii Shyshkalov <tandrii@chromium.org>
-
Jochen Eisinger authored
R=dpranke@chromium.org BUG=694222 Change-Id: I5676db2283dd43378293bc9bb32f71e0a1225806 Reviewed-on: https://chromium-review.googlesource.com/471609Reviewed-by:
Dirk Pranke <dpranke@chromium.org> Commit-Queue: Jochen Eisinger <jochen@chromium.org>
-
- 05 Apr, 2017 3 commits
-
-
Jochen Eisinger authored
BUG=694222 R=dpranke@chromium.org Change-Id: Ie841332129dd6fa8555d2e940c919b812fc9408d Reviewed-on: https://chromium-review.googlesource.com/467250Reviewed-by:
Dirk Pranke <dpranke@chromium.org> Commit-Queue: Jochen Eisinger <jochen@chromium.org>
-
Andrii Shyshkalov authored
This reverts commit 0267fd2c. Reason for revert: seems to have changed some behavior as reported by SKIA. Original change's description: > git cl upload for Gerrit: use push options instead of refspec. > > This removes limitation of no special chars in patchset titles. > > BUG=chromium:663787,chromium:707963,gerrit:5184 > R=sergiyb@chromium.org,agable@chromium.org > TEST=uploaded this CL using depot_tools with this patch :) > > Change-Id: I5d684d0a0aa286a45ff99cca6d57aefa8436cd0f > Reviewed-on: https://chromium-review.googlesource.com/468926 > Commit-Queue: Andrii Shyshkalov <tandrii@chromium.org> > Reviewed-by: Sergiy Byelozyorov <sergiyb@google.com> > TBR=agable@chromium.org,sergiyb@google.com,tandrii@chromium.org,sergiyb@chromium.org,borenet@chromium.org,chromium-reviews@chromium.org NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=chromium:663787,chromium:707963,gerrit:5184 Change-Id: I3306091b14b97a200150389d0480b69120af8c61 Reviewed-on: https://chromium-review.googlesource.com/469006Reviewed-by:
Andrii Shyshkalov <tandrii@chromium.org> Commit-Queue: Andrii Shyshkalov <tandrii@chromium.org>
-
Andrii Shyshkalov authored
This removes limitation of no special chars in patchset titles. BUG=chromium:663787,chromium:707963,gerrit:5184 R=sergiyb@chromium.org,agable@chromium.org TEST=uploaded this CL using depot_tools with this patch :) Change-Id: I5d684d0a0aa286a45ff99cca6d57aefa8436cd0f Reviewed-on: https://chromium-review.googlesource.com/468926 Commit-Queue: Andrii Shyshkalov <tandrii@chromium.org> Reviewed-by:
Sergiy Byelozyorov <sergiyb@google.com>
-
- 04 Apr, 2017 1 commit
-
-
Jochen Eisinger authored
This allows for having some global comments such as timezones or long-term unavailability. The comments go into build/OWNERS.status (that way, they should be available in all repos that map in build/ for the gn config files). The local can be overwritten in codereview.settings. The format is email: status Comments (starting with #) are allowed in that file, but they're ignored. BUG=694222 R=dpranke@chromium.org Change-Id: I49f58be87497d1ccaaa74f0a2f3d373403be44e7 Reviewed-on: https://chromium-review.googlesource.com/459542 Commit-Queue: Jochen Eisinger <jochen@chromium.org> Reviewed-by:
Dirk Pranke <dpranke@chromium.org>
-
- 29 Mar, 2017 2 commits
-
-
Robert Iannucci authored
This is needed for making PostUploadHooks that don't have to re-invent the git footers library. Bug: Change-Id: I0a0ccf3dffd25152c2c273487ddbd9b279d80678 Reviewed-on: https://chromium-review.googlesource.com/461729Reviewed-by:
Aaron Gable <agable@chromium.org> Commit-Queue: Robbie Iannucci <iannucci@chromium.org>
-
anatoly techtonik authored
Windows paths use backward slash separator, which escapes regular expressions for white and black lists in PRESUBMIT.py filters See https://goo.gl/6c7aku for discussion Bug: Change-Id: Ia1d133c5b6cfa6cb364b1500b7b7abe583bce346 Reviewed-on: https://chromium-review.googlesource.com/461141 Commit-Queue: Marc-Antoine Ruel <maruel@chromium.org> Reviewed-by:
Marc-Antoine Ruel <maruel@chromium.org>
-
- 27 Mar, 2017 1 commit
-
-
Andrii Shyshkalov authored
R=sergiyb@chromium.org BUG=689543 Change-Id: Ifb0bc9a03da09cb81ba94c310ae59cfee69b7de1 Reviewed-on: https://chromium-review.googlesource.com/461137Reviewed-by:
Sergiy Byelozyorov <sergiyb@chromium.org> Commit-Queue: Andrii Shyshkalov <tandrii@chromium.org>
-