Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI - SpacetimeDB PRs run the C# SDK tests #1503

Merged
merged 14 commits into from
Jul 15, 2024
Merged

CI - SpacetimeDB PRs run the C# SDK tests #1503

merged 14 commits into from
Jul 15, 2024

Conversation

bfops
Copy link
Collaborator

@bfops bfops commented Jul 12, 2024

Description of Changes

Added a CI step that checks out spacetimedb-csharp-sdk and runs its test suite.

In the current PR incarnation, if the local major/minor package versions are bumped, the C# SDK tests will continue to use the old ones. This is because the C# SDK repo will still have its version numbers pointed to e.g. 0.10.* rather than e.g. 0.11.*. Is this a bug or a feature?

I kind of think that the current behavior is correct - if we bump the major/minor version numbers, we're explicitly aware that we're releasing a breaking change. This effectively tests the experience of a current user of the C# SDK (on master). In that case, we can make this a required check.

On the other hand, if we decide we want the C# SDK to always use the local versions, then this should not be made a required check. We may sometimes release breaking changes, which will need to happen in this repository before they happen in that one.

API and ABI breaking changes

No

Expected complexity level and risk

2

Testing

Describe any testing you've done, and any testing you'd like your reviewers to do,
so that you're confident that all the changes work as expected!

@bfops bfops requested a review from jdetter July 12, 2024 21:17
@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 12, 2024
@bfops bfops marked this pull request as ready for review July 12, 2024 21:54
@bfops bfops linked an issue Jul 12, 2024 that may be closed by this pull request
Copy link
Collaborator

@jdetter jdetter left a comment

Choose a reason for hiding this comment

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

Small comment nit but this looks great, thanks zeke 🙏

- name: Create /stdb dir
run: |
sudo mkdir /stdb
sudo chmod 777 /stdb
Copy link
Collaborator

Choose a reason for hiding this comment

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

🌶️

Copy link
Collaborator Author

@bfops bfops Jul 15, 2024

Choose a reason for hiding this comment

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

good ol' copy 🍝

( cd crates/bindings-csharp/BSATN.Runtime && dotnet pack )
cd spacetimedb-csharp-sdk

cat >nuget.config <<EOF
Copy link
Collaborator

Choose a reason for hiding this comment

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

can we throw a comment on this explaining what we're doing here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

added one - how does this look?

@bfops bfops added this pull request to the merge queue Jul 15, 2024
@bfops
Copy link
Collaborator Author

bfops commented Jul 15, 2024

(did a final round of testing by manually downgrading the local package versions to match the NuGet versions, see the Testing section)

Merged via the queue into master with commit 50b050f Jul 15, 2024
9 checks passed
@bfops bfops deleted the bfops/csharp-sdk-test branch July 15, 2024 21:00
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.

Test coverage - SpacetimeDB PRs should run C# SDK test suite
2 participants