Commit Graph
1395 Commits
Author SHA1 Message Date
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
Jack Franklin 22c40412ca Add eslint rule for detecting TraceEngine test timeouts
We need to ensure that each test that uses the trace engine is defined
using the function() keyword rather than an arrow function so that the
timeout is correctly set. This CL adds a rule to enforce and autofix
that.

Note that this CL does not enable the rule, I will do that in a
follow-up.

Bug: none
Change-Id: I33c1d2ea4bf8e639fd6b58dcabab8655b1ff222c
No-Presubmit: True
No-Tree-Checks: True
No-Try: True
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4724881
Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Andres Olivares <andoli@chromium.org>
2023-07-27 14:25:41 +00:00
Mathias Bynens a017ced955 Use Chrome for Testing instead of Chromium binaries
To reduce complexity, the folder names within the CfT archives are
simplified as follows:

- chrome-win64 → chrome-win
- chrome-mac-{arm64,x64} → chrome-mac
- chrome-linux64 → chrome-linux

Bug: chromium:1465312
Change-Id: I984e818d58ef6dd16b44db022eefcb55b5afce50
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4724028
Auto-Submit: Mathias Bynens <mathias@chromium.org>
Reviewed-by: Liviu Rau <liviurau@chromium.org>
Commit-Queue: Liviu Rau <liviurau@chromium.org>
2023-07-27 12:13:35 +00:00
Liviu Rau f23899815e Add group membership hint on update failure
Bug: none
Change-Id: I19d08f69d9b9f84d25b91e5dc1ba3d27104a505f
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4720846
Reviewed-by: Michael Achenbach <machenbach@chromium.org>
Reviewed-by: Paul Irish <paulirish@chromium.org>
Commit-Queue: Liviu Rau <liviurau@google.com>
2023-07-26 16:36:04 +00:00
Liviu Rau 08ca9d229e Give feedback when try-results cannot be loaded
Bug: none
Change-Id: Ia4c627d9f572d3df239821b2e28518150026eead
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4714555
Reviewed-by: Michael Achenbach <machenbach@chromium.org>
Commit-Queue: Liviu Rau <liviurau@google.com>
Commit-Queue: Liviu Rau <liviurau@chromium.org>
2023-07-26 13:24:37 +00:00
Mathias Bynens 5c9b5f1ea9 Add chrome to DEPS alongside chromium_*
This patch prepares the relevant entries and scripts to version-pin and
download Chrome for Testing alongside Chromium. Consuming these new
binaries instead of Chromium is planned for a separate CL.

Bug: chromium:1465312
Change-Id: Ic1fca66b7a213e10c7200fc6f5f2ba6aeaa225cd
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4685561
Reviewed-by: Liviu Rau <liviurau@chromium.org>
Commit-Queue: Mathias Bynens <mathias@chromium.org>
2023-07-18 15:16:39 +00:00
Simon Zünd cba2ac9e1c [deps] Update 'terser' to 5.19.1
The update contains a bug fix that improves the quality for DevTools
release source maps.

The update also seems to stop minifiying certain names in the overlay
bundle so we had to slightly bump the limit.

  * Old size: 69660
  * New size: 71295

DISABLE_THIRD_PARTY_CHECK=Bump overlay size limit
R=alexrudenko@chromium.org

Bug: 1459146
Change-Id: I3036787bbb3ba8d28669b9aaab9c29c5f5581e55
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4693881
Commit-Queue: Simon Zünd <szuend@chromium.org>
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
2023-07-18 09:44:36 +00:00
Jack Franklin 2d63337ed6 Fix errors when running component server index
Passing an array to `path.join` is not supported, it takes unlimited
arguments rather than an array of one.

This was introduced in crrev.com/c/4678757, but I think the bots were
happy because they do not use the index page and instead navigate
directly to examples. This error only triggered on the index page.

As a drive-by, I also bumped the font size as otherwise they use the
default, rather small, DevTools font size.

Bug: none
Change-Id: I580c454d62e3ce66065bdb21c2fc7b0349825637
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4685569
Reviewed-by: Andres Olivares <andoli@chromium.org>
Commit-Queue: Andres Olivares <andoli@chromium.org>
Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
2023-07-17 11:51:36 +00:00
Jack Franklin 2662479c79 Enable npm run auto-e2etest to take a target
This CL updates the run_test_suite.js script to support the --autoninja
flag alongside --target, in which case it will do a build before running
the tests.

Unfortunately I had to duplicate the package.json entry, else we get
into a world of confusion with passing command flags through npm run
commands, and I couldn't get it to work.

Bug: none
Change-Id: I0a339c72cf41a4ffcb0241e8b3efb1b35b2e5a9f
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4684353
Reviewed-by: Andres Olivares <andoli@chromium.org>
Commit-Queue: Andres Olivares <andoli@chromium.org>
Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
2023-07-14 12:22:49 +00:00
Hadrien Jaubert e3454dba71 [Protocol Monitor] Change type of description inside registerCommand to string
DISABLE_THIRD_PARTY_CHECK=needed to build

Bug: 1464499
Change-Id: Ib5ddda1635bb603fbcbc04a9c9d9ea6e53e364f2
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4678758
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Hadrien Jaubert <hadrienjaubert@google.com>
Reviewed-by: Nancy Li <nancyly@chromium.org>
2023-07-13 12:29:41 +00:00
Andrés Olivares f1d811c86e Add ui/legacy/tokens.css to component server
This way we ensure colors loaded from this file are available in the
component examples and screenshot tests, since it seems that after
https://crrev.com/c/4650363 , some colors for icons were no longer
available in the component server (see screenshots updates).

This CL adds the missing stylesheet to the server and adds it to a
reusable array so that stylesheet paths don't have to be hardcoded
multiple times.

Note: I forced a screenshot update so many goldens that are unrelated
to this issue are also re-baselined.

Bug: none
Change-Id: I8adcfbdd4966706a9b6f15d0947b4ef0ac0e96f4
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4678757
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Kateryna Prokopenko <kprokopenko@chromium.org>
Commit-Queue: Andres Olivares <andoli@chromium.org>
2023-07-13 11:07:48 +00:00
Hadrien Jaubert d32b2acf8a [Protocol Monitor] Change type of description inside registerCommand to string
DISABLE_THIRD_PARTY_CHECK=needed to build

Bug: 1464499
Change-Id: I1e376bafb5179e24d431e8a1118d24c642d89348
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4683137
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Hadrien Jaubert <hadrienjaubert@google.com>
Reviewed-by: Nancy Li <nancyly@chromium.org>
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
2023-07-13 10:34:34 +00:00
Alex Rudenko 763f344894 Update puppeteer to 20.8.2 (node_modules)
Bug: 1464324
Change-Id: Ifc3aadbadb7ee1feabb9559bc7746a987441f91a
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4679117
Commit-Queue: Simon Zünd <szuend@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
Auto-Submit: Alex Rudenko <alexrudenko@chromium.org>
2023-07-13 09:44:16 +00:00
Alex Rudenko b30dc26cdd Improve roll_front_end_third_party.py
- use stricter checks for a file belonging to the package
- git cl format even if auto-upload is off

Bug: none
Change-Id: I8aa3752d5606d91903e6d71a3343f0b21d533f77
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4679606
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
2023-07-12 11:37:59 +00:00
Hadrien Jaubert a511470fd6 [Protocol Monitor] Change python script to access the description of commands and parameters
DISABLE_THIRD_PARTY_CHECK=needed to build

Bug: 1463211
Change-Id: I506bdd07805a0b481cd73ca0c31baf1dff7977e2
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4675888
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Hadrien Jaubert <hadrienjaubert@google.com>
2023-07-11 13:17:30 +00:00
Alex Rudenko 1552f2b3ac Update puppeteer in node_modules
Bug: none
Change-Id: I47c32ffa1ee9f34bdfccb930d288a364afaa280f
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4675897
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
2023-07-11 12:54:29 +00:00
Kateryna Prokopenko bde284efe8 [DevToolsGM3Colors] Introduce Chrome Material color tokens to DevTools
Bug: 1456677
Change-Id: I5ff5c4074eb7ae0819b7593f0be332fec8f1132d
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4650361
Auto-Submit: Kateryna Prokopenko <kprokopenko@chromium.org>
Commit-Queue: Kateryna Prokopenko <kprokopenko@chromium.org>
Reviewed-by: Danil Somsikov <dsv@chromium.org>
2023-07-06 15:04:56 +00:00
Hadrien Jaubert 04f758225d [Protocol Monitor] Add typeRef for strings in array parameters
We need access to the typeRef for array parameters. At the moment string type was not supported.
Moreover, the registerType only contains types relating to objects. This CL adds support as well for types directly relating to arrays.

DISABLE_THIRD_PARTY_CHECK=needed to build

Bug: 1462270
Change-Id: I0375228a9315e35819c93e7deeb149121765f52b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4665825
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Hadrien Jaubert <hadrienjaubert@google.com>
2023-07-06 08:09:06 +00:00
Alex Rudenko 2c73e91536 Update third_party roll script
Makes variable names consistent with the Python style and
unify the use of SOURCES/EXCLUDED_SOURCES between puppeteer
and puppeteer-replay.

Bug: none
Change-Id: I702c34548bee8916ba1453f937197070637306a3
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4660373
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2023-07-04 13:33:11 +00:00
Hadrien Jaubert 17d2240ee2 Add registerType command for array parameters
The protocol Monitor needs to know the type of array parameters. To do this, the CL will add type reference to registerType inside the InspectorBackendCommands.js file. It is then possible to know what type of parameters array parameters accept.

DISABLE_THIRD_PARTY_CHECK=needed to build

Bug: 1462096
Change-Id: I623ef4fef1f49f7618f2a874490a515ce22ce1cd
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4660370
Commit-Queue: Hadrien Jaubert <hadrienjaubert@google.com>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2023-07-04 11:09:52 +00:00
Jack Franklin 4f68dfdb98 Fix stylelint errors on border: usage with custom vars
Fixed: 1442257
Change-Id: Idbfab3c09655303ffd7e8ca383f87ec3cf89465b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4660608
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
2023-07-03 10:57:30 +00:00
Hadrien Jaubert 158c1fc712 [Protocol Monitor] Change python script to create registerType
This CL adds the ability to have access to a map enabling the user to have access to all the keys of object parameters. To do that, this CL modifies code_generator_frontend.py to generate a new command called RegisterType.

DISABLE_THIRD_PARTY_CHECK=make build work

Bug: 1458788
Change-Id: I28bf0baf3841cf3120d103e40925698d3c8114b2
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4650362
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Hadrien Jaubert <hadrienjaubert@google.com>
2023-06-29 10:17:47 +00:00
Simon Zünd 6947220e25 [build] Extend devtools_release_sourcemaps to ESBuild bundles
DevTools has two ways to build release builds:
  * tsc + rollup + terser
  * and esbuild.

THe GN arg "devtools_skip_typecheck" decides which of the two
toolchains is used, as the esbuild one is much faster and enough
for the average Chromium developer.

Until now, the "devtools_release_sourcemaps" only works with the
rollup toolchain. This CL implements sourcemaps also for esbuild.

This means that "devtools_release_sourcemaps" now works
independently of "devtools_skip_typecheck".

This is convinient for dogfooding our own source map support in
DevTools: Now we can test against both rollup and esbuild with
DevTools-on-DevTools.

R=jacktfranklin@chromium.org

Bug: 1430396
Change-Id: I54849764a26f3fb539535eccdde7a79f9fd00d5f
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4654605
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
2023-06-29 08:48:01 +00:00
Al Muthanna Athamina 21696bda6d Add shuffle option to e2e_divider
Bug: 1419802
Change-Id: I54d001c315633304623825331cbba540f1e0f064
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4647595
Auto-Submit: Almothana Athamneh <almuthanna@chromium.org>
Reviewed-by: Philip Pfaffe <pfaffe@chromium.org>
Commit-Queue: Almothana Athamneh <almuthanna@chromium.org>
Commit-Queue: Danil Somsikov <dsv@chromium.org>
Reviewed-by: Danil Somsikov <dsv@chromium.org>
2023-06-28 11:40:30 +00:00
Hadrien Jaubert cafa2786f7 [Protocol Monitor] Add support for array parameters
This CL adds the ability to edit array parameters in the Protocol Monitor. To do that, this CL modifies code_generator_frontend.py to  report the array as a parameter type. Runtime type checks in InspectorBackendCommands.js are modified to account for the new parameter type.

DISABLE_THIRD_PARTY_CHECK=needed to build correctly

Screenshot : https://bugs.chromium.org/p/chromium/issues/detail?id=1457512

Bug: 1457512
Change-Id: I368c0146975d95fa024d59f4fb3e7d4ab590722d
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4640225
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
Reviewed-by: Nancy Li <nancyly@chromium.org>
Commit-Queue: Hadrien Jaubert <hadrienjaubert@google.com>
2023-06-27 13:13:08 +00:00
Randolf Jung bcb3bc8d41 Update puppeteer and @puppeteer/replay
- puppeteer replaced with puppeteer-core (20.7.3). DevTools does not actually need puppeteer as it downloads the browsers on its own. PUPPETEER_SKIP_CHROMIUM_DOWNLOAD is not needed too.
- @puppeteer/replay upgraded to 2.11.2

DISABLE_THIRD_PARTY_CHECK=requires code updates for puppeteer-core
Bug: none
Change-Id: I173c228d766681a1a8a9ada3fcf17525cd191726
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4640022
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Randolf Jung <jrandolf@chromium.org>
2023-06-26 18:05:57 +00:00
Alex Rudenko 6a4b64d675 Remove special treatment for puppeteer by rollup
And by accident the special treatment for puppeteer-replay.

Fixed: 1455094
Change-Id: Ia80fbd62e5389133e7c38717365d772a94fb5585
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4637784
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
Reviewed-by: Philip Pfaffe <pfaffe@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2023-06-23 04:32:02 +00:00
Al Muthanna Athamina 8719882ebf Prettify local parallel E2E test results
Bug: 1419802
Change-Id: I98c10a89bfe9d1f9147474ab2ba3396acb92b483
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4628410
Commit-Queue: Almothana Athamneh <almuthanna@chromium.org>
Reviewed-by: Danil Somsikov <dsv@chromium.org>
Auto-Submit: Almothana Athamneh <almuthanna@chromium.org>
Commit-Queue: Danil Somsikov <dsv@chromium.org>
2023-06-20 15:49:02 +00:00
Alex Rudenko a2f56b76eb Add replay lib to the roll script
Splitting from the roll CL: https://crrev.com/c/4614808

Bug: none
Change-Id: I02a789be0221dd850d806e1f874f4abdca2ce1a0
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4626214
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
Auto-Submit: Alex Rudenko <alexrudenko@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
2023-06-19 09:00:35 +00:00
Al Muthanna Athamina e234a4f9f6 Add scripts to split the e2e tests command and a local parallel runner
This adds two scripts: one that divides the E2E tests command into
multiple ones that can be run separately, and another script that runs
these commands in parallel Python processes. This will allow us to run
the E2E tests locally but it is also necessary for running tests in
parallel on the builders. We also remove skipOnParallel since it is
not needed anymore.

Bug: 1419802
Change-Id: I7e4c2a6f1847c3a63cab1cc2365ddaa69b77f2fb
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4543009
Reviewed-by: Philip Pfaffe <pfaffe@chromium.org>
Reviewed-by: Danil Somsikov <dsv@chromium.org>
Commit-Queue: Almothana Athamneh <almuthanna@chromium.org>
2023-06-14 10:40:19 +00:00
Ari Chivukula 9303e842f5 [Deprecations] Keep metadata after usage period has passed {devtools}
We need to retain the metadata for deprecations past the point where
they are no longer dispatched on stable. This provides a way to turn
codegen off at the same time as we note the milestone when the metadata
can be safely removed.

Bug: 1451772
Change-Id: I9fb9ef4b8fbecaa2fb8d14ad65016102387bf722
DISABLE_THIRD_PARTY_CHECK=Testing codegen changes
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4594037
Commit-Queue: Simon Zünd <szuend@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2023-06-07 08:31:19 +00:00
Jack Franklin b6e869c1ff Update @typescript-eslint/* deps
Following the update to TS 5.1.3, updating the ESLint plugins too.
Includes a couple of small fixes where more floating promises are now
detected.

DISABLE_THIRD_PARTY_CHECK=source file changes to fix issues

Bug: none
Change-Id: Ia4b346ded7a63abed3dfc08db5f7b15baf6a40c8
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4584591
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Kateryna Prokopenko <kprokopenko@chromium.org>
Commit-Queue: Kateryna Prokopenko <kprokopenko@chromium.org>
2023-06-02 14:33:49 +00:00
Jack Franklin 98d9d46d28 Upgrade TypeScript to 5.1.3
DISABLE_THIRD_PARTY_CHECK=TS upgrade and source code changes.

Bug: none
Change-Id: I21244e75a24e8e323ef40c696254e552f3956e6d
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4583215
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
2023-06-02 13:05:48 +00:00
Jack Franklin dd7f433485 ESLint rule for tracking canvas contexts.
This CL introduces a basic ESLint rule for tracking the calls to
context.save and context.restore.

It does this by using two stacks, one to track scopes, and another to
track save() and restore() calls within those scopes. If when we exit a
scope we have an unbalanced stack of calls, we know the user has not
properly ensured that every save() call is restore()'d properly.

Bug: 1450569
Change-Id: I5d632a0e0cd17b6f755e3b725146314db408b3bd
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4580487
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Andres Olivares <andoli@chromium.org>
2023-06-02 10:56:17 +00:00
Jack Franklin 2f2b9fcb55 Fix overriding component server port with PORT variable
The logic for the PORT was slightly off, we need to make sure the PORT
variable is used before the logic for choosing a port based on tracing
mode.

Bug: none
Change-Id: Id512eb26f357096639a7b631521aae6c233ee81f
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4566606
Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Andres Olivares <andoli@chromium.org>
Reviewed-by: Andres Olivares <andoli@chromium.org>
2023-05-25 15:17:59 +00:00
Andrés Olivares 6c66158a5a Initialize the tracesMode flag in component server as false
This prevents a bug I noticed where a request for the index file
wouldn't be properly handled because it relies on the tracesMode being
`false`. In cases where the flag isn't set, this flag would be
`undefined`, which would cause an error (see line 249 in server.js).

Bug: none
Change-Id: I3c3fa538f61e46c1ac1fddb0f6f920264a562f04
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4547509
Commit-Queue: Andres Olivares <andoli@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Auto-Submit: Andres Olivares <andoli@chromium.org>
2023-05-22 10:57:29 +00:00
Paul Irish 7de493712a Introduce trace serving mode to component server
Provides an index of fixture traces, CORS serving, and the magic
loadTimelineFromURL url to develop against.

To run: node scripts/component_server/server.js --traces

Screenshot: https://imgur.com/Sh85xBx

Bug: 1430630
Change-Id: I9912dc6db21e43a5287fdda331d0d66aff1b01df
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4545102
Commit-Queue: Paul Irish <paulirish@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2023-05-19 07:20:12 +00:00
Jack Franklin 16ecfae54b Allow assert.includeMembers() when testing arrays
Bug: none
Change-Id: Ie13fd2650f3e0993688d53b23bc1dded43c654e5
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4547299
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Paul Irish <paulirish@chromium.org>
Reviewed-by: Paul Irish <paulirish@chromium.org>
2023-05-18 13:31:39 +00:00
Jack Franklin bb78b969f8 Fix ESLint test definitions rule for it()
It's annoying to be typing it() and then have the rule error in your
editor, so in that case let's just short-circuit and not attempt to lint
it.

Bug: none
Change-Id: Ia61cc17a7f69ddba07a5a4e2b5b64d9133c17f27
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4547298
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Paul Irish <paulirish@chromium.org>
Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Paul Irish <paulirish@chromium.org>
2023-05-18 13:16:23 +00:00
Randolf Jung c866a154c3 Update DevTools symlink hook
- `ensure_symlink.py` now actually _ensures_ the symlink is correct.
 - `os.symlink` is supported in Windows since 3.8, so the compat function was removed.
 - Some debugging information has also been added w.r.t. the gclient hooks.
 - Some attributes in the gclient file are not relevant.

Bug: 1095624
Change-Id: I7272da7980a1706ee624362ec0d5a3f71f9a6f04
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4533035
Commit-Queue: Randolf Jung <jrandolf@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2023-05-16 13:53:27 +00:00
Randolf Jung 0849e8636c Update puppeteer to 20.1.2
Bug: none
Change-Id: Ic54abd3e326a08c473ee20245e62f84365036676
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4519845
Commit-Queue: Randolf Jung <jrandolf@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2023-05-10 13:31:14 +00:00
Alex Rudenko aaf6c64ae8 [Recorder] Move UI components
DISABLE_THIRD_PARTY_CHECK=touching OWNERS file via a dep CL and presubmit is not happy

Bug: chromium:1414773, chromium:1441801
Change-Id: I8bf27e4781be53486a51ec8890b0cf511ddba269
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4488030
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2023-05-03 12:11:28 +00:00
Alex Rudenko df848bd08e Fix platform check in checkGoldensForPlatform
There is a win in darwin.

Bug: 1440943
Change-Id: Ic9fa6cacc074d77be5bd5f58bed3359613d8c410
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4497908
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
Auto-Submit: Alex Rudenko <alexrudenko@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
2023-05-02 09:05:55 +00:00