Skip to content

.NET 8: Tracking enable repo-level prebuilt detection #3017

Closed

Description

@mmitche

Describe the Problem

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)

Repositories

Toolsets

Tier 1

Tier 2

Tier 3

Tier 4

Tier 5

Tier 6

Activity

  1. mmitche commented on Sep 1, 2022

    @mmitche
    MemberAuthor

    @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.

  2. MichaelSimons commented on Sep 6, 2022

    @MichaelSimons
    Member

    @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.

    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.

  3. MichaelSimons commented on Sep 6, 2022

    @MichaelSimons
    Member

    FYI, source-build-externals, source-build-reference-packages, and xliff-tasks have prebuilt detection already enabled.

  4. added
    area-prebuilts
    on Sep 8, 2022
  5. MichaelSimons commented on Sep 22, 2022

    @MichaelSimons
    Member
  6. moved this from 8.0 Backlog to WIP in .NET Source Buildon Dec 13, 2022
  7. oleksandr-didyk commented on Dec 14, 2022

    @oleksandr-didyk
    Contributor

    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

  8. tkapin commented on Dec 15, 2022

    @tkapin
    Member

    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

  9. MichaelSimons commented on Jan 6, 2023

    @MichaelSimons
    Member

    @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.

  10. 4 remaining items

  11. tlakollo commented on Jan 6, 2023

    @tlakollo

    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.

  12. oleksandr-didyk commented on Jan 11, 2023

    @oleksandr-didyk
    Contributor

    @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

  13. tkapin commented on Jan 11, 2023

    @tkapin
    Member

    Thank you @oleksandr-didyk, this helps to reason about difficulty of each repos.

  14. oleksandr-didyk commented on Jan 24, 2023

    @oleksandr-didyk
    Contributor

    Update on progress:

  15. oleksandr-didyk commented on Mar 3, 2023

    @oleksandr-didyk
    Contributor

    Update on progress::

    Next repos for pre-build detection will probably be:

    1. roslyn
    2. msbuild
    3. roslyn-analyzers
    4. nuget-client
    5. aspnetcore
  16. self-assigned this
    on Apr 4, 2023
  17. mthalman commented on Apr 5, 2023

    @mthalman
    Member

    I noticed emsdk wasn't being tracked in the list so I've added that.

  18. mmitche commented on Apr 5, 2023

    @mmitche
    MemberAuthor

    BAM! It's already done.

  19. MichaelSimons commented on Apr 5, 2023

    @MichaelSimons
    Member

    BAM! It's already done.

    Thanks to @directhex who enabled prebuilt detection when he onboarded the repo to source-build.

  20. mthalman commented on Apr 7, 2023

    @mthalman
    Member

    I've added cecil to the list since that's been moved to its own repo.

  21. removed their assignment
    on May 23, 2023
  22. moved this from In Progress to Done in .NET Source Buildon Jun 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-prebuilts

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions