Commit Graph

5 Commits

Author SHA1 Message Date
Tyler Cloutier 017f42d17c Add missing RLS tests: BrokenRls and DisconnectRls
- Add rls-no-filter and rls-with-filter precompiled modules
- Add publish_module_with_options method for --break-clients flag
- Add test_publish_fails_for_rls_on_private_table
- Add test_rls_disconnect_if_change
- Add test_rls_no_disconnect
2026-01-27 14:30:02 -05:00
Tyler Cloutier ee141de2c9 Add test_upload_module_2 and test_hotswap_module tests
- Add upload-module-2 precompiled module (repeating scheduled reducer)
- Add hotswap-basic and hotswap-updated precompiled modules
- Add test_upload_module_2 to verify repeating reducers work
- Add test_hotswap_module to verify module updates with active subscriptions
2026-01-27 13:33:53 -05:00
Tyler Cloutier 06669e5c36 Use precompiled modules-breaking module instead of inline code
- Add modules-breaking to precompiled modules in Cargo.toml
- Update test_module_update to use precompiled module
2026-01-27 13:30:04 -05:00
Tyler Cloutier 833dc984b4 Consolidate autoinc tests to match Python semantics
Replace individual autoinc modules (u32, u64, i32, i64) with two
consolidated modules that test all 10 integer types (u8, u16, u32,
u64, u128, i8, i16, i32, i64, i128), matching the Python tests.

- Create autoinc-basic module with macro for all types
- Create autoinc-unique module with macro for all types
- Update test to iterate over all types in a single test
- Remove individual type-specific modules
2026-01-27 11:30:40 -05:00
= 5a8107f633 Add precompiled WASM modules for smoketests
Extract static smoketest modules into a nested workspace at
crates/smoketests/modules/ that is pre-compiled during warmup.
This eliminates per-test WASM compilation overhead.

Key changes:
- Add 38 precompiled module crates in nested workspace
- Add module registry (src/modules.rs) for WASM path lookup
- Add precompiled_module() builder and use_precompiled_module() method
- Update xtask warmup to build nested workspace
- Migrate all static tests to use precompiled modules
- Tests using precompiled modules run in ~0.5-3s vs ~4-7s before

Tests that need runtime compilation (auto_migration, detect_wasm_bindgen,
intentionally-broken modules) continue to use module_code().
2026-01-25 21:17:03 -05:00