You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Enable test signing during PR validation jobs #1026
In Core-Setup, PR validation ran test signing. This ensured new changes don't break the signing infrastructure in a fundamental way. It was removed in #1016 to unblock official builds.
# TODO: (Consolidation) Enable test signing during PR validation. https://github.com/dotnet/runtime/issues/1026
#
# CoreCLR only produces the UCRT redist file in Release config. When the redist file isn't
# present, signing fails. For now, only sign in official builds which only run Release mode.
I'm not sure what the behavior of that DLL is in general--if it's only packed up in Release builds (so the condition just needs to work right?), if we could enable it in Debug builds, if there's some root issue that could be sorted out.... It's possible it's not hard, I didn't look into it other than filing this tracking issue since it wasn't the priority. Best first step IMO is seeing what happens.
@ViktorHofer / @dagood - does there exist any private branch or PR enabling signing in debug builds so that I could give it a try in combination with the fix for CopyUcrtFiles?
Activity
ViktorHofer commentedon Feb 5, 2020
Why does signing depend on the UCRT redist files?
dagood commentedon Feb 5, 2020
Someone who knows why CoreCLR needs to sign it would need to answer that. The config in question:
runtime/eng/Signing.props
Lines 53 to 56 in 516956a
dagood commentedon Feb 5, 2020
I'm not sure what the behavior of that DLL is in general--if it's only packed up in Release builds (so the condition just needs to work right?), if we could enable it in Debug builds, if there's some root issue that could be sorted out.... It's possible it's not hard, I didn't look into it other than filing this tracking issue since it wasn't the priority. Best first step IMO is seeing what happens.
/cc @NikolaMilosavljevic
ViktorHofer commentedon Feb 5, 2020
Thanks, assigning to myself to look further.
ViktorHofer commentedon Feb 5, 2020
cc @janvorli @trylek, why do we only produce that files in Release? Tomas mentioned it might already be obsolete?
trylek commentedon Feb 5, 2020
I found a commit that seems related:
dotnet/coreclr@557c8f0
@mmitche - is there any harm in executing the CopyUcrtFiles target even in debug mode so that we can test signing in PR runs?
trylek commentedon Feb 7, 2020
@ViktorHofer / @dagood - does there exist any private branch or PR enabling signing in debug builds so that I could give it a try in combination with the fix for CopyUcrtFiles?
mmitche commentedon Feb 7, 2020
@mmitche - is there any harm in executing the CopyUcrtFiles target even in debug mode so that we can test signing in PR runs?
No idea.
dagood commentedon Feb 7, 2020
Not that I'm aware of. To get started, just changing the lines called out above will kick it off: