Skip to content

Refactor test runner#221

Merged
saulecabrera merged 2 commits into
mainfrom
test-suite-runner-refactor
Feb 25, 2026
Merged

Refactor test runner#221
saulecabrera merged 2 commits into
mainfrom
test-suite-runner-refactor

Conversation

@wingo
Copy link
Copy Markdown
Collaborator

@wingo wingo commented Feb 24, 2026

When adding HTTP support to the runner, I got a bit distracted about code duplication, and how we had so much state in the run_test method, then realized that all the op interpretation isn't the responsibility of the runtime adapter, rather of the test case... and ended up with this big honkin' patch.

@wingo wingo marked this pull request as ready for review February 24, 2026 15:51
@wingo wingo requested a review from saulecabrera February 24, 2026 15:51
When adding HTTP support to the runner, I got a bit distracted about
code duplication, and how we had so much state in the run_test method,
then realized that all the op interpretation isn't the responsibility of
the runtime adapter, rather of the test case... and ended up with this
big honkin' patch.
@wingo wingo force-pushed the test-suite-runner-refactor branch from 0e93a55 to 625f567 Compare February 24, 2026 15:52
Copy link
Copy Markdown
Collaborator

@saulecabrera saulecabrera left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the refactor. Only one question below.

Comment thread test-runner/wasi_test_runner/test_suite_runner.py Outdated
Removes some duplication and complexity.  Also, tighten up validation to
ensure we use streams (readable or writable pipes, sockets) in an
appropriate way.
@wingo wingo requested a review from saulecabrera February 25, 2026 09:14
@saulecabrera saulecabrera merged commit 539494d into main Feb 25, 2026
21 checks passed
@saulecabrera saulecabrera deleted the test-suite-runner-refactor branch February 25, 2026 12:18
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