-
Notifications
You must be signed in to change notification settings - Fork 132
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
[Poison] Add detection of reference assemblies #2817
Comments
In discussing this issue with @NikolaMilosavljevic, it seems that adding in this feature might require some refactoring of the poison steps. Currently, there are reference assemblies are coming from the SBRP repo which is built after we poison the files, and there are reference assemblies in the previously-source-built artifacts package. We've never done poisoning steps during build, which addressing this issue would require us to do should we use the reference assemblies from the SBRP repo. On the other hand, there are also the reference assemblies coming from the PSB artifacts package. Do we know which ones are used during the build? Should we decide to use the assemblies from the SBRP repo, this issue might warrant some brainstorming. |
In trying to address this, I'm having trouble finding some of the .dll files that are present in the SDK. One reference assembly in particular is |
It is in SBRP: https://github.com/dotnet/source-build-reference-packages/tree/main/src/referencePackages/src/microsoft.win32.systemevents/7.0.0. It would be in |
I should've been more specific. When poisoning SBRP (which included I've found multiple instances of the reference assembly with the same name in the repo, but none have the same sha256 hash and binary code as the reference assembly in the sdk. Here is a report of the sha256 hash of the reference assembly in the sdk and the other hashes of matching names in Tldr: The reference assembly is not being identified as a leak when I poison SBRP, leading me to wonder where this reference assembly is being pulled from if it's not in SBRP. |
Most recent update: https://github.com/dotnet/installer/pull/17339/files#r1332210220 |
Updated poison reports after adding SBRP attribute to source-build-reference-packages. |
Closing with merge of dotnet/installer#17339 |
Currently, the leak detection infrastructure only poisons the previously-source-built nupkgs. We've talked with the runtime team and we also shouldn't ever be shipping reference assemblies - we can augment the poison reporting to detect these to help with this goal:
PoisonType
,ReferenceAttribute
or similar, that checks for theReferenceAssembly
attribute on shipped assemblies.The text was updated successfully, but these errors were encountered: