CI: give the macOS runners a resolvable hostname (1.2-maint)

Backport of #10135 (master) / #10139 (1.4-maint). The runner hostname is a
long, unresolvable .local name and macOS needs ~35s to give up resolving it.
borg resolves the fqdn at import time (platform/base.py), so every spawned
borg process paid those 35s - the last 1.2-maint macOS job hit the 6h job
limit and got cancelled.

Co-Authored-By: Claude Opus 5 <[email protected]>
This commit is contained in:
Thomas Waldmann
2026-08-21 23:25:09 +02:00
co-authored by Claude Opus 5
parent ddeef01a3c
commit 99a52ce3ca
+5
View File
@@ -112,6 +112,11 @@ jobs:
brew install lz4 || brew upgrade lz4
brew install xxhash || brew upgrade xxhash
brew install [email protected] || brew upgrade [email protected]
# the runner's unresolvable .local hostname takes macOS ~35s to give up on,
# which borg pays per spawned process (import-time fqdn) - hours of test time,
# see #9470. .local is mDNS territory, an /etc/hosts entry alone does not help.
sudo scutil --set HostName borg-ci-mac
echo "127.0.0.1 borg-ci-mac" | sudo tee -a /etc/hosts
- name: Install Python requirements
run: |