Repository navigation
feat(settings): set the time zone on iOS simulators and Android - #5127
Conversation
There was a problem hiding this comment.
All reported issues were addressed across 29 files
Reply with feedback, questions, or to request a fix.
View guided diff | Re-trigger cubic
|
Thanks for the contribution. At a974543, no new blocking problem was found, but open review threads still apply, including a high-priority one. These high-priority threads still stand: Android auto-time restore, reset docs wording, reset test strength, happy-path test state and iOS zone validation. 1 lower-priority thread also still applies. This thread does not apply and can be resolved: the display-name sentence already exists on the base branch, and this PR only adds All code jobs pass. Two Body rules runs were cancelled because later runs replaced them after PR edits. That check covers the PR description, not the code, so the cancellations look unrelated to this change. Not verified here: the live emulator and simulator runs, which only the author has reported. Not verified here: physical Android admission on a live device (it was checked from runtime facts and a mocked test). Not verified here: the Revyl refusal and the Android "status bar updates at once" doc sentence on a live run. |
…nd refuse zones the simulator cannot load
|
Thanks for the fixes. No code problems that need a change before merge were found at f9f8282, and the points from the earlier review are addressed. None of the open inline threads still applies, so they can be resolved: this one is fixed by the restore on failure and its transport-drop test; this one by the docs now saying the previous automatic time zone setting is put back; this one and this one by the new negative assertions on All code jobs pass at this commit. The one check that is not passing, Body rules, was cancelled because a later run replaced it after a PR edit. It checks the PR description, and the diff does not touch what it runs. The required evidence is in place. The live emulator and simulator runs are reported by the author only. Not verified here: the new restore after a transport drop and the iOS refusal path were checked from code and unit tests, not on a device. Tests were not run locally; CI ran them successfully at this commit. Nothing needs to change before merge. As an optional follow-up issue: could the iOS zoneinfo check on the host disagree with an SDK consumer's scoped Apple tool provider? Not verified here: this is inferred from how the provider scope is wired, and not every such consumer was traced. |
Summary
Refs #5005. Split from #5050.
Adds
settings timezone <iana-zone|reset>for iPhone and iPad simulators and Android devices and emulators, and introduces thevaluesettings catalog form that drives usage, help, client types, and MCP metadata. Values must be a zoneIntlknows, kept as written (offsets and unknown names are refused before dispatch), and--appis refused withsetting_app_not_consumed. Each response reportspreviousTimeZone.TZin simulatorlaunchdviasimctl spawn launchctl. Applies only to apps launched afterwards and is lost when the simulator reboots; both limits are documented in CLI help and docs. A zone missing from the Mac's time zone database, which simulator apps read, fails withtime-zone-unknown-to-simulator.auto_time_zoneoff, runscmd alarm set-timezone, verifiespersist.sys.timezone(failing withtime-zone-not-applied; any failure restores the previousauto_time_zone), and re-enables automatic time zone onreset.UNSUPPORTED_OPERATION.Before / after
Validation
9f7751eeb0, headf9f8282018.America/New_York, lowercase alias read-back (time-zone-not-applied), andresetverified withgetprop persist.sys.timezoneandauto_time_zone.Asia/Kolkataandresetverified withlaunchctl getenv TZ;resetwarns about relaunching only.f9f8282018:format,lint,typecheck,layering,fallow,build,vitest-related,provider-integration(324 passed),command-docs,docs-links, anddocs-prosepassed.