Repository navigation
Hold the macOS runner's network address for the nightly suite - #6381
Merged
Merged
Conversation
The macOS runner's DHCP server answers a new client but never a renewal, so configd drops the runner's address when each one-hour lease ends and gets the same address back about three seconds later. Chromium treats each drop and return as an IP address change and fails every loopback load still waiting for a socket with net::ERR_NETWORK_CHANGED. The browser fixtures then fail whichever test was loading at that moment: test_a_text_document_refresh_keeps_selection_in_unchanged_text and the feature-gallery render-gate test on Nov 17, and a reading-place glide test on Nov 15, each in teardown after its body passed. Linux runs show none of these. A diagnostic run on macos-15 (run 44254650627) watched configd's log and an idle Chromium's NetLog. At 07:52:40 and again at 08:52:57, configd logged "server not responding" after an hour of unanswered RENEW and REBIND requests, removed 192.168.64.10, and bound it again 3 s later. Chromium logged NETWORK_MAC_OS_CONFIG_CHANGED "Notify_Changed" for the removal and again for the return. A second run (44263219832) set the leased address, router and DNS server by hand before watching. Its interface changed once, when the step ran, and Chromium logged no change through the hour in which the lease would have expired. test-macos now applies that manual configuration as its first step. The suite's browser fixtures keep failing tests on unconsumed console errors, as tests/AGENTS.md "Browser errors" asks.
leaf-agent
approved these changes
Nov 18, 2026
leaf-agent
pushed a commit
that referenced
this pull request
Nov 18, 2026
`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](https://github.com/max-sixty/leaf/actions/runs/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](https://github.com/max-sixty/leaf/actions/runs/44399553207), [44399559748](https://github.com/max-sixty/leaf/actions/runs/44399559748), [44399584183](https://github.com/max-sixty/leaf/actions/runs/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](https://github.com/max-sixty/leaf/actions/runs/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_
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The macOS nightly loses tests to Chromium's
net::ERR_NETWORK_CHANGEDbecause the runner drops its own address once an hour. Its DHCP server answers a new client but never a renewal, so when each one-hour lease ends, configd removes the address and gets the same one back about 3 s later. Chromium reads each step as an IP address change and fails every loopback load still waiting for a socket. In the Nov 17 and Nov 15 nightlies that failed three tests in teardown after their bodies passed, both nights at 12:50 UTC, two hours into the job. Linux runs show none.This makes
test-macos's first step set the leased address, router and DNS server by hand, so the interface stays unchanged for the rest of the job.Evidence, from a throwaway workflow on this branch that has since been deleted:
192.168.64.10at 07:52:40, then again at 08:52:57, each time after an hour of unanswered RENEW and REBIND requests. Each time an idle Chromium's NetLog showsNETWORK_MAC_OS_CONFIG_CHANGED"Notify_Changed" twice, once for the removal and once for the return.To weigh: once this step runs, the runner no longer asks the host's DHCP server for its address, so after the lease ends the server could give that address to another VM. Apple's
bootpdkeeps an expired lease's address reserved for its client until the pool runs out. I haven't confirmed that GitHub's hosts runbootpd. The first scheduled run after merge is the end-to-end check.Max asked for this fix after #6352 closed #6183, whose fourth failure this was.