You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enable prebuilt detection in each repo. Time estimates are provided for the to-do repositories in T-shirt size format (from least work to most work: S, M, L)
When enabling pre-build detection on sourcelink repository, MSBuild version was updated to latest which in turn pulls in 6.0.x versions of certain runtime libraries. The libraries then are marked as pre-builds, failing the build. MSBuild dependencies cannot be bumped to latest since the repo also ships with VS.
A straight-forward solution would be to add reference packages for the libraries in question. However, this solution might not be the best due to several factors:
MSBuild and a few other repositories in the VS eco-system are updating their references to 7.0.x, meaning that the introduced reference packages would need to be updated again after a short period of time
Product build would still diverge from the repository build, since the latter would use 6.0 / 7.0 versions, while the product one would inject latest versions of the libraries. This has the risk of us discovering avoidable issues late in the product construction process
We are monitoring use of reference packages for every release to identify obsolete ref packs (mostly due to repositories bumping versions of their dependencies). If a ref pack is repo build only, when we check for its usage in the product build it would be marked as unused.
We might run into similar issues down the line, potentially bloating maintenance work around ref packs
Another approach might be to introduce repo PvP before enabling pre-builds. With it implemented, we could use SBRP both in repo builds as well as product build (since product build would consume repo's versions instead of overwriting them with latest as it does now), bringing the two closer. Furthermore, repo build ref packs would also be picked up by the ref pack monitoring, guaranteeing that we would not remove a used ref pack by accident.
While the choice between the two solutions described above is being discussed, we can unblock sourcelink pre-build detection work by adding specific exclusions to SourceBuildPrebuiltBaseline.xml for the runtime libraries coming from MSBuild
Looking at the list of repos, it's not clear how difficult they are to address. Obviously, bigger and more complex repos with more dependencies are going to be more challenging, but it's not apparent from the list itself.
To get clarity about progress expectations, would it be possible to provide a rough estimation (e.g., in t-shirt sizes (S, M, L, XL)) for each of the repos so it's easier to reason about how difficult we think they are to address? /cc @oleksandr-didyk@crummel@MichaelSimons
@oleksandr-didyk - I see runtime has removed their dependency on Linker but it appears to still be redistributed by the SDK. Please follow up to find out what the plan is. This makes me think runtime removed it's dependency but it still needs to be source-built because of the SDK.
I will create a separate issue and then reference it from dotnet/runtime#75278. Currently, I'm looking into getting a leg to produce the illink packages from runtime and then change the flow from dotnet/linker to dotnet/runtime. When this happens I will need to change the source build info in SDK and installer.
@tkapin as you have requested, added time estimates from Michael in T-shirt sizes. Additionally, certain repositories might take priority due to the amount of pre-built issues they are currently causing.
From the top of my head, these are:
runtime
sdk
format
I most probably missed 1-2, @MichaelSimons can maybe expand the list more
Activity
mmitche commentedon Sep 1, 2022
@MichaelSimons Does an issue exist for this in each repo yet (I can't find out). Or a tracking issue (also can't find one). If not I'll make them.
MichaelSimons commentedon Sep 6, 2022
They do exist but in the source-build repo, not in the individual repos - https://github.com/dotnet/source-build/issues?q=is%3Aissue+is%3Aopen+%5BArPow+Stage+4%5D. I propose we close these and open repos specific ones.
MichaelSimons commentedon Sep 6, 2022
FYI, source-build-externals, source-build-reference-packages, and xliff-tasks have prebuilt detection already enabled.
MichaelSimons commentedon Sep 22, 2022
[Triage] I will leave this open as a tracking item. @mmitche, please open repo specific issues and close these - https://github.com/dotnet/source-build/issues?q=is%3Aissue+is%3Aopen+%5BArPow+Stage+4%5D
oleksandr-didyk commentedon Dec 14, 2022
When enabling pre-build detection on
sourcelinkrepository,MSBuildversion was updated to latest which in turn pulls in6.0.xversions of certain runtime libraries. The libraries then are marked as pre-builds, failing the build.MSBuilddependencies cannot be bumped to latest since the repo also ships with VS.A straight-forward solution would be to add reference packages for the libraries in question. However, this solution might not be the best due to several factors:
MSBuildand a few other repositories in the VS eco-system are updating their references to 7.0.x, meaning that the introduced reference packages would need to be updated again after a short period of timeAnother approach might be to introduce repo PvP before enabling pre-builds. With it implemented, we could use SBRP both in repo builds as well as product build (since product build would consume repo's versions instead of overwriting them with latest as it does now), bringing the two closer. Furthermore, repo build ref packs would also be picked up by the ref pack monitoring, guaranteeing that we would not remove a used ref pack by accident.
While the choice between the two solutions described above is being discussed, we can unblock
sourcelinkpre-build detection work by adding specific exclusions toSourceBuildPrebuiltBaseline.xmlfor the runtime libraries coming fromMSBuildtkapin commentedon Dec 15, 2022
Looking at the list of repos, it's not clear how difficult they are to address. Obviously, bigger and more complex repos with more dependencies are going to be more challenging, but it's not apparent from the list itself.
To get clarity about progress expectations, would it be possible to provide a rough estimation (e.g., in t-shirt sizes (S, M, L, XL)) for each of the repos so it's easier to reason about how difficult we think they are to address? /cc @oleksandr-didyk @crummel @MichaelSimons
MichaelSimons commentedon Jan 6, 2023
@oleksandr-didyk - I see runtime has removed their dependency on Linker but it appears to still be redistributed by the SDK. Please follow up to find out what the plan is. This makes me think runtime removed it's dependency but it still needs to be source-built because of the SDK.
4 remaining items
tlakollo commentedon Jan 6, 2023
I will create a separate issue and then reference it from dotnet/runtime#75278. Currently, I'm looking into getting a leg to produce the illink packages from runtime and then change the flow from dotnet/linker to dotnet/runtime. When this happens I will need to change the source build info in SDK and installer.
oleksandr-didyk commentedon Jan 11, 2023
@tkapin as you have requested, added time estimates from Michael in T-shirt sizes. Additionally, certain repositories might take priority due to the amount of pre-built issues they are currently causing.
From the top of my head, these are:
I most probably missed 1-2, @MichaelSimons can maybe expand the list more
tkapin commentedon Jan 11, 2023
Thank you @oleksandr-didyk, this helps to reason about difficulty of each repos.
oleksandr-didyk commentedon Jan 24, 2023
Update on progress:
sourcelinkanddeployment-toolsrepos currently waiting on a UX PR to Arcade that simplifies usage of rid-specific intermediate packages -> add auto determination of RID for Source Build arcade#12235runtimewhile the PR is being reviewedoleksandr-didyk commentedon Mar 3, 2023
Update on progress::
runtimeis waiting on several packages to be added to SBRP; ran into issues with SBRPing fornet6.0, hopefully will be fixed with Refactor ref src generators & pass ref assemblies source-build-assets#547formatandsourcelinkare waiting on upgrades to$(NetLatest)(net8.0) for bumping several packages to latest / using Arcade's improvements for source-build: Add automatic retrieval of RID for SourceBuild arcade#12222 and Intermediate NuGet pkg cache ignored if packageSourceMapping is used #3296Next repos for pre-build detection will probably be:
mthalman commentedon Apr 5, 2023
I noticed emsdk wasn't being tracked in the list so I've added that.
mmitche commentedon Apr 5, 2023
BAM! It's already done.
MichaelSimons commentedon Apr 5, 2023
Thanks to @directhex who enabled prebuilt detection when he onboarded the repo to source-build.
mthalman commentedon Apr 7, 2023
I've added cecil to the list since that's been moved to its own repo.