Repository navigation
Migrate DiscoverDefaultScopedCssItems to IMultiThreadableTask - #54701
jankratochvilcz merged 2 commits into
Conversation
Marks the task with [MSBuildMultiThreadableTask] so MSBuild's multithreaded mode skips the per-task TaskHost wrapper. The task body only inspects ITaskItem metadata and builds a list, so no IMultiThreadableTask / TaskEnvironment plumbing is required (attribute-only opt-in per the skill). Co-authored-by: Copilot <[email protected]>
|
|
||
| foreach (var candidate in Content) | ||
| { | ||
| var fullPath = candidate.GetMetadata("FullPath"); |
There was a problem hiding this comment.
Checked on this, but we only seem to care about the file name not the full path as such
No decoy-style unit test added — not viable hereThis is an attribute-only opt-in. A decoy-CWD test of the form used for |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s), but failed to run 1 pipeline(s). |
|
@jankratochvilcz babysit halted — Helix run on build 1459488 surfaced two real test failures:
Not retriggering — these look like real defects, not infra flakes. |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s), but failed to run 1 pipeline(s). |
Migrates
DiscoverDefaultScopedCssItems(src/StaticWebAssetsSdk/Tasks/DiscoverDefaultScopedCssItems.cs) to multi-threadable by adding[MSBuildMultiThreadableTask].Fixes dotnet/msbuild#14029
Perfstar regression (14d, Windows, paired MT vs non-MT, p50 sum across iterations)
ResolveScopedCssInputsChanges
[MSBuildMultiThreadableTask]on the concrete class. NoIMultiThreadableTaskplumbing needed — the task body only inspects ITaskItem metadata and builds a list (no filesystem / environment / process I/O).Compatibility sins audit (per migration skill)
24/24 dimensions clean — attribute-only opt-in. No
Path.*/File.*/Directory.*/Environment.*/Process.*calls in the task body; no[Output]AbsolutePath leakage; no new null-coalescing; no try/catch reorg; no dictionary keys requiring canonicalization; no exception-type divergence.Co-authored-by: Copilot [email protected]