Conversation
I don't think that this is correct? When I run Apparently this wasn't always true:
(https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-pack#options) Tests are run in fresh directories, so there shouldn't be any stale directories around. If this were building the wrong dir, I would expect tests to always get it blatantly wrong? |
|
(I don't really have an objection to merging this, I'm just not sure that it will actually fix the issue you're experiencing?) |
Fair enough, you're right. Well for what it's worth, I re-ran the job on 3982 and it passed this time. ¯\_(ツ)_/¯ Maybe it's not an issue, and this is unnecessary. This was an attempt to prevent flakiness by being explicit. |
Description of Changes
CI now packs the local
SpacetimeDB.BSATN.RuntimeandSpacetimeDB.RuntimeNuGet packages using theReleaseconfiguration in both theunity-testsuiteandcsharp-testsuitejobs.This makes the NuGet override deterministic because
sdks/csharp/tools~/write-nuget-config.shpoints tocrates/bindings-csharp/*/bin/Release, anddotnet packotherwise defaults to Debug.This is needed due to a CI failure occurring in #3982 in which the one of our smoketests fails because the resolved version of the package lacks
RefOption<...>.GetListSerializer, resulting in aCS0117error. Because this failure is not actually related of the changes in 3982, it is being pulled out into a separate PR.API and ABI breaking changes
None.
Expected complexity level and risk
1 - Trivial
Testing