Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[wptrunner] Run --enable-sanitizer tests with their own executors #49235

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jonathan-j-lee
Copy link
Contributor

Running non-crashtests with the crashtest executor likely doesn't provide high-fidelity coverage because the test completes on the load event by default. This means that code paths normally exercised after the load event aren't actually run under sanitization. Also, some tests require testdriver, which the crashtest executor doesn't implement yet, to progress.

Now, simply run each test with its corresponding type's executor and suppress functional failures (i.e., not timeout or crash) at the end. This also simplifies the result coercion, which didn't interact correctly with #47903.

Tested locally:

./wpt run -y chrome infrastructure --metadata infrastructure/metadata --enable-sanitizer

Running non-crashtests with the crashtest executor likely doesn't
provide high-fidelity coverage because the test completes on the `load`
event by default. This means that code paths normally exercised after
the `load` event aren't actually run under sanitization. Also, some
tests require testdriver, which the crashtest executor doesn't implement
yet, to progress.

Now, simply run each test with its corresponding type's executor and
suppress functional failures (i.e., not timeout or crash) at the end.
This also simplifies the result coercion, which didn't interact
correctly with web-platform-tests#47903.

Tested locally:

```sh
./wpt run -y chrome infrastructure --metadata infrastructure/metadata --enable-sanitizer
```
@jonathan-j-lee jonathan-j-lee marked this pull request as ready for review November 18, 2024 21:16
@wpt-pr-bot wpt-pr-bot added infra wptrunner The automated test runner, commonly called through ./wpt run labels Nov 18, 2024
@jonathan-j-lee
Copy link
Contributor Author

https://crrev.com/c/6024228 will make a corresponding change downstream to ignore *-expected.txt, so OK or test-level PASS is always expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infra 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