Repository navigation
feat(engine): self-managing adaptive parallelism that follows what tests wait for #7916
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
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
8c5b5ea
perf(engine): size each lane's workers to the current parallel limit
thomhurst 47b9495
feat(engine): one adaptive policy for every parallel limit, driven by…
thomhurst 37f90ee
feat(engine): a shared parallel budget is where an adaptive limit sta…
thomhurst 293b7cd
feat(engine): show the adaptive parallelism summary under dotnet test…
thomhurst 3a820c8
feat(engine): follow a declared [ParallelLimiter] limit of 1 under ad…
thomhurst d472d66
fix(engine): address review of the adaptive parallelism rework
thomhurst b0e8ded
fix(engine): count a limiter's queued tests as session demand only wh…
thomhurst ed25988
fix(engine): hand CPU pressure only to a limiter that is full, and wo…
thomhurst b90ccd4
fix(engine): never miss a slot change from a shared budget, and tidy …
thomhurst eadf006
fix(engine): read the slots and their change count as one snapshot, a…
thomhurst 8721ce0
fix(engine): include a limit that moved during warm-up in the summary…
thomhurst d10ad18
fix(engine): address maintainer review of the adaptive parallelism re…
thomhurst f1bf9e0
fix(engine): address second maintainer review of the adaptive paralle…
thomhurst c124796
fix(engine): keep the declared MinimumLimit of a pinned adaptive limiter
thomhurst cffe38e
fix(engine): address third maintainer review of the adaptive parallel…
thomhurst 5a8f94f
fix(engine): address fourth maintainer review of the adaptive paralle…
thomhurst 17e55de
fix(engine): address fifth review round of the adaptive parallelism r…
thomhurst 609fc3b
fix(engine): address sixth review round of the adaptive parallelism r…
thomhurst 06c7b9d
fix(engine): start added lane workers under the scheduler's context, …
thomhurst ecb82f7
fix(engine): copy the execution context for each lane worker, and set…
thomhurst be405ea
fix(engine): use a slot that a test gave back to wait for another test
thomhurst File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| using TUnit.Core.Logging; | ||
|
|
||
| namespace TUnit.Engine.Logging; | ||
|
|
||
| /// <summary> | ||
| /// A logger that can write a line which stays in the output of the whole test run. | ||
| /// </summary> | ||
| /// <remarks> | ||
| /// When <c>dotnet test</c> runs several test projects, it shows one result line for each and | ||
| /// drops what a test process writes as plain text. A session message is passed on, so a | ||
| /// line written this way is still there for the reader (#7915). | ||
| /// </remarks> | ||
| internal interface ISessionMessageLogger | ||
| { | ||
| /// <summary> | ||
| /// Writes <paramref name="message"/> at <see cref="LogLevel.Information"/> as a message | ||
| /// that belongs to the test session. | ||
| /// </summary> | ||
| void LogSessionMessage(string message); | ||
| } | ||
|
|
||
| internal static class SessionMessageLoggerExtensions | ||
| { | ||
| /// <summary> | ||
| /// Writes a line that ends the run: as a session message where the logger has them, and | ||
| /// as an ordinary <see cref="LogLevel.Information"/> line otherwise. | ||
| /// </summary> | ||
| public static void LogSessionMessage(this ILogger logger, string message) | ||
| { | ||
| if (logger is ISessionMessageLogger sessionMessageLogger) | ||
| { | ||
| sessionMessageLogger.LogSessionMessage(message); | ||
| } | ||
| else | ||
| { | ||
| logger.LogInformation(message); | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.