Skip to content

[release/5.0] Add support for repo-defined runtime.json for shared framework build - #7643

Merged
Anipik merged 1 commit into
dotnet:release/5.0from
ericstj:allowLocalRuntimeJson
Aug 9, 2021
Merged

Anipik merged 1 commit into
dotnet:release/5.0from
ericstj:allowLocalRuntimeJson

Conversation

@ericstj

@ericstj ericstj commented Jul 19, 2021 •

Copy link
Copy Markdown
Member

Customer Impact

Framework dependent applications running on new RIDs cannot load RID-specific assets. New RIDs are not well supported.

Testing

Built shared framework. TODO: Manually inspect 5.x shared frameworks.

Risk

Minimal. This should result in behavior similar to 6.0 build and should restore a flow similar to what we had in 3.x.

Fixes dotnet/runtime#50739

Note this is a PR to 5.0 servicing, not sure when it is OK to merge it. Once merged and ingested into dotnet/runtime we should validate it's working correctly by examining the framework deps files for RIDs added in servicing.

I used the same property used in 6.0 which points to the repo's copy of runtime.json. It should be defined here:
https://github.com/dotnet/runtime/blob/74905e767eb7b971636310965b66bf5dfd6a3545/eng/liveBuilds.targets#L203-L206
https://github.com/dotnet/runtime/blob/74905e767eb7b971636310965b66bf5dfd6a3545/Directory.Build.props#L74

@ericstj ericstj added the servicing-consider Servicing ask-mode label Jul 19, 2021
@Anipik

Anipik commented Jul 19, 2021

Copy link
Copy Markdown
Contributor

do we need this in 6.0 as well ?

@safern

safern commented Jul 19, 2021

Copy link
Copy Markdown
Member

do we need this in 6.0 as well ?

I believe that's already there with the new shared framework sdk work done by @jkoritzinsky

@ericstj

ericstj commented Jul 19, 2021 •

Copy link
Copy Markdown
Member Author

do we need this in 6.0 as well ?

No, in 6.0 it only happens this way already due to the refactoring done in the shared framework SDK:

RuntimeGraph runtimeGraph = JsonRuntimeFormat.ReadRuntimeGraph(RuntimeIdentifierGraph);
runtimeFallbackGraph = runtimeGraph.Runtimes
.Select(runtimeDict => runtimeGraph.ExpandRuntime(runtimeDict.Key))
.Where(expansion => expansion.Contains(RuntimeIdentifier))
.Select(expansion => new RuntimeFallbacks(expansion.First(), expansion.Skip(1))); // ExpandRuntime return runtime itself as first item.

I chose parameter/property names to match that.

@ericstj ericstj changed the title Add support for repo-defined runtime.json for shared framework build [release/5.0] Add support for repo-defined runtime.json for shared framework build Jul 20, 2021
@mmitche

mmitche commented Jul 20, 2021

Copy link
Copy Markdown
Member

This can be merged at any point, just need to ensure we only trigger the arcade dependency once branches open for 5.0.10.

@jamshedd jamshedd added servicing-approved Approved for servicing and removed servicing-consider Servicing ask-mode labels Jul 20, 2021
@jamshedd jamshedd added this to the 5.0.10 milestone Jul 20, 2021
@jamshedd

Copy link
Copy Markdown
Member

Approved for September.

@ericstj

ericstj commented Jul 20, 2021

Copy link
Copy Markdown
Member Author

@mmitche are these linux failures expected for arcade? Seems like it might be an infra issue, could block getting good test results during arcade servicing. I'm not too worried with this change, who should follow up?

Error response from daemon: pull access denied for microsoft/dotnet-buildtools-prereqs, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
##[warning]Docker pull failed with exit code 1, back off 2.147 seconds before retry.

@ericstj

ericstj commented Jul 20, 2021

Copy link
Copy Markdown
Member Author

@ghost

ghost commented Jul 20, 2021

Copy link
Copy Markdown

@ericstj that error looks like we're missing cfe12e6 in the 5.x branch.

@ericstj

ericstj commented Jul 22, 2021

Copy link
Copy Markdown
Member Author

/azp run arcade-ci

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

servicing-approved Approved for servicing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants