Skip to content

Enable the datastore crate's test feature where necessary#2937

Merged
gefjon merged 2 commits into
masterfrom
phoebe/datastore-crate-test-feature
Jul 14, 2025
Merged

Enable the datastore crate's test feature where necessary#2937
gefjon merged 2 commits into
masterfrom
phoebe/datastore-crate-test-feature

Conversation

@gefjon
Copy link
Copy Markdown
Contributor

@gefjon gefjon commented Jul 14, 2025

Description of Changes

#2933 broke running cargo test without --all because the new datastore crate hid some of its test utilities behind cfg(any(test, feature = "test")), but did not enable that feature in the dependency from core or sqltest.

This was hidden in our CI because we run with --all there, which apparently enables all optional features, including the test feature.

API and ABI breaking changes

N/a

Expected complexity level and risk

1

Testing

  • Manually ran cargo check --tests --package $PACKAGE for every crate with a dependency on spacetimedb-datastore (as revealed by grep for 'spacetimedb-datastore =') and ensured that they all compiled correctly after this patch.

2933 broke running `cargo test` without `--all`
because the new `datastore` crate hid some of its test utilities
behind `cfg(any(test, feature = "test"))`,
but did not enable that feature in the dependency from `core` or `sqltest`.

This was hidden in our CI because we run with `--all` there,
which apparently enables all optional features, including the `test` feature.
@gefjon gefjon requested review from Centril and cloutiertyler July 14, 2025 16:43
Comment thread crates/core/Cargo.toml
@bfops bfops added release-any To be landed in any release window no runtime change This change does not affect the final binaries labels Jul 14, 2025
@gefjon gefjon added this pull request to the merge queue Jul 14, 2025
Merged via the queue into master with commit 6a9b524 Jul 14, 2025
21 checks passed
@Centril Centril deleted the phoebe/datastore-crate-test-feature branch July 14, 2025 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no runtime change This change does not affect the final binaries release-any To be landed in any release window

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants