Skip to content
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

[release/8.2] Fix RID regression by adding a task that calculates the best matching RID for platform #5807

Open
wants to merge 8 commits into
base: release/8.2
Choose a base branch
from

Conversation

joperezr
Copy link
Member

@joperezr joperezr commented Sep 20, 2024

Manual backport of #5695 to release/8.2

cc: @eerhardt

Customer Impact

In Aspire, we have always just cross-compiled our Dashbarod and DCP packages for a limited set of RIDs (win-x64, win-x86, win-arm64, linux-x64, linux-arm64, osx-x64, and osx-arm64). When running on platforms that had special RIDs that we weren't cross-compiling for (for example, rhel.8) then we were relying on the SDK's logic to automatically pick the best closest Dashboard and DCP pack for that RID.

However, in Aspire 8.2.0 we removed Dashboard and DCP from the workload and instead just added some sdk targets that were adding these references on the fly, but we were not doing this special matching logic the the SDK used to do and instead we were simply trying to use the current RID, which caused a regression in all of those platforms that have special RIDs which we don't cross-compile for.

In this PR, we are copying the logic that the SDK does for doing that matching, and we are calling it inside of our targets in order to ensure that we are going to get a valid package reference, which will fix the regression in those systems. This has been manually validated in RedHat 8, which was the original report for this regression.

Testing

Automated testing to catch regressions with new versions as well as manual exploratory testing

Risk

Low.

Regression?

yes.

Microsoft Reviewers: Open in CodeFlow

@joperezr joperezr changed the base branch from main to release/8.2 September 20, 2024 16:48

if (!File.Exists(rgp))
{
throw new FileNotFoundException("File {0} does not exist. Please ensure the runtime graph path exists.", rgp);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think the pattern will work here

@joperezr joperezr force-pushed the backport/pr-5695-to-release/8.2 branch from bc7af8f to d9e2e9b Compare September 20, 2024 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants