servo/components/constellation
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
..
browsingcontext.rs Add creation url and Secure Contexts 2020-11-25 18:30:50 +00:00
Cargo.toml [NFC] compositing: extract types into new compositing_traits crate (#30125) 2023-08-18 11:37:04 +00:00
constellation.rs Fix mach test-wpt to make crash tests work (#29832) 2023-08-18 23:43:32 +00:00
event_loop.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
lib.rs Move logers into seperate logger files 2023-05-02 17:02:02 +02:00
logging.rs [NFC] compositing: extract types into new compositing_traits crate (#30125) 2023-08-18 11:37:04 +00:00
network_listener.rs Update nightly rustc. 2021-11-01 08:46:18 -04:00
pipeline.rs [NFC] compositing: extract types into new compositing_traits crate (#30125) 2023-08-18 11:37:04 +00:00
sandboxing.rs feat: fix build error on apple m1 2021-04-24 19:15:59 +08:00
serviceworker.rs allow for a service worker manager per origin 2020-04-05 22:43:40 +08:00
session_history.rs Ensure layout/script always have a correct viewport size when a new pipeline is created. 2019-11-06 16:13:55 -05:00
timer_scheduler.rs update timer scheduler to use crossbeam 2019-10-20 23:42:34 +08:00