-
Notifications
You must be signed in to change notification settings - Fork 358
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
Enable unpack/repack of RPM containers #15405
Enable unpack/repack of RPM containers #15405
Conversation
Looks like some bad auto-merge causing build issues. Will fix this soon. |
Co-authored-by: Matt Mitchell <mmitche@microsoft.com>
else if (!_signTool.VerifySignedRpm(log, file.FullPath)) | ||
{ | ||
_log.LogError($"Deb package {file.FullPath} is not signed properly."); | ||
} |
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.
Can you add an else here with a "signed properly" message?
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.
I'll add it for both DEB and RPM.
Co-authored-by: Matt Mitchell <mmitche@microsoft.com>
@@ -34,6 +35,7 @@ public class SignToolTests : IDisposable | |||
{".psc1", new List<SignInfo>{ new SignInfo("PSCCertificate") } }, | |||
{".dylib", new List<SignInfo>{ new SignInfo("DylibCertificate") } }, | |||
{".deb", new List<SignInfo>{ new SignInfo("LinuxSign") } }, | |||
{".rpm", new List<SignInfo>{ new SignInfo("LinuxSign") } }, |
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.
Does the RPM extension also need to be added to s_fileExtensionSignInfoWithCollisionId, s_fileExtensionSignInfoPostBuild, and SignableExtensions? It's possible that this may be addressed in #14433
Hmm, Windows tests are failing as they're trying to run the RPM-specific test. Helix log indicates that this is executed on Linux and both commands are failing: https://helixr1107v0xdeko0k025g8.blob.core.windows.net/dotnet-arcade-refs-pull-15405-merge-c0a2b5fcd9fa4337af/Microsoft.DotNet.SignTool.Tests.dll/2/console.5f9debda.log?helixlogtype=result
Linux tests are failing with the same issue - https://helixr1107v0xdeko0k025g8.blob.core.windows.net/dotnet-arcade-refs-pull-15405-merge-52fab730ffb84b0d9b/Microsoft.DotNet.SignTool.Tests.dll/2/console.cb9f2381.log?helixlogtype=result |
Before I add
This PR is failing the RPM test on almalinux and debian 12 and skipped on Windows. |
I definitely need to add |
All 3 Helix queues are run regardless of the job target (Windows vs Linux) due to: Lines 61 to 65 in 2696b08
|
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
All checks are now passing - I've updated the Helix images to add the missing packages with dotnet/dotnet-buildtools-prereqs-docker#1322 |
Fixes #14437
This work enables unpack and repack of .deb containers. I've tested this with all current .NET RPM packages. As the code requires the use of
cpio
tool, it is conditioned to only work on Linux.