Skip to content

generation of RID graph no longer works #82125

Closed

Description

@wfurt

I was trying add new RID (ubuntu 23.04). I added entry to runtimeGroups.props in Microsoft.NETCore.Platforms and run dotnet.sh pack /p:UpdateRuntimeFiles=true as usually.
But no updates were made to runtime.json and runtime.compatibility.json
Release/6.0 branch still works but I experienced same issue with release/7.0.

Activity

  1. ghost added
    untriagedNew issue has not been triaged by the area owner
    on Feb 14, 2023
  2. carlossanlop commented on Feb 14, 2023

    @carlossanlop
    Contributor

    6.0 PR with changes that were successfully created with the generator: #82120
    7.0 PR with changes that couldn't get created with the generator: #82123

  3. removed
    untriagedNew issue has not been triaged by the area owner
    on Feb 14, 2023
  4. tmds commented on Feb 15, 2023

    @tmds
    Member

    With .NET 7, source-build for unknown distros manages to successfully update the graph and then use that graph in the build. The task for that (GenerateRuntimeJson) is similar to the one used here (UpdateRuntimeJson).

    <Target Name="GenerateRuntimeJson" AfterTargets="Build" Condition="'$(AdditionalRuntimeIdentifiers)' != ''">
    <MakeDir Directories="$(IntermediateOutputPath)" />
    <GenerateRuntimeGraph RuntimeGroups="@(RuntimeGroupWithQualifiers)"
    AdditionalRuntimeIdentifiers="$(AdditionalRuntimeIdentifiers)"
    AdditionalRuntimeIdentifierParent="$(AdditionalRuntimeIdentifierParent)"
    RuntimeJson="$(BaseOutputPath)runtime.json"
    UpdateRuntimeFiles="True" />
    </Target>
    <Target Name="UpdateRuntimeJson">
    <!-- Generates a Runtime graph using RuntimeGroups and diffs it with the graph described by runtime.json and runtime.compatibility.json
    Specifying UpdateRuntimeFiles=true skips the diff and updates those files.
    The graph can be visualized using the generated dmgl -->
    <MakeDir Directories="$(OutputPath)" />
    <GenerateRuntimeGraph RuntimeGroups="@(RuntimeGroupWithQualifiers)"
    RuntimeJson="runtime.json"
    CompatibilityMap="runtime.compatibility.json"
    RuntimeDirectedGraph="$(OutputPath)runtime.json.dgml"
    UpdateRuntimeFiles="$(UpdateRuntimeFiles)" />
    </Target>

  5. ViktorHofer commented on Feb 15, 2023

    @ViktorHofer
    Member

    Here's yet another PR that successfully uses the infrastructure in main: #82185. @wfurt please give it another try.

  6. added
    needs-author-actionAn issue or pull request that requires more info or actions from the author.
    on Feb 15, 2023
  7. added this to the 8.0.0 milestone on Feb 15, 2023
  8. wfurt commented on Feb 15, 2023

    @wfurt
    MemberAuthor

    What do you want me to try? Just run the pack command as documentation suggest?
    https://github.com/dotnet/runtime/blob/main/src/libraries/Microsoft.NETCore.Platforms/readme.md

  9. ghost added
    needs-further-triageIssue has been initially triaged, but needs deeper consideration or reconsideration
    on Feb 15, 2023
  10. ghost removed
    needs-author-actionAn issue or pull request that requires more info or actions from the author.
    on Feb 15, 2023
  11. ViktorHofer commented on Feb 15, 2023

    @ViktorHofer
    Member

    I was looking for any console indication of why it doesn't work anymore but disregard as I just found the culprit: #76068

  12. wfurt commented on Feb 15, 2023

    @wfurt
    MemberAuthor

    thanks for looking into it @ViktorHofer

  13. tmds commented on Feb 15, 2023

    @tmds
    Member
  14. tmds commented on Feb 15, 2023

    @tmds
    Member

    The change was also backported to 6.0 with some differences: #77510.

  15. ghost added
    in-prThere is an active PR which will close this issue when it is merged
    on Feb 15, 2023
  16. ghost removed
    in-prThere is an active PR which will close this issue when it is merged
    on Feb 16, 2023
  17. ghost locked as resolved and limited conversation to collaborators on Mar 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions