Repository navigation
fix(ios): keep the zh-Hans alert vocabulary check honest about OS versions - #5177
Conversation
Size Report
Startup median (7 runs, lower is better):
|
There was a problem hiding this comment.
All reported issues were addressed across 4 files
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
This comment has been minimized.
This comment has been minimized.
…sions `testDeviceVocabularyRowsArePairsTheOSShipsForZhHans` required every built-in row to be a pair the lane's own simulator runtime ships. zh_CN words the App Tracking Transparency decline two ways and one build ships one of them, so the check failed 要求App不追踪 on the pinned iOS 26.2 nightly runtime across four main runs. The exemption carried the other wording in a list the check only tested for presence in the table it reads, so the check could not say which builds were known at all. The lane's own strings still decide every other row, on a read asserted non-empty. Both observed wordings are now listed as observed, and recognition of each is pinned where it belongs: `testChineseDeviceVocabularyResolvesTheSystemPermissionPrompts` resolves the tracking prompt through the device vocabulary for both wordings, and its guard compiles it on the host and every simulator lane, so a dropped row fails there rather than hiding behind the exemption. Recorded the source of each wording: 要求App不跟踪 is the iOS 18.1 device run's alert label, and 要求App不追踪 is TCC's `REQUEST_ACCESS_DENY_kTCCServiceUserTracking` in the iOS 27.0 and 27.1 runtime images. Nothing here has read iOS 26.2's strings, so the evidence names only that that build ships no 追踪 pair, and corrects the wider "iOS 26.5-27.x" range the earlier device note claimed. Refs #5117 Co-Authored-By: Claude <noreply@anthropic.com>
06b550a to
dc0e8bf
Compare
Apex Sentinel · ✅ Approve · review of
|
| Where | Finding |
|---|---|
apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/UnitTests/RunnerTests+AlertLabelVocabularyTests.swift:134 |
🆕 zh-Hans check no longer proves each exempted wording is a row the table carries |
Reviewed with this repository's own Sentinel configuration (411b2a746e60).
💬 Talking to Sentinel
In a finding's thread, reply with:
| Command | What it does |
|---|---|
@apex-sentinel-staging note <context> |
Adds context; Sentinel re-checks the cited code |
@apex-sentinel-staging pivot <why> |
Says the finding is wrong; Sentinel re-checks the cited code |
@apex-sentinel-staging like |
Marks the finding as useful |
@apex-sentinel-staging dislike <why> |
Marks it as not useful, so it is not raised again |
On this conversation, comment @apex-sentinel-staging review to run a full review once again.
There was a problem hiding this comment.
Apex Sentinel: 1 new finding on dc0e8bf. The verdict and the full list are in the summary comment.
|
This PR is ready at dc0e8bf, with no code changes required. Not blocking: these notes can be taken or left: say that the macOS host lane proves both wordings on each ready PR that changes the runner, while the nightly also runs them on iOS once a day (it does not run on every runner change); state that only the 27.0 and 27.1 image reads are recorded for the “26.5–27.x” range and no 26.5 read is attested, and keep the 26.2 result as a separate fact; as a follow-up, require the runtime to have rows with English “Ask App Not to Track” and each of their localized values to be in None of the earlier threads still applies, so they can be resolved: selector and draft gating is now stated in the doc (the new nightly sentence there is covered above); the SpringBoard row is now named among the seven checked rows; exempt row deletion is harmless, because the prompt test still fails on it in both the host lane and the nightly, and a stale exemption matches only that exact pair. CI is green. The only non-passing check is a cancelled Body rules run (46145721481); later runs of that check succeeded, and this diff does not touch that gate. Not verified here: no Swift test or gate was run, row deletion and planted-row behavior were assessed from the code only, and the author's local runs and mutations were not repeated. Not verified here: the iPhone job of the manually dispatched head nightly 46145732295 was still in progress (its iPad job passed), and the zh-Hans test was seen passing on iOS 26.2 only at 06b550a, whose test code equals this head. Nothing else is needed from review before merge. Merging closes #5117, but its “a full XCTest Nightly passes on main” item can only be seen afterwards, so please check the first scheduled main nightly. |
* origin/main: fix(cli): judge install-from-source lease admission by its daemon command (#5169) ci: report sizes for affected plugins (#5176) fix(ios): keep the zh-Hans alert vocabulary check honest about OS versions (#5177) Consolidate Apple tap and replacement result construction (#5161) fix(daemon): retry provider lease record retirement (#5174)
Summary
testDeviceVocabularyRowsArePairsTheOSShipsForZhHansrequired every built-in device row to be a pair the lane's own simulator runtime ships. zh_CN words the App Tracking Transparency decline two ways and one build ships one of them, so it failed要求App不追踪on the pinned iOS 26.2 nightly runtime — four consecutive main runs. Its exemption list was checked only against the table itself, so the check could not say which builds were known. Closes #5117. Four files; no vocabulary row changes.Before / after
Validation
dc0e8bfff8differs from the SHA that run above ran at by comment and doc text only: same vocabulary source blob, same test logic.Per wording:
要求App不跟踪is the iOS 18.1 iPhone 12 Pro Maxalert getlabel, preserved;要求App不追踪is TCCREQUEST_ACCESS_DENY_kTCCServiceUserTrackingin the iOS 27.024A5423aand 27.124A94401images. The 26.2 lane's own output proves it ships no追踪pair, so no 26.2 string is claimed; the 2026-11-24 note's "iOS 26.5–27.x" range is corrected. Recognition of both wordings moves to the Chinese prompt test, which the nightly lane runs.Obligations and risks:
swift-runner-ios,swift-runner-macosandreplay-macosare GitHub-authoritative, skipped locally. No iOS 26.2 image existed locally, so that lane is read by the nightly, dispatched at this head as run 46145732295. A full nightly on main is post-merge acceptance, not claimed. No device was allocated. Independence gap: the delegated self-review was cancelled, so the diff was reviewed once, by the author, cold.🤖 Assisted by Claude (Anthropic) — Apex, in OpenCode/T3 Code.