Repository navigation
CI: the live job of the newest OBS Studio needs its PPA, and two live tests that it showed - #98
Merged
Merged
Conversation
…he PPA cannot be reached The job "Live tests (OBS Studio newest, Linux)" adds the PPA of the OBS project and installs obs-studio from it. When the runner cannot reach Launchpad (seen on 2026-11-11 in the run of pull request #95: "Network is unreachable" and "connection timed out" for ppa.launchpadcontent.net), apt-get update only warns about it and apt-get install takes what Ubuntu itself has: OBS Studio 30.0.2, with obs-websocket 5.3.4, which has no UUIDs. The job then ran its tests against that OBS Studio as the newest and failed in every test that needs UUIDs, with messages about the model that say nothing of the real cause. (The scheduled run opens an issue when a leg fails, and an issue that comes from this would send the reader to the wrong place.) The install step now tries the PPA up to 5 times (waiting 15, 30, 45 and 60 seconds between the tries), and counts it as added only when apt-cache policy shows a package of obs-studio from the PPA after apt-get update. When it never does, the step fails with an error that says that the PPA cannot be reached, before anything runs against the wrong OBS Studio. The leg that tests the OBS Studio of Ubuntu 24.04 is unchanged (apt-get update and the install). Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…s, and a test starts when OBS Studio has let go of what the one before it removed Two failures of the job of the newest OBS Studio (32.2.0, Linux) in the run of pull request #95, the first time that this job ran against the model: TheKindsOfInputsAndFilters_AndTheirDefaults_AreAskedFor asserted that no kind in the list without versions ends in _v and a number. OBS Studio 32.2.0 on Linux has "xshm_input_v2" in that list (the XSHM screen capture), so the rule is not one that OBS Studio keeps. The test compares the list of the model with the list that the plain client gets for unversioned = true, as it does for the versioned kinds and the filter kinds. AMediaInputWithAFileThatDoesNotExist_ShowsWhatObsStudioHolds_AndIsPlayedAllTheSame failed once (and passed in the two runs after it) with a model that showed the color input of the test before it ("The model shows the input 'obsclient-live-...-color', and OBS Studio does not list it", 20 seconds later). OBS Studio goes on listing an input that it removed for as long as it holds on to it (a frame, or until a transition that shows it has ended) and tells nothing when it lets go: a model that connects in that time has it for good. LiveSession.RemoveLeftoversAsync, which every live test calls when it connects and when it ends, only sent the removals. It now waits (3 seconds at most: for longer something else holds on to it, and waiting does not help) until the lists of inputs and scenes have nothing with the prefix of the live tests, so that the next model connects to an OBS Studio that has let go. What the model should do when it connects in that time is a question of its own. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the live OBS Studio workflow and test reliability changes.
No open issues 🎉
What changed in this PR
Improves the reliability of the live OBS Studio test workflow and addresses two failures exposed by recent model tests. No library code or public API changes.
Changes:
- Retries PPA setup and requires its OBS Studio package to appear in APT policy before proceeding with the newest-version job.
- Compares unversioned input kinds against OBS Studio’s response instead of assuming a naming pattern.
- Adds cleanup polling to give OBS Studio time to stop listing removed test resources.
| File | Description |
|---|---|
OBSClient.Tests/Live/LiveSettingsTests.cs |
Replaces the input-kind naming assertion with a direct response comparison. |
OBSClient.Tests/Live/LiveObs.cs |
Polls input and scene lists after cleanup until leftovers disappear or the polling deadline is reached. |
.github/workflows/live-obs.yml |
Adds PPA retries, package-source verification, and an explicit failure message. |
Review effort: Balanced
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The job "Live tests (OBS Studio newest, Linux)" ran against the model for the first time on pull requests #95 to #97, and showed three things. This fixes them. Nothing in the library changes.
ppa.launchpadcontent.net).apt-get updateonly warns about that,apt-get installtook the OBS Studio of Ubuntu (30.0.2, obs-websocket 5.3.4, no UUIDs), and the job tested that as the newest and failed with messages about the model that say nothing of the cause. The install step now tries the PPA up to 5 times, counts it as added only whenapt-cache policyshowsobs-studiofrom it, and otherwise fails with an error that says so. The leg of the OBS Studio of Ubuntu 24.04 is unchanged.TheKindsOfInputsAndFilters_AndTheirDefaults_AreAskedForasserted that no kind in the list without versions ends in_vand a number. OBS Studio 32.2.0 on Linux hasxshm_input_v2in it. The test compares the list of the model with the one that the plain client gets (unversioned = true), as it does for the other lists.AMediaInputWithAFileThatDoesNotExist_ShowsWhatObsStudioHolds_AndIsPlayedAllTheSamefailed once (and passed in the two runs after it): the model showed the color input of the test before it, and OBS Studio did not list it any more. OBS Studio goes on listing an input that it removed for as long as it holds on to it (a frame, or until a transition that shows it has ended) and says nothing when it lets go.LiveSession.RemoveLeftoversAsync, which every live test calls when it connects and when it ends, now waits (3 seconds at most) until the lists have nothing with the prefix of the live tests.What the model itself should do when it connects while OBS Studio still lists an input that it removed is a separate question, not answered here.
Related issue
None.
Checklist
README.mdif public API or behavior changed. (Neither changed.)dotnet test OBSClient.Tests/OBSClient.Tests.csprojpasses locally (any OS). On Windows,dotnet build OBSClient.slnalso builds the WinUI 3 test app (OBSClient.TestApp); it cannot be built on Linux or macOS. (The test project builds without warnings, and the live tests are skipped withoutOBS_LIVE_PORT; the WinUI 3 test app is built by the WinUI 3 job of CI.)