Skip to content

Re-enable bench tests for case conversion PR#4352

Merged
Shubham8287 merged 2 commits intoshub/case-conversionfrom
bot/fix-bench-case-conversion
Feb 19, 2026
Merged

Re-enable bench tests for case conversion PR#4352
Shubham8287 merged 2 commits intoshub/case-conversionfrom
bot/fix-bench-case-conversion

Conversation

@clockwork-labs-bot
Copy link
Collaborator

Branched from shub/case-conversion (#4263).

Re-enables the four bench tests that were commented out during the case conversion work:

  • test_basic_invariants_sqlite
  • test_basic_invariants_spacetime_raw
  • test_basic_invariants_spacetime_module_rust
  • test_basic_invariants_spacetime_module_csharp

Restores serial_test import and #[serial] attributes. Only changes crates/bench/src/lib.rs.

Compiles clean locally (cargo test -p spacetimedb-bench --no-run).

cc @Shubham8287

Re-enable the four bench tests that were commented out:
- test_basic_invariants_sqlite
- test_basic_invariants_spacetime_raw
- test_basic_invariants_spacetime_module_rust
- test_basic_invariants_spacetime_module_csharp

Restore serial_test import and #[serial] attributes for
module tests. Remove dead_code allow on test_basic_invariants.

Compiles clean with cargo test -p spacetimedb-bench --no-run.
The default CaseConversionPolicy (SnakeCase) inserts underscores
at letter-digit boundaries, e.g. u32 -> u_32. The SpacetimeModule
bench backend must use these converted names when calling reducers
and clearing tables, since the module schema applies case conversion
to all identifiers.

Add convert_case dependency to bench crate and apply Case::Snake
conversion to the table name in create_table().
@Shubham8287 Shubham8287 merged commit 1896274 into shub/case-conversion Feb 19, 2026
20 of 26 checks passed
@Shubham8287 Shubham8287 deleted the bot/fix-bench-case-conversion branch February 19, 2026 17:27
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

Comments