Skip to content

fix: set the WSL distribution's DNS before apt - #2461

Closed
yansfil wants to merge 1 commit into
mainfrom
fix/wsl-lane-dns
Closed

yansfil wants to merge 1 commit into
mainfrom
fix/wsl-lane-dns

Conversation

@yansfil

@yansfil yansfil commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

Refs with-hide/hide-private#398

Summary

The wsl device windows job has failed on every branch since 2026-11-11 13:41: inside the fresh WSL 2 distribution no name resolves, so apt-get retries for minutes and exits 100 (Temporary failure resolving 'archive.ubuntu.com').
The job now gives the distribution public DNS (1.1.1.1, 8.8.8.8) before anything needs a name, checks that a name resolves, and only then installs the packages.
setup-wsl runs apt itself right after it installs the distribution, so its additional-packages could not wait for the DNS; the same three packages are now installed by a step of the job.

No screen change.

Review

  • Decide: public resolvers over a mirror or the runner's WSL networking settings: it is one file in the distribution and does not depend on the runner image or WSL version, neither of which the log tells apart.
  • Risky files: .github/workflows/wsl-device.yml - the new steps hand scripts to wsl.exe on stdin, because Git Bash, wsl.exe and sh each re-read quotes.
  • Questions: none. This issue stays open: one green run does not show the root cause.

Evidence

  • Verified: actionlint on the workflow is clean; the workflow parses as YAML.
  • Not verified: the wsl device windows job of this pull request's own CI is the proof and is pending; Windows is not imitated locally.
Verification record

Base 04c0b2d. Changed: .github/workflows/wsl-device.yml, docs/TESTING.md (WSL device lane).
Failed run read: actions/runs/43052202630, job 130634162160 (apt-get update and install fail on name resolution; the install of the distribution from cache succeeds).

@yansfil

yansfil commented Nov 11, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #2460 (merged), which repairs the resolver for the WSL, Linux package and relay jobs together.

@yansfil yansfil closed this Nov 11, 2026
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.

1 participant