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] Guard against no browser during TestRunnerManager cleanup #48265

Conversation

jonathan-j-lee
Copy link
Contributor

Even with no browser, stop_runner() should still call cleanup() in case there are other resources to clean up.

Fixes #48263

Even with no browser, `stop_runner()` should still call `cleanup()` in
case there are other resources to clean up.

Fixes web-platform-tests#48263
@jonathan-j-lee jonathan-j-lee marked this pull request as ready for review September 19, 2024 18:28
@wpt-pr-bot wpt-pr-bot added infra wptrunner The automated test runner, commonly called through ./wpt run labels Sep 19, 2024
@jonathan-j-lee jonathan-j-lee enabled auto-merge (squash) September 19, 2024 18:28
Copy link
Member

@gsnedders gsnedders left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this so quickly! (I hadn't actually looked to see if this was a regression from your recent changes, was mostly just filing the bug so it wasn't just in my head!)

This does, yet again, make me wish that we actually had a decent testing story for the TestRunnerManager, but with so much IPC it's kinda a pain. I'd love to spend the time to hook something up to create a fake TestRunner that sends arbitrary messages, with a fake Browser, with Hypothesis to try and ensure we maintain the properties we expect the TestRunnerManager to have. But that's a decently large amount of work, even if it's maybe worthwhile doing…

@jonathan-j-lee jonathan-j-lee merged commit b23d75f into web-platform-tests:master Sep 19, 2024
33 checks passed
@jonathan-j-lee jonathan-j-lee deleted the wptrunner/cleanup-no-browser branch September 19, 2024 19:47
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
4 participants