Skip to content

Commit

Permalink
Merge pull request #7310 from mook-as/bats/wsl-experimental
Browse files Browse the repository at this point in the history
CI: BATS: Opt-in to experimental WSL settings
  • Loading branch information
jandubois committed Aug 8, 2024
2 parents 33efc83 + 9261644 commit 20d1998
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/actions/spelling/expect.txt
Original file line number Diff line number Diff line change
Expand Up @@ -840,6 +840,7 @@ ventura
VERSIONSTRING
vertificate
veth
Vhd
vhdx
vinzenz
virt
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/bats.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ on:
description: Package run ID override; leave empty to use latest.
default: ''
type: string
experimental:
description: Run with experimental settings (WSL)
default: false
type: boolean
schedule:
- cron: '0 8 * * 1-5' # 8AM UTC weekdays as a baseline

Expand Down Expand Up @@ -173,6 +177,26 @@ jobs:
wsl.exe -d Debian --exec /usr/bin/env DEBIAN_FRONTEND=noninteractive
sh -c 'apt-get update && apt-get install --yes bsdextrautils coreutils curl'
- name: "Windows: Enable experimental WSL settings"
if: runner.os == 'Windows' && inputs.experimental
shell: pwsh
run: |
Set-Content -Encoding UTF8NoBOM -Path "${HOME}/.wslconfig" -Value @"
; Note that not all settings here make sense together.
[wsl]
dnsProxy=false
; networkingMode=mirrored ; https://github.com/rancher-sandbox/rancher-desktop/issues/6665
firewall=true
dnsTunneling=true
autoProxy=true
[experimental]
autoMemoryReclaim=gradual
sparseVhd=true
useWindowsDnsCache=true
bestEffortDnsParsing=true
hostAddressLoopback=true
"@
- name: Set log directory
shell: bash
run: |
Expand Down

0 comments on commit 20d1998

Please sign in to comment.