-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Use dotnet publish instead of ArchiveTests target #37954
Comments
Tagging subscribers to this area: @safern, @ViktorHofer |
We could also do dotnet publish and then zip it up ( similar to what we do for mobile targets) doing the zip in sendtohelix.proj doesn’t seem like the best place but that could work as well. |
The only reason we compress the publish directory, is to send it to helix, right? That's why I played with the idea of doing that in sendtohelix.proj. It sequencing it into the publish target would mean that we would either always compress it (which we shouldn't) or again need a flag to express that (which ideally we wouldn't need). That said, this sounds like an implementation detail, I'm fine with any solution as long as we use the publish directory instead of the bin directory. |
Yeah, but Also, for sending manual helix jobs is helpful as well since I can just do Compressing the testhost directory happens in sendtohelix.proj since that is just executed once and not for every project we have, so that's why I think it makes sense to make it a target that test projects have available and also consistency with wasm and other platforms. |
Sure, if we want to continue using the extra property then you would do As said, this is an implementation detail, I'm fine with any solution that makes sense. |
Sounds good. Just wanted to highlight my opinion there since the issue description mentioned removing the per-test target to generate the archives. |
Due to lack of recent activity, this issue has been marked as a candidate for backlog cleanup. It will be closed if no further activity occurs within 14 more days. Any new comment (by anyone, not necessarily the author) will undo this process. This process is part of our issue cleanup automation. |
At the moment we don't publish (framework dependent) our test projects and instead just build them and then zip them up. To make different publish modes possible (ie self-contained for code coverage), we want to use
dotnet publish
instead and use its output as the test payload.I don't know if
dotnet publish
supports creating a zip file but if not, we could do that in sendtohelix.proj.Relevant code path:
runtime/eng/testing/tests.targets
Lines 27 to 38 in 132be64
In addition to that we could experiment with publishing (and incrementally restoring and building) the test projects inside sendtohelix.proj so that the output paths are known and get rid of the well known publish location.
cc @safern @Anipik
The text was updated successfully, but these errors were encountered: