Dan Le Febvre
f2da906faf
Revert "resolve CIPD package names in gclient"
...
This reverts commit 8faa5514ec .
Reason for revert: cipd expand-package-name errors on wrong platform
Original change's description:
> resolve CIPD package names in gclient
>
> Currently the package names are not resolved in gclient output, see example below.
>
> This is part of broader work to improve CIPD output, the next CL will replace 'None'.
>
> ```
> $~ gclient revinfo -a | grep '${platform}\|${arch}'
>
> src/buildtools/linux64:gn/gn/linux-${arch}: None
> src/buildtools/reclient:infra/rbe/client/${platform}: None
> src/third_party/dawn/third_party/ninja:infra/3pp/tools/ninja/${platform}: None
> src/third_party/dawn/tools/golang:infra/3pp/tools/go/${platform}: None
> src/third_party/devtools-frontend-internal/devtools-frontend/third_party/esbuild:infra/3pp/tools/esbuild/${platform}: None
> src/third_party/devtools-frontend/src/third_party/esbuild:infra/3pp/tools/esbuild/${platform}: None
> src/third_party/ninja:infra/3pp/tools/ninja/${platform}: None
> src/tools/luci-go:infra/tools/luci/isolate/${platform}: None
> src/tools/luci-go:infra/tools/luci/swarming/${platform}: None
> src/tools/resultdb:infra/tools/result_adapter/${platform}: None
> ```
>
> Bug:b/279097790
> Change-Id: I21abf2579910e9d79d9ee0dcd018ee761e3d3c1c
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/4463983
> Reviewed-by: Rachael Newitt <renewitt@google.com >
> Reviewed-by: Gavin Mak <gavinmak@google.com >
> Commit-Queue: Dan Le Febvre <dlf@google.com >
Bug: b/279097790
Change-Id: I0beba8606d8cceeb815629d6eae6d8021c7731a8
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/4501579
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com >
Reviewed-by: Ben Pastene <bpastene@chromium.org >
Auto-Submit: Dan Le Febvre <dlf@google.com >
Reviewed-by: Robbie Iannucci <iannucci@chromium.org >
Owners-Override: Ben Pastene <bpastene@chromium.org >
Commit-Queue: Ben Pastene <bpastene@chromium.org >
2023-05-03 00:35:09 +00:00
Dan Le Febvre
8faa5514ec
resolve CIPD package names in gclient
...
Currently the package names are not resolved in gclient output, see example below.
This is part of broader work to improve CIPD output, the next CL will replace 'None'.
```
$~ gclient revinfo -a | grep '${platform}\|${arch}'
src/buildtools/linux64:gn/gn/linux-${arch}: None
src/buildtools/reclient:infra/rbe/client/${platform}: None
src/third_party/dawn/third_party/ninja:infra/3pp/tools/ninja/${platform}: None
src/third_party/dawn/tools/golang:infra/3pp/tools/go/${platform}: None
src/third_party/devtools-frontend-internal/devtools-frontend/third_party/esbuild:infra/3pp/tools/esbuild/${platform}: None
src/third_party/devtools-frontend/src/third_party/esbuild:infra/3pp/tools/esbuild/${platform}: None
src/third_party/ninja:infra/3pp/tools/ninja/${platform}: None
src/tools/luci-go:infra/tools/luci/isolate/${platform}: None
src/tools/luci-go:infra/tools/luci/swarming/${platform}: None
src/tools/resultdb:infra/tools/result_adapter/${platform}: None
```
Bug:b/279097790
Change-Id: I21abf2579910e9d79d9ee0dcd018ee761e3d3c1c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/4463983
Reviewed-by: Rachael Newitt <renewitt@google.com >
Reviewed-by: Gavin Mak <gavinmak@google.com >
Commit-Queue: Dan Le Febvre <dlf@google.com >
2023-05-02 23:10:32 +00:00
Josip Sokcevic
0ddbf02283
[py3] Run gclient git test with py3
...
R=gavinmak@google.com
Bug: 1376538
Change-Id: I742bc767cb6d7164921a481658517ae148127d47
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/4491345
Commit-Queue: Josip Sokcevic <sokcevic@chromium.org >
Reviewed-by: Gavin Mak <gavinmak@google.com >
2023-04-28 22:07:56 +00:00
Brian Ryner
9acd55ea89
Have fake_cipd accept 'export' in addition to 'ensure'.
...
Change-Id: Ia82e81a2d4b5fc37856e9abbda79681b61f6fcd0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/4492323
Reviewed-by: Josip Sokcevic <sokcevic@chromium.org >
Commit-Queue: Josip Sokcevic <sokcevic@chromium.org >
Auto-Submit: Brian Ryner <bryner@google.com >
2023-04-28 19:53:30 +00:00
Josip Sokcevic
7958e30579
Revert "Move scm.py to lib/"
...
This reverts commit 688adfe276 .
Reason for revert: breaks try jobs
Original change's description:
> Move scm.py to lib/
>
> It belongs there.
>
> Change-Id: I286b50c43c587c39557fc508175efbd4b0f51d51
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/4289680
> Reviewed-by: Joanna Wang <jojwang@chromium.org >
> Commit-Queue: Josip Sokcevic <sokcevic@chromium.org >
Change-Id: I662907b8bb4b2e7db82409bd34c3905db7961a12
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/4300261
Commit-Queue: Josip Sokcevic <sokcevic@chromium.org >
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com >
2023-03-01 23:02:21 +00:00
Josip Sokcevic
688adfe276
Move scm.py to lib/
...
It belongs there.
Change-Id: I286b50c43c587c39557fc508175efbd4b0f51d51
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/4289680
Reviewed-by: Joanna Wang <jojwang@chromium.org >
Commit-Queue: Josip Sokcevic <sokcevic@chromium.org >
2023-03-01 22:46:12 +00:00
Gavin Mak
d83509c0c3
Move presubmit_canned_checks tests under tests/ and fix
...
Only tests under tests/ are run on presubmit, so
presubmit_canned_checks_test.py is not run. Move these there and fix
them.
Bug: 1385693
Change-Id: Ib01a816b0a81919722ea49e5551010251c0e3287
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/4038514
Commit-Queue: Gavin Mak <gavinmak@google.com >
Reviewed-by: Josip Sokcevic <sokcevic@chromium.org >
Reviewed-by: Aravind Vasudevan <aravindvasudev@google.com >
2022-11-28 17:25:14 +00:00
Joanna Wang
a84a16b863
[no-sync] Set _should_sync and add flag to control if the experiment should be enabled.
...
Bug:1339472
Change-Id: I19abca1f4319a89cc461935a83d136c8870944dc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3721601
Reviewed-by: Gavin Mak <gavinmak@google.com >
Commit-Queue: Joanna Wang <jojwang@chromium.org >
2022-07-27 18:52:17 +00:00
Josip Sokcevic
4de5deacd4
Explicitly run everything with python3
...
R=aravindvasudev@google.com , gavinmak@google.com
Change-Id: Iaa5e960c6226dea3a0814c7cb778d952eafb1502
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3525960
Reviewed-by: Gavin Mak <gavinmak@google.com >
Reviewed-by: Aravind Vasudevan <aravindvasudev@google.com >
Commit-Queue: Josip Sokcevic <sokcevic@google.com >
2022-03-23 21:15:14 +00:00
Aravind Vasudevan
c5f0cbb865
Use pylint 2.7 for depot_tools
...
This includes a few fixes for specific errors, and disables several new
warnings introduced in this version, in order to allow for an incremental migration.
Bug:1262286
Change-Id: I4b8f8fc521386419a3121bbb07edc8ac83170a94
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3413679
Reviewed-by: Josip Sokcevic <sokcevic@google.com >
Commit-Queue: Aravind Vasudevan <aravindvasudev@google.com >
2022-01-24 23:56:57 +00:00
Josip Sokcevic
42c5bbbc96
Revert "Use pylint 2.7 for depot_tools"
...
This reverts commit 22bf605bb6 .
Reason for revert: breaks gclient sync
Original change's description:
> Use pylint 2.7 for depot_tools
>
> This includes a few fixes for specific errors, and disables several new
> warnings introduced in this version, in order to allow for an incremental migration.
>
> Bug:1262286
> Change-Id: Ie97d686748c9c952e87718a65f401c5f6f80a5c9
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3400616
> Reviewed-by: Gavin Mak <gavinmak@google.com >
> Commit-Queue: Aravind Vasudevan <aravindvasudev@google.com >
Bug: 1262286
Change-Id: Ieb946073c7886c7bf056ce843a5a48e82becf7a5
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3413672
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com >
Commit-Queue: Josip Sokcevic <sokcevic@google.com >
2022-01-24 21:42:28 +00:00
Aravind Vasudevan
22bf605bb6
Use pylint 2.7 for depot_tools
...
This includes a few fixes for specific errors, and disables several new
warnings introduced in this version, in order to allow for an incremental migration.
Bug:1262286
Change-Id: Ie97d686748c9c952e87718a65f401c5f6f80a5c9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3400616
Reviewed-by: Gavin Mak <gavinmak@google.com >
Commit-Queue: Aravind Vasudevan <aravindvasudev@google.com >
2022-01-24 21:11:19 +00:00
Aravind Vasudevan
e9714986c0
Updated git init with -b flag
...
R=sokcevic@google.com
Bug: 1147123
Change-Id: I98e29c4b7525a15447fb9bdd354b227d8f7469a7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3352249
Reviewed-by: Josip Sokcevic <sokcevic@google.com >
Commit-Queue: Aravind Vasudevan <aravindvasudev@google.com >
2022-01-05 17:57:18 +00:00
Josip Sokcevic
3912091152
Use py3 for remaining tools in depot_tools path
...
R=apolito@google.com , dpranke@google.com
Bug: 1199102
Change-Id: I06ff344ac91464eb558e92598c87e43ecfa830dc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2994488
Auto-Submit: Josip Sokcevic <sokcevic@google.com >
Commit-Queue: Dirk Pranke <dpranke@google.com >
Reviewed-by: Anthony Polito <apolito@google.com >
Reviewed-by: Dirk Pranke <dpranke@google.com >
2021-07-20 18:35:42 +00:00
Josip Sokcevic
7e133ff177
Use main branch as the default branch
...
R=apolito@google.com
Change-Id: I6a2ed557b9e8d45194b2fe4ea5327ce62020733c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3000134
Reviewed-by: Anthony Polito <apolito@google.com >
Commit-Queue: Josip Sokcevic <sokcevic@google.com >
2021-07-13 17:44:53 +00:00
Josip Sokcevic
d63d1dde9f
Set default branch in fake_repos
...
Tests should start to rely on fake_repos.DEFAULT_BRANCH so it can be
renamed in the future. This is a quick fix in case
git.init.defaultBranch is set to a custom value.
Bug: 1144918
Change-Id: I1c8cd591bee6b5fe14a5de4683111a89224cb2b9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2521655
Commit-Queue: Josip Sokcevic <sokcevic@google.com >
Reviewed-by: Edward Lesmes <ehmaldonado@chromium.org >
2020-11-09 18:18:44 +00:00
Corentin Wallez
801c20219b
gclient: deprecated use_relative_hooks
...
And merge it in use_relative_paths. In all Chromium repos,
use_relative_hooks is True iff:
- use_relative_paths is True, and
- there is at least one hook
It makes sense that you'd want to use relative hooks if you use relative
paths so this CL merges both flags into use_relative_paths.
Bug: chromium:1107325
Change-Id: I0fe40eba1e1c61be26c812c7ca4329efb72c7f90
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2306795
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org >
Auto-Submit: Corentin Wallez <cwallez@chromium.org >
Reviewed-by: Edward Lesmes <ehmaldonado@chromium.org >
2020-07-20 20:11:09 +00:00
Corentin Wallez
271a78ac35
gclient: Make gclient_gn_args_file honor use_relative_paths
...
Without this repos that use the use_relative_paths still need to use
their absolute path for gclient_gn_args_file.
Bug: chromium:1102833
Change-Id: I470096625061a28abf495f4d1035121edbcd581f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2279874
Reviewed-by: Edward Lesmes <ehmaldonado@chromium.org >
Commit-Queue: Corentin Wallez <cwallez@chromium.org >
2020-07-12 15:41:46 +00:00
Quinten Yearsley
925cedba7b
Run spellchecker on depot_tools
...
This was made by running `codespell` and `scspell`
and then checking the results.
Change-Id: I169fd5b40294f83015075b4a899fbca263821f25
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2144602
Commit-Queue: Quinten Yearsley <qyearsley@chromium.org >
Auto-Submit: Quinten Yearsley <qyearsley@chromium.org >
Reviewed-by: Edward Lesmes <ehmaldonado@chromium.org >
2020-04-13 17:49:39 +00:00
Josip Sokcevic
d682fa4e32
Add support for git_hyper_blame for Windows
...
Change-Id: I8cfbc013b4f17d727b65313e9e4823bab5d9ac18
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2113553
Reviewed-by: Edward Lesmes <ehmaldonado@chromium.org >
Commit-Queue: Josip Sokcevic <sokcevic@google.com >
2020-03-24 21:04:57 +00:00
Josip Sokcevic
2ce099416c
Add win support for subprocess2 unit tests
...
Change-Id: Idea502dc67d8cf0b7387c1b68eb0c62837af971b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2111430
Reviewed-by: Edward Lesmes <ehmaldonado@chromium.org >
Commit-Queue: Josip Sokcevic <sokcevic@google.com >
2020-03-20 16:51:51 +00:00
Edward Lemur
da4b6c6e04
git-cl: Use mock.patch instead of custom mock.
...
Bug: 1051631
Change-Id: I0c8222f89477300e6a14296b72ecaa01d65ca32d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2052627
Reviewed-by: Anthony Polito <apolito@google.com >
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org >
2020-02-13 00:28:40 +00:00
Edward Lemur
b800fde565
git-map: Refactor and add simple tests
...
Change-Id: I8fd0034f6a6d7623792620f92208b25961fa174e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1990142
Reviewed-by: Anthony Polito <apolito@google.com >
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org >
2020-01-10 23:04:44 +00:00
Edward Lesmes
05934953bf
gclient: Make smoketests run on Windows.
...
Bug: 1024683
Change-Id: I1c30473699c1bd6b198188b53b632e3617fed335
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1929653
Reviewed-by: Anthony Polito <apolito@google.com >
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org >
2019-12-19 20:38:09 +00:00
Edward Lemur
65f6b45d6d
gclient: Assert invokations of gclient succeed when running smoketests.
...
Bug: 1024683
Change-Id: I01245d34ad1fa1142ce726c80bf5b61567bafe35
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1925038
Reviewed-by: Anthony Polito <apolito@google.com >
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org >
2019-11-21 00:58:25 +00:00
Edward Lemur
e9024d00d2
gclient: Make smoke tests use local dir instead of git daemon.
...
Running gclient_smoketests times out on windows when using git daemon,
so use a local directory as remote instead.
Bug: 1024683
Change-Id: I6ca506d74de463d914317f176eefbe74996298c5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1879723
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org >
Reviewed-by: Anthony Polito <apolito@google.com >
2019-11-19 18:47:46 +00:00
Edward Lemur
14705d8ce0
depot_tools: Make owners tests run on Python 3
...
Bug: 1009814
Change-Id: Ifb073dc0b54a3291f1f874866da3c0fbbeab2db9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1888443
Reviewed-by: Anthony Polito <apolito@google.com >
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org >
2019-10-30 22:17:10 +00:00
Edward Lesmes
e79107e01b
gclient_scm: Fix tests on windows
...
Change-Id: I649bee199e52ecbd66467cfaf850a7a57e2eedf6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1874506
Reviewed-by: Anthony Polito <apolito@google.com >
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org >
2019-10-25 22:47:33 +00:00
Michael Achenbach
ff46da8d9c
Presubmit: Fix relative owners check
...
This ensures relative file: directives in OWNERS files also work if
the directory of the owners file gets deleted.
Bug: 1015444
Change-Id: I9471a28a7246513120dd3ebb924f6d64eb50c2df
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1870249
Reviewed-by: Tamer Tas <tmrts@chromium.org >
Reviewed-by: Andrii Shyshkalov <tandrii@google.com >
Commit-Queue: Michael Achenbach <machenbach@chromium.org >
2019-10-21 19:40:10 +00:00
Marc-Antoine Ruel
8e57b4bc55
python3 improvements
...
Ran:
vi $(git grep --name-only iteritems | grep -v third_party)
vi $(git grep --name-only itervalues | grep -v third_party)
vi $(git grep --name-only 'print ' | grep -v third_party)
and edited the files quickly with adhoc macros. Then ran in recipes/:
./recipes.py test train
There was only a small subset of files that had been updated to use
six.iteritems() and six.itervalues(). Since the dataset size that is
being used in gclient is small (pretty much always below 200 items),
it's better to just switch to .items() right away and take the temporary
performance hit, so that we don't need to come back to rewrite the code.
Recipe-Nontrivial-Roll: build
Bug: 984182
Change-Id: I5faf11486b66b0d73c9098ab0f2ce1b15a45c53e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1854900
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org >
Reviewed-by: Edward Lesmes <ehmaldonado@chromium.org >
Auto-Submit: Marc-Antoine Ruel <maruel@chromium.org >
2019-10-11 01:01:36 +00:00
Edward Lemur
12a537f932
depot_tools: Run git_common_test in Python 3
...
Bug: 1009809
Change-Id: Idfcbd26de3420798f092c7fa55a6126d7c389a8c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1834317
Reviewed-by: Anthony Polito <apolito@google.com >
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org >
2019-10-03 21:57:15 +00:00
Edward Lemur
ca8793223a
gclient: Fix gclient Python 3 errors and add to presubmit tests.
...
Bug: 984182
Change-Id: I06e88f56aebf31c0c1ca495e6cbf03b6698b3676
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1790603
Reviewed-by: Dirk Pranke <dpranke@chromium.org >
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org >
2019-09-09 20:18:13 +00:00
Edward Lemur
a877ee62b1
depot_tools: Run some tests on Python 3 on the bots.
...
Bug: 984182
Change-Id: I0b7f1e3e056548a27a416c9b4078e54c9e5d60d0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1769400
Auto-Submit: Edward Lesmes <ehmaldonado@chromium.org >
Commit-Queue: Andrii Shyshkalov <tandrii@google.com >
Reviewed-by: Andrii Shyshkalov <tandrii@google.com >
2019-09-03 20:23:17 +00:00
Edward Lemur
9f4b37db0e
depot_tools: Make watchlist tests use mock and remove pymox.
...
Bug: 984182
Change-Id: Iaacb10dfc5ce7c624ac52edb76a9a74c6e2fd1cd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1757122
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org >
Reviewed-by: Robbie Iannucci <iannucci@chromium.org >
2019-08-15 23:58:25 +00:00
Edward Lemur
9cafbf4b35
depot_tools: Separate TestCaseUtils into its own file.
...
This will make it easier to get rid of super_mox.py
Bug: 984182
Change-Id: Ic6c9646b8a96ef05ac59293a62f68ad7db7dc2d0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1754977
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org >
Reviewed-by: Robbie Iannucci <iannucci@chromium.org >
2019-08-15 22:03:35 +00:00
Edward Lemur
26a8b9f356
depot_tools: Make gclient Python3 compatible.
...
Bug: 984182
Change-Id: Idc38678acbfca9cc6b89d77db28fdc24784f2b7d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1753742
Commit-Queue: Edward Lemur <ehmaldonado@google.com >
Reviewed-by: Robbie Iannucci <iannucci@chromium.org >
2019-08-15 20:46:44 +00:00
Edward Lemur
9185e4495d
depot_tools: Make scm Python 3 compatible.
...
Bug: 984182
Change-Id: I6165cf889ebd4e074f1f72b29e8d1216337fb04f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1752480
Auto-Submit: Edward Lesmes <ehmaldonado@chromium.org >
Commit-Queue: Robbie Iannucci <iannucci@chromium.org >
Reviewed-by: Robbie Iannucci <iannucci@chromium.org >
2019-08-13 23:57:49 +00:00
Edward Lemur
979fa780ce
depot_tools: Make gclient_scm Python 3 compatible.
...
Bug: 984182
Change-Id: Ib9c5d2762546f29eaca5eae89b0428431067da4a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1753029
Auto-Submit: Edward Lesmes <ehmaldonado@chromium.org >
Commit-Queue: Robbie Iannucci <iannucci@chromium.org >
Reviewed-by: Robbie Iannucci <iannucci@chromium.org >
2019-08-13 22:44:05 +00:00
Edward Lemur
192e8a67cf
subprocess2: Rewrite tests to be Python 3 compatible.
...
Also replace mox with mock and move the test script to a different file.
Bug: 984182
Change-Id: I9005a523c2abd82c38a7c61501c7cbfd4201a5b7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1745412
Reviewed-by: Robbie Iannucci <iannucci@chromium.org >
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org >
2019-08-09 23:11:49 +00:00
James Darpinian
f994d87e56
Revert "Reland "depot_tools: Move six to depot_tools' .vpython""
...
This reverts commit d52b306f84 .
Reason for revert: Broke ANGLE CQ with "ImportError: No module named six"
Example: https://ci.chromium.org/p/angle/builders/try/mac-dbg/6758
Original change's description:
> Reland "depot_tools: Move six to depot_tools' .vpython"
>
> This is a reland of 3a98df0bdd
>
> Original change's description:
> > depot_tools: Move six to depot_tools' .vpython
> >
> > Bug: 984182
> > Change-Id: I34a242c8607624beb0f06a27c563e413dec99790
> > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1717492
> > Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org >
> > Reviewed-by: Andrii Shyshkalov <tandrii@chromium.org >
> > Reviewed-by: Robbie Iannucci <iannucci@chromium.org >
> > Reviewed-by: Michael Moss <mmoss@chromium.org >
>
> Bug: 984182
> Change-Id: Ibf7034201e65a18f833cf1e7432f81a903a99aae
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1732880
> Reviewed-by: Robbie Iannucci <iannucci@chromium.org >
> Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org >
TBR=iannucci@chromium.org ,mmoss@chromium.org ,tandrii@chromium.org ,ehmaldonado@chromium.org
Change-Id: Id4488249b607441df9f00aa51f4a1f2bc4ad5cfd
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 984182
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1739582
Reviewed-by: Kenneth Russell <kbr@chromium.org >
Commit-Queue: Kenneth Russell <kbr@chromium.org >
2019-08-06 18:57:40 +00:00
Edward Lemur
d52b306f84
Reland "depot_tools: Move six to depot_tools' .vpython"
...
This is a reland of 3a98df0bdd
Original change's description:
> depot_tools: Move six to depot_tools' .vpython
>
> Bug: 984182
> Change-Id: I34a242c8607624beb0f06a27c563e413dec99790
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1717492
> Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org >
> Reviewed-by: Andrii Shyshkalov <tandrii@chromium.org >
> Reviewed-by: Robbie Iannucci <iannucci@chromium.org >
> Reviewed-by: Michael Moss <mmoss@chromium.org >
Bug: 984182
Change-Id: Ibf7034201e65a18f833cf1e7432f81a903a99aae
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1732880
Reviewed-by: Robbie Iannucci <iannucci@chromium.org >
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org >
2019-08-06 17:55:59 +00:00
Edward Lemur
364640e249
depot_tools: Remove unused files.
...
- appengine_mapper.py
- checkout.py
- patch.py
- testing_support/gerrit_test_case.py
- testing_support/patches_data.py
- tests/checkout_test.py
- tests/patch_test.py
Bug: 984182
Change-Id: I2d1ccb1dc41d7034f63043aa87bca3bca4e18294
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1727401
Reviewed-by: Robbie Iannucci <iannucci@chromium.org >
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org >
2019-07-31 15:52:17 +00:00
Edward Lesmes
365720e237
Revert "depot_tools: Move six to depot_tools' .vpython"
...
This reverts commit 3a98df0bdd .
Reason for revert:
Can't roll into skia and build_internal
Original change's description:
> depot_tools: Move six to depot_tools' .vpython
>
> Bug: 984182
> Change-Id: I34a242c8607624beb0f06a27c563e413dec99790
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1717492
> Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org >
> Reviewed-by: Andrii Shyshkalov <tandrii@chromium.org >
> Reviewed-by: Robbie Iannucci <iannucci@chromium.org >
> Reviewed-by: Michael Moss <mmoss@chromium.org >
TBR=iannucci@chromium.org ,mmoss@chromium.org ,tandrii@chromium.org ,ehmaldonado@chromium.org
Change-Id: I51e502e6f7633a6f26898f1ecbcd86ccf9c7c123
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 984182
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1718996
Reviewed-by: Edward Lesmes <ehmaldonado@chromium.org >
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org >
2019-07-25 20:51:36 +00:00
Edward Lemur
3a98df0bdd
depot_tools: Move six to depot_tools' .vpython
...
Bug: 984182
Change-Id: I34a242c8607624beb0f06a27c563e413dec99790
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1717492
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org >
Reviewed-by: Andrii Shyshkalov <tandrii@chromium.org >
Reviewed-by: Robbie Iannucci <iannucci@chromium.org >
Reviewed-by: Michael Moss <mmoss@chromium.org >
2019-07-25 19:04:34 +00:00
Edward Lemur
34cc05018d
depot_tools: Update pymox to a Python 3 compatible version.
...
Bug: 984182
Change-Id: Ib28cec16883bb5269453c27c74d8124fbfba8920
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1717248
Reviewed-by: Andrii Shyshkalov <tandrii@chromium.org >
Reviewed-by: Robbie Iannucci <iannucci@chromium.org >
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org >
2019-07-24 23:35:23 +00:00
Raul Tambre
e99d4b4386
subprocess2, gerrit_test_case: Use SIGTERM instead of SIGKILL for Windows support
...
SIGKILL doesn't exist on Windows, but SIGTERM does.
For our purposes they do the same thing.
Bug: 962263
Change-Id: I16929cf7d1377cd81f71401a48b5a84fe54da493
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1608561
Reviewed-by: Marc-Antoine Ruel <maruel@chromium.org >
Commit-Queue: Raul Tambre <raul@tambre.ee >
Auto-Submit: Raul Tambre <raul@tambre.ee >
2019-05-24 18:34:41 +00:00
Raul Tambre
7c93846385
Convert except statements to be Python 3 compatible
...
Ran "2to3 -w -n -f except ./".
The scripts still work with Python 2.
There are no intended behaviour changes.
Bug: 942522
Change-Id: Ifa274cb83f74cfa8ce092fffbb88f3ab5309e72c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1607841
Commit-Queue: Raul Tambre <raul@tambre.ee >
Auto-Submit: Raul Tambre <raul@tambre.ee >
Reviewed-by: Dirk Pranke <dpranke@chromium.org >
2019-05-24 16:35:35 +00:00
Raul Tambre
7d1300b89a
fake_repos: Fix use of NamedTemporaryFile on Windows
...
Python doesn't guarantee that the file created by tempfile.NamedTemporaryFile can be opened by multiple programs at once.
This is the case on Windows, so we need to close the temporary PID file and only then pass it to Git.
Bug: 962263
Change-Id: Idf4a36b33ce06d7ab06453c20a690622179aef58
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1608560
Auto-Submit: Raul Tambre <raul@tambre.ee >
Reviewed-by: Dirk Pranke <dpranke@chromium.org >
Commit-Queue: Raul Tambre <raul@tambre.ee >
2019-05-24 15:38:47 +00:00
Raul Tambre
1d49bad9f0
fake_repos: Log stderr when Git fails to start
...
Bug: 962263
Change-Id: I71824bf30ff6d735d07e70e8b1cd054530d8985b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1607844
Auto-Submit: Raul Tambre <raul@tambre.ee >
Reviewed-by: Dirk Pranke <dpranke@chromium.org >
Commit-Queue: Raul Tambre <raul@tambre.ee >
2019-05-24 14:48:05 +00:00
Raul Tambre
cd862e37ea
gclient_scm: Decode Git output centrally for better Python 3 support
...
This avoids the need to do the decoding everywhere separately.
Also a small fix for filter() no longer returning a list on Py3.
The scripts still work with Python 2.
There are no intended behaviour changes.
Bug: 942522
Change-Id: Id0f5153011b2ef1b64394359087864cd9434e45e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1595685
Commit-Queue: Dirk Pranke <dpranke@chromium.org >
Auto-Submit: Raul Tambre <raul@tambre.ee >
Reviewed-by: Dirk Pranke <dpranke@chromium.org >
2019-05-10 21:19:00 +00:00