Skip to content

ci: repair Ubuntu package DNS on disposable runners - #2460

Merged
yansfil merged 5 commits into
mainfrom
fix/wsl-lane-package-install
Nov 11, 2026
Merged

yansfil merged 5 commits into
mainfrom
fix/wsl-lane-package-install

Conversation

@yansfil

@yansfil yansfil commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Closes with-hide/hide-private#871

Summary

CI fails before product tests because the runner cannot resolve Ubuntu package hosts.
Keep healthy DNS defaults and repair failed lookups only on disposable GitHub-hosted runners.
Use the shared bounded installer for WSL, Linux packages and relay service checks, preserving product tests.

Review

  • Risky files: scripts/ci-apt-dns.sh - changes the disposable runner's resolver only after failed lookups.
  • Risky files: package.yml, wsl-device.yml - root/container and Windows-to-WSL installation boundaries.
  • Cost: DNS shares the installer's 300 s network budget; Windows host setup has a separate 2 min backstop.

Tests

  • Layer: CLI integration with OS command stand-ins; actual WSL, package and relay service jobs in CI.
  • Catches: Unnecessary DNS changes, ignored repair failures, self-hosted changes and lost downgrade permission.
  • Repeat: Changed script tests await CI; no local execution under the disk-space constraint.
  • Waits: Linux hostname lookups cap at 5 s each; resolver commands cap at 10 s within the shared budget.

Evidence

  • Verified: Prior CI: Windows Azure DNS and WSL's generated tunnel fail for both Ubuntu package hosts.
  • Verified: Prior corrected WSL job: package install and 3 WSL plus 3 Windows/Linux SSH tests pass.
  • Verified: The same run's Linux package job fails resolving Ubuntu hosts; all other planned jobs pass.
  • Not verified: Expanded common repair awaits full CI, including actual WSL, Linux package and relay jobs.
  • Not verified: Local builds/tests and mutation run omitted to preserve disk space; direct delegation, no PRD run.
Verification record

Base: 04c0b2d3bce63d74f4f2bbc25a5748620c517a09.
Common repair candidate: c3e7b6d458.
Self-review covers correctness, duplication, simplicity, module boundaries, failure handling and resource limits.
Default DNS is checked first; only RUNNER_ENVIRONMENT=github-hosted permits repair.
Linux uses the active system resolver on the runner, or the bare container's own resolver file.
Windows validates the public resolver before selecting it; WSL retains its normal DNS tunnel.
Root installation supports the bare container without sudo; local deb and downgrade options remain supported.
Product code, distribution first-run setup, default user and test expectations are unchanged.
Original successful WSL job: https://github.com/with-hide/hide/actions/runs/43030011569/job/130556172864
Original failing main job: https://github.com/with-hide/hide/actions/runs/43031426412/job/130560970954
Both have the same runner image, action SHA and Ubuntu installer.
Diagnostic job: https://github.com/with-hide/hide/actions/runs/43046941833/job/130615263704
Windows DNS 168.63.129.16 returns RCODE_SERVER_FAILURE for Ubuntu hosts.
WSL 3.0.3.0, kernel 6.18.54.1-1, uses generated DNS tunnel 10.255.255.254.
A 120-second readiness check did not recover DNS.
Corrected Windows host DNS candidate 579c003fbe8f0c27ac60ed9496b9e645cf0f8744:
https://github.com/with-hide/hide/actions/runs/43050103813/job/130628266914
WSL retains its tunnel and installs prerequisites in 28 seconds with two fetch attempts.
All three WSL walks and all three Windows/Linux SSH walks pass without retries.
Linux package failure on that same candidate:
https://github.com/with-hide/hide/actions/runs/43050103813/job/130625904718
azure.archive.ubuntu.com, archive.ubuntu.com and security.ubuntu.com fail resolution; apt exits 100.
Every other planned job, including Windows browser, desktop and package, passes on that candidate.
The original diagnostic candidate's fixture linker timeout is preserved separately and did not recur.

@yansfil yansfil changed the title ci: wait for WSL package DNS before installing prerequisites ci: repair Ubuntu package DNS on disposable runners Nov 11, 2026
@yansfil yansfil closed this Nov 11, 2026
@yansfil yansfil reopened this Nov 11, 2026
@yansfil
yansfil added this pull request to the merge queue Nov 11, 2026
Merged via the queue into main with commit 264833e Nov 11, 2026
184 of 188 checks passed
@yansfil
yansfil deleted the fix/wsl-lane-package-install branch November 11, 2026 18:52
HyunjunJeon pushed a commit to HyunjunJeon/hide that referenced this pull request Nov 12, 2026
…ith-hide#2462)

Closes with-hide/hide-private#826
Related: with-hide#2443 and with-hide#2456; unblocks verification of with-hide#2460 and with-hide#2454.

## Summary

Native checks still assume an immediate blocked-child raise and the old
phone pause explanation.
Wait for the real raised request after the approved grace, and expect
the approved computer-use description.
Close Settings and wait for the presented frame before capturing the
raised pane in either theme.

## Review

- **Decide**: budgets account for with-hide#2443's approved grace; the grace
boundary remains covered by core tests.
- **Risky files**: `session-workflow.spec.ts` retains the real
blocked-child path and exact raised-label predicate.
- **Risky files**: `phone-push-settings.spec.ts` keeps the full copy
assertion against with-hide#2456 and `UI_BEHAVIOR.md`.

## Tests

- **Layer**: native e2e checks Korean task rows, pane bands, terminal
geometry and persisted phone pause settings.
- **Catches**: old main runs fail before the 60-second grace; the first
candidate reaches the unchanged UI assertions.
- **Catches**: the same CI exposed the obsolete pause explanation on
both attempts; its assertion remains exact.
- **Repeat**: grace candidate passes once without retry; final candidate
macOS validation is pending.
- **Waits**: snapshot guard allows the 60-second grace plus its existing
30-second label budget.
- **Waits**: test guard adds that grace to its existing 90-second
budget; Settings absence is asserted before capture.
- **Waits**: existing animation/compositor helpers wait for the
presented native frame; no custom delay is added.

## Evidence

- **Verified**: first candidate PR verify passes typecheck, lint, size
budgets and timed-wait policy.
- **Verified**: its macOS session workflow passes in 94.492 seconds on
the first attempt, with every assertion intact.
- **Verified**: its native artifacts expose a stale Settings frame in
the light capture, corrected by the new gate.
- **Not verified**: final candidate CI and fixed captures are pending;
local builds exceed the 2.4 GiB disk margin.
- **Not verified**: original pre-with-hide#2443 intermittency is not
independently diagnosed; direct delegation, no PRD run.

<details><summary>Verification record</summary>

Base `8ee63b8e5138fd6aae02d987fd4563458f842d1a`; final candidate
`b897729e73`.
Before: main run 43031426412 and with-hide#2460 run 43060583267 fail the
30-second raised-label wait on both attempts.
Grace candidate `0c50b38168`:
https://github.com/with-hide/hide/actions/runs/43065626764
Mac desktop:
https://github.com/with-hide/hide/actions/runs/43065619655/job/130679676966
Shard 1 passes 64 tests, skips one; shard 2 passes 65, skips ten and
fails only the old phone-pause copy.
The original reports, native windows and failure logs are preserved
locally.
Remaining unrelated jobs in that superseded nightly were cancelled
before final-candidate validation.
Self-review: product, snapshot, lifecycle and cleanup are unchanged;
state predicates remain exact and guards finite.

</details>
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