Skip to content

test: run the screencast portal teardown test verbosely (#2099 diagnostics) - #2123

Merged
zackees merged 1 commit into
masterfrom
fix/2099-portal-teardown-diagnostics
Oct 24, 2026
Merged

zackees merged 1 commit into
masterfrom
fix/2099-portal-teardown-diagnostics

Conversation

@zackees

@zackees zackees commented Oct 24, 2026

Copy link
Copy Markdown
Member

Refs #2099.

test_screencast_portal_teardown hung to its 20 s alarm once in a merge-queue run (40076937467, Tier 2 ON). The child printed nothing before the alarm, so there is no clue where it waited.

Reproduction attempts, all passing:

  • 100 runs, idle machine (run.sh --repeat 50, both builds): max 1.95 s.
  • 400 runs under CPU load (10 busy processes on a 16-core host, --repeat 200, both builds): every run 1.88-1.89 s.

The timing is flat, so this is not a slow wait that load stretches, but a rare race that gets stuck (bus/portal setup, the destroy path, or shutdown).

Change: the test's registration (tests.d, not the C test, which stays unchanged) sets PORTAL_TEST_VERBOSE=1, an option the test already has: it prints every libobs log line to stderr, and ctest shows it on failure. The next hang shows the last step reached, or, with no lines at all, that it stuck before obs_startup() (D-Bus or X setup). Passing runs only add output to the ctest log.

No RED applies (diagnostics only, no behavior change). Tier 2 runs on this PR and shows the test still passes with the variable set. ./lint passes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant