CI - cargo test runs C# and TypeScript tests#4921
Open
bfops wants to merge 66 commits into
Open
Conversation
2 tasks
bfops
commented
Apr 30, 2026
Signed-off-by: Zeke Foppa <196249+bfops@users.noreply.github.com>
….com:clockworklabs/SpacetimeDB into bfops/cargo-test-all
…rgo-ci-test' into bfops/cargo-test-all
bfops
commented
May 1, 2026
Signed-off-by: Zeke Foppa <196249+bfops@users.noreply.github.com>
bfops
commented
May 1, 2026
bfops
commented
May 1, 2026
bfops
commented
May 1, 2026
bfops
commented
May 1, 2026
bfops
commented
May 1, 2026
bfops
commented
May 1, 2026
Contributor
|
csharp tests don't work on windows due to executing a bash script: |
jdetter
reviewed
May 6, 2026
Contributor
jdetter
left a comment
There was a problem hiding this comment.
I think ideally this would work on both Unix and Windows based systems. There seem to be a few problems preventing this from working on Windows and I think that should maybe be a requirement for this PR. What do you think?
Collaborator
Author
2 tasks
This was referenced May 6, 2026
…anslate-script' into bfops/cargo-test-all
…anslate-script' into bfops/cargo-test-all
…anslate-script' into bfops/cargo-test-all
…anslate-script' into bfops/cargo-test-all
…anslate-script' into bfops/cargo-test-all
jdetter
reviewed
May 8, 2026
Contributor
jdetter
left a comment
There was a problem hiding this comment.
Other than the script failures on windows I don't have any objections left to this PR, LGTM. I've tested in places where I've left PR feedback and whatnot. I would like to test one more time once the PR with the script changes merges into this.
pull Bot
pushed a commit
to age-rs/SpacetimeDB
that referenced
this pull request
May 8, 2026
# Description of Changes Just moving this command in preparation to create a lot more `cargo regen` commands. - `master` - **[This PR] `cargo ci dlls` -> `cargo regen csharp dlls`** - [clockworklabs#4971 Translate some bash scripts to Rust](clockworklabs#4971) - [clockworklabs#4921 CI - `cargo test` runs C# and TypeScript tests](clockworklabs#4921) - [clockworklabs#4948 CI - Run unity tests through `cargo test`](clockworklabs#4948) # API and ABI breaking changes None # Expected complexity level and risk 1 # Testing - [x] CI still passes --------- Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
…4490b655f' into bfops/cargo-test-all
…anslate-script' into bfops/cargo-test-all
…ps/cargo-test-all
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of Changes
C# and TypeScript tests can now be run via
cargo test.This also involved updating some test code to take a server url override, so they could use the existing
SpacetimeDBGuard(which starts the server on an arbitrary port rather than a hardcoded 3000).mastercargo ci dlls->cargo regen csharp dllscargo testruns C# and TypeScript testscargo testAPI and ABI breaking changes
None. CI only.
Expected complexity level and risk
2
Testing
Failure reporting was checked with synthetic failing tests after the standard harness checks.
TypeScript harness:
cargo test -p spacetimedb-typescript-testspnpm build,pnpm vitest runwith a JUnit report, thenpnpm vitest typecheck --run. Reports are written undertarget/language-tests/typescript/.C# harness:
cargo build -p spacetimedb-cli -p spacetimedb-standalone --features spacetimedb-standalone/allow_loopback_http_for_testscargo test -p spacetimedb-csharp-testsspacetimedb-guard. TRX reports are written undertarget/language-tests/csharp/.Synthetic failure check
cargo test -p spacetimedb-typescript-tests --test typescript -- --filter SyntheticHarnessFailurecargo test -p spacetimedb-csharp-tests --test csharp -- --filter SyntheticHarnessFailure