-
-
Notifications
You must be signed in to change notification settings - Fork 289
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
feat: Embed symbols and enable continuous integration builds (deterministic source paths) #1129
Conversation
✅ Deploy Preview for testcontainers-dotnet ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to this comment and this section, Source Link is now included in the SDK. The added properties, among others, are set in our Cake build file. According to the Source Link docs, they are not necessary anymore, either. Probably, we can even remove them.
Is something not working? I haven't had issues in the past debugging the library. The NuGet Package Explorer looks Ok too (although, we need to move ContinuousIntegrationBuild
to Cake's build task).
I see, thanks! Maybe we just need to move the properties (args) to the Cake build task (the pack task does not rebuild the projects): diff --git a/build.cake b/build.cake
index 1d2e4ae..0843d4e 100644
--- a/build.cake
+++ b/build.cake
@@ -67,6 +67,8 @@ Task("Build")
Verbosity = param.Verbosity,
NoRestore = true,
ArgumentCustomization = args => args
+ .Append("/p:ContinuousIntegrationBuild=true")
+ .Append("/p:EmbedUntrackedSources=true")
});
});
@@ -134,8 +136,6 @@ Task("Create-NuGet-Packages")
SymbolPackageFormat = "snupkg",
OutputDirectory = param.Paths.Directories.NuGetDirectoryPath,
ArgumentCustomization = args => args
- .Append("/p:ContinuousIntegrationBuild=true")
- .Append("/p:EmbedUntrackedSources=true")
.Append($"/p:Version={param.Version}")
});
}); |
Probably yes, and the symbols should be embedded rather than having a separate symbol package, from my experience the latter never works without friction. |
Also maybe .Append("/p:ContinuousIntegrationBuild=true") should not really be needed, SourceLink should determine this automatically |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is what I got with the current version of TestContainers:
This is strange. Sorry, I do not have access to Visual Studio. Rider seems to be able to download the symbols, etc. I can debug into the sources without any issues. However, we can merge the suggestions. The NuGet Package Explorer looks even better with them. Thanks.
I published the pipeline artifacts (NuGets) to ensure that the NuGets are built and configured properly, and everything is set up correctly for the next release. It appears that |
Strange, I never had to set this - however I never used Cake, maybe that's special about this. |
Probably, we cannot enable
|
That's strange, how can this have such a side effect? And why only on linux? |
I think I found the "reason" and have a potential working configuration, which also explains why you never had to set |
If we set My assumption was, if we allow Cake to rebuild the packages on |
I do not think we need that many changes. The following changes work fine (incl. Sonar). We just need to make sure the pack target rebuilds the NuGets. I am still wondering why we need to set |
Just needed to turn off deterministic for the tests, they don't get deployed anyhow. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the efforts, and apologies for the back and forth.
Happy to contribute to such a great tool! Thanks for all YOUR efforts 😄 |
What does this PR do?
Use embedded symbols instead of separate symbol package
Why is it important?
Works better across all IDEs
Related issues