Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trimming tests should restore upfront instead of after the product build #54920

Open
ViktorHofer opened this issue Jun 29, 2021 · 3 comments
Open

Comments

@ViktorHofer
Copy link
Member

See https://dev.azure.com/dnceng/public/_build/results?buildId=1211661&view=logs&jobId=9bd06b96-2bdb-52e1-9716-7806e46fa22b&j=9bd06b96-2bdb-52e1-9716-7806e46fa22b&t=a3f0b638-9032-505e-73db-bdcb5f500afb which was failing during restore but after the product build.

By moving to an up-front restore of the (generated) trimming test project, restore is bundled together with the rest of the product restore and NuGet can either fail early or succeed. Also restoring everything in one go makes the overall restore much more efficient. Failing late in the build makes both a poor local developer experience and wastes resources on CI.

cc @joperezr @safern @eerhardt

@ghost
Copy link

ghost commented Jun 29, 2021

Tagging subscribers to this area: @Anipik, @safern, @ViktorHofer
See info in area-owners.md if you want to be subscribed.

Issue Details

See https://dev.azure.com/dnceng/public/_build/results?buildId=1211661&view=logs&jobId=9bd06b96-2bdb-52e1-9716-7806e46fa22b&j=9bd06b96-2bdb-52e1-9716-7806e46fa22b&t=a3f0b638-9032-505e-73db-bdcb5f500afb which was failing during restore but after the product build.

By moving to an up-front restore of the (generated) trimming test project, restore is bundled together with the rest of the product restore and NuGet can either fail early or succeed. Also restoring everything in one go makes the overall restore much more efficient. Failing late in the build makes both a poor local developer experience and wastes resources on CI.

cc @joperezr @safern @eerhardt

Author: ViktorHofer
Assignees: -
Labels:

area-Infrastructure-libraries

Milestone: -

@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged New issue has not been triaged by the area owner label Jun 29, 2021
@safern
Copy link
Member

safern commented Jun 29, 2021

How can we be able to restore generated trimming projects upfront? Do you plan on restoring just it's dependencies so that they are on the cache? Or were you thinking generating them first, then restore the product?

@ViktorHofer
Copy link
Member Author

Or were you thinking generating them first, then restore the product?

Yes. A target could be added to the InitialTargets of tests.proj that would make sure that test projects are incrementally generated and ProjectReferences point to them. That should do the job.

@hoyosjs hoyosjs removed the untriaged New issue has not been triaged by the area owner label Jun 30, 2021
@hoyosjs hoyosjs added this to the 7.0.0 milestone Jun 30, 2021
@ViktorHofer ViktorHofer modified the milestones: 7.0.0, 8.0.0 Jul 20, 2022
@ViktorHofer ViktorHofer modified the milestones: 8.0.0, Future Jul 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants