Skip to content

Revert "Migrate Exec task to TaskEnvironment API"#13367

Merged
rainersigwald merged 1 commit intomainfrom
revert-13171-copilot/migrate-exec-task-to-api
Mar 11, 2026
Merged

Revert "Migrate Exec task to TaskEnvironment API"#13367
rainersigwald merged 1 commit intomainfrom
revert-13171-copilot/migrate-exec-task-to-api

Conversation

@JanProvaznik
Copy link
Copy Markdown
Member

@JanProvaznik JanProvaznik commented Mar 11, 2026

Reverts #13171

breaks VMR rebootstrap
dotnet/dotnet#5385

problem 1:
direct instantation of Exec without task environment

problem 2:
task inheriting from Exec pushed to taskhost

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR reverts the earlier change that migrated the Exec task to the TaskEnvironment API, restoring the prior execution model to address VMR rebootstrap failures (dotnet/dotnet#5385).

Changes:

  • Reverts Exec to no longer be treated as a multi-threadable task and removes its TaskEnvironment integration.
  • Restores Exec working directory behavior to default to the process current directory when WorkingDirectory is not specified.
  • Removes the test helper and unit tests that specifically validated the reverted TaskEnvironment-based behavior.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/UnitTests.Shared/TaskEnvironmentHelper.cs Removes the multithreaded TaskEnvironment test helper that was only needed for the reverted behavior.
src/Tasks/Exec.cs Drops TaskEnvironment usage and multithreadable markings; reverts working directory/env handling to the pre-migration approach.
src/Tasks.UnitTests/Exec_Tests.cs Removes TaskEnvironment setup and deletes tests that targeted the reverted TaskEnvironment-specific semantics.

You can also share your feedback on Copilot code review. Take the survey.

@rainersigwald
Copy link
Copy Markdown
Member

Clean revert, most legs passed, queuing very badly on multithreaded and mac jobs, blocking VMR rebootstrap--I'm going to merge.

@rainersigwald rainersigwald disabled auto-merge March 11, 2026 18:43
@rainersigwald rainersigwald merged commit 7d73e8e into main Mar 11, 2026
10 of 13 checks passed
@rainersigwald rainersigwald deleted the revert-13171-copilot/migrate-exec-task-to-api branch March 11, 2026 18:43
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