Skip to content

fix: unbreak main's required checks - #1874

Merged
houko merged 3 commits into
mainfrom
fix/main-stack
Nov 22, 2026
Merged

houko merged 3 commits into
mainfrom
fix/main-stack

Conversation

@houko

@houko houko commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator

Summary

Main has three breakages, and each fix PR still failed on the other two's required checks. This stacks the three fixes so that one PR can pass every required check:

Before stacking I checked the test logs of #1815 and #1847: the only failures were these three tests, so nothing else on main is red.

Supersedes #1797, #1815 and #1847.

Verification

  • ubuild: go test -run 'TestMinimalAppLinks|TestPublicAPINames' ./internal/moduletest passes, and go vet and gofmt are clean.
  • Mac Studio, iPad Pro 13-inch (M5) simulator: CI's iPad invocation (TestScenesShowTreesOfTheirOwn|TestSceneDisconnectsWhileTheOtherRuns|TestSceneStatusBarAndOrientationsArePerScene|TestSceneKeyboardInsetFollowsFocus|TestTitledKeyCommandsUseUIKit) passed TestSceneKeyboardInsetFollowsFocus; the other four timed out launching the test host on the loaded Studio (5-minute launch limit), an environment issue. The iOS commit is identical to test(ios): detach the simulator's hardware keyboard before checking the keyboard inset #1847, whose own apple-simulator run (44972946268) passed the full invocation. go test -run Video ./internal/platform/apple passes.

Screenshots

None.

…he keyboard inset

TestSceneKeyboardInsetFollowsFocus failed with heights [0 0] on every apple-simulator run since bec2c94 added TestTitledKeyCommandsUseUIKit to the same iPad invocation. That test runs first and presses keys as IOHID keyboard events; once UIKit takes one, the simulator counts a hardware keyboard as connected (UIKeyboardImpl hardwareKeyboardAttached, HardwareKeyboardLastSeen in com.apple.keyboard.preferences) for as long as it runs, so focusing a field shows no software keyboard and the inset stays 0 in both scenes.

The test now tells GraphicsServices no hardware keyboard is attached, as on a newly booted simulator, before it focuses the fields. Setting UIKit's own flag is not enough: UIKit reads the system's state again as a scene activates.
f0fccfb (feat(apple): send headers with finite video requests) served header-carrying video byte ranges through Go's net/http from internal/platform/apple/videoresource.go, and 00fd256 (feat(linux): send headers with video requests) called http.CanonicalHeaderKey from internal/platform/linux/videohttp.go. A backend's handling of every mount item links into every app, so every darwin app linked net/http, crypto/tls and crypto/x509, every Linux app linked net/http, and TestMinimalAppLinks failed on main for darwin_arm64 and linux_amd64.

On Apple platforms the resource loader now runs each byte range as a data task in a per-resource URLSession, the system's HTTP client, as image downloads already do. Its delegate keeps the same redirect rules (the app's headers only to the source's origin, no Referer elsewhere, at most 10 redirects), sends no stored cookies, and holds each chunk until the player takes it so a slow player still throttles the download. On Linux the header names are canonicalized with net/textproto's CanonicalMIMEHeaderKey, which http.CanonicalHeaderKey wraps.
eafa68a added DrawOp.Sampling, which exposes driver.ImageSampling through the already-allowlisted DrawOp. core re-exports it as core.ImageSampling, so it belongs on the public driver allowlist next to ImageScales and ImageSource. This turns TestPublicAPINamesNoInternalType green on main again.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation iOS Linux macOS size/M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant