Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Issue 2486903002: DevTools: Add support for installing node and running eslint over devtools. (Closed)

Created:
4 years, 1 month ago by chenwilliam
Modified:
4 years ago
CC:
chromium-reviews, caseq+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, blink-reviews, pfeldman, kozyatinskiy+blink_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DevTools: Add support for installing node and running eslint over devtools. This CL adds a step to the 'Linux Tests' builder that will run a step (under swarming) that runs eslint over the devtools frontend code. eslint uses node.js, so this CL also adds a hook to gclient to download node if CHROME_HEADLESS is present in the environment. [email protected], [email protected] BUG=642046 Committed: https://crrev.com/56a90381f4d44cefeb5edb83a6227ebfa02fb885 Cr-Commit-Position: refs/heads/master@{#437431}

Patch Set 1 #

Total comments: 5

Patch Set 2 : expect missing node failure #

Patch Set 3 : fix arg #

Patch Set 4 : minor fix #

Patch Set 5 : rename gn target eslint -> devtools_eslint #

Patch Set 6 : fix #

Patch Set 7 : fix GN #

Patch Set 8 : DISABLE ENV CHECK #

Patch Set 9 : fix GN #

Patch Set 10 : fix script; DISABLE ENV CHECK #

Patch Set 11 : Fix GN and keep ENV CHECK DISABLED #

Patch Set 12 : ADD ESLINT ERROR #

Patch Set 13 : Should pass #

Patch Set 14 : rebaseline #

Patch Set 15 : rebaseline again #

Patch Set 16 : EXPECT ERR #

Patch Set 17 : fix #

Total comments: 3

Patch Set 18 : rebased #

Patch Set 19 : clean #

Patch Set 20 : check CHROME_HEADLESS env #

Patch Set 21 : fix node.py #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -70 lines) Patch
M DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 20 3 chunks +16 lines, -0 lines 0 comments Download
M testing/buildbot/chromium.linux.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +7 lines, -0 lines 0 comments Download
M testing/buildbot/gn_isolate_map.pyl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +9 lines, -1 line 0 comments Download
A + testing/scripts/run_devtools_check.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +4 lines, -1 line 0 comments Download
D testing/scripts/run_devtools_closure_compile.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +0 lines, -65 lines 0 comments Download
M third_party/WebKit/Source/devtools/.gitignore View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +16 lines, -1 line 0 comments Download
A third_party/WebKit/Source/devtools/scripts/buildbot/run_eslint.py View 1 1 chunk +26 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/scripts/local_node/node.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 4 chunks +13 lines, -2 lines 0 comments Download

Messages

Total messages: 37 (22 generated)
chenwilliam
I've updated your original CL Dirk by filling in the BUILD.gn and making some minor ...
4 years, 1 month ago (2016-11-09 19:27:21 UTC) #1
iannucci
as a refined version of the previous CL, this also lgtm
4 years, 1 month ago (2016-11-09 23:58:16 UTC) #2
Dirk Pranke
I didn't get to this yet today (too much sheriffing and other things going on) ...
4 years, 1 month ago (2016-11-10 01:23:12 UTC) #3
Dirk Pranke
> - Is there any way of "globbing" files in BUILD.gn? I'm wondering > because ...
4 years, 1 month ago (2016-11-11 02:11:20 UTC) #4
chenwilliam
Dirk - please take another look. I uploaded a test patchset without the env check ...
4 years ago (2016-12-06 18:22:09 UTC) #6
Dirk Pranke
this mostly lgtm. I think we probably don't need a new wrapper script, though. @kbr, ...
4 years ago (2016-12-07 03:10:41 UTC) #8
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/2486903002/diff/340001/testing/scripts/run_devtools_eslint.py File testing/scripts/run_devtools_eslint.py (right): https://codereview.chromium.org/2486903002/diff/340001/testing/scripts/run_devtools_eslint.py#newcode54 testing/scripts/run_devtools_eslint.py:54: json.dump(['devtools_eslint'], args.output) On 2016/12/07 03:10:41, Dirk Pranke wrote: > ...
4 years ago (2016-12-07 06:50:25 UTC) #9
chenwilliam
https://codereview.chromium.org/2486903002/diff/340001/testing/scripts/run_devtools_eslint.py File testing/scripts/run_devtools_eslint.py (right): https://codereview.chromium.org/2486903002/diff/340001/testing/scripts/run_devtools_eslint.py#newcode54 testing/scripts/run_devtools_eslint.py:54: json.dump(['devtools_eslint'], args.output) On 2016/12/07 06:50:25, Ken Russell wrote: > ...
4 years ago (2016-12-08 02:52:26 UTC) #10
Dirk Pranke
lgtm
4 years ago (2016-12-08 03:09:38 UTC) #13
Ken Russell (switch to Gerrit)
lgtm once the trybots are green.
4 years ago (2016-12-08 07:09:31 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2486903002/420001
4 years ago (2016-12-08 21:07:11 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/285492)
4 years ago (2016-12-08 22:01:15 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2486903002/420001
4 years ago (2016-12-08 22:50:31 UTC) #32
commit-bot: I haz the power
Committed patchset #21 (id:420001)
4 years ago (2016-12-09 02:17:12 UTC) #35
commit-bot: I haz the power
4 years ago (2016-12-09 02:19:31 UTC) #37
Message was sent while issue was closed.
Patchset 21 (id:??) landed as
https://crrev.com/56a90381f4d44cefeb5edb83a6227ebfa02fb885
Cr-Commit-Position: refs/heads/master@{#437431}

Powered by Google App Engine
This is Rietveld 408576698