-
Notifications
You must be signed in to change notification settings - Fork 686
CI: Fix of C# tests failures #4120
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
Merged
jdetter
merged 0 commits into
jdetter/bump-version-to-v1.12.0
from
rekhoff/ci-testing-v1.12.0
Jan 26, 2026
Merged
CI: Fix of C# tests failures #4120
jdetter
merged 0 commits into
jdetter/bump-version-to-v1.12.0
from
rekhoff/ci-testing-v1.12.0
Jan 26, 2026
Conversation
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
dotnet restore for dotnet testsf93b269 to
f0fd738
Compare
f0fd738
into
jdetter/bump-version-to-v1.12.0
15 of 16 checks passed
ab2fd8f to
a023c85
Compare
github-merge-queue bot
pushed a commit
that referenced
this pull request
Jan 27, 2026
# Description of Changes (jdetter): Github marked Ryan's PR as merged because I rebased it without updating the base branch first - my bad. Original PR: #4120 This PR fixes C#-related CI failures when testing against `v1.12.0` before the corresponding NuGet packages are available on nuget.org. * CI: Ensure local C# NuGet packages are used consistently * Pack `crates/bindings-csharp/{BSATN.Runtime,Runtime}` with `-c Release` so the configured local package sources (`bin/Release`) actually contain the `.nupkg`s. * Run `./sdks/csharp/tools~/write-nuget-config.sh` in CI to generate a `NuGet.Config` that maps `SpacetimeDB.BSATN.Runtime` / `SpacetimeDB.Runtime` to those local sources (with `nuget.org` as fallback for non-SpacetimeDB dependencies). * Add an explicit `dotnet restore --configfile NuGet.Config` step before tests, and `run dotnet test --no-restore`, so restore always uses the intended config and does not “accidentally” restore from `nuget.org`. * `write-nuget-config.sh`: Make NuGet config discovery + mapping deterministic * Write `NuGet.Config` (capitalized) and include `<clear />` + an explicit `nuget.org` source to avoid inherited sources and to keep `PackageSourceMapping` functional. * Also write a repo-root `NuGet.Config` so `dotnet publish/pack` invoked from templates (outside `sdks/csharp/`) still discovers the same override behavior. * Smoketests quickstart: avoid `PackageSourceMapping` restore failures * Ensure smoketest helper packing uses `Release`, and when repo-root `NuGet.Config` exists, perform `dotnet restore --configfile ...` + `dotnet pack --no-restore` so pack/restore are evaluated with the same sources/mapping. * When editing configs, prefer `NuGet.Config` casing for Linux discovery and ensure `nuget.org` exists as a source for the fallback mapping. # API and ABI breaking changes No changes # Expected complexity level and risk 1 # Testing - [X] Locally tested concept after simulating local repro. - [x] Confirmed CI passes in this branch --------- Co-authored-by: rekhoff <r.ekhoff@clockworklabs.io> Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
Centril
pushed a commit
that referenced
this pull request
Jan 27, 2026
# Description of Changes (jdetter): Github marked Ryan's PR as merged because I rebased it without updating the base branch first - my bad. Original PR: #4120 This PR fixes C#-related CI failures when testing against `v1.12.0` before the corresponding NuGet packages are available on nuget.org. * CI: Ensure local C# NuGet packages are used consistently * Pack `crates/bindings-csharp/{BSATN.Runtime,Runtime}` with `-c Release` so the configured local package sources (`bin/Release`) actually contain the `.nupkg`s. * Run `./sdks/csharp/tools~/write-nuget-config.sh` in CI to generate a `NuGet.Config` that maps `SpacetimeDB.BSATN.Runtime` / `SpacetimeDB.Runtime` to those local sources (with `nuget.org` as fallback for non-SpacetimeDB dependencies). * Add an explicit `dotnet restore --configfile NuGet.Config` step before tests, and `run dotnet test --no-restore`, so restore always uses the intended config and does not “accidentally” restore from `nuget.org`. * `write-nuget-config.sh`: Make NuGet config discovery + mapping deterministic * Write `NuGet.Config` (capitalized) and include `<clear />` + an explicit `nuget.org` source to avoid inherited sources and to keep `PackageSourceMapping` functional. * Also write a repo-root `NuGet.Config` so `dotnet publish/pack` invoked from templates (outside `sdks/csharp/`) still discovers the same override behavior. * Smoketests quickstart: avoid `PackageSourceMapping` restore failures * Ensure smoketest helper packing uses `Release`, and when repo-root `NuGet.Config` exists, perform `dotnet restore --configfile ...` + `dotnet pack --no-restore` so pack/restore are evaluated with the same sources/mapping. * When editing configs, prefer `NuGet.Config` casing for Linux discovery and ensure `nuget.org` exists as a source for the fallback mapping. # API and ABI breaking changes No changes # Expected complexity level and risk 1 # Testing - [X] Locally tested concept after simulating local repro. - [x] Confirmed CI passes in this branch --------- Co-authored-by: rekhoff <r.ekhoff@clockworklabs.io> Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
github-merge-queue bot
pushed a commit
that referenced
this pull request
Jan 27, 2026
# Description of Changes <!-- Please describe your change, mention any related tickets, and so on here. --> Version upgrade to `v1.12.0`. # API and ABI breaking changes <!-- If this is an API or ABI breaking change, please apply the corresponding GitHub label. --> None # Expected complexity level and risk 1 - this is just a version upgrade <!-- How complicated do you think these changes are? Grade on a scale from 1 to 5, where 1 is a trivial change, and 5 is a deep-reaching and complex change. This complexity rating applies not only to the complexity apparent in the diff, but also to its interactions with existing and future code. If you answered more than a 2, explain what is complex about the PR, and what other components it interacts with in potentially concerning ways. --> # 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! --> The testsuite failures are fixed by #4120 - [x] License has been properly updated including version number and date - [x] CI passes --------- Co-authored-by: rekhoff <r.ekhoff@clockworklabs.io> Co-authored-by: clockwork-labs-bot <clockwork-labs-bot@users.noreply.github.com>
2 tasks
github-merge-queue bot
pushed a commit
that referenced
this pull request
Feb 2, 2026
# Description of Changes <!-- Please describe your change, mention any related tickets, and so on here. --> Copied from: #4084 We originally reverted this because it was causing testsuite flakes in private. Now we have solved the issue that was causing the flakes so this should be safe to merge. Version upgrade to `v1.12.0`. # API and ABI breaking changes <!-- If this is an API or ABI breaking change, please apply the corresponding GitHub label. --> None # Expected complexity level and risk 1 - this is just a version upgrade <!-- How complicated do you think these changes are? Grade on a scale from 1 to 5, where 1 is a trivial change, and 5 is a deep-reaching and complex change. This complexity rating applies not only to the complexity apparent in the diff, but also to its interactions with existing and future code. If you answered more than a 2, explain what is complex about the PR, and what other components it interacts with in potentially concerning ways. --> # 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! --> The testsuite failures are fixed by #4120 - [x] License has been properly updated including version number and date - [x] CI passes --------- Co-authored-by: John Detter <4099508+jdetter@users.noreply.github.com> Co-authored-by: rekhoff <r.ekhoff@clockworklabs.io> Co-authored-by: clockwork-labs-bot <clockwork-labs-bot@users.noreply.github.com> Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
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
This PR fixes C#-related CI failures when testing against
v1.12.0before the corresponding NuGet packages are available on nuget.org.crates/bindings-csharp/{BSATN.Runtime,Runtime}with-c Releaseso the configured local package sources (bin/Release) actually contain the.nupkgs../sdks/csharp/tools~/write-nuget-config.shin CI to generate aNuGet.Configthat mapsSpacetimeDB.BSATN.Runtime/SpacetimeDB.Runtimeto those local sources (withnuget.orgas fallback for non-SpacetimeDB dependencies).dotnet restore --configfile NuGet.Configstep before tests, andrun dotnet test --no-restore, so restore always uses the intended config and does not “accidentally” restore fromnuget.org.write-nuget-config.sh: Make NuGet config discovery + mapping deterministicNuGet.Config(capitalized) and include<clear />+ an explicitnuget.orgsource to avoid inherited sources and to keepPackageSourceMappingfunctional.NuGet.Configsodotnet publish/packinvoked from templates (outsidesdks/csharp/) still discovers the same override behavior.PackageSourceMappingrestore failuresRelease, and when repo-rootNuGet.Configexists, performdotnet restore --configfile ...+dotnet pack --no-restoreso pack/restore are evaluated with the same sources/mapping.NuGet.Configcasing for Linux discovery and ensurenuget.orgexists as a source for the fallback mapping.API and ABI breaking changes
No changes
Expected complexity level and risk
1
Testing