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

Feature reques - build-wide pre- and post- step #10082

Open
JanKrivanek opened this issue Apr 29, 2024 · 3 comments
Open

Feature reques - build-wide pre- and post- step #10082

JanKrivanek opened this issue Apr 29, 2024 · 3 comments
Assignees
Labels
Area: Terminal Logger Problems with the livelogger/fancylogger/terminallogger -tl functionality. Feature Request

Comments

@JanKrivanek
Copy link
Member

Context

Requested by @nohwnd in context of terminal logger work:

The feature ask we were discussing in the morning:

Add post solution (and pre solution) step

In VSTest we would like the ability to easily add work after all projects in solution finished build. We run tests as part of build, and those tests produce file artifacts. Example of a file artifact is a project1.coverage and project2.coverage. We would like to merge those files into a sigle solution.coverage file through a custom "task".

Similarly each test project has a result, which can be thought of as a non-file artifact. e.g. total 3 tests, 1 test passed, 2 tests failed. Which we would like to summarize into solution wide summary. This is currently hard coded into terminal logger.

Ideally the merging would work independently of terminal logger.

Similar request was recently voiced as well by Identity build team

Discussed options

  • Add ability to add pre- and post- build targets on solution metaproj (though - this might not work in VS, this would not work for builds initiated not through the solution, transfering information via ItemGroups would need to be investigated - as this will need info from other projects).

  • Add ability for a logger to log into a logging service (as that has access to build wide info and it already hase build started and finished events). Possible downside - possibility of deadlocks or other ordering-specific situations arised from logger sending log messages

@JanKrivanek JanKrivanek added Feature Request Area: Terminal Logger Problems with the livelogger/fancylogger/terminallogger -tl functionality. labels Apr 29, 2024
@rainersigwald
Copy link
Member

  • Add ability to add pre- and post- build targets on solution metaproj (though - this might not work in VS, this would not work for builds initiated not through the solution, transfering information via ItemGroups would need to be investigated - as this will need info from other projects).

This is possible with solution imports. It does have all the caveats you describe.

@rainersigwald
Copy link
Member

@AR-May
Copy link
Member

AR-May commented May 7, 2024

@JanKrivanek does it resolve the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Terminal Logger Problems with the livelogger/fancylogger/terminallogger -tl functionality. Feature Request
Projects
None yet
Development

No branches or pull requests

3 participants