Commit Graph
1437 Commits
Author SHA1 Message Date
Ergun Erdogmus 97a5ea3f14 [Autoroller] Update roll_deps to also generate protocol resources and run format scripts
There is an autoroller for 'browser-protocol' which runs `roll_deps.py` script however there are two issues with it:
* It doesn't run `eslint` so we cannot submit it if there is a change
to DOMPinnedProperties.ts
* It doesn't run all the update steps so rolling browser protocol
through autoroller leaves us in an half baked state:
- Protocol resources are imported
- Some sources are updated (under javascript_metadata)
- Some sources are not updated (protocol.ts etc.)

This CL updates the script to run format steps and generate protocol
resources.

Bug: 1454378
Change-Id: I506e604d47942d898cdfeec1d0df5bce19434a0b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5245435
Reviewed-by: Simon Zünd <szuend@chromium.org>
Reviewed-by: Philip Pfaffe <pfaffe@chromium.org>
Commit-Queue: Ergün Erdoğmuş <ergunsh@chromium.org>
2024-01-31 09:16:18 +00:00
Nikolay Vitkov c62f5c57b8 [cleanup] Use strings in EsLint Config for severity
To ease readablity of rule we should use
strings ('error','warning', 'off') rather then the
number values (2,1,0).

Bug: b:319814509
Change-Id: I4e25b268e76670ac99f3628e7b9a5778faf72e16
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5205270
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Nikolay Vitkov <nvitkov@chromium.org>
2024-01-17 14:29:26 +00:00
Ergun Erdogmus 90810655c6 [Watch] Add legacy CSS support, update Chokidar config; log messages
We weren't doing anything for legacy CSS files, this updates to:
* Generate the correct output for them
* Log a message to the console to say that it won't be hot reloaded

Drive by:
* Log when there is a TS compilation error.
* Update Chokidar options to not use polling but use fsEvents.

Bug: none
Change-Id: Ib7edb62201447917bb7bfb5ba40cf137092c1009
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5125718
Commit-Queue: Ergün Erdoğmuş <ergunsh@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
Auto-Submit: Ergün Erdoğmuş <ergunsh@chromium.org>
Reviewed-by: Paul Irish <paulirish@chromium.org>
2024-01-16 14:11:16 +00:00
Liviu Rau d5933e5408 Work around py3 version issue
Solve python3 minor version mismatch failure: https://logs.chromium.org/logs/devtools-frontend/buildbucket/cr-buildbucket/8759413639766147233/+/u/Scripted_rolls/Update_Browser_Protocol_deps/Run_Browser_Protocol_script/stdout


Bug: chromium:1454378
Change-Id: I8f0fe88373b12ca3223935368dc773026589316f
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5180308
Reviewed-by: Michael Achenbach <machenbach@chromium.org>
Commit-Queue: Liviu Rau <liviurau@google.com>
2024-01-09 09:47:46 +00:00
Liviu Rau b3870c14d8 Add option to update the nodejs binary without running all hooks on Chromium
This helps solve the error from the last roll atempt:
https://logs.chromium.org/logs/devtools-frontend/buildbucket/cr-buildbucket/8764533097068023345/+/u/Scripted_rolls/Update_Browser_Protocol_deps/Run_Browser_Protocol_script/stdout

Bug: chromium:1454378
Change-Id: I52d5d7eaae65f11f121e22795f2041990fb72e09
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5163633
Commit-Queue: Liviu Rau <liviurau@google.com>
Reviewed-by: Michael Achenbach <machenbach@chromium.org>
2024-01-08 12:18:11 +00:00
François Beaufort 067c706e79 Add @webgpu/types
DISABLE_THIRD_PARTY_CHECK=Add @webgpu/types
No-Presubmit: true
Bug: 1506431
Change-Id: I06f8d3758110f19298965e84e15f33c02bf4fbda
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5081999
Commit-Queue: Fr <beaufort.francois@gmail.com>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2023-12-04 08:36:30 +00:00
Andrés Olivares f249e0394c Use --swarming-output-file when running performance tests
To ensure the output file is copied to the swarming bot.

Bug: 1504824
Change-Id: Id1a69ecef88b59b12cd5a452b4c546b90852fc06
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5062978
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Auto-Submit: Andres Olivares <andoli@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2023-11-28 17:31:23 +00:00
Michael Achenbach 431cb39d4e [infra] Fix downloading emscripten binaries on mac-arm64
This differentiates the url paths for mac-arm64 emscripten
binaries. Since some bots already downloaded the wrong x64
binaries, we need to clobber them once. In order to do so, this
changes the stamp-file content to the full URL, which will
cause a re-download of the binaries once (for everyone).

Cq-Include-Trybots: luci.devtools-frontend.try:devtools_frontend_mac_arm64_rel
Bug: chromium:1500139
Change-Id: I004b45614b1a54ce5fe6ab871bb69f4575a059e8
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5040552
Reviewed-by: Philip Pfaffe <pfaffe@chromium.org>
Commit-Queue: Michael Achenbach <machenbach@chromium.org>
2023-11-17 15:16:12 +00:00
Randolf Jung 396cfd4bc9 Update TypeScript to 5.2.2
DISABLE_THIRD_PARTY_CHECK=Types are broken and need to be changed

Bug: none
Change-Id: Ie683d4800b614f7b82b5f5c35a717fe70112bcec
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5033665
Commit-Queue: Randolf Jung <jrandolf@chromium.org>
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
2023-11-16 13:02:28 +00:00
Philip Pfaffe 9f9b531a71 Revert "Update esbuild"
This reverts commit 556d230a0e.

Reason for revert: Breaks the build on windows.

Original change's description:
> Update esbuild
>
> DISABLE_THIRD_PARTY_CHECK=DEPS needs to be updated together
>
> Bug: none
> Change-Id: I6af5660c313d5d998b320f688a36a1f3de5beb03
> Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5025093
> Commit-Queue: Randolf Jung <jrandolf@chromium.org>
> Reviewed-by: Danil Somsikov <dsv@chromium.org>

Bug: none
Change-Id: I331613611d0b8bd56a96a5eff50e452213f6f14b
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5033272
Reviewed-by: Danil Somsikov <dsv@chromium.org>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Commit-Queue: Danil Somsikov <dsv@chromium.org>
Auto-Submit: Philip Pfaffe <pfaffe@chromium.org>
2023-11-16 07:34:14 +00:00
Junji Watanabe 8ec29f4349 [build] Fix devtools_module to propagate outputs to dependents
Similar to https://crrev.com/c/5028815,
`devtools_module` target also doesn't propagate the outputs of
`ts_library` to dependents due to having multiple targets.

This CL addresses this issue by setting `data` and `metadata`
in ts_library target.

DISABLE_THIRD_PARTY_CHECK=only build config change.
Bug: chromium:1501810
Change-Id: Id49410194c92455382942cbf3166ff793964991f
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5028958
Commit-Queue: Junji Watanabe <jwata@google.com>
Auto-Submit: Junji Watanabe <jwata@google.com>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2023-11-16 04:52:23 +00:00
Randolf Jung 556d230a0e Update esbuild
DISABLE_THIRD_PARTY_CHECK=DEPS needs to be updated together

Bug: none
Change-Id: I6af5660c313d5d998b320f688a36a1f3de5beb03
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5025093
Commit-Queue: Randolf Jung <jrandolf@chromium.org>
Reviewed-by: Danil Somsikov <dsv@chromium.org>
2023-11-15 15:27:58 +00:00
Junji Watanabe a6d3696757 [build] Fix devtools_pre_built to propagate outputs to dependents
"devtools_pre_built" template has 2 targets: copy_to_gen and group.
This prevents propagating the outputs of copy_to_gen to dependents.

This CL merged the two targets to one custom node_action with
copy-files.js script.

Bug: chromium:1501810
Change-Id: Id9eabb443d6306a8ffcb966c9246c57180825673
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5028815
Auto-Submit: Junji Watanabe <jwata@google.com>
Reviewed-by: Takuto Ikuta <tikuta@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Junji Watanabe <jwata@google.com>
2023-11-15 06:24:16 +00:00
Ergun Erdogmus 6c326da0de [Watch build] Enable running unit tests on file change
The part that takes a lot of time in running unit tests is actually
spinning up the browser and connecting to it.

`watch-unittests` command starts the file watcher for Karma
test runner which runs the tests on file change.

You can use this without `watch` script and by just rebuilding
the target.

When combined with `watch` command, this enables you to run unit tests
instantly after a file change.

Bug: none
Change-Id: Icd71230b5b455254dc25b4cef5f6ae72c5dbba06
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5012787
Commit-Queue: Simon Zünd <szuend@chromium.org>
Auto-Submit: Ergün Erdoğmuş <ergunsh@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2023-11-09 06:50:15 +00:00
Jack Franklin 0dda490e7c RPP: Remove ThreadTracksSource.BOTH_ENGINEs and update screenshots
This is the first in a long set of CLs that will begin to remove old
engine functionality we do not need.

I have started with the ThreadTracksSource enum and removed the
BOTH_ENGINES flag; updating all the screenshot tests to use the new
engine exclusively. In future CLs I will remove the enum and the flag
entirely, but first I will go through and remove code that only runs for
the OLD_ENGINE flag.

Bug: 1499182
Change-Id: I7ab164e500576d044f334705d5e99649b3523e94
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5002389
Reviewed-by: Andres Olivares <andoli@chromium.org>
Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Andres Olivares <andoli@chromium.org>
2023-11-03 15:37:28 +00:00
Ergun Erdogmus b81d5b3440 Update watch script to run esbuild for TS files
Drive by: also emit `.css` files for persisting them between
reloads.

Bug: none
Change-Id: Ie4f4c4d3eedb30698f6f63e45caaf022293d58a5
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4995185
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Ergün Erdoğmuş <ergunsh@chromium.org>
2023-11-03 09:25:11 +00:00
Jack Franklin e4379b40b3 Include inspectorSyntaxHighlight in component server
It is included globally in DevTools, so to ensure the server matches we
need to include it globally here too.

Bug: none
Change-Id: I14645f4ec1fcb8e5bd3c120a52f2877c256061db
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4983612
Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Nancy Li <nancyly@chromium.org>
Commit-Queue: Nancy Li <nancyly@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
2023-10-27 15:09:26 +00:00
Sandor Major ea1adcfc46 Create code-gen exemptions for 3P cookie deprecations
Bug: b:299640963
Change-Id: I3f88acb209115c06b1513c3acb568918323d4a9f
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4975830
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Sandor «Alex» Major <sandormajor@google.com>
2023-10-26 15:02:12 +00:00
Alex Rudenko f7ea7ab986 Update pptr to 21.4.1
DISABLE_THIRD_PARTY_CHECK=roll of Puppeteer and removal of the Puppeteer flag.

Fixed: 1484476
Change-Id: I98425afe43878948983dba94bda362aa6681d603
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4968458
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2023-10-24 10:11:59 +00:00
Alex Rudenko 67e3886186 Roll puppeteer-core
This roll requires a manual review. See http://go/reviewed-rolls for guidance.

In case of failures or errors, reach out to someone from config/owner/RECORDER_OWNERS.

Roll created at https://cr-buildbucket.appspot.com/build/8766374352283153121

R=devtools-waterfall-sheriff-onduty@grotations.appspotmail.com

Bug: none
Change-Id: Ib753eb31a685c2588a7b539dacf69fdc894311ce
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4968502
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
2023-10-24 08:46:40 +00:00
Ergun Erdogmus 19ffe7f0bc Enable replacing CSS stylesheets on the fly after file change for watch script
This CL updates `generate_css_files` script and `watch` script to enable us to get CSS file changes instantly applied for non-legacy CSS files.

Drive by:
* Added an initial build step before starting to watch changes(1)
* Improved logs to include the time of the change.
* Updated `watch` listener to only get activated on `change` events.

(1) was something I was always missing starting this script.

You can try the behavior by:
* Running `npm run watch` and starting the watch mode.
* Opening the DevTools.
* Updating a non-legacy CSS file and expect to see the CSS change instantly on the opened DevTools.

Bug: none for now
Change-Id: I2aa3ed1b36584d1ef011119d5092d12271fb3017
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4922476
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Ergün Erdoğmuş <ergunsh@chromium.org>
2023-10-13 08:47:29 +00:00
Lingqi Chi 15da3fb465 Make Tot the "real" default value of roll_deps.py's ref option
Thanks to Ic386d62addec124e9c4c01c3a0bb4469e9193de9, we can roll to
working tree of chromium code base.
But without "default=ReferenceMode.Tot", the default value is None,
and thus the script does not update the origin/main.
So this CL sets Tot as the default value.

Bug: N/A
Change-Id: I6355ccc54bb929297d46251eda6ecf1c5fa7fd0f
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4933565
Commit-Queue: Lingqi Chi <lingqi@chromium.org>
Reviewed-by: Ken Okada <kenoss@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2023-10-12 11:50:35 +00:00
Danil Somsikov 3d1b8cd90c Basic VE logging
Bug: 1467464
Change-Id: Ibe2568e0f6f9bc9c2c0f28dfa952f629146c1824
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4871400
Reviewed-by: Simon Zünd <szuend@chromium.org>
Reviewed-by: Ergün Erdoğmuş <ergunsh@chromium.org>
Reviewed-by: Danil Somsikov <dsv@chromium.org>
Commit-Queue: Danil Somsikov <dsv@chromium.org>
2023-10-10 09:19:19 +00:00
Alex Rudenko 5fe99f864f Update puppeteer in node_modules to 21.3.8
Bug: none
Change-Id: Ic4140d2e69ff70ee049ddf4d419c866c35dc58c2
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4916662
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
Auto-Submit: Alex Rudenko <alexrudenko@chromium.org>
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
2023-10-06 13:40:42 +00:00
Alex Rudenko 6d5f492d37 Enable Tab target for Puppeteer
This CL changes the Puppeteer instance used by the e2e and interaction tests to work in the Tab target mode, that is the mode that supports MPArch and features like pre-rendering. In the next releases of Puppeteer it will be enabled by default and this configuration can be removed.

Bug: chromium:1484476
Change-Id: I771234935a1d95de143a6c4559aa297d7dd1b4ae
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4853353
Auto-Submit: Alex Rudenko <alexrudenko@chromium.org>
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2023-10-05 07:29:26 +00:00
Al Muthanna 8416b07f3b Add shuffling flag to unit tests
Bug: None
Change-Id: If2acf7173021fec2c2e54fe4563097bd182a65d2
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4892396
Reviewed-by: Philip Pfaffe <pfaffe@chromium.org>
Reviewed-by: Danil Somsikov <dsv@chromium.org>
Commit-Queue: Almothana Athamneh <almuthanna@chromium.org>
2023-09-29 10:53:36 +00:00
Alex Rudenko b013f87a99 Update puppeteer and puppeteer-core in node_modules
DISABLE_THIRD_PARTY_CHECK=fixes for the roll

Bug: 1484476
Change-Id: I0d0b5288bd860d24923802042e091551ff4cdeea
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4898119
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2023-09-29 07:14:02 +00:00
Jack Franklin ddbc4bcc89 Fix no_bound_component_methods error for incomplete event listener
Bug: none
Change-Id: Ib9c6a076190a43cd6f1683b066d72cb5a69babf7
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4864946
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
2023-09-18 08:59:43 +00:00
Jack Franklin acc06a4b29 A script for searching for matches in trace files
Something I often want to do is search through our fixtures to find a
fixture that contains a certain event. However, because our files are
gzip'd, I have to manually extract them before doing anything.

So to avoid that, I wrote up this little script that will help:

```
$ node scripts/search-trace-files.js "v8.parse"
Searching for v8.parse

=> basic-stack 2.json
=> basic-stack.json
=> busy-network.json
=> cls-cluster-max-timeout.json
=> idle-callback.json
=> interactive-time.json
=> invalid-animation-events.json
=> large-recalc-style.json
=> load-simple.json
=> many-requests.json
=> multiple-navigations.json
=> multiple-top-level-renderers.json
=> react-hello-world.json
=> redirects-subresource-multiple.json
=> sync-like-timings.json
=> timings-track.json
=> two-workers.json
=> user-timings-complex.json
=> user-timings.json
=> web-dev.json
```

Bug: none
Change-Id: I66f7d3de88d5dd7a840331198c9215ccf5b7f357
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4855767
Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Andres Olivares <andoli@chromium.org>
2023-09-13 12:02:42 +00:00
Philip Pfaffe 468ab362b6 Shorten filename embedded by code_generator_frontend.py
The code generator embeds the last n entries of its own filename into
the generated InspectorBackendCommands. It used to be n=4, which
happens to create a different filename depending on whether the
script is run from a chromium or a standalone devtools-frontend
checkout. So set n=3.

DISABLE_THIRD_PARTY_CHECK=Updating code genrator

Bug: none
Change-Id: I09fad6d43377c8558709cbe41dba106f9c813caf
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4852085
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Auto-Submit: Philip Pfaffe <pfaffe@chromium.org>
2023-09-11 13:29:02 +00:00
Wolfgang Beyer 21656cbc83 Fix path for running e2e-tests
Fixed: 1478914
Change-Id: Ibde4d22aa87779ed7ab0f257710f47fa6aa80569
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4840335
Commit-Queue: Wolfgang Beyer <wolfi@chromium.org>
Reviewed-by: Philip Pfaffe <pfaffe@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2023-09-05 10:36:09 +00:00
Alex Rudenko 662ce9cbd7 [node_modules] Update Puppeteer to 21.1.1
Bug: none
Change-Id: Ifd4f7ac9dfb1527edd1e59f4afb4debe9d2a3860
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4821548
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
2023-08-29 09:38:42 +00:00
Hadrien Jaubert 4c4ae29024 [Protocol Monitor] Add support for enums not defined via $ref
In some cases, the enums parameters are not referenced with $ref and there is just an array of all accepted values inside browser_protocol.json
This CL adds a typeRef inside the registerCommand for those cases.
DISABLE_THIRD_PARTY_CHECK=needed to build

Bug: 1474336
Change-Id: I6239a90e225a54c3e884c59b3fbaea9f45eea92a
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4793639
Reviewed-by: Simon Zünd <szuend@chromium.org>
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Commit-Queue: Hadrien Jaubert <hadrienjaubert@google.com>
2023-08-22 09:29:32 +00:00
Simon Zünd 9aba3dba8b [migration] Allow from/to to be equal but still add import
Small fix for the search&replace script for the case where the before
and after are the same but the import is still required to make it
work.

R=mathias@chromium.org

Bug: 1442410
Change-Id: I73f6bff57122b540e6726952970ecc7a483b2ab0
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4798131
Reviewed-by: Mathias Bynens <mathias@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
2023-08-21 16:29:03 +00:00
Mathias Bynens f6e705a749 Print suggested commit message in rename-legacy-global
Bug: chromium:1442410
Change-Id: I65387acdae1228f597874d977317841749ad0d5d
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4793588
Commit-Queue: Simon Zünd <szuend@chromium.org>
Auto-Submit: Mathias Bynens <mathias@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2023-08-18 12:08:52 +00:00
Jack Franklin 9e787a5d89 Expand DevTools build system documentation
Updating the existing documentation and trying to make some of it a bit
more beginner friendly for those new to the codebase. Plenty more to
add, but this is hopefully a good start :)

Bug: none
Change-Id: I56a8651c7b774a6c8d46d1a2949970fb7272cc64
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4783322
Reviewed-by: Simon Zünd <szuend@chromium.org>
Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
2023-08-17 11:10:38 +00:00
Simon Zünd ae9845e539 [scripts] Add new 'rename-legacy-global.mjs' migration utility
This CL is a temporary migration helper for the *-legacy.ts removal
effort. It's a slightly better search&replace that also adds the
necessary import statement if needed.

R=jacktfranklin@chromium.org

Bug: 1442410
Change-Id: Idcba121da6176f745db3e98d9e9ba0ac836d7b7b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4774939
Commit-Queue: Simon Zünd <szuend@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2023-08-14 11:18:52 +00:00
Alex Rudenko dd62460aaa Ban new LitElement components outside of existing folders
Bug: 1402569
Change-Id: If40c84ef62cfd81247455910450526c08cfa2757
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4769306
Reviewed-by: Philip Pfaffe <pfaffe@chromium.org>
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2023-08-10 15:38:30 +00:00
Simon Zünd b8bada8e65 [eslint] Allow assert.hasAllKeys and assert.containsAllKeys
These are convinient to check keys for Maps/Sets without worrying
about iteration order.

R=jacktfranklin@chromium.org

Bug: None
Change-Id: I458f980fe026f3c1d940f7e15c80a6328d9753bf
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4769460
Commit-Queue: Simon Zünd <szuend@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Auto-Submit: Simon Zünd <szuend@chromium.org>
2023-08-10 10:49:04 +00:00
Alex Rudenko 6e435700ad Fix rollup plugin for DevTools
devtools-plugin for rollup should not treat code inside
Puppeteer folders as DevTools entrypoints. Only the `frontend/third_party/puppeteer/puppeteer.js` and `frontend/third_party/puppeteer-replay/puppeteer-replay.js` should be treated as entry points.

Fixed: 1470202
Change-Id: Ic9c6344f163bc23f5b1d04c936c0446bb07c4d0e
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4765265
Auto-Submit: Alex Rudenko <alexrudenko@chromium.org>
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2023-08-09 10:26:55 +00:00
Al Muthanna Athamina 34b5ae61b2 Add assertion for long commands on Windows for e2e_divider
Bug: 1419802
Change-Id: Ie80a84d34e0a249d625cae477475f35bfe81d2a0
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4765266
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Almothana Athamneh <almuthanna@chromium.org>
2023-08-09 09:48:45 +00:00
Al Muthanna Athamina 9d12cee0c2 Address nits on e2e_divider
Bug: 1419802
Change-Id: Ia8d31372b02205d335295f4b8f3f0704d0330cab
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4759305
Reviewed-by: Philip Pfaffe <pfaffe@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Almothana Athamneh <almuthanna@chromium.org>
2023-08-09 09:17:58 +00:00
Simon Zünd 3502cdcf8c [build] Remove 'minify-html-template-literals' plugin from node_modules
DISABLE_THIRD_PARTY_CHECK=Removing a npm package.

R=alexrudenko@chromium.org

Bug: 1213034
Change-Id: I1546dfe1a1c74d44d02cae35e0334c8463790233
Fixed: 1471374
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4762688
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
2023-08-09 08:54:29 +00:00
Simon Zünd 7d525b4cc3 [build] Remove 'minify-html-template-literals' plugin from rollup config
R=alexrudenko@chromium.org

Bug: 1471374,1213034
Change-Id: Ia6ee0be69248904129b9e950f1e16f82013ec9b5
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4765264
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
2023-08-09 08:45:32 +00:00
Randolf Jung 3e52631076 Update "puppeteer" to 21.0.1
Bug: none
Change-Id: I7b92e1d3c7e14729d99fb8b540d93d9d0be0ecba
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4756724
Auto-Submit: Randolf Jung <jrandolf@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
2023-08-08 08:05:41 +00:00
Al Muthanna Athamina d76e665871 Divide E2E test files by chunks instead of modulo
Bug: 1419802
Change-Id: Iac60d44814a43ba9b7dafa4a20377bc10c757950
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4755908
Reviewed-by: Philip Pfaffe <pfaffe@chromium.org>
Reviewed-by: Liviu Rau <liviurau@google.com>
Reviewed-by: Liviu Rau <liviurau@chromium.org>
Commit-Queue: Almothana Athamneh <almuthanna@chromium.org>
2023-08-07 13:58:57 +00:00
Randolf Jung dda5e9be47 Update puppeteer-tsconfig.json
Production builds did not include some Puppeteer files necessary for use in DevTools as a result of `puppeteer-tsconfig.json` not being up-to-date.

This CL also fixes the third_party roll script to ensure third party `tsconfig` files are updated upon roll.

Fixed: 1470202
Change-Id: Icf3f64db2888e601ee15e32d2571750fbd50a06b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4753137
Commit-Queue: Randolf Jung <jrandolf@chromium.org>
Auto-Submit: Randolf Jung <jrandolf@chromium.org>
Reviewed-by: Mathias Bynens <mathias@chromium.org>
2023-08-07 13:15:12 +00:00
Randolf Jung b46da54e04 Update scripts/deps/roll_front_end_third_party.py
The script has been cleaned up for use with automation.

Bug: 1324875
Change-Id: I6fde93e170bc76e052d94ef4c8b293af02c070e5
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4747741
Reviewed-by: Liviu Rau <liviurau@chromium.org>
2023-08-03 13:08:51 +00:00
Mathias Bynens bc72be2e4e Remove chromium* entries from DEPS
Now that we’re using consistently-versioned Chrome for Testing
binaries, we no longer need to track Chromium revisions nor download
their binaries.

Bug: chromium:1465312
Change-Id: I89e2afa8fe5f4735919608f5dbb9ad874aaeb8ca
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4729681
Reviewed-by: Liviu Rau <liviurau@chromium.org>
Commit-Queue: Mathias Bynens <mathias@chromium.org>
2023-07-28 12:12:45 +00:00
Philip Pfaffe ead3f105e7 node_modules: Add emscripten types and rollup node plugin
Includes a rerun of install-deps which updates some unrelated packages.

Bug: 1454724
Change-Id: I29651314ac40c985f42a3fb2bce73ece20b7236a
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4632539
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Kshitij Pancholi <panchok@google.com>
Commit-Queue: Philip Pfaffe <pfaffe@chromium.org>
2023-07-28 09:28:45 +00:00