servo/components
Mukilan Thiyagarajan 33fa49c8ed
Fix mach test-wpt to make crash tests work (#29832)
* Fix `mach test-wpt` to make crash tests work

There are two issues related to crash tests:
1. test-wpt is unable to find existing crash tests even when
   called with --test-types=crashtests. The fix here is to
   add crashtests to the default test suite types to python/wpt/run.py
2. When running in headless mode, crashes in style threads
   don't cause servo to crash because the logic in constellation.rs
   currently calls handle_panic only when the top-level browsing
   context id is some value. Since style pool threads are shared,
   they always generate Panic messages with None as top-level
   browsing context id.

Co-authored-by: Martin Robinson <mrobinson@igalia.com>
Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>

* Send bactrace to stderr and capture it in test runner

Servo's panic hook writes backtraces to stdout. This
patch changes it so they are written to stderr.

The crash test executor for servo in WPT grouping formatter
was also not capturing the output correctly for crashtests
as the log events were being aggregated based on thread name
which doesn't seem to match correctly in case of crashtests.
This patch also fixes the log grouping logic to be based on
test name.

Co-authored-by: Martin Robinson <mrobinson@igalia.com>
Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>

* crashtests: update expectations for layout 2020

Co-authored-by: Martin Robinson <mrobinson@igalia.com>
Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>

* crashtests: update expectations for layout 2013

Co-authored-by: Martin Robinson <mrobinson@igalia.com>
Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>

* remove outdated & intemittent test expectations

Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>

---------

Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>
Co-authored-by: Martin Robinson <mrobinson@igalia.com>
2023-08-18 23:43:32 +00:00
..
allocator Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
atoms Further changes required by Servo 2023-08-16 17:46:41 +02:00
background_hang_monitor Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
bluetooth Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
bluetooth_traits Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
canvas [chore] Update 'half' in components/canvas (#30098) 2023-08-15 05:58:31 +00:00
canvas_traits Try to use WebRender types more 2023-07-10 17:35:50 +02:00
compositing [NFC] compositing: extract types into new compositing_traits crate (#30125) 2023-08-18 11:37:04 +00:00
compositing_traits [NFC] compositing: extract types into new compositing_traits crate (#30125) 2023-08-18 11:37:04 +00:00
config Switch to rustls and webpki-roots (#30025) 2023-08-08 14:00:10 +00:00
config_plugins Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
constellation Fix mach test-wpt to make crash tests work (#29832) 2023-08-18 23:43:32 +00:00
deny_public_fields Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
derive_common style: Allow to derive Parse/ToCss/SpecifiedValueInfo on bitflags 2023-08-16 17:46:41 +02:00
devtools Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
devtools_traits Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
dom_struct Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
domobject_derive Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
embedder_traits winit: initial minibrowser (#29976) 2023-08-15 08:08:50 +00:00
geometry Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
gfx Try to use WebRender types more 2023-07-10 17:35:50 +02:00
gfx_traits Try to use WebRender types more 2023-07-10 17:35:50 +02:00
jstraceable_derive Use mozjs tracing infrastructure (#29918) 2023-08-10 21:46:06 +00:00
layout Format toml files (#30112) 2023-08-17 15:07:43 +00:00
layout_2020 Further changes required by Servo 2023-08-16 17:46:41 +02:00
layout_thread Further changes required by Servo 2023-08-16 17:46:41 +02:00
layout_thread_2020 Try to use WebRender types more 2023-07-10 17:35:50 +02:00
layout_traits Vendor the current version of WebRender 2023-07-03 17:55:17 +02:00
malloc_size_of Try to use WebRender types more 2023-07-10 17:35:50 +02:00
media Try to use WebRender types more 2023-07-10 17:35:50 +02:00
metrics Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
msg Further changes required by Servo 2023-08-16 17:46:41 +02:00
net Format toml files (#30112) 2023-08-17 15:07:43 +00:00
net_traits Switch to rustls and webpki-roots (#30025) 2023-08-08 14:00:10 +00:00
pixels Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
profile Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
profile_traits Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
rand Update uuid 2023-06-26 16:27:12 +02:00
range Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
remutex Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
script Fix /custom-elements/when-defined-reentry-crash.html (#30121) 2023-08-18 04:00:44 +00:00
script_layout_interface Try to use WebRender types more 2023-07-10 17:35:50 +02:00
script_plugins Format toml files (#30112) 2023-08-17 15:07:43 +00:00
script_traits Remove EventLoopWaker from Constellation (#30101) 2023-08-15 18:02:02 +00:00
selectors Format toml files (#30112) 2023-08-17 15:07:43 +00:00
servo [NFC] compositing: extract types into new compositing_traits crate (#30125) 2023-08-18 11:37:04 +00:00
servo_arc style: Refactor the author sheet cache to keep alive the relevant StylesheetContents 2023-05-24 18:32:30 +02:00
size_of_test Further changes required by Servo 2023-08-16 17:46:41 +02:00
std_test_override Upgrade remaining components to edition 2018 2023-02-18 09:42:37 +01:00
style Format toml files (#30112) 2023-08-17 15:07:43 +00:00
style_derive Avoid complaints from ./mach test-tidy 2023-08-16 17:46:41 +02:00
style_traits style: Update color-mix() syntax to match the current spec 2023-08-16 17:46:41 +02:00
to_shmem style: Remove ThinBoxedSlice 2023-06-09 10:22:25 +02:00
to_shmem_derive Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
url Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
webdriver_server [NFC] compositing: extract types into new compositing_traits crate (#30125) 2023-08-18 11:37:04 +00:00
webgpu Try to use WebRender types more 2023-07-10 17:35:50 +02:00
webrender_surfman Format toml files (#30112) 2023-08-17 15:07:43 +00:00
webrender_traits Format toml files (#30112) 2023-08-17 15:07:43 +00:00