Skip to content

Improve full platform manifest generation implementation (harvesting approach) #1616

Closed

Description

@dagood

The PR to re-enable full platform manifest harvesting in dotnet/runtime (#1594) has some known bad bits. It didn't seem worth it to me to fix them in the harvesting implementation, because I believe we need to replace the harvesting approach altogether for source-build.

The list:

  • It downloads a decent amount more data during the build. This hasn't added more than 3 or so minutes in my testing builds, but could be a problem at some point.
  • There's a redundant download: each Installer job downloads one of the platform's artifacts twice. Once to use to create the runtime being built on that machine, again specifically for platform manifest harvesting.
  • The full manifest infra isn't tested in PR validation. The main runtime pipeline doesn't currently include all the platforms necessary to assemble a full platform manifest.
  • It adds 21 build steps to each installer job. 1 to download all the artifacts, 20 to extract each artifact using the built-in unzip step while preserving folder names.
  • It is difficult to run locally. You have to download every artifact manually, unzip/untargz them, and arrange them properly. (Let alone trying to run every local build yourself on a bunch of your own machines!)
  • The RID => Platform mapping is hard to read. It seems like items would be significantly clearer: Generate full platform manifest in official build #1594 (comment)
    • <!-- Convert the OS component in the RID into names that match the job IDs. -->
      <ArtifactPlatform>$(RuntimeIdentifier)</ArtifactPlatform>
      <ArtifactPlatform>$(ArtifactPlatform.Replace('win-', 'Windows_NT-'))</ArtifactPlatform>
      <ArtifactPlatform>$(ArtifactPlatform.Replace('unix-', 'Unix-'))</ArtifactPlatform>
      <ArtifactPlatform>$(ArtifactPlatform.Replace('linux-', 'Linux-'))</ArtifactPlatform>
      <ArtifactPlatform>$(ArtifactPlatform.Replace('osx-', 'OSX-'))</ArtifactPlatform>
      <ArtifactPlatform>$(ArtifactPlatform.Replace('freebsd-', 'FreeBSD-'))</ArtifactPlatform>
      <ArtifactPlatform>$(ArtifactPlatform.Replace('netbsd-', 'NetBSD-'))</ArtifactPlatform>

Activity

  1. added
    untriaged
    on Jan 10, 2020
  2. ViktorHofer commented on Jul 12, 2020

    @ViktorHofer
    Member

    @jkoritzinsky can you please give an update on this issue / close it with your SharedFramework SDK work?

  3. added this to the 5.0.0 milestone on Jul 12, 2020
  4. added and removed
    untriaged
    on Jul 12, 2020
  5. safern commented on Jul 13, 2020

    @safern
    Member

    @jkoritzinsky can you please give an update on this issue / close it with your SharedFramework SDK work?

    @jkoritzinsky I assigned to you given the SharedFramework SDK. Please remove the assignment if this won't be fixed with that work.

  6. jkoritzinsky commented on Jul 13, 2020

    @jkoritzinsky
    Member

    This will be fixed by adopting the new shared framework SDK.

  7. NikolaMilosavljevic commented on Aug 21, 2020

    @NikolaMilosavljevic
    Contributor

    @jkoritzinsky is this still tracking for completion for 5.0?

  8. modified the milestones: 5.0.0, 6.0.0 on Aug 21, 2020
  9. ghost closed this as completedin #38457on Nov 13, 2020
  10. ghost locked as resolved and limited conversation to collaborators on Dec 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions