Skip to content

Improve performance of Package testing leg #2017

Closed

Description

@ericstj

Related dotnet/corefx#35693

A couple ideas we can use to shorten this:

  1. Do a sparse matrix of RIDs for all the older frameworks. The self-contained restores and tests are really the longest part of this work. We end up doing a dozen tests for each framework, all of which have to download the entire shared framework for those RIDs.
  2. Pre-restore the framework packages on the build machine and add them to a package folder that gets shared with all helix clients. This has the potential of saving multiple clients from hitting nuget servers to download old packages. They still end up downloading through helix though, so I don't this alone is a sufficient without also doing 1.

Activity

  1. ViktorHofer commented on Jul 13, 2019

    @ViktorHofer
    Member

    I'm not a fan of 2). Can't we instead use a http cache for these assets?

  2. ericstj commented on Jul 15, 2019

    @ericstj
    MemberAuthor

    Yeah, i'm not so much a fan either. I think 1 is a clear win (by relaxing test requirements). Maybe a better option for 2 would be to share the packages folder for multiple test runs on the same helix client machine rather than starting every run from scratch?

  3. ViktorHofer commented on Oct 17, 2019

    @ViktorHofer
    Member

    That sounds like a good idea.

  4. ViktorHofer commented on Nov 25, 2019

    @ViktorHofer
    Member

    The leg just timed out during the restore: https://dev.azure.com/dnceng/public/_build/results?buildId=438614&view=ms.vss-test-web.build-test-results-tab&runId=13949022&resultId=100071&paneView=attachments. As part of the CI council effort, we should find a way to avoid unnecessary restore invocations.

  5. safern commented on Nov 25, 2019

    @safern
    Member

    I'll work on this after the live-live CI effort. @ericstj and I had some ideas, but I think the best one for now will be to implement an spare matrix.

    We also thought about doing package testing per RID, rather than per package. That way we would restore the runtime assets just one, which seems a good idea as well.

  6. ViktorHofer commented on Nov 25, 2019

    @ViktorHofer
    Member

    When doing this, should we also off-load the per-RID validation into the other build legs, out of the allconfigurations leg?

  7. safern commented on Nov 25, 2019

    @safern
    Member

    We only build the Private.CoreFX packages (Which are going away) as part of the RID build legs and one runtime package (IO.Ports native package in Linux builds). All the OOB packages are built as part of the allconfigurations leg... so, is it worth it?

  8. ViktorHofer commented on Nov 25, 2019

    @ViktorHofer
    Member

    And I assume we can't build them as part of the main legs? I was thinking of repackaging the nuget packages from the different legs. Not sure if that makes any sense.

  9. safern commented on Nov 25, 2019

    @safern
    Member

    You need to build all the build configurations in order to get the package assets.

    I would think of the other way around where all packages are built in the all configurations leg, where other legs publish assets and then we package them -- but then you can't do builds in parallel. You would have to move the packaging step out in order to achieve it.

  10. ViktorHofer commented on Nov 25, 2019

    @ViktorHofer
    Member

    You need to build all the build configurations in order to get the package assets.

    Why?

  11. safern commented on Nov 25, 2019

    @safern
    Member

    because that's on the only build where we expand and build all the configurations of a project. i.e: we don't have a vertical build for netcoreapp2.0 or for netcoreapp2.1 so all the assets for those configurations would be lost if we package on whatever our verticals built.

  12. ViktorHofer commented on Nov 25, 2019

    @ViktorHofer
    Member

    That's why I mentioned "re-packaging" of nuget packages.

  13. safern commented on Nov 25, 2019

    @safern
    Member

    That's why I mentioned "re-packaging" of nuget packages.

    I see. Then it doesn't make sense to me how this would work. We would have an all configurations leg and then re-package each package on the main legs? Could you be more explicit? I am missing something I guess.

  14. transferred this issue fromdotnet/corefxon Jan 22, 2020
  15. 3 remaining items

  16. removed their assignment
    on Jan 22, 2020
  17. removed
    untriaged
    on Jan 22, 2020
  18. added this to the 5.0 milestone on Jan 22, 2020
  19. added
    untriaged
    on Feb 23, 2020
  20. removed
    untriaged
    on Apr 17, 2020
  21. ericstj commented on Jul 15, 2020

    @ericstj
    MemberAuthor

    Last we discussed we were going to eliminate RID-specific restores from this test process and make the RID-less run test all runtime-targets of the package against references instead of implementation.

  22. modified the milestones: 5.0.0, Future on Jul 20, 2020
  23. modified the milestones: Future, 6.0.0 on Dec 10, 2020
  24. ghost added
    in-pr
    on Jun 2, 2021
  25. ghost removed
    in-pr
    on Jun 7, 2021
  26. ghost locked as resolved and limited conversation to collaborators on Jul 7, 2021
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