Skip to content

infra: record the measured macOS system libcurl in the Brotli carve-out (#2907) - #2977

Merged
zackees merged 1 commit into
masterfrom
infra/2907-record-macos-libcurl
Oct 30, 2026
Merged

zackees merged 1 commit into
masterfrom
infra/2907-record-macos-libcurl

Conversation

@zackees

@zackees zackees commented Oct 30, 2026

Copy link
Copy Markdown
Member

Records the measurement #2907 asks for in the two places the carve-out is documented, and says why the carve-out stays.

What was measured

A throwaway workflow (branch infra/2907-macos-libcurl-probe, deleted) compiled a program against the SDK's -lcurl — otool -L confirms it binds /usr/lib/libcurl.4.dylib (compatibility 7.0.0, current 9.0.0) — and ran it on the GitHub macOS runners:

Host sw_vers system libcurl features CURL_VERSION_BROTLI brotli_version brotli decoder linked
macos-14 arm64 14.8.9 (23J631) 8.7.1 0x514f039d unset null none
macos-15 arm64 15.8.2 (24H232) 8.7.1 0x514f039d unset null none
macos-26 arm64 26.6.2 (25G83) 8.7.1 0x514f039d unset null none

/usr/bin/curl --version on each host agrees: libcurl/8.7.1 (SecureTransport) LibreSSL/3.3.6 zlib/1.2.12 …, features alt-svc AsynchDNS GSS-API HSTS HTTP2 HTTPS-proxy IPv6 Kerberos Largefile libz MultiSSL NTLM SPNEGO SSL threadsafe UnixSockets — no brotli. /usr/lib/libcurl.4.dylib has no on-disk file on any of them (dyld shared cache), so the decoder cannot be examined with otool; the absence of CURL_VERSION_BROTLI and of libbrotlidec in its otool -L output is the answer, and BrotliDecoderVersion() is not reachable because nothing links it.

Consequence

On every measured release the Apple branch is a no-op: with no Brotli decoder, "" asks for exactly gzip, deflate, the string the branch returns. macOS 13.0 — the deployment target, so the oldest release we ship to — is still unmeasured: GitHub retired the macos-13 runners (a job on that label stays queued), so it needs a real Ventura Mac before the branch can be dropped. Until then this PR only records the numbers.

No behavior change

Comments only: shared/file-updater/file-updater/curl-accept-encoding.h and the OS_MACOS block in CMakeLists.txt. No test change; macos_libcurl stays 1.

Refs #2907

The Apple branch of obs_curl_accept_encoding_for() exists because this repo
neither pins nor measures the Brotli decoder of /usr/lib/libcurl.4.dylib.
Measure it: on macOS 14.8.9 (23J631), 15.8.2 (24H232) and 26.6.2 (25G83) the
loader resolves that dylib at 8.7.1 with features 0x514f039d, which does not
set CURL_VERSION_BROTLI, links no libbrotlidec, and /usr/bin/curl reports the
same feature list without brotli. So the carve-out is inert on every measured
release: "gzip, deflate" is exactly what "" asks for when br is unavailable.

It stays because the deployment target is 13.0 and that release is still
unmeasured (GitHub retired its macos-13 runners); a real Ventura Mac decides
whether the branch can go. Comment only, no behavior change.

Refs #2907
@zackees

zackees commented Oct 30, 2026

Copy link
Copy Markdown
Member Author

Handed off to the coordinator — comment-only change, Format and Fast Gate green, auto-merge on. Issue #2907 is commented with the measured values and stays open on the macOS 13 row.

@zackees zackees left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Coordinator review — comment-only, claims check out.

Verified:

  • Diff is comments only. gh pr diff shows +13/−0 across CMakeLists.txt and shared/file-updater/file-updater/curl-accept-encoding.h; no code, no macro change, so OBS_CURL_ACCEPT_ENCODING_UNPINNED_BROTLI=1 on OS_MACOS and macos_libcurl staying 1 remain correct, and no RED→GREEN test is owed for a comment (test/cmocka/test_curl_accept_encoding.c is untouched, as it should be).
  • The numbers are internally consistent. 0x514f039d & CURL_VERSION_BROTLI (1<<23 = 0x800000) == 0, so "BROTLI not set" matches the quoted features word, and LIBZ is set, which is why the Apple branch's gzip, deflate is the same string "" would produce on 8.7.1 — the "inert on the measured hosts" claim is self-consistent. The -lcurl + otool -L → /usr/lib/libcurl.4.dylib route means these are the system libcurl, not a Homebrew one, which is what #2907 asked for.
  • Recording happened where the issue asked. The table is in the #2907 comment and the same values, narrowed to the ones that matter, are now in the two places the carve-out is documented (top-level CMakeLists.txt and the header doc block).
  • Deployment target checked: cmake/common/soldr.cmake:218 sets CMAKE_OSX_DEPLOYMENT_TARGET 13.0, so keeping the carve-out on the unmeasured 13.0 row is the right call rather than dropping the branch on arm64 14/15/26 evidence alone.
  • No docs/features.md line needed: comments in build files and a header are not user-visible behaviour, settings, UI, log output or platform support.

Nothing to fix. Tier 2 macOS/Windows and the remaining Linux serial lanes were still in progress at review time; auto-merge is on (MERGE, enabled by the maintainer) and the queue is the gate, so no further coordinator action unless a lane goes red.

@zackees
zackees added this pull request to the merge queue Oct 30, 2026
Merged via the queue into master with commit 5074635 Oct 30, 2026
40 checks passed
@zackees
zackees deleted the infra/2907-record-macos-libcurl branch October 30, 2026 03:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant