Skip to content

Conversation

@hoodmane
Copy link
Contributor

@hoodmane hoodmane commented Jan 6, 2026

To reduce the test time

@hoodmane hoodmane requested review from a team as code owners January 6, 2026 00:49
@hoodmane hoodmane force-pushed the hoodmane/combine-tests branch 3 times, most recently from 08e60c7 to 4b6c697 Compare January 6, 2026 00:53
@hoodmane hoodmane changed the title Combine three Python tests into one Combine five Python tests into one Jan 6, 2026
@hoodmane hoodmane force-pushed the hoodmane/combine-tests branch from 4b6c697 to 805c14a Compare January 6, 2026 01:01
Copy link
Contributor

@ryanking13 ryanking13 left a 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.

Copy link
Contributor

@dom96 dom96 left a 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.

@danlapid
Copy link
Collaborator

danlapid commented Jan 6, 2026

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.
One day...

@hoodmane hoodmane force-pushed the hoodmane/combine-tests branch from 805c14a to 8f0a3d6 Compare January 6, 2026 22:14
@hoodmane
Copy link
Contributor Author

hoodmane commented Jan 6, 2026

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
@hoodmane hoodmane force-pushed the hoodmane/combine-tests branch from 8f0a3d6 to 334351c Compare January 6, 2026 22:59
@hoodmane hoodmane merged commit 84871c7 into main Jan 6, 2026
21 checks passed
@hoodmane hoodmane deleted the hoodmane/combine-tests branch January 6, 2026 23:37
@dom96
Copy link
Contributor

dom96 commented Jan 7, 2026

@hoodmane yeah, that would be nice to have

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.

4 participants