Skip to content

CI: the live job of the newest OBS Studio needs its PPA, and two live tests that it showed - #98

Merged
tinodo merged 2 commits into
mainfrom
ci/live-obs-ppa
Nov 11, 2026
Merged

tinodo merged 2 commits into
mainfrom
ci/live-obs-ppa

Conversation

@tinodo

@tinodo tinodo commented Nov 11, 2026

Copy link
Copy Markdown
Owner

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.

  • The PPA. The runner could not reach Launchpad ("Network is unreachable", "connection timed out" for ppa.launchpadcontent.net). apt-get update only warns about that, apt-get install took 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 when apt-cache policy shows obs-studio from it, and otherwise fails with an error that says so. The leg of the OBS Studio of Ubuntu 24.04 is unchanged.
  • A rule that OBS Studio does not keep. 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 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.
  • A test that starts too early. AMediaInputWithAFileThatDoesNotExist_ShowsWhatObsStudioHolds_AndIsPlayedAllTheSame failed 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

  • I followed the existing code style and patterns in neighboring files.
  • I added/updated XML doc comments for public API changes. (No public API changes.)
  • I added tests covering this change (or explained why none are needed). (The change is to the live tests and their workflow; the two legs of that workflow run on this pull request.)
  • I updated README.md if public API or behavior changed. (Neither changed.)
  • dotnet test OBSClient.Tests/OBSClient.Tests.csproj passes locally (any OS). On Windows, dotnet build OBSClient.sln also 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 without OBS_LIVE_PORT; the WinUI 3 test app is built by the WinUI 3 job of CI.)

tinodo and others added 2 commits November 11, 2026 19:12
…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>
Copilot AI balanced review requested due to automatic review settings November 11, 2026 18:19

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 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

@tinodo
tinodo merged commit edaf54b into main Nov 11, 2026
12 checks passed
@tinodo
tinodo deleted the ci/live-obs-ppa branch November 11, 2026 18:53
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.

2 participants