-
Notifications
You must be signed in to change notification settings - Fork 506
Combine five Python tests into one #5833
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
Conversation
08e60c7 to
4b6c697
Compare
4b6c697 to
805c14a
Compare
ryanking13
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM overall. Do you think we should avoid adding separate Python tests if possible in the future as well? In that case, it would be nice to mention it in the BUILD.bazel file so that we can extend the existing test file.
dom96
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Though I don't think our slowness leaking into how we structure our tests is good.
This is a lot more effort, but maybe what we actually need is to change our testing framework to start up a Python isolate and then run each of the .wd-test's? Maybe we could even give these tests a .python-wd-test extension? That would give the same benefits and allow us to keep tests separated into their own testing files.
If only V8 snapshots were a thing for WASM we could just ship workerd+V8Snapshot(CleanPythonIsolate) and run with that. |
805c14a to
8f0a3d6
Compare
|
We could run pytest inside a Python instance for a bunch of the tests. That would have several benefits, though it won't work for everything. |
To reduce the test time
8f0a3d6 to
334351c
Compare
|
@hoodmane yeah, that would be nice to have |
To reduce the test time