Skip to content

WASM testing#4183

Draft
bfops wants to merge 55 commits intomasterfrom
bfops/wasm-test
Draft

WASM testing#4183
bfops wants to merge 55 commits intomasterfrom
bfops/wasm-test

Conversation

@bfops
Copy link
Collaborator

@bfops bfops commented Feb 2, 2026

Description of Changes

Real questions remaining:

  • the expr size changes seem worrying
  • how should the credentials be managed in wasm?

API and ABI breaking changes

Expected complexity level and risk

Testing

thlsrms and others added 21 commits January 21, 2026 19:51
- `DbConnectionBuilder::build` becomes async without tokio's
block_in_place.

Still need to add `web` feature flag.
Renamed the `run_threaded` method on `wasm32` to better reflect its
behavior of spawning a background task.

The generated `DbConnection` methods `run_threaded`, `run_background`,
and `advance_one_message_blocking` now include runtime panics with a
clear error feedback when called on unsupported targets.
Trim down repetitive `cfg` clauses by extracting common lock patterns
into `get_lock_[sync|async]`.
Moves the creation of DbContextImplInner and DbContextImpl into private
helper functions (`build_db_ctx_inner` and `build_db_ctx`) to reduce
duplication between the web and non-web implementations of `build_impl`.
@bfops bfops linked an issue Feb 2, 2026 that may be closed by this pull request
bfops and others added 2 commits March 11, 2026 09:37
Signed-off-by: Zeke Foppa <196249+bfops@users.noreply.github.com>
@bfops bfops changed the title [bfops/wasm-test]: WASM testing WASM testing Mar 11, 2026
default = ["native"]

# Builds the existing CLI test client.
native = []
Copy link
Collaborator Author

@bfops bfops Mar 12, 2026

Choose a reason for hiding this comment

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

possibly remove this?

pub(crate) async fn dispatch_async(test: &str) {
match test {
"row-deduplication-r-join-s-and-r-joint" => {
exec_row_deduplication_r_join_s_and_r_join_t_async().await;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

?

Signed-off-by: Zeke Foppa <196249+bfops@users.noreply.github.com>
Signed-off-by: Zeke Foppa <196249+bfops@users.noreply.github.com>
bfops and others added 4 commits March 13, 2026 13:37
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.

Test Rust client SDK WASM target in CI

2 participants