Skip to content

Restore 128 KiB node pipe buffers on .NET Framework - #15253

Merged
AR-May merged 2 commits into
dotnet:mainfrom
AR-May:ar-may-framework-buffer-size
Oct 13, 2026
Merged

AR-May merged 2 commits into
dotnet:mainfrom
AR-May:ar-may-framework-buffer-size

Conversation

@AR-May

@AR-May AR-May commented Oct 12, 2026 •

Copy link
Copy Markdown
Member

Related issue(s): #15172

Context

The increased named-pipe buffer regresses .NET Framework build performance. First-party customer reported that Windows parallel builds with substantial logging traffic can spend significantly more main-process kernel CPU and take longer with MSBuild’s new 1 MiB node pipe buffers than with the previous 128 KiB setting.

Changes Made

Restore the 128 KiB default for .NET Framework only.
Update the existing regression test.

Compatibility

.NET retains its 1 MiB default and 18.9 change-wave behavior.
The environment override remains honored on both runtimes.

Testing

Unit tests were updated
Performance measurements supporting the decision are reported in #15172.

AR-May and others added 2 commits October 12, 2026 13:48
Co-authored-by: Copilot App <[email protected]>
Copilot-Session: dd4cf5d0-487b-4305-859e-5754c5732d53
Co-authored-by: Copilot App <[email protected]>
Copilot-Session: dd4cf5d0-487b-4305-859e-5754c5732d53
@AR-May
AR-May marked this pull request as ready for review October 12, 2026 13:35
Copilot AI balanced review requested due to automatic review settings October 12, 2026 13:35
@AR-May
AR-May temporarily deployed to copilot-pat-pool October 12, 2026 13:35 — with GitHub Actions Inactive
@AR-May
AR-May temporarily deployed to copilot-pat-pool October 12, 2026 13:35 — with GitHub Actions Inactive
@AR-May
AR-May temporarily deployed to copilot-pat-pool October 12, 2026 13:36 — with GitHub Actions Inactive

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.

🟡 Changes recommended

The public change-wave documentation still incorrectly describes the default as 1 MiB for all runtimes.

1 open finding
What changed in this PR

Restores the 128 KiB named-pipe buffer default for .NET Framework while preserving .NET behavior.

Changes:

  • Applies a runtime-specific buffer default.
  • Updates regression-test expectations.
File Description
src/​Framework/​Traits.cs Selects buffer size by runtime.
src/​Build.UnitTests/​ChangeWaves_Tests.cs Tests runtime-specific defaults.

🧠 Review effort: Balanced

Comment thread src/Framework/Traits.cs Resolved
@AR-May
AR-May temporarily deployed to copilot-pat-pool October 12, 2026 13:56 — with GitHub Actions Inactive
@AR-May
AR-May temporarily deployed to copilot-pat-pool October 12, 2026 13:57 — with GitHub Actions Inactive

@github-actions github-actions Bot 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.

✅ 24/24 dimensions clean — no findings.

Warning

Firewall blocked 5 domains

The following domains were blocked by the firewall during workflow execution:

  • api.github.com
  • cafe.github.com
  • github.com
  • r.jina.ai
  • raw.githubusercontent.com

[!TIP]
api.github.com is blocked because GitHub API access uses the built-in GitHub tools by default. Instead of adding api.github.com to network.allowed, use tools.github.mode: gh-proxy for direct pre-authenticated GitHub CLI access without requiring network access to api.github.com:

tools:
  github:
    mode: gh-proxy

See GitHub Tools for more information on gh-proxy mode.

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "api.github.com"
    - "cafe.github.com"
    - "github.com"
    - "r.jina.ai"
    - "raw.githubusercontent.com"

See Network Configuration for more information.

Generated by Expert Code Review (on open) for #15253 · copilot · gpt56 · 593.4 AIC · ⌖ 0.5 AIC · ⊞ 24.9K

@AR-May
AR-May temporarily deployed to copilot-pat-pool October 12, 2026 13:57 — with GitHub Actions Inactive
@AR-May
AR-May merged commit cf642f9 into dotnet:main Oct 13, 2026
21 checks passed
AR-May added a commit that referenced this pull request Oct 13, 2026
Related issue(s): #15172

### Context

The increased named-pipe buffer regresses .NET Framework build
performance. First-party customer reported that Windows parallel builds
with substantial logging traffic can spend significantly more
main-process kernel CPU and take longer with MSBuild’s new 1 MiB node
pipe buffers than with the previous 128 KiB setting.

### Changes Made

Restore the 128 KiB default for .NET Framework only. 
Update the existing regression test.

### Compatibility

.NET retains its 1 MiB default and 18.9 change-wave behavior. 
The environment override remains honored on both runtimes.

### Testing
Unit tests were updated 
Performance measurements supporting the decision are reported in #15172.

### Dependencies and Follow-up
Backport of #15253.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: dd4cf5d0-487b-4305-859e-5754c5732d53
AR-May added a commit that referenced this pull request Oct 13, 2026
Related issue(s): #15172

### Context

The increased named-pipe buffer regresses .NET Framework build
performance. First-party customer reported that Windows parallel builds
with substantial logging traffic can spend significantly more
main-process kernel CPU and take longer with MSBuild’s new 1 MiB node
pipe buffers than with the previous 128 KiB setting.

### Changes Made

Restore the 128 KiB default for .NET Framework only. 
Update the existing regression test.

### Compatibility

.NET retains its 1 MiB default and 18.9 change-wave behavior. 
The environment override remains honored on both runtimes.

### Testing
Unit tests were updated 
Performance measurements supporting the decision are reported in #15172.

### Notes
Backport of #15253

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: dd4cf5d0-487b-4305-859e-5754c5732d53

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — 18d51ab4 Deployed Oct 12, 2026 by AR-May via conclusion #999
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.

3 participants