Repository navigation
Description
Context
Windows Tier 2 again fails to link cm_print_error, now from check_plan in test/cmocka/test_video_output_plan.c. #1714 introduced the test in merge 07988d66ac7ae5dcd7b01541f12769ac5d12441c. Its fail_msg calls are at lines 220, 416 and 444. This blocks unrelated workers using the same master; multiple sightings do not establish multiple independent defects or identify particular agent sessions.
Observed before CTest execution in two independently selected full experiments:
test_video_output_plan.obj : error LNK2019: unresolved external symbol cm_print_error referenced in function check_plan
...test_video_output_plan.exe : fatal error LNK1120: 1 unresolved externals
The immediate test repair is already reported to the existing owner in #1713. This issue tracks why an already known compatibility pattern escaped prevention, rather than claiming a parallel implementation.
Why it was missed (verified)
- Windows Tier 2: output delay e2e test fails to link cm_print_error #1580 / test: make output-delay failure diagnostics link on Windows #1591 repaired this same Windows diagnostic-symbol contract in another test,
test_output_delay_e2e.c. Its focused regressionci/test_output_delay_diagnostics.pyhardcodes that single source (SOURCE, line 16). Its private-printer check cannot catch a new file usingfail_msg. ci/ci_scope.pyintentionally selects Linux Tier 2 for ordinary shared C tests.SHARED_TESTandis_shared()escalate C++ test sources/registrations, not ordinary.ctests such as this one. Thus this portable-looking C addition did not select Windows native linking.- #1714 PR checks, run 39723279732 passed Linux Tier 2 and Fast Gate, while native platform Tier 2 was skipped. The merge-group checks, run 39725021475, also passed their gate with native Tier 2 skipped. Green was therefore not Windows-link evidence.
- libobs: Move the video output conversion plan into obs-video-plan.c #1714's description explicitly says Windows/macOS were not built locally, but also asserts the new portable C test builds everywhere. That assertion was not established by the listed validation. Linux success and lack of platform conditionals do not prove Windows library-export compatibility.
The evidence establishes a narrowly scoped regression guard plus intentionally deferred platform coverage. It does not establish which agent read or forgot #1580, nor a fresh root-cause analysis of the installed cmocka header/import-library provenance. Avoid attributing intentions or claiming all cmocka versions fail.
Proposal
Keep the immediate diagnostic repair with #1713's current owner. Assess the cheapest temporary prevention for remaining C/cmocka tests: brief contributor guidance and/or extend an existing Fast Gate source check to detect this known unsupported diagnostic dependency in applicable test sources. Prefer no new compiler invocation or test binary. Retain useful diagnostics and all assertions.
Do not enable broad/full Windows jobs on every PR. Changing native lane scope is not the default remedy; any such proposal must justify measured incremental cost and coverage. No new workflow files.
Acceptance criteria
- Record focused RED evidence that the existing single-file guard misses the new
fail_msgoccurrence; if a guard is adopted, demonstrate RED → GREEN including a new-source regression fixture and a valid portable diagnostic path. - Record the immediate repair's PR and actual Windows link/Tier 2 evidence through the existing rust: Port the video output conversion plan in obs.c to obs-core #1713 ownership. Preserve assertion conditions, case registrations, diagnostic arguments and required C/hybrid compatibility coverage; do not change public C headers to accommodate a port.
- Decide and document whether guidance alone or a bounded existing-check guard is proportionate to the remaining C/cmocka lifetime. No additional persistent test executables or workflow jobs without measured justification.
- If adding a check, measure its incremental runtime in the existing Fast Gate, document its limited coverage (not general Windows portability proof), and specify retirement when the applicable C/cmocka test dependency is removed. Do not port existing C tests merely to eliminate this failure.
- Update contributor/review guidance to distinguish scoped green checks from native link proof; link the known safe diagnostic pattern and its compatibility limitation.
Decisions
- Treat as a temporary C/cmocka compatibility/prevention gap, not permanent migration infrastructure: Rust migration may remove the dependency, but current C compatibility coverage remains mandatory.
- Keep the immediate source repair with the fresh rust: Port the video output conversion plan in obs.c to obs-core #1713 owner to avoid two agents implementing the same fix.
- Prefer a cheap existing-check guard or scoped guidance over extra Windows execution: preserving CI performance is an explicit maintainer constraint.
- Keep Windows Tier 2: output delay e2e test fails to link cm_print_error #1580 closed: its original output-delay test repair was completed and verified; this is a later different source plus a prevention gap.
Open questions
- What is the remaining lifetime of this diagnostic dependency, and is guidance alone sufficient relative to the measured cost of a source guard?
- If a broader dependency repair is preferred, establish exact header/import-library provenance first; the observed unresolved symbol alone does not prove the complete upstream packaging cause.
Related issues
#1580 and #1591 (prior same-symbol repair); #1713 and #1714 (current source and existing ownership).
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
docs: cmocka fail_msg Windows rule and scoped-green caveat (obs-rust#…