-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Linux and Linux-MUSL Package artifacts getting produced with duplicate RIDs #45027
Comments
Thanks, @MattGal -- I'll put up a fix soon. FYI: @am11 @ViktorHofer |
Tagging subscribers to this area: @ViktorHofer Issue DetailsInitially investigated as an AzDO issue via https://github.com/dotnet/core-eng/issues/11472 (see for more context), it looks like linux and linux-musl are getting conflated in package naming. Seems to have been introduced in #43804. @safern already has context, so assigning to him.
|
Thanks @safern. I cannot access the engineering repo link, but all CI checks were passing when PR was completed. It could be that some target does not run during the CI builds? |
This was happening on an official build which is internal (Where we produce and sign our packages). Still investigating. I'll update the issue once I have more info. |
So for more context on this. Some of the packages produced in the linux-musl legs contain the wrong RID when produced:
If you look at that, some do have Some thing that I do see, is that this might be wrong: https://github.com/dotnet/runtime/pull/43804/files#diff-aec399247327507f8a921926dfa34e159e9786455234791d9895fe64185d91f2R155 As, that is setting OutputRid when Portable=true to |
That part seem to be aligned with the older version: https://github.com/dotnet/runtime/pull/43804/files#diff-c69fd8bc3ea99b48dac09936c142064d7e750d2c626a7e9286384d94ef31fa2dL60. Tested with
could be somewhere else in signing target. |
Yeah, I just validated this. So basically, we have two models here under installer. The regular packages that are built by:
That uses We also have the framework packages which are driven by the shared framework SDK in the sfxproj's. Those use And
https://github.com/dotnet/runtime/search?q=PackageRID It seems like after your change, PackageRID will never have the The reason why it worked before is because of this: It would get a linux-musl prefix here: I think there are 2 things we need to do here:
|
Thanks for the investigation, @safern. I have understood the problem. Before the change; in non-installer components:
In installer, PackageRID had mixed meanings (when used for restore, it is Host's RID, when used under pkg/ directories, it was OutputRid), while OutputRid had consistent meaning. PR aligned the meaning of these two properties. So I think your #1 is the better option. |
Yeah, that is exactly what I was going to comment right now. So yeah, the right fix is #1. Are you planning on putting a PR? If not I can put it out there now. |
Yup, I have just found from build logs how to repro it in local container. Testing it right now, will put a PR soon. |
Thanks 😄 |
Fixed by: #45041 |
Initially investigated as an AzDO issue via https://github.com/dotnet/core-eng/issues/11472 (see for more context), it looks like linux and linux-musl are getting conflated in package naming.
Seems to have been introduced in #43804. @safern already has context, so assigning to him.
The text was updated successfully, but these errors were encountered: