Skip to content

Fix mach test-wpt to make crash tests work - #41513

Merged
servo-wpt-sync merged 1 commit into
web-platform-tests:masterfrom
servo-wpt-sync:servo_export_29832
Aug 19, 2023
Merged

servo-wpt-sync merged 1 commit into
web-platform-tests:masterfrom
servo-wpt-sync:servo_export_29832

Conversation

@servo-wpt-sync

@servo-wpt-sync servo-wpt-sync commented Aug 17, 2023 •

Copy link
Copy Markdown
Collaborator

The first commit fixes 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.

The second commit addresses issues with generating and capturing backtrace and stderr for crash tests.

Reviewed in servo/servo#29832

@wpt-pr-bot wpt-pr-bot added infra wptrunner The automated test runner, commonly called through ./wpt run labels Aug 17, 2023

@wpt-pr-bot wpt-pr-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Servo project.

@servo-wpt-sync

Copy link
Copy Markdown
Collaborator Author

🛠 Changes from the source pull request (servo/servo#29832) can no longer be cleanly applied. Waiting for a new version of these changes downstream.

1 similar comment
@servo-wpt-sync

Copy link
Copy Markdown
Collaborator Author

🛠 Changes from the source pull request (servo/servo#29832) can no longer be cleanly applied. Waiting for a new version of these changes downstream.

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 <[email protected]>
Signed-off-by: Mukilan Thiyagarajan <[email protected]>
@servo-wpt-sync
servo-wpt-sync merged commit 50e91f3 into web-platform-tests:master Aug 19, 2023
@servo-wpt-sync
servo-wpt-sync deleted the servo_export_29832 branch August 19, 2023 00:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infra servo-export wptrunner The automated test runner, commonly called through ./wpt run

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants