Repository navigation
Conversation
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
fde7b17 to
f86a7b6
Compare
| .testTarget( | ||
| name: "THEOplayerConnectorConvivaTests", | ||
| dependencies: [ | ||
| "THEOplayerConnectorConviva", |
There was a problem hiding this comment.
Isn't adding THEOplayerConnectorConviva enough to also implicitly include THEOplayerSDK and ConvivaSDK?
Perhaps give it a try: keep THEOplayerConnectorConviva and remove the other 2 I mentioned.
There was a problem hiding this comment.
Yes, that works. I removed THEOplayerSDK and ConvivaSDK from the test target in 1bb6d8e. The tests still compile and all 32 Conviva tests run on CI.
One test fails, testEndedReportsStoppedAndEndsSession (no ENDED event within 60 s), but it isn't caused by this change. The commit before this change fails the same way now that SwiftPM resolves THEOplayer SDK 11.16.0. It passed on 11.15.1. I'm looking into that separately.
Co-Authored-By: Ceyhun Ozgoc <ceyhun.ozgoc@dolby.com> Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…alytics and run it on CI Co-Authored-By: Ceyhun Ozgoc <ceyhun.ozgoc@dolby.com> Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…errors and player state Co-Authored-By: Ceyhun Ozgoc <ceyhun.ozgoc@dolby.com> Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Ceyhun Ozgoc <ceyhun.ozgoc@dolby.com> Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Ceyhun Ozgoc <ceyhun.ozgoc@dolby.com> Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Ceyhun Ozgoc <ceyhun.ozgoc@dolby.com> Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…annel Co-Authored-By: Ceyhun Ozgoc <ceyhun.ozgoc@dolby.com> Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
… the session Co-Authored-By: Ceyhun Ozgoc <ceyhun.ozgoc@dolby.com> Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Ceyhun Ozgoc <ceyhun.ozgoc@dolby.com> Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-Authored-By: Ceyhun Ozgoc <ceyhun.ozgoc@dolby.com>
…ration Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-Authored-By: Ceyhun Ozgoc <ceyhun.ozgoc@dolby.com>
…vivaSDK Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-Authored-By: Ceyhun Ozgoc <ceyhun.ozgoc@dolby.com>
1bb6d8e to
1cc08d2
Compare
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Summary
Adds the first automated tests for the Conviva connector, in a new
THEOplayerConnectorConvivaTestsSwiftPM target with a shared scheme. The target is also added to the CI test loop.The only production change is a test seam.
ConvivaEndpointsgets an internalinit(analytics: CISAnalytics), so tests can inject a recording fake that captures every call to the Conviva SDK. There is no public API change.The test target depends on
THEOplayerConnectorConviva(which bringsTHEOplayerSDKandConvivaSDK),THEOplayerTHEOliveIntegration,THEOplayerTHEOadsIntegrationand Google IMA (iOS only, which the OptiView Ads integration's module imports). Only the test target uses them, so SwiftPM consumers of the connector products don't fetch them.The tests drive a real
THEOplayer(most SDK events have no public init) and cover these areas:https://cdn.theoplayer.com/video/elephants-dream/404/index.m3u8, where the 4th video segment returns HTTP 403.isLiveis not overwritten.demochannel, and a customer-provided value wins.Test synchronization
Waits are driven by player events where possible, the same approach as the player smoke tests:
PLAYINGon Elephants Dream before seeking to 2 s before the end, then waits for a realENDED.AD_BREAK_BEGIN/AD_BREAK_END(plus one main-queue hop for the connector's queued forwarding) instead of a fixed main-queue sentinel.1_234_567bps →1234kbps) instead of waiting for AVPlayer access logs; these use@_spi(Core) import THEOplayerSDK.Results
The Conviva suite passed 32/32 in 20 consecutive GitHub CI runs (THEOplayer SDK 11.16.0, Xcode 26.3, iPhone 17 / iOS 26.5), and again on this PR's latest commit.
cocoapods-validatepasses.build-and-testis still red because the Uplynk tests don't compile against SDK 11.16.0 (MockServerSideAdIntegrationControllerdoes not conform toCustomAdIntegrationController). This fails the same way onmainand is not touched by this PR.Known gap, not covered by a test: on HESP/THEOlive,
Conviva.streamUrlstays"unknown". It is captured on SOURCE_CHANGE, and the later CURRENT_SOURCE_CHANGE only updatesencoding_type.Link to Devin session: https://dolby.devinenterprise.com/sessions/50c8aced921146a9b29941f29ac495cd
Open in Devin Desktop: https://dolby.devinenterprise.com/desktop/session/50c8aced921146a9b29941f29ac495cd?variant=devin
Requested by: @ceyhun-o