Skip to content

Commit e23e2f7

Browse files
okineadevclaude-for-github[bot]
andcommittedApr 1, 2025··
ci: more network tweaks for Windows tests
Co-authored-by: claude-for-github[bot] <177261773+claude-for-github[bot]@users.noreply.github.com>
1 parent f63d926 commit e23e2f7

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed
 

Diff for: ‎.github/workflows/tests.yml

+17-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,12 @@ jobs:
3131
- name: 🔓 Disable Windows Defender
3232
if: runner.os == 'Windows'
3333
shell: powershell
34-
run: Set-MpPreference -DisableRealtimeMonitoring $true
34+
run: |
35+
Set-MpPreference -DisableRealtimeMonitoring $true
36+
# Exclude Bun directories from scanning
37+
Add-MpPreference -ExclusionPath "$env:WINDOWS_USERPROFILE\.bun"
38+
Add-MpPreference -ExclusionPath "$env:RUNNER_TEMP"
39+
Add-MpPreference -ExclusionPath "$env:GITHUB_WORKSPACE"
3540
3641
- name: 🛜 Network tweaks for Windows
3742
if: runner.os == 'Windows'
@@ -43,6 +48,17 @@ jobs:
4348
# Disable IPv6 (https://github.com/oven-sh/bun/issues/4938#issuecomment-1720172113)
4449
Get-NetAdapterBinding -ComponentID ms_tcpip6 | ForEach-Object { Disable-NetAdapterBinding -InterfaceAlias $_.Name -ComponentID ms_tcpip6 }
4550
51+
# Optimize TCP settings
52+
netsh int tcp set global autotuninglevel=normal
53+
netsh int tcp set global chimney=enabled
54+
netsh int tcp set global rss=enabled
55+
netsh int tcp set global netdma=enabled
56+
netsh int tcp set global ecncapability=enabled
57+
58+
# Increase concurrent TCP connections
59+
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -Name "MaxUserPort" -Value 65534 -Type DWord
60+
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -Name "TcpTimedWaitDelay" -Value 30 -Type DWord
61+
4662
- name: 📥 Checkout
4763
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4864
with:

0 commit comments

Comments
 (0)
Please sign in to comment.