Skip to content

Hold the macOS runner's network address for the nightly suite - #6381

Merged
max-sixty merged 5 commits into
mainfrom
firefox-bounce-tracking
Nov 18, 2026
Merged

max-sixty merged 5 commits into
mainfrom
firefox-bounce-tracking

Conversation

@max-sixty

@max-sixty max-sixty commented Nov 18, 2026 •

Copy link
Copy Markdown
Owner

The macOS nightly loses tests to Chromium's net::ERR_NETWORK_CHANGED because 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:

  • Unchanged runner: configd logged "server not responding" and removed 192.168.64.10 at 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 shows NETWORK_MAC_OS_CONFIG_CHANGED "Notify_Changed" twice, once for the removal and once for the return.
  • Runner with this step: the interface changed once, when the step ran. Over the next 2 h 17 min, which would have held two lease expiries, configd removed no address and Chromium logged no change.

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 bootpd keeps an expired lease's address reserved for its client until the pool runs out. I haven't confirmed that GitHub's hosts run bootpd. 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.

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

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.
@max-sixty
max-sixty merged commit bec4288 into main Nov 18, 2026
5 checks passed
@max-sixty
max-sixty deleted the firefox-bounce-tracking branch November 18, 2026 18:11
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_
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.

Four tests fail only on macOS in the Nov 16 scheduled run, whose timeout left no junit diagnostics

2 participants