dotnet / dotnet/msbuild

[Bug]: Question: Are cores from `IBuildEngine9.RequestCores` expected to be released between batched task invocations?

Open
#9,474 3 comments 0 reactions 0 assignees View on GitHub
Area: Engine backlog bug Partner request Priority:2 triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 8h
Merged PRs (30d)
141

Description

### Issue Description

[EmitBundleBase](https://github.com/dotnet/runtime/blob/542983327f61706b2ed07583601861846361364b/src/tasks/MonoTargetsTasks/EmitBundleTask/EmitBundleBase.cs#L153-L154) task in `dotnet/runtime` uses `IBuildEngine9.RequestCores`, and depends on these being released when the task's `Execute` is done. But if the task is batched, then for any subsequent invocations the task gets blocked on `RequestCores`. If I use `ReleaseCores` before returning from `Execute`, then it works fine.

Is this the expected behavior?

### Steps to Reproduce

Question about the expected behavior

### Expected Behavior

resource `cores` get released automatically at the end of a task

### Actual Behavior

resource `cores` are not released between batched task runs.

### Analysis

_No response_

### Versions & Configurations

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.