Skip to content

perf: fix dictionary double-lookups, Collection.Contains, and LINQ allocations - #15533

Merged
Jakub Jareš (nohwnd) merged 5 commits into
mainfrom
dev/amauryleve/perf-fix-dictionary-double-lookups
Mar 26, 2026
Merged

perf: fix dictionary double-lookups, Collection.Contains, and LINQ allocations#15533
Jakub Jareš (nohwnd) merged 5 commits into
mainfrom
dev/amauryleve/perf-fix-dictionary-double-lookups

Conversation

@Evangelink

Copy link
Copy Markdown
Member

Summary

Fix several obvious performance issues related to data types and redundant iterations across the codebase.

Changes

1. Dictionary ContainsKey + indexer → TryGetValue

Eliminates double hash lookups in ~15 locations. Each ContainsKey + dict[key] pair performs two hash operations when TryGetValue suffices with one.

Files changed:

  • ParallelRunDataAggregator.csGetAggregatedRunStats()
  • TestSessionPool.csKillSession(), TryTakeProxy(), ReturnProxy()
  • ProxyTestSessionManager.csDequeueProxy()
  • InProcDataCollectionSink.csAddKeyValuePairToDictionary(), AddOrUpdateData()
  • PortableSymbolReader.csGetNavigationData()
  • FullSymbolReader.csGetTypeSymbol(), GetMethodSymbol()
  • TestSessionStartArgs.csGetPropertyValue<T>()
  • SessionEvents.csGetPropertyValue<T>()
  • SimpleJSON.cs — indexer getter/setter, Add(), Remove()

2. Collection<InvokedDataCollector>HashSet<InvokedDataCollector>

ParallelRunDataAggregator.InvokedDataCollectors was a Collection<T> with O(n) .Contains() called inside a foreach loop (O(n²) behavior). Changed to HashSet<T> for O(1) lookups. The type already implements IEquatable<T> and GetHashCode(). Updated call sites in ParallelRunEventsHandler and ParallelDataCollectionEventsHandler to wrap with .ToList() when passing to APIs expecting Collection<T>.

3. new[] allocation inside LINQ predicate → static HashSet

In EnableBlameArgumentProcessor.cs, new[] { "CollectAlways", "DumpType" } was allocated per element inside .Where() predicates. Extracted to file-scoped static HashSet<string> fields with StringComparer.OrdinalIgnoreCase.

4. String += → string interpolation

Consolidated two sequential options += calls into a single interpolated string in TestRunnerConnectionInfoExtensions.cs.

Testing

  • Build: ✅ build.cmd -c Release — 0 errors, 0 warnings
  • ParallelRunDataAggregator tests: ✅ 44 passed
  • TestSessionPool tests: ✅ 8 passed
  • InProcDataCollection tests: ✅ 30 passed
  • EnableBlame tests: ✅ 26 passed

Copilot AI review requested due to automatic review settings March 20, 2026 10:11
@Evangelink
Amaury Levé (Evangelink) enabled auto-merge (squash) March 20, 2026 10:12

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Performance-focused refactor to reduce redundant dictionary lookups/iterations and cut per-call allocations, with a small concurrency-safety improvement in run stats aggregation.

Changes:

  • Replaced ContainsKey + indexer patterns with TryGetValue to avoid double lookups.
  • Switched invoked data collector tracking to a HashSet to avoid O(n²) .Contains() patterns.
  • Removed a per-element array allocation in LINQ predicates by using static precomputed key sets.

Reviewed changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
test/Microsoft.TestPlatform.CrossPlatEngine.UnitTests/Client/Parallel/ParallelRunDataAggregatorTests.cs Updated assertions for HashSet semantics and strengthened thread-safety test by adding a concurrent reader task.
src/vstest.console/Processors/EnableBlameArgumentProcessor.cs Replaced per-element new[] allocations in LINQ filters with static key sets.
src/Microsoft.TestPlatform.ObjectModel/Navigation/PortableSymbolReader.cs Simplified nested dictionary lookups via TryGetValue.
src/Microsoft.TestPlatform.ObjectModel/Navigation/FullSymbolReader.cs Eliminated redundant dictionary lookups using TryGetValue.
src/Microsoft.TestPlatform.ObjectModel/DataCollector/InProcDataCollector/TestSessionStartArgs.cs Replaced double-lookup dictionary access with TryGetValue.
src/Microsoft.TestPlatform.ObjectModel/DataCollector/Events/SessionEvents.cs Replaced double-lookup dictionary access with TryGetValue.
src/Microsoft.TestPlatform.ObjectModel/ConnectionInfo/TestRunnerConnectionInfoExtensions.cs Reduced string concatenation operations by consolidating into one interpolated assignment.
src/Microsoft.TestPlatform.CrossPlatEngine/TestSession/TestSessionPool.cs Reduced redundant dictionary lookups in session pool access.
src/Microsoft.TestPlatform.CrossPlatEngine/TestSession/ProxyTestSessionManager.cs Reduced redundant dictionary lookups when resolving proxy indices.
src/Microsoft.TestPlatform.CrossPlatEngine/DataCollection/ParallelDataCollectionEventsHandler.cs Adapted to HashSet by materializing to Collection<T> for downstream APIs.
src/Microsoft.TestPlatform.CrossPlatEngine/DataCollection/InProcDataCollectionSink.cs Reduced redundant dictionary lookups and simplified update flow.
src/Microsoft.TestPlatform.CrossPlatEngine/Client/Parallel/ParallelRunEventsHandler.cs Adapted to HashSet by materializing to Collection<T> for downstream APIs.
src/Microsoft.TestPlatform.CrossPlatEngine/Client/Parallel/ParallelRunDataAggregator.cs Switched invoked collectors to HashSet, added locking in stats aggregation, and reduced redundant lookups.
src/Microsoft.TestPlatform.Common/Utilities/SimpleJSON.cs Removed redundant dictionary lookups and simplified add/update/remove logic.

Comment thread src/Microsoft.TestPlatform.CrossPlatEngine/TestSession/TestSessionPool.cs Outdated
Comment thread src/Microsoft.TestPlatform.CrossPlatEngine/TestSession/TestSessionPool.cs Outdated
Comment thread src/vstest.console/Processors/EnableBlameArgumentProcessor.cs Outdated
Comment thread src/Microsoft.TestPlatform.ObjectModel/Navigation/FullSymbolReader.cs Outdated
Comment thread src/Microsoft.TestPlatform.Common/Utilities/SimpleJSON.cs
Comment thread src/vstest.console/Processors/EnableBlameArgumentProcessor.cs Outdated
@nohwnd

Copy link
Copy Markdown
Member

brain is not braining anymore, will have a look on monday, sorry!

var testOutcomeMap = new Dictionary<TestOutcome, long>();
long totalTests = 0;
if (_testRunStatsList.Count > 0)
lock (_dataUpdateSyncObject)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI: This was reverted before, this is called once at the end, not in parallel. Same with part of the test reverted before on the bottom.

Won't hurt most likely just sets unrealistic expectations from the api, that will confuse us if we end up replacing the method with other code.

Comment on lines +496 to +508
// Also start a reader thread that calls GetAggregatedRunStats concurrently
var readerTask = Task.Run(() =>
{
barrier.SignalAndWait();
for (int i = 0; i < iterationsPerThread; i++)
{
// This must not throw InvalidOperationException due to collection modification
var runStats = aggregator.GetAggregatedRunStats();
Assert.IsTrue(runStats.ExecutedTests >= 0, "Executed tests count should be non-negative");
}
});

Task.WaitAll(aggregateTasks.Append(readerTask).ToArray());

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the part I talk about above. Also the barrier.

@nohwnd

Copy link
Copy Markdown
Member

looking

Jakub Jareš (nohwnd) added a commit to nohwnd/vstest that referenced this pull request Mar 24, 2026
Address review comments from PR microsoft#15533:

- Revert HashSet<InvokedDataCollector> back to Collection with Contains,
  as this code runs once at end, not in parallel (nohwnd feedback)
- Add clarifying comment to Aggregate method about non-parallel usage
- Revert barrier-based parallel test back to simpler sequential version
  (nohwnd feedback - was reverted before)
- Revert test assertions to index-based access (order is deterministic
  with Collection)
- Change BlameParameterNames from string[] to HashSet<string> with
  OrdinalIgnoreCase comparer for O(1) Contains lookups (Copilot/Youssef)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings March 24, 2026 07:49
Jakub Jareš (nohwnd) added a commit that referenced this pull request Mar 24, 2026
Address review comments from PR #15533:

- Revert HashSet<InvokedDataCollector> back to Collection with Contains,
  as this code runs once at end, not in parallel (nohwnd feedback)
- Add clarifying comment to Aggregate method about non-parallel usage
- Revert barrier-based parallel test back to simpler sequential version
  (nohwnd feedback - was reverted before)
- Revert test assertions to index-based access (order is deterministic
  with Collection)
- Change BlameParameterNames from string[] to HashSet<string> with
  OrdinalIgnoreCase comparer for O(1) Contains lookups (Copilot/Youssef)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 12 out of 12 changed files in this pull request and generated 4 comments.

IDiaEnumSymbols? enumSymbols = null;
IDiaSymbol? methodSymbol;
Dictionary<string, IDiaSymbol> methodSymbolsForType;
Dictionary<string, IDiaSymbol>? methodSymbolsForType;

Copilot AI Mar 24, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Making methodSymbolsForType nullable here reduces clarity: it is expected to be non-null in the TryGetValue(...) true-branch, and (based on the structure) likely initialized in the else branch later. To keep nullability accurate and avoid downstream nullability noise, consider using a non-null local inside the if (e.g., out var methodSymbolsForType) and/or ensuring the variable is always assigned a non-null dictionary before any later use.

Suggested change
Dictionary<string, IDiaSymbol>? methodSymbolsForType;
Dictionary<string, IDiaSymbol> methodSymbolsForType;

Copilot uses AI. Check for mistakes.
Comment on lines 387 to 393
if (_methodSymbols.TryGetValue(symbolName, out methodSymbolsForType))
{
methodSymbolsForType = _methodSymbols[symbolName];
if (methodSymbolsForType.ContainsKey(methodName))
if (methodSymbolsForType.TryGetValue(methodName, out var cachedMethodSymbol))
{
return methodSymbolsForType[methodName];
return cachedMethodSymbol;
}
}

Copilot AI Mar 24, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Making methodSymbolsForType nullable here reduces clarity: it is expected to be non-null in the TryGetValue(...) true-branch, and (based on the structure) likely initialized in the else branch later. To keep nullability accurate and avoid downstream nullability noise, consider using a non-null local inside the if (e.g., out var methodSymbolsForType) and/or ensuring the variable is always assigned a non-null dictionary before any later use.

Copilot uses AI. Check for mistakes.
Comment on lines +140 to +141
// Note: This method is called once at the end of the test run to aggregate results.
// It is NOT called in parallel, so thread-safety optimizations here would be misleading.

Copilot AI Mar 24, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new note contradicts the XML doc immediately above it: the doc states this must be thread-safe and expected to be called by parallel managers, while the note says it is not called in parallel. Please reconcile these (either update the XML doc to match actual usage, or remove/adjust the note) so future changes don’t rely on conflicting guidance.

Suggested change
// Note: This method is called once at the end of the test run to aggregate results.
// It is NOT called in parallel, so thread-safety optimizations here would be misleading.

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note belongs to GetAggregatedRunStats

Comment on lines +75 to +79
if (CollectionData.ContainsKey(key))
{
EqtTrace.Warning("The data for in-proc data collector with key {0} has already been set. Will be reset with new value", key);
CollectionData[key] = value;
}
CollectionData[key] = value;

Copilot AI Mar 24, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This path still does a double-lookup (ContainsKey then indexer assignment). Since this PR targets dictionary lookup reductions, consider switching to TryAdd (warn+overwrite if it returns false) or TryGetValue to keep the warning behavior while avoiding an extra hash lookup on the common add path.

Copilot uses AI. Check for mistakes.
…locations

- Replace ContainsKey + indexer with TryGetValue across 10+ locations
  (ParallelRunDataAggregator, TestSessionPool, ProxyTestSessionManager,
  InProcDataCollectionSink, PortableSymbolReader, FullSymbolReader,
  TestSessionStartArgs, SessionEvents, SimpleJSON)
- Change Collection<InvokedDataCollector> to HashSet<InvokedDataCollector>
  in ParallelRunDataAggregator for O(1) dedup instead of O(n)
- Extract static HashSets for blame parameter names instead of
  allocating new[] per LINQ predicate evaluation
- Consolidate string += into string interpolation in
  TestRunnerConnectionInfoExtensions
Address review comments from PR #15533:

- Revert HashSet<InvokedDataCollector> back to Collection with Contains,
  as this code runs once at end, not in parallel (nohwnd feedback)
- Add clarifying comment to Aggregate method about non-parallel usage
- Revert barrier-based parallel test back to simpler sequential version
  (nohwnd feedback - was reverted before)
- Revert test assertions to index-based access (order is deterministic
  with Collection)
- Change BlameParameterNames from string[] to HashSet<string> with
  OrdinalIgnoreCase comparer for O(1) Contains lookups (Copilot/Youssef)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Remove lock and non-parallel note from GetAggregatedRunStats (called
  once at end, not in parallel - lock was reverted before)
- Keep TryGetValue and kvp iteration optimizations
- Restore non-nullable Dictionary<string, IDiaSymbol> in FullSymbolReader

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings March 25, 2026 15:40
@nohwnd
Jakub Jareš (nohwnd) force-pushed the dev/amauryleve/perf-fix-dictionary-double-lookups branch from bc0b5f6 to 038b6c5 Compare March 25, 2026 15:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 12 out of 12 changed files in this pull request and generated 1 comment.

_runDataAggregator.GetAggregatedException(),
_runDataAggregator.RunContextAttachments,
_runDataAggregator.InvokedDataCollectors,
new Collection<InvokedDataCollector>(_runDataAggregator.InvokedDataCollectors.ToList()),

Copilot AI Mar 25, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This materializes a new List<T> via ToList() and then wraps it in a new Collection<T>, adding allocations on the completion path. If the downstream API can be adjusted, prefer accepting IReadOnlyCollection<T> / IEnumerable<T> to avoid forcing a copy. If the signature cannot change, consider passing a one-time snapshot that is created earlier (or reusing a cached snapshot) so this call site doesn't allocate on every completion.

Suggested change
new Collection<InvokedDataCollector>(_runDataAggregator.InvokedDataCollectors.ToList()),
_runDataAggregator.InvokedDataCollectors.ToList(),

Copilot uses AI. Check for mistakes.
@nohwnd

Copy link
Copy Markdown
Member

blocked on flakiness from main

@nohwnd
Jakub Jareš (nohwnd) merged commit f427180 into main Mar 26, 2026
2 of 4 checks passed
@nohwnd
Jakub Jareš (nohwnd) deleted the dev/amauryleve/perf-fix-dictionary-double-lookups branch March 26, 2026 16:29
João Raimundo (Raimundo82) pushed a commit to Raimundo82/pessoas-integracao that referenced this pull request May 27, 2026
This PR contains the following updates:

| Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) | `18.5.1` → `18.6.0` | ![age](https://developer.mend.io/api/mc/badges/age/nuget/Microsoft.NET.Test.Sdk/18.6.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/nuget/Microsoft.NET.Test.Sdk/18.5.1/18.6.0?slim=true) |

---

### Release Notes

<details>
<summary>microsoft/vstest (Microsoft.NET.Test.Sdk)</summary>

### [`v18.6.0`](https://github.com/microsoft/vstest/releases/tag/v18.6.0)

#### What's Changed

- Revert removal of Video Recorder by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15336](microsoft/vstest#15336)
- Speed up blame by filtering non-.NET processes from dump collection by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15518](microsoft/vstest#15518)
- Add README.md to NuGet packages by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15550](microsoft/vstest#15550)
- Report child process info on connection timeout by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15603](microsoft/vstest#15603)

##### Changes to tests and infra

- Brand as 18.6 by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15423](microsoft/vstest#15423)
- Upgrading code coverage version to 18.5.1, by [@&#8203;fhnaseer](https://github.com/fhnaseer) in [#&#8203;15422](microsoft/vstest#15422)
- Updating System.Collections.Immutable to 9.0.11 by [@&#8203;MSLukeWest](https://github.com/MSLukeWest) in [#&#8203;15425](microsoft/vstest#15425)
- Fix attachVS when used for debugging integration tests by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15451](microsoft/vstest#15451)
- Replace dotnet.config, with global.json by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15449](microsoft/vstest#15449)
- Document debugging integration tests with AttachVS by [@&#8203;Copilot](https://github.com/Copilot) in [#&#8203;15452](microsoft/vstest#15452)
- Fix stack overflow tests by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15461](microsoft/vstest#15461)
- Make TestAssets.sln buildable locally by [@&#8203;Youssef1313](https://github.com/Youssef1313) in [#&#8203;15466](microsoft/vstest#15466)
- Try filtering out tests by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15463](microsoft/vstest#15463)
- Build just once when tfms run in parallel by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15465](microsoft/vstest#15465)
- Review simplify compatibility sources, deduplicate tests by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15472](microsoft/vstest#15472)
- Cleanup dead TRX code by [@&#8203;Youssef1313](https://github.com/Youssef1313) in [#&#8203;15474](microsoft/vstest#15474)
- Update .NET runtimes to 8.0.25, 9.0.14, and 10.0.4 by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15481](microsoft/vstest#15481)
- Compat matrix checker by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15480](microsoft/vstest#15480)
- Add trx analysis skill by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15486](microsoft/vstest#15486)
- Split integration tests to single tfm and multi tfm project by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15484](microsoft/vstest#15484)
- Update matrix by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15477](microsoft/vstest#15477)
- Break infinite restore loop in VS by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15503](microsoft/vstest#15503)
- Use global package cache for build, and local for running integration tests by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15500](microsoft/vstest#15500)
- Update contributing by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15505](microsoft/vstest#15505)
- Reduce test wall-clock time by increasing minThreads by [@&#8203;drognanar](https://github.com/drognanar) in [#&#8203;15502](microsoft/vstest#15502)
- Indicator flakiness by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15513](microsoft/vstest#15513)
- Fix ci build by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15515](microsoft/vstest#15515)
- Fix thread safety issues by [@&#8203;Evangelink](https://github.com/Evangelink) in [#&#8203;15512](microsoft/vstest#15512)
- Optimize DotnetSDKSimulation\_PostProcessing test (163s → 61s) by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15516](microsoft/vstest#15516)
- Build isolated test assets for single TFM instead of 7 by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15517](microsoft/vstest#15517)
- Remove unused dependencies from Library.IntegrationTests by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15527](microsoft/vstest#15527)
- Remove printing \_attachments content to console by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15520](microsoft/vstest#15520)
- Add Linux/macOS test filtering guide to CONTRIBUTING.md by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15521](microsoft/vstest#15521)
- Change integration test parallelization from ClassLevel to MethodLevel by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15526](microsoft/vstest#15526)
- Unify target framework checks with IsNetFrameworkTarget/IsNetTarget by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15523](microsoft/vstest#15523)
- Add unattended work instructions to copilot-instructions.md by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15531](microsoft/vstest#15531)
- Reduce code style rule severity from warning to suggestion by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15522](microsoft/vstest#15522)
- Remove Debug/Release line number branching from tests by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15519](microsoft/vstest#15519)
- Revise unattended work instructions in copilot-instructions.md by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15532](microsoft/vstest#15532)
- Improve CompatibilityRowsBuilder error message with diagnostic details by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15529](microsoft/vstest#15529)
- docs: add git worktree and upstream sync workflow to copilot-instructions.md by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15538](microsoft/vstest#15538)
- Add VSIX runner to smoke tests by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15541](microsoft/vstest#15541)
- Remove deprecated WebTest and TMI test methods by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15525](microsoft/vstest#15525)
- Fix compatibility test failures for legacy vstest.console and MSTest adapter by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15534](microsoft/vstest#15534)
- Convert TestPlatform.sln to slnx format by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15551](microsoft/vstest#15551)
- Convert test/TestAssets .sln files to .slnx format by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15557](microsoft/vstest#15557)
- Enable parallelization for blame data collector tests by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15552](microsoft/vstest#15552)
- Fix CI failure when GeneratedTestAssets directory doesn't exist by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15556](microsoft/vstest#15556)
- Set DOTNET\_ROOT in test.sh for local Linux usage by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15559](microsoft/vstest#15559)
- Use MSTest recommended analyzers by [@&#8203;Evangelink](https://github.com/Evangelink) in [#&#8203;15539](microsoft/vstest#15539)
- Document semicolon handling in RunSettings test parameters by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15561](microsoft/vstest#15561)
- Enable CA1067 analyzer and fix violations by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15560](microsoft/vstest#15560)
- Fix HTML logger parallel file collision with atomic file creation by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15562](microsoft/vstest#15562)
- Deduplicate package extraction between verify-nupkgs and IntegrationTestBuild by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15554](microsoft/vstest#15554)
- Fix MSTEST0046: use Assert.MatchesRegex instead of StringAssert.Matches by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15575](microsoft/vstest#15575)
- Attach diagnostic logs to acceptance test runs by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15572](microsoft/vstest#15572)
- Deprecate EnableShutdownAfterTestRun which is no-op by [@&#8203;Youssef1313](https://github.com/Youssef1313) in [#&#8203;15576](microsoft/vstest#15576)
- Skip VideoRecorder test on CI due to access denied errors by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15587](microsoft/vstest#15587)
- Fix integration test build collision with mutex + EventWaitHandle by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15568](microsoft/vstest#15568)
- Reduce blame test flakiness: increase hang dump timeout to 10s by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15590](microsoft/vstest#15590)
- Fix concurrent modification in MetricsCollection by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15581](microsoft/vstest#15581)
- Fix PassingNoArguments test: disable --diag to preserve help output by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15583](microsoft/vstest#15583)
- perf: fix dictionary double-lookups, Collection.Contains, and LINQ allocations by [@&#8203;Evangelink](https://github.com/Evangelink) in [#&#8203;15533](microsoft/vstest#15533)
- Replace VSSDK-sourced DLLs with proper package references by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15567](microsoft/vstest#15567)
- Add target framework to default TRX file name by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15565](microsoft/vstest#15565)
- Update post-build template parameters by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15591](microsoft/vstest#15591)
- Fix path for post-build template and adjust validation by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15592](microsoft/vstest#15592)
- Add azure-pipelines-official.yml to pipeline files by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15594](microsoft/vstest#15594)
- Update comment formatting for signing validation by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15597](microsoft/vstest#15597)
- Fix enable-auto-merge for maestro by [@&#8203;Youssef1313](https://github.com/Youssef1313) in [#&#8203;15595](microsoft/vstest#15595)
- Auto-approve maestro PRs by [@&#8203;Youssef1313](https://github.com/Youssef1313) in [#&#8203;15598](microsoft/vstest#15598)
- Update enable-auto-merge to squash by [@&#8203;Youssef1313](https://github.com/Youssef1313) in [#&#8203;15602](microsoft/vstest#15602)
- Update enable-auto-merge.yml for the correct permissions by [@&#8203;Youssef1313](https://github.com/Youssef1313) in [#&#8203;15606](microsoft/vstest#15606)
- Add 365 regression tests for untested bug fixes by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15615](microsoft/vstest#15615)
- Fix typos and add comments to empty catch blocks by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15609](microsoft/vstest#15609)
- Fix flaky EventLogCollector test: ensure deterministic event log entries by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15607](microsoft/vstest#15607)
- Mark PathConverter tests as Windows-only by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15617](microsoft/vstest#15617)
- Fix HangDumpOnTimeout flakiness and ignore VideoRecorder test by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15616](microsoft/vstest#15616)
- Add copilot-setup-steps.yml by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15604](microsoft/vstest#15604)
- Add CreateNoNewWindow RunConfiguration setting by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15585](microsoft/vstest#15585)
- Add preview packages documentation by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15628](microsoft/vstest#15628)
- Cleanup filter implementation by [@&#8203;Youssef1313](https://github.com/Youssef1313) in [#&#8203;15629](microsoft/vstest#15629)
- Fix SCI binding failure in DTA hosts (rel/18.6) by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15722](microsoft/vstest#15722)
- Remove DiagnosticSource binding redirect (rel/18.6) by [@&#8203;nohwnd](https://github.com/nohwnd) in [#&#8203;15776](microsoft/vstest#15776)

**Full Changelog**: <microsoft/vstest@v18.5.1...v18.6.0>

</details>

---

### Configuration

📅 **Schedule**: (in timezone Europe/Lisbon)

- Branch creation
  - At any time (no schedule defined)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xNjguNiIsInVwZGF0ZWRJblZlciI6IjQzLjE2OC42IiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbInJlbm92YXRlYm90Il19-->

Reviewed-on: https://devops-01.marinha.pt/marinha-si/pessoas-integracao/pulls/603
Reviewed-by: João Raimundo <pacheco.raimundo@marinha.pt>
Co-authored-by: Renovate Bot <renovate-bot@marinha.pt>
Co-committed-by: Renovate Bot <renovate-bot@marinha.pt>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants