Repository navigation
fix(minimal): flush the macOS system resolver cache in the finalize-install scripts - #2306
Merged
norrietaylor merged 3 commits intoOct 18, 2026
Merged
Conversation
min finalize-install writes /etc/resolver/min.internal but its install and undo scripts never ask configd or mDNSResponder to re-read the resolver configuration or drop the cached answers, so pickup depends on the system noticing the file on its own schedule and a negative answer cached before the file existed survives until reboot. Both scripts now end with dscacheutil -flushcache and a HUP of mDNSResponder, each tolerant of the tool being absent so the undo script still succeeds on a host without them. The undo script flushes after the resolver file is gone so its cached answers do not outlive it. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
Author
|
[inbox-patch:clobber] This PR would revert recently merged workSimulating this merge shows it undoing commits that landed on the base branch within the last 3 day(s):
Before merging, restore the reverted region to its state on the base branch. The rest of this PR is unaffected. If a listed commit is one this PR intends to supersede, say so and merge — this check reports, it does not block. |
Contributor
Member
|
/review |
Contributor
|
Approved: no findings at Nothing to do. Clobber: none: |
norrietaylor
approved these changes
Oct 18, 2026
Member
There was a problem hiding this comment.
Approved on ARCH PASS at 528f161.
github-merge-queue
Bot
removed this pull request from the merge queue due to a conflict with the base branch
Oct 18, 2026
…olver-flush-6c42c90469a5af5f
norrietaylor
deleted the
inbox-patch/macos-resolver-flush-6c42c90469a5af5f
branch
October 18, 2026 17:12
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.
Routing-Key: inbox-route/I_kwDOSUhdos8AAAABX3vSQg
What
min finalize-installwrites/etc/resolver/min.internalon macOS, but the install and undo scripts it emits never ask configd or mDNSResponder to re-read the resolver configuration or drop cached answers: pickup depends on the system noticing the file on its own schedule, and a negative answer cached before the file existed survives until reboot.Both scripts now end with
dscacheutil -flushcacheand a HUP ofmDNSResponder, each line tolerant of the tool being absent so the undo script still succeeds on a host without them (set -euand all). The undo script flushes after the resolver file is gone, so its cached answers do not outlive it.Verification
cargo fmt --all --check— cleancargo clippy --workspace --all-targets --locked -- -D warnings— cleancargo test --locked -p minimal— 524 passed, 1 pre-existing failure (legacy_network_spellings_parse_with_hint, a CLI network-flag hint test unrelated to resolver code; it fails identically on unmodifiedmain, confirmed by stashing this change and re-running it)cargo test --locked -p minimal --lib resolver— 83 passed, including the newmacos_scripts_flush_the_system_resolver_cachetestlive-session: macos e2e (.github/workflows/ci-macos.yml) — runs on this PR; not runnable in the fixer sandbox.
Summary by CodeRabbit