Skip to content

chore(contracts): sync silo-server contracts to 1580f1fb80 - #69

Merged
Artic0din merged 1 commit into
mainfrom
chore/sync-silo-contracts-1580f1fb80
Dec 4, 2026
Merged

Artic0din merged 1 commit into
mainfrom
chore/sync-silo-contracts-1580f1fb80

Conversation

@Artic0din

Copy link
Copy Markdown
Owner

Problem

The vendored Silo Server contract fixtures and generated settings bindings in Auger-tvOS were pinned to older server commits (09c4ac1766 for API v2 and DiagnosticsContract, f5d61bb2b0 for SettingsContract).
This left local conformance tests and generated keys behind silo-server commit 1580f1fb804147a73f991c9615cf8cc32a9a8fab (SettingsContract revision 31).

Approach

  • Re-vendored the 67 API v2 fixtures, index.json, and the client-diagnostics contract from 1580f1fb804147a73f991c9615cf8cc32a9a8fab with scripts/sync-apiv2-fixtures.sh.
  • Re-vendored SettingsContract/manifest.json and conformance.json at revision 31, updated SettingsContract/SOURCE, regenerated SettingKeys.generated.swift using cmd/settingsgen from the same commit, and recorded playback.connection_path (revision 31) in SettingKeyRevisions.swift.
  • Added the 12 newly registered diagnostics attributes (11 playback summary keys and lifecycle.resident_mb) to DiagLogAttributeRegistry while keeping DiagnosticsBundleBuilder.hostedAttributeRegistry unchanged so hosted privacy allowlists are not widened as a side effect of re-vendoring.
  • Updated fixture assertions in the existing API v2, diagnostics parity, network sign-in, and playback v3 tests to match the updated server payloads and headers while preserving legacy fallback coverage.

Validation

Evidence

Commit: 6883edd06ffbf001d73f1f7f13ec131e6f35a8bb

Commands run and trimmed results:

SILO_SERVER_REPO=/Users/ryanfoyle/Metisary/Projects/silo-server scripts/sync-apiv2-fixtures.sh 1580f1fb804147a73f991c9615cf8cc32a9a8fab
-> vendored 67 API v2 fixtures and the diagnostics contract from 1580f1fb804147a73f991c9615cf8cc32a9a8fab
-> left 2 client-authored API v2 fixtures untouched, removed 0 stale

cd iosApp && xcodegen generate
-> Created project at .../iosApp/Auger.xcodeproj

SILO_SKIP_TESTS="ImageSizeCapabilityTests/testResetClearsCapability ArtworkURLTests/testDeliveryCapabilityOnIOSUsesV2RouteAndResets MediaAuthorizationPlaybackTests/testBearerRotationContinuesOnTheSamePlayerAndItem" scripts/apple-test.sh Auger
-> Test Suite 'AugerTests.xctest' passed
-> Executed 3757 tests, with 0 failures (0 unexpected) in 77.342 (78.286) seconds
-> ** TEST SUCCEEDED **

bash scripts/sync-apiv2-fixtures.test.sh && bash scripts/ci/check-no-api-v1.sh && bash scripts/ci/check-string-localized.sh && python3 scripts/ci/check-state-init.py && python3 scripts/ci/check-catalog-text.py
-> ALL PASS / ok

Risks

None identified. All contract additions (playback.connection_path client-local key, additive API v2 fields, and new diagnostics attributes) are backward-compatible and verified by the full tvOS unit test suite.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.
  • The Evidence section shows every change a user can see, or how I checked a change nobody sees.

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.

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.
@sourcery-ai

sourcery-ai Bot commented Dec 3, 2026

Copy link
Copy Markdown

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 @sourcery-ai review. Upgrade to get a review now.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-03T07:29:42.850234Z 6883edd PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@plaintext-review

plaintext-review Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Code Review Completed! 🔥

The code review was successfully completed.

Comment on lines +15 to +16
fixtures/invalid/occurrence-count-null.json
fixtures/invalid/occurrence-count-zero.json

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kody code-review Bug medium

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.

​

​

@Artic0din
Artic0din merged commit c84b6a2 into main Dec 4, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant