Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Issue 1783073002: Run auto-formatter on files in webkitpy/layout_tests/. (Closed)

Created:
4 years, 9 months ago by qyearsley
Modified:
4 years, 9 months ago
Reviewers:
Dirk Pranke, ojan, mithro
CC:
blink-reviews, bokan, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Run auto-formatter on files in webkitpy/layout_tests/. Specifically, I ran: autopep8 --in-place --max-line-length 1000 *.py */*.py. Does this look like something reasonable to do? Note: check-webkit-style, lint-webkitpy and test-webkitpy pass after this. Committed: https://crrev.com/62833e8afcb1bd8f3316b0f9dc56615022af79c8 Cr-Commit-Position: refs/heads/master@{#382993}

Patch Set 1 #

Patch Set 2 : Ran autopep8 --in-place --max-line-length 132 #

Total comments: 3

Patch Set 3 : Ran yapf -i --style '{based_on_style: pep8, column_limit: 132}' then did manual fix-up #

Total comments: 13

Patch Set 4 : Revert to patch 2 (Ran autopep8 --in-place --max-line-length 132) #

Patch Set 5 : Remove layout_tests_mover.py and test. #

Patch Set 6 : Rebased #

Patch Set 7 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+702 lines, -434 lines) Patch
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/bisect_test_ordering.py View 1 3 3 chunks +5 lines, -2 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/breakpad/dump_reader_win_unittest.py View 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/layout_test_finder.py View 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/layout_test_finder_unittest.py View 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/layout_test_runner.py View 1 3 7 chunks +9 lines, -4 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/layout_test_runner_unittest.py View 3 5 chunks +62 lines, -60 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/manager.py View 1 2 3 4 5 6 9 chunks +15 lines, -11 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/manager_unittest.py View 1 3 3 chunks +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/repaint_overlay_unittest.py View 3 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/single_test_runner.py View 1 3 6 chunks +20 lines, -13 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/test_result_writer_unittest.py View 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/generate_results_dashboard.py View 1 3 2 chunks +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/layout_package/bot_test_expectations.py View 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/layout_package/bot_test_expectations_unittest.py View 3 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/layout_package/json_results_generator_unittest.py View 1 3 3 chunks +9 lines, -7 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/lint_test_expectations.py View 3 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/lint_test_expectations_unittest.py View 3 5 chunks +5 lines, -1 line 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/models/test_configuration.py View 3 4 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/models/test_configuration_unittest.py View 1 3 4 chunks +9 lines, -3 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/models/test_expectations.py View 1 3 12 chunks +37 lines, -29 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/models/test_expectations_unittest.py View 1 3 29 chunks +75 lines, -37 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/models/test_failures.py View 3 8 chunks +18 lines, -0 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/models/test_failures_unittest.py View 3 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/models/test_results_unittest.py View 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/models/test_run_results.py View 1 3 4 chunks +9 lines, -3 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/models/test_run_results_unittest.py View 1 3 4 chunks +14 lines, -6 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/models/testharness_results_unittest.py View 1 3 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/android.py View 1 3 13 chunks +34 lines, -20 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/android_unittest.py View 3 7 chunks +13 lines, -6 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/base.py View 1 2 3 4 5 6 10 chunks +15 lines, -9 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/base_unittest.py View 1 3 6 chunks +23 lines, -14 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/browser_test.py View 3 3 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/browser_test_driver.py View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/browser_test_driver_unittest.py View 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/browser_test_unittest.py View 1 3 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/builders_unittest.py View 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/driver.py View 1 3 9 chunks +17 lines, -13 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/driver_unittest.py View 3 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/factory.py View 3 1 chunk +9 lines, -10 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/factory_unittest.py View 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/linux.py View 3 2 chunks +1 line, -1 line 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/mac_unittest.py View 1 3 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/mock_drt.py View 1 3 3 chunks +5 lines, -3 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/mock_drt_unittest.py View 3 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/port_testcase.py View 1 3 8 chunks +28 lines, -24 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/server_process.py View 1 3 3 chunks +8 lines, -6 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/server_process_mock.py View 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/server_process_unittest.py View 1 3 6 chunks +8 lines, -1 line 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/test.py View 1 3 8 chunks +22 lines, -17 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/win_unittest.py View 1 3 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/print_layout_test_times.py View 3 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/print_layout_test_times_unittest.py View 3 1 chunk +18 lines, -18 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/print_layout_test_types_unittest.py View 3 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/process_json_data_unittest.py View 1 3 1 chunk +20 lines, -10 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py View 1 3 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests_unittest.py View 1 3 26 chunks +80 lines, -51 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/servers/apache_http.py View 3 3 chunks +6 lines, -5 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/servers/apache_http_unittest.py View 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/servers/cli_wrapper_unittest.py View 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/servers/crash_service_unittest.py View 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/servers/pywebsocket.py View 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/servers/server_base.py View 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/servers/server_base_unittest.py View 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/servers/wptserve.py View 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/views/buildbot_results.py View 1 3 2 chunks +5 lines, -4 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/views/buildbot_results_unittest.py View 1 3 2 chunks +7 lines, -3 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/views/metered_stream.py View 1 3 2 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/views/metered_stream_unittest.py View 3 2 chunks +5 lines, -4 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/views/printing.py View 1 3 7 chunks +13 lines, -8 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/views/printing_unittest.py View 1 3 4 chunks +17 lines, -7 lines 0 comments Download

Messages

Total messages: 33 (12 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1783073002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1783073002/1
4 years, 9 months ago (2016-03-11 18:03:22 UTC) #3
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/195592)
4 years, 9 months ago (2016-03-11 20:04:37 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1783073002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1783073002/1
4 years, 9 months ago (2016-03-13 23:48:22 UTC) #7
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-14 00:55:26 UTC) #9
qyearsley
4 years, 9 months ago (2016-03-16 21:03:49 UTC) #11
Dirk Pranke
Thanks for doing this! I think the concept of reformatting all of our files is ...
4 years, 9 months ago (2016-03-16 21:54:13 UTC) #13
qyearsley
On 2016/03/16 21:54:13, Dirk Pranke wrote: > Thanks for doing this! I think the concept ...
4 years, 9 months ago (2016-03-17 17:51:25 UTC) #14
Dirk Pranke
On 2016/03/17 17:51:25, qyearsley wrote: > On 2016/03/16 21:54:13, Dirk Pranke wrote: > > Thanks ...
4 years, 9 months ago (2016-03-17 18:17:15 UTC) #15
qyearsley
Alright, after trying yapf, it appears that: (1) occasionally yapf reformats some manually-formatted code in ...
4 years, 9 months ago (2016-03-18 00:33:39 UTC) #16
Dirk Pranke
On 2016/03/18 00:33:39, qyearsley wrote: > Alright, after trying yapf, it appears that: > > ...
4 years, 9 months ago (2016-03-18 02:38:20 UTC) #17
Dirk Pranke
okay, I got about halfway through this before I started getting bored :). To me ...
4 years, 9 months ago (2016-03-19 02:19:56 UTC) #18
qyearsley
Alright -- for now I prefer autopep8 since it's more conservative (doesn't mess with hand-formatter ...
4 years, 9 months ago (2016-03-19 18:11:44 UTC) #19
mithro
I think starting with pep8/autopep8 is a good idea. If we want to get stricter ...
4 years, 9 months ago (2016-03-20 22:21:03 UTC) #20
mithro
Couple of quick questions; * Why does this CL add two new files? (third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/layout_tests_mover.py and ...
4 years, 9 months ago (2016-03-21 06:01:31 UTC) #21
Dirk Pranke
On 2016/03/21 06:01:31, mithro wrote: > Couple of quick questions; > > * Why does ...
4 years, 9 months ago (2016-03-21 19:09:06 UTC) #22
qyearsley
On 2016/03/21 at 06:01:31, tansell wrote: > Couple of quick questions; > > * Why ...
4 years, 9 months ago (2016-03-21 22:12:03 UTC) #23
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1783073002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1783073002/100001
4 years, 9 months ago (2016-03-23 21:15:06 UTC) #25
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-23 22:33:26 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1783073002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1783073002/120001
4 years, 9 months ago (2016-03-23 23:35:10 UTC) #30
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 9 months ago (2016-03-24 00:43:55 UTC) #31
commit-bot: I haz the power
4 years, 9 months ago (2016-03-24 00:44:52 UTC) #33
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/62833e8afcb1bd8f3316b0f9dc56615022af79c8
Cr-Commit-Position: refs/heads/master@{#382993}

Powered by Google App Engine
This is Rietveld 408576698