Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Update KnownRuntimePack as part of updating KnownFrameworkReference - #39965

Merged
wtgodbe merged 3 commits into
dotnet:mainfrom
pranavkm:update-runtime-pack
Feb 3, 2022
Merged

wtgodbe merged 3 commits into
dotnet:mainfrom
pranavkm:update-runtime-pack

Conversation

@pranavkm

@pranavkm pranavkm commented Feb 3, 2022

Copy link
Copy Markdown
Contributor

No description provided.

@pranavkm
pranavkm requested a review from a team as a code owner February 3, 2022 18:16
@ghost ghost added the area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework label Feb 3, 2022
@wtgodbe wtgodbe mentioned this pull request Feb 3, 2022
@wtgodbe

wtgodbe commented Feb 3, 2022

Copy link
Copy Markdown
Member

https://dev.azure.com/dnceng/public/_build/results?buildId=1590349&view=results tests this workaround against the commits from #39853 pre-SDK update

@dougbu dougbu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It's not clear what you intend @pranavkm. As-is, the change does nothing because the %(LatestRuntimeFrameworkVersion) metadata is updated earlier in exactly the same way.

https://github.com/dotnet/aspnetcore/pull/39965/files#diff-9fb67cbc0a7ba3b793455ec41e7f36e1d019d5152674d669551810b308510d37R44-R45

@pranavkm

pranavkm commented Feb 3, 2022

Copy link
Copy Markdown
Contributor Author

@dougbu the targets currently update KnownFrameworkReference but not KnownRuntimePacks. In a Blazor WASM app, the latter is used to resolve the rid-specific runtime pack (Microsoft.NETCore.App.Mono.browser-wasm). Screenshot of the build logs before this change:

image

@dougbu dougbu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ah, I understand now. Do we need to do this w/ the @(KnownAppHostPack) item for the default Core TFM too❔

@pranavkm

pranavkm commented Feb 3, 2022 •

Copy link
Copy Markdown
Contributor Author

Further details - the version for KnownRuntimePacks currently comes from the value the SDK bakes in. With a blazor app, it currently compiles using the version of the runtime specified by the targeting park that we override, but runs against the version from the SDK. This is problematic in that we're not testing blazor against new runtime ingestions. Additionally, it also prevents runtime insertions when the targeting pack and the runtime pack don't align. #39853 was a recent example of this.

@pranavkm

pranavkm commented Feb 3, 2022

Copy link
Copy Markdown
Contributor Author

Do we need to do this w/ the @(KnownAppHostPack)

I suppose we should - it's also got the SDK-specified version. That said, I don't know how that package gets used in the build.

@dougbu

dougbu commented Feb 3, 2022

Copy link
Copy Markdown
Contributor

I don't know how that package gets used in the build.

I'm not positive either. I suspect your new commit will primarily affect tests that execute dotnet {something}.

@wtgodbe anything we should be concerned about❔ For example, are there cases where the versions won't align❔ Versions for the app host, runtime pack, and framework reference all match in the couple of SDKs I checked. Just wondering if I'm missing anything in how dotnet/runtime pushes new packages during servicing.

@wtgodbe

wtgodbe commented Feb 3, 2022

Copy link
Copy Markdown
Member

I'm not aware of any reason the runtime versions in an SDK would mismatch across ApphostPack/Runtime pack/Framework Reference - @dsplaisted any corner cases we should be aware of?

@wtgodbe

wtgodbe commented Feb 3, 2022

Copy link
Copy Markdown
Member

Didn't realize components-e2e was the failing job, here's the real test: https://dev.azure.com/dnceng/public/_build/results?buildId=1590790&view=results

@pranavkm

pranavkm commented Feb 3, 2022

Copy link
Copy Markdown
Contributor Author

@dougbu / @wtgodbe good to merge?

@wtgodbe

wtgodbe commented Feb 3, 2022

Copy link
Copy Markdown
Member

Test build worked, merge away

@wtgodbe
wtgodbe merged commit a779227 into dotnet:main Feb 3, 2022
@ghost ghost added this to the 7.0-preview2 milestone Feb 3, 2022
@dsplaisted

Copy link
Copy Markdown
Member

I'm not aware of any reason the runtime versions in an SDK would mismatch across ApphostPack/Runtime pack/Framework Reference - @dsplaisted any corner cases we should be aware of?

I think those versions will always be the same. This looks good to me.

@ghost

ghost commented Feb 4, 2022

Copy link
Copy Markdown

Hi @dsplaisted. It looks like you just commented on a closed PR. The team will most probably miss it. If you'd like to bring something important up to their attention, consider filing a new issue and add enough details to build context.

@pranavkm
pranavkm deleted the update-runtime-pack branch February 4, 2022 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants