Skip to content

ci: diagnose intermittent obs_startup=false in Tier 2 test setup #1355

Closed

Description

@zackees

Observed failures

Full manual validation 39074304012 on master d315ee9:

  • Linux OFF job 117519170001: test_slideshow_empty GROUP SETUP failed at test_slideshow_empty.c:142 because obs_startup returned false.
  • 291 registered CTest tests, one failed; CTest 308.10 s. ON passed. All native app builds passed; overall workflow remained red.
  • Earlier PR ci: isolate deinterlace timing test without relaxing assertions #1343 ON job 117510537331: test_video_io group setup assigned obs_up=false, leading to 11 failed cases. A single job retry passed, but the cause was not established.

Raw logs are retained in build_ci_audit/full-validation-linux-off-failure.log and 1343-pr-linux-on-failure.log. Refs #1286.

Important diagnostic correction

The informational line Unable to open X display is NOT sufficient evidence of an Xvfb outage. libobs/obs-nix-x11.c.h emits it when obs_get_nix_platform_display() is NULL; that is also seen in passing cmocka tests. The earlier source-based correction on #838 documents this. Initial attribution of the #1343 failure to display infrastructure was too strong and has been corrected on the PR.

Source findings

obs_startup delegates to obs_init, which can fail at data/handler/hotkey initialization, main-canvas creation or destruction task-queue creation. Several paths return false without identifying the failed stage. The existing logs do not distinguish those paths. test_slideshow_empty launches via its own xvfb-run wrapper inside the outer xvfb-run ctest harness, but a startup-number race is only a hypothesis, not a demonstrated cause.

Fix checklist

  • Identify the first failing initializer, with focused failure diagnostics or tracing.
  • Capture relevant errno/resource state where applicable; distinguish real display-connect failure from the informational platform-display message.
  • Reproduce with unchanged C tests and the current OFF/ON harness, including parallel load.
  • Fix the demonstrated product/harness cause without relaxing assertions, suppressing startup failure, adding silent retries or dropping coverage.
  • Verify fresh PR/queue OFF/ON runs and report sample counts, registered/passed/skipped tests and runtime.
  • Preserve the diagnostic caveat in CI troubleshooting guidance.

Decisions

Keep separate from #456 deinterlace scheduling and the real-time audio assertions in #838. A retry passing does not establish an infrastructure cause. Do not rerun the whole workflow merely to obtain green; a later planned cache-consumer measurement is a separate experiment. No production code or existing C tests have been changed for this investigation.

Activity

  1. zackees commented on Oct 17, 2026

    @zackees
    MemberAuthor

    This now blocks the cache availability fix #1362. Updated PR run 39077243497, ON job 117528436914, failed only test_slideshow_empty group setup at C line 142: obs_startup("en-US", NULL, NULL) false. 292 registered tests, one failure. OFF and the build passed; the new daemon recovery was not invoked in that build. No rerun performed because the startup failure cause remains unknown.

    The new failure again has system-info output followed directly by cleanup, without an initializer-specific diagnostic. obs_init_data, handlers, hotkeys, main-canvas creation or destruction-task queue creation can still return false without identifying the failed stage. X11 hotkey initialization separately calls XOpenDisplay(NULL) and can return false; the earlier informational display message still does not establish that it was the failing call. Next evidence should identify the first failed initializer and its concrete resource/error return, rather than assuming display or memory exhaustion.

  2. zackees commented on Oct 17, 2026

    @zackees
    MemberAuthor

    Claiming: identify the first failing obs_startup initializer blocking #1362/#1286. Plan: read the startup/platform paths and repository testing/build rules; add focused fault-injection coverage before failure diagnostics; preserve existing C tests and startup return behavior; reproduce under the same Linux test environment before assigning a cause. No speculative Xvfb fix or test retry policy change.

  3. added
    claimed
    on Oct 17, 2026
  4. zackees commented on Oct 17, 2026

    @zackees
    MemberAuthor

    Read-only diagnosis update: the existing CMake wrappers already reuse the parent CTest X display (the fix predates this incident), so nested per-test xvfb-run was not established as the cause. I ran an isolated real-Xlib connection-churn probe in the existing Linux image, comparing default Xvfb reset behavior with -noreset: 8 workers × 200 opens = 1,600 opens per mode; zero failures in both. This did not reproduce the incident, and no Xvfb option change is justified from it. The probe lacks CI's exact Xauthority and CTest process pattern and does not rule out display lifecycle causes. Source, logs and JSON remain under ignored build_ci_audit/x11-reset-probe/.

    #1365 adds locally RED/GREEN-tested startup stage diagnostics. Its GREEN CI run 39078678303 is still active; no original initializer cause is claimed.

  5. zackees commented on Oct 17, 2026

    @zackees
    MemberAuthor

    The real OBS workload now reproduces the startup failure, although the earlier Xlib-only probe did not.

    Using the existing unchanged slideshow test binary with locally rebuilt diagnostic C libobs and one authenticated shared xvfb-run server: 8 workers, up to 20 invocations each, stopping a worker on its first failure. Default server behavior produced 6 failed invocations among 68 attempts / 816 startup groups. The new diagnostics explicitly report XOpenDisplay failed during hotkey initialization followed by obs_startup: obs_init_hotkeys failed.

    Changing only Xvfb's -noreset option passed 160/160 invocations / 1,920 startup groups. Screen geometry matched the image's default 1280x1024x24. No existing test assertions changed and no failed test was retried into success. #1365 now adds that lifetime policy to normal and repeated Tier 2 runs, a shell-invocation regression test preserving exit-17 propagation, and captured results at docs/ci-evidence/2026-10-17-startup-xvfb-lifetime.json.

    Fresh full OFF/ON CI run 39079278293 is active. This establishes a local failing initializer and tested local fix; it does not yet prove that every historical CI startup failure has that cause or satisfy fresh queue validation. Keep this issue open pending those results.

  6. zackees commented on Oct 18, 2026

    @zackees
    MemberAuthor

    Verified the merged #1365 fix through full manual run 39082733551, revision 2f9bf8d77f4c82dd7f8b4af653aee8f3a4a647d2: overall success, all seven native app builds passed. Linux OFF/ON each registered 295 tests with zero failures; CTest 302.01 / 308.84 s. The startup-failure diagnostic and slideshow tests passed in both modes, with the three existing PulseAudio device skips per mode.

    Together with the recorded local default-Xvfb reproduction (6 failures/68 invocations) versus -noreset treatment (0/160), successful PR, queue and master runs, this verifies the scoped startup fix. No existing test assertion was relaxed. It does not establish that every historical startup failure shared the same cause; the independent recording-wait race remains tracked under #1283.

    Closing this diagnosed startup incident. Raw full-run results are committed on the #1286 post-rollout evidence branch for the next consolidated report update.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    claimed

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions