Skip to content

test/cmocka: Batch six characterization tests before their ports - #2508

Merged
zackees merged 3 commits into
masterfrom
test/characterize-batch-1
Oct 26, 2026
Merged

zackees merged 3 commits into
masterfrom
test/characterize-batch-1

Conversation

@zackees

@zackees zackees commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

Collects the build invalidation from characterization tests into one PR instead of one per unit.

New cmocka tests (characterized, not endorsed; no Rust): obs-data, hotkey getters (isolated core), core info, platform fs, encoder/output getters, scene/canvas/transition getters.

Local Tier 2 (ci/local_gate.py --lane tier2-linux): 561/561 passed against both hybrid libobs and the C reference; ./lint clean.

@zackees
zackees enabled auto-merge October 26, 2026 17:11
@zackees

zackees commented Oct 26, 2026

Copy link
Copy Markdown
Member Author

Coordinator review: six new characterization tests for units that will be ported, Tier 2 only, marked 'characterized, not endorsed', with no Rust and no product code. Batching them saves five build invalidations. No existing test is touched, and local Tier 2 passed 561/561 on hybrid and the C reference. Queuing; it merges when CI is green.

@zackees

zackees commented Oct 26, 2026

Copy link
Copy Markdown
Member Author

Fast Gate fails within a minute (job 121725689370). The log isn't out until the run finishes, but a failure that early on about 2,800 new C lines is usually clang-format. Running ./lint --fix locally should clear it. I'll recheck next tick.

@zackees

zackees commented Oct 26, 2026

Copy link
Copy Markdown
Member Author

Confirmed: Fast Gate is clang-format, -Wclang-format-violations in test_encoder_output_getters_characterization.c:461 and test_hotkey_getters_characterization.c:191-193, and more. ./lint --fix and a push will clear it.

@zackees

zackees commented Oct 26, 2026

Copy link
Copy Markdown
Member Author

I pushed a fixup: with clang-format 22.1.3 applied to the three test files the Fast Gate flagged. It's formatting only, and no assertion changed.

Pins current C behavior for obs-data, hotkey getters, core info, platform fs,
encoder/output getters and scene/canvas/transition getters in one PR, so the
build invalidation they cause lands once instead of per unit.
@zackees
zackees force-pushed the test/characterize-batch-1 branch from da0c128 to 66850d8 Compare October 26, 2026 19:23
@zackees
zackees added this pull request to the merge queue Oct 26, 2026
Merged via the queue into master with commit e5d555f Oct 26, 2026
36 checks passed
@zackees
zackees deleted the test/characterize-batch-1 branch October 26, 2026 20:02
zackees added a commit that referenced this pull request Oct 26, 2026
… path

#2508's test_find_data_file expected NULL for a missing file. On macOS,
find_libobs_data_file (libobs/obs-cocoa.m.h) returns the framework's
Resources path without checking it, so the case failed on macos-26
(test_obs_core_info_characterization.c:154). Record that and skip the
data-path checks there.
zackees added a commit to rdoupe/obs-studio that referenced this pull request Oct 26, 2026
…st#2534)

* test/cmocka: Skip test_graphics_state_stacks_rust on MSVC (LNK2005)

* test/cmocka: Characterize obs_find_data_file's unchecked macOS bundle path

obs-rust#2508's test_find_data_file expected NULL for a missing file. On macOS,
find_libobs_data_file (libobs/obs-cocoa.m.h) returns the framework's
Resources path without checking it, so the case failed on macos-26
(test_obs_core_info_characterization.c:154). Record that and skip the
data-path checks there.

* fixup: keep the plain if(TARGET libobs_rust-static) guard

ci/test_cmocka_rust_static_guard.py recognizes only that form.
@obs-rust-project-manager obs-rust-project-manager Bot moved this from Needs fix to Done in obs-rust Multiview Oct 26, 2026
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