Skip to content

Read the macOS runner's lease before setting its address by hand - #6426

Merged
leaf-agent merged 1 commit into
mainfrom
fix/macos-network-hold-reads-lease-first
Nov 18, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/macos-network-hold-reads-lease-first

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

test-macos's first step, added by #6381, has failed on every run since it merged, and left the job hanging rather than failing. It read the DNS server from the DHCP lease after networksetup -setmanual had already ended the lease, so ipconfig getoption answered nothing and -setdnsservers got an empty server. This reads every value before setting any, as the throwaway workflow behind #6381 did (run 44263219832, which held the address for 2 h 17 min).

Merge it before the next scheduled run (10:47 UTC): without it, that run's test-macos fails in its first second and then stays in progress, so tend-ci-failures never reports it.

Evidence: the first three runs of the step as merged, dispatched on Nov 18 (44399553207, 44399559748, 44399584183), each failed the step within a second and then stayed in progress with no log, through a cancel and a force-cancel. On a branch with this change, run 44401408496 passed the step and went on through setup. That the empty DNS server is what failed the step is inferred from the order of the reads, since the stuck runs left no log; ipconfig getoption on an interface with no lease prints nothing and exits 1.

Found while dispatching test-macos for Max's request to reproduce the macOS-only nightly failures.

This was written by Claude Code on behalf of max-sixty

test-macos's first step read the DNS server from the lease after
`networksetup -setmanual` had already ended it, so it passed an empty
server. Each of the first three runs of the step in ci.yaml, all
dispatched on Nov 18, failed it within a second and then never finished:
the jobs stayed in progress with no log. The throwaway workflow behind
#6381 read every value first, and held the address for 2 h 17 min. The
step now reads them all before setting any, as that workflow did.

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The red test (run 44401748511) fails in the browser type check (tsc --project browser/types/tsconfig.json), which this YAML-only change can't reach. The base commit 667b6c7 fails that same check on its own (browser/runtime/anchor-placement.js(428,7): error TS2552), and the unrelated queued-key-panel and passing-words branches fail it too, so it comes from main.

@leaf-agent
leaf-agent merged commit 293244f into main Nov 18, 2026
4 of 5 checks passed
@leaf-agent
leaf-agent deleted the fix/macos-network-hold-reads-lease-first branch November 18, 2026 22:04
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.

2 participants