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

Use "http" fixture per session to increase test runtime drasticallly #690

Merged
merged 2 commits into from
Jun 12, 2024

Conversation

whimboo
Copy link
Contributor

@whimboo whimboo commented Jun 12, 2024

I noticed that tests that are only using data from the local HTTP server are running very slow. After investigation it turned out that the HTTP server's shutdown method takes about 0.5s to run. I filed web-platform-tests/wpt#46710 to get this investigated.

To workaround the issue we should use the http fixture per session and not per test.

@whimboo
Copy link
Contributor Author

whimboo commented Jun 12, 2024

Compared with CI checks that were running until now the duration drops from around 3:30 minutes to just 1 minute!

@whimboo whimboo merged commit 396e0a3 into mozilla:master Jun 12, 2024
16 checks passed
@whimboo whimboo added this to the 1.29.0 milestone Jun 12, 2024
@whimboo whimboo deleted the improve_test_runtime branch June 12, 2024 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants