Repository navigation
fix: unbreak main's required checks - #1874
Merged
Merged
Conversation
…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.
houko
enabled auto-merge (rebase)
November 22, 2026 03:13
This was referenced Nov 22, 2026
3 of 14 tasks
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.
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:
apple-simulator:TestSceneKeyboardInsetFollowsFocus(from test(ios): detach the simulator's hardware keyboard before checking the keyboard inset #1847). Key presses fromTestTitledKeyCommandsUseUIKit, which runs earlier in the same iPad invocation, leave the simulator counting a hardware keyboard as attached, so no software keyboard (and no inset) appears. The test now detaches it first, using a test-only GraphicsServices call that does nothing on a device. The assertion is unchanged.test:TestMinimalAppLinks(from fix(platform): keep net/http out of minimal apps #1797). This keepsnet/http,crypto/tlsandcrypto/x509out of an app that shows one text, by moving the Apple and Linux video HTTP code off the minimal path.test:TestPublicAPINamesNoInternalType(from fix(test): allow driver.ImageSampling in the public API #1815). This addsdriver.ImageSampling, which eafa68a exposed throughDrawOp.Samplingandcorere-exports, to the public driver allowlist next toImageScales. fix(platform): keep net/http out of minimal apps #1797 had also picked up an equivalent commit, but it put the name in the legacy protocol-types section, which is meant to shrink. That copy is not included.Before stacking I checked the
testlogs of #1815 and #1847: the only failures were these three tests, so nothing else on main is red.Supersedes #1797, #1815 and #1847.
Verification
go test -run 'TestMinimalAppLinks|TestPublicAPINames' ./internal/moduletestpasses, andgo vetand gofmt are clean.TestScenesShowTreesOfTheirOwn|TestSceneDisconnectsWhileTheOtherRuns|TestSceneStatusBarAndOrientationsArePerScene|TestSceneKeyboardInsetFollowsFocus|TestTitledKeyCommandsUseUIKit) passedTestSceneKeyboardInsetFollowsFocus; 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 ownapple-simulatorrun (44972946268) passed the full invocation.go test -run Video ./internal/platform/applepasses.Screenshots
None.