Repository navigation
chore(contracts): sync silo-server contracts to 1580f1fb80 - #69
Conversation
Vendor API v2, client-diagnostics, and settings contracts from silo-server commit 1580f1fb804147a73f991c9615cf8cc32a9a8fab. - Re-vendor 67 API v2 fixtures, index.json, and diagnostics contract via scripts/sync-apiv2-fixtures.sh (previous pin: 09c4ac1766). - Re-vendor SettingsContract manifest.json and conformance.json at revision 31 (previous pin: f5d61bb2b0), update SOURCE, regenerate SettingKeys.generated.swift with cmd/settingsgen, and record playback.connection_path (revision 31) in SettingKeyRevisions.swift. - Add the 12 newly registered diagnostics attributes (11 playback session summary keys and lifecycle.resident_mb) to DiagLogAttributeRegistry while keeping hostedAttributeRegistry unchanged. - Update fixture assertions in APIv2ContractTests, APIv2SubtitleTests, DiagnosticsAttributeRegistryParityTests, NetworkSignInTests, and PlaybackProtocolV3Tests to match the updated server fixtures.
|
Sorry @Artic0din, this account has used its review budget of 1,500,000 diff characters for the last 7 days. You can request another review in 8 hours and 29 minutes by commenting |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Code Review Completed! 🔥The code review was successfully completed. |
| fixtures/invalid/occurrence-count-null.json | ||
| fixtures/invalid/occurrence-count-zero.json |
There was a problem hiding this comment.
Diagnostics validation accepts null and zero occurrence counts
Invalid tvOS manifests pass validation because DiagnosticsManifest.Report ignores occurrence_count. Decode occurrence_count when present, reject null and zero, and register both invalid fixtures in DiagnosticsContractTests.
Prompt for LLM
File iosApp/Tests/Fixtures/DiagnosticsContract/SOURCE, lines 15-16:
Diagnostics validation accepts null and zero occurrence counts
The newly vendored null and zero `occurrence_count` cases are absent from `DiagnosticsContractTests`’ invalid-fixture list, and `DiagnosticsManifest.Report` ignores the field, so both invalid tvOS manifests currently decode and validate. Decode the field when present, reject null and zero, and register both fixtures in the invalid-fixture test.
Talk to Kody by mentioning @kody
Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.
Problem
The vendored Silo Server contract fixtures and generated settings bindings in Auger-tvOS were pinned to older server commits (
09c4ac1766for API v2 and DiagnosticsContract,f5d61bb2b0for SettingsContract).This left local conformance tests and generated keys behind silo-server commit
1580f1fb804147a73f991c9615cf8cc32a9a8fab(SettingsContract revision 31).Approach
index.json, and the client-diagnostics contract from1580f1fb804147a73f991c9615cf8cc32a9a8fabwithscripts/sync-apiv2-fixtures.sh.SettingsContract/manifest.jsonandconformance.jsonat revision 31, updatedSettingsContract/SOURCE, regeneratedSettingKeys.generated.swiftusingcmd/settingsgenfrom the same commit, and recordedplayback.connection_path(revision 31) inSettingKeyRevisions.swift.lifecycle.resident_mb) toDiagLogAttributeRegistrywhile keepingDiagnosticsBundleBuilder.hostedAttributeRegistryunchanged so hosted privacy allowlists are not widened as a side effect of re-vendoring.Validation
SILO_SKIP_TESTSlist for tracked issues test(artwork): a new ImageSizeCapability already holds an earlier capability #57 and test(player): bearer-rotation playback test times out waiting for subtitles on hosted CI #64): passed (3,757 tests, 0 failures).Evidence
Commit:
6883edd06ffbf001d73f1f7f13ec131e6f35a8bbCommands run and trimmed results:
Risks
None identified. All contract additions (
playback.connection_pathclient-local key, additive API v2 fields, and new diagnostics attributes) are backward-compatible and verified by the full tvOS unit test suite.Checklist
ELI5
This updates Auger's saved copies of the Silo Server API, diagnostics, and settings contracts to match server commit
1580f1fb80, regenerates the Swift settings key list, and confirms all 3,757 Apple TV unit tests pass.