Skip to content

[main] Source code updates from dotnet/sdk - #10331

Merged
mthalman merged 8 commits into
mainfrom
darc-main-4d68bab5-71ba-4ae5-ad18-9a9cd621f48d
Oct 29, 2026
Merged

mthalman merged 8 commits into
mainfrom
darc-main-4d68bab5-71ba-4ae5-ad18-9a9cd621f48d

Conversation

@dotnet-maestro

@dotnet-maestro dotnet-maestro Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Note

This is a codeflow update. It may contain both source code changes from
the source repo
as well as dependency updates. Learn more here.

This pull request brings the following source code changes

From https://github.com/dotnet/sdk

Diff the source with this PR branch
darc vmr diff --name-only https://github.com/dotnet/sdk:082c56168c1654f1311bbc3cbc4b0548b45ed529..https://github.com/dotnet/dotnet:darc-main-4d68bab5-71ba-4ae5-ad18-9a9cd621f48d

@dotnet-maestro

Copy link
Copy Markdown
Contributor Author

Note

PRs from original repository included in this codeflow update:

💡 You may consult the FAQ for more information or tag @dotnet/prodconsvcs for assistance.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
1 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service
dotnet-policy-service Bot requested a review from a team October 20, 2026 09:37
@dotnet-maestro

Copy link
Copy Markdown
Contributor Author

Note

This pull request was not automatically approved because the following files did not match the source diff:

  • eng/Versions.props

Automatic approval requires either file changes to match between the repo and the VMR or the destination file to fully match the source file in content
The files listed above met neither condition.

Please manually review these files to ensure their changes are expected before merging this pull request.

💡 You may consult the FAQ for more information or tag @dotnet/prodconsvcs for assistance.

@akoeplinger

Copy link
Copy Markdown
Member

@Evangelink looks like dotnet/sdk#56451 caused a new finding in vstest, would you mind fixing it here:

src/vstest/src/Microsoft.TestPlatform.CrossPlatEngine/Execution/BaseRunTests.cs(43,25): error CA1001: Type 'BaseRunTests' owns disposable field(s) 'FrameworkHandle', 'TestRunCache' but is not disposable (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1001)

@dotnet-maestro

Copy link
Copy Markdown
Contributor Author

Note

PRs from original repository included in this codeflow update:

💡 You may consult the FAQ for more information or tag @dotnet/prodconsvcs for assistance.

@dotnet-maestro

Copy link
Copy Markdown
Contributor Author

Note

This pull request was not automatically approved because the following files did not match the source diff:

  • eng/Versions.props
  • src/Layout/redist/targets/BundledDotnetTools.targets

Automatic approval requires either file changes to match between the repo and the VMR or the destination file to fully match the source file in content
The files listed above met neither condition.

Please manually review these files to ensure their changes are expected before merging this pull request.

💡 You may consult the FAQ for more information or tag @dotnet/prodconsvcs for assistance.

@dotnet-maestro

Copy link
Copy Markdown
Contributor Author

Note

PRs from original repository included in this codeflow update:

💡 You may consult the FAQ for more information or tag @dotnet/prodconsvcs for assistance.

@dotnet-maestro

Copy link
Copy Markdown
Contributor Author

Note

This pull request was not automatically approved because the following files did not match the source diff:

  • eng/Versions.props
  • src/Layout/redist/targets/BundledDotnetTools.targets

Automatic approval requires either file changes to match between the repo and the VMR or the destination file to fully match the source file in content
The files listed above met neither condition.

Please manually review these files to ensure their changes are expected before merging this pull request.

💡 You may consult the FAQ for more information or tag @dotnet/prodconsvcs for assistance.

@dotnet-maestro

Copy link
Copy Markdown
Contributor Author

Caution

🛑 Codeflow Paused — Conflict detected

A conflict was detected when trying to update this PR with changes from build 337898 of https://github.com/dotnet/sdk/tree/d1093d67f9e9ab25a726370422436dc12f9a5020.

💡 You can either merge the PR without getting these new updates or manually flow them in and resolve the conflicts so that automated codeflow can resume for this PR.

The conflicts in the following files need to be manually resolved:

ℹ️ To resolve the conflicts, please follow these steps:

  1. Clone the current repository

    git clone https://github.com/dotnet/dotnet
    cd dotnet
  2. Make sure your darc is up-to-date
    (version 1.1.0-beta.26521.2 or higher)

    # Linux / MacOS
    ./eng/common/darc-init.sh
    # or on Windows
    .\eng\common\darc-init.ps1
  3. Run from repo's git clone and follow the instructions provided by the command to stage the conflict locally

    darc vmr resolve-conflict --subscription b80ccdd7-504a-4efb-b58b-d6480d0a64d9 

    This should apply the build 337898 with sources from d1093d6

  4. Resolve the conflicts, commit & push the changes

  5. Once pushed, the Codeflow verification check will turn green.
    If not, a new build might have flown into the PR and you might need to run the command above again.

💡 You may consult the FAQ for more information or tag @dotnet/prodconsvcs for assistance.

@dotnet-maestro

Copy link
Copy Markdown
Contributor Author

@dotnet-maestro

Copy link
Copy Markdown
Contributor Author

Caution

🛑 Codeflow Paused — Conflict detected

A conflict was detected when trying to update this PR with changes from build 338198 of https://github.com/dotnet/sdk/tree/082c56168c1654f1311bbc3cbc4b0548b45ed529.

💡 You can either merge the PR without getting these new updates or manually flow them in and resolve the conflicts so that automated codeflow can resume for this PR.

The conflicts in the following files need to be manually resolved:

ℹ️ To resolve the conflicts, please follow these steps:

  1. Clone the current repository

    git clone https://github.com/dotnet/dotnet
    cd dotnet
  2. Make sure your darc is up-to-date
    (version 1.1.0-beta.26521.2 or higher)

    # Linux / MacOS
    ./eng/common/darc-init.sh
    # or on Windows
    .\eng\common\darc-init.ps1
  3. Run from repo's git clone and follow the instructions provided by the command to stage the conflict locally

    darc vmr resolve-conflict --subscription b80ccdd7-504a-4efb-b58b-d6480d0a64d9 

    This should apply the build 338198 with sources from 082c561

  4. Resolve the conflicts, commit & push the changes

  5. Once pushed, the Codeflow verification check will turn green.
    If not, a new build might have flown into the PR and you might need to run the command above again.

💡 You may consult the FAQ for more information or tag @dotnet/prodconsvcs for assistance.

@dotnet-maestro

Copy link
Copy Markdown
Contributor Author

@akoeplinger

Copy link
Copy Markdown
Member

@joeloff can you please take a look? apart from the conflicts there's also #10331 (comment)

@dotnet-maestro

Copy link
Copy Markdown
Contributor Author

Important

While this PR was open, the source repository has received code changes from this repository (an opposite codeflow merged).
To avoid complex conflicts, the codeflow cannot continue until this PR is closed or merged.

You can continue with one of the following options:

  • Ignore this and merge this PR as usual without waiting for the new changes.
    Once merged, Maestro will create a new codeflow PR with the new changes.
  • Close this PR and wait for Maestro to open a new one with old and new changes included.
    You will lose any manual changes made in this PR.
    You can also manually trigger the new codeflow right away by running:
    darc trigger-subscriptions --id b80ccdd7-504a-4efb-b58b-d6480d0a64d9
    
  • Force a codeflow into this PR at your own risk if you want the new changes.
    User commits made to this PR might be reverted.
    darc trigger-subscriptions --id b80ccdd7-504a-4efb-b58b-d6480d0a64d9 --force
    

💡 You may consult the FAQ for more information or tag @dotnet/prodconsvcs for assistance.

BaseRunTests owns disposable FrameworkHandle and TestRunCache instances. CA1001 rejects the class unless it implements IDisposable, and leaving the handles undisposed also risks leaking the run cache timer. Dispose both resources at run completion and from ExecutionManager cleanup paths.

Co-authored-by: Copilot App <[email protected]>
@dotnet-policy-service
dotnet-policy-service Bot requested a review from a team October 28, 2026 14:49
ExecutionManager keeps the active run in a field so it can forward cancellation requests, and disposes that run in both StartTestRun cleanup paths. The manager itself does not own a long-lived disposable resource, so implementing IDisposable would add an unnecessary public lifecycle contract.

Co-authored-by: Copilot App <[email protected]>
@dotnet-maestro

Copy link
Copy Markdown
Contributor Author

Important

While this PR was open, the source repository has received code changes from this repository (an opposite codeflow merged).
To avoid complex conflicts, the codeflow cannot continue until this PR is closed or merged.

You can continue with one of the following options:

  • Ignore this and merge this PR as usual without waiting for the new changes.
    Once merged, Maestro will create a new codeflow PR with the new changes.
  • Close this PR and wait for Maestro to open a new one with old and new changes included.
    You will lose any manual changes made in this PR.
    You can also manually trigger the new codeflow right away by running:
    darc trigger-subscriptions --id b80ccdd7-504a-4efb-b58b-d6480d0a64d9
    
  • Force a codeflow into this PR at your own risk if you want the new changes.
    User commits made to this PR might be reverted.
    darc trigger-subscriptions --id b80ccdd7-504a-4efb-b58b-d6480d0a64d9 --force
    

💡 You may consult the FAQ for more information or tag @dotnet/prodconsvcs for assistance.

@mthalman
mthalman merged commit deb6bc8 into main Oct 29, 2026
14 of 15 checks passed
@mthalman
mthalman deleted the darc-main-4d68bab5-71ba-4ae5-ad18-9a9cd621f48d branch October 29, 2026 15:18
azat-msft added a commit that referenced this pull request Nov 25, 2026
Resolve conflict in BaseRunTests.cs by taking microsoft/vstest's fix for
CA1001 (suppression on BaseRunTests, from microsoft/vstest#16700) and
dropping the VMR-only IDisposable/Dispose changes made in #10331, together
with their ExecutionManager and unit-test companions. src/vstest now matches
microsoft/vstest@df930b6.

Co-authored-by: Copilot <[email protected]>
Copilot-Session: 067b2d00-baa5-488d-be41-59e56a5bcd38
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