Repository navigation
libobs: characterize and extract shader sampler conversion - #1718
Conversation
|
Final-head CI run 39726429717: Fast Gate, formatting, validation and Tier 2 build passed. Hybrid Tier 2: 356/356 registry entries completed with no failures (environment-dependent skips remain). The new C-reference had one unrelated failure: |
|
Final-head CI is terminal. The aggregate gate failed solely on the C-reference portal-test alarm timeout described above; sampler characterization passed in both modes, and all other required lanes passed. PR remains draft. A maintainer needs to rerun failed C-reference job 119654556984 and watch the resulting required gate. No unrelated test/code change or additional push was made. |
2319a00 to
eebb004
Compare
|
On the maintainer’s explicit instruction, rebased the characterization commit onto current master 8c69615, replacing 2319a00 with eebb004 using an exact force-with-lease. Fresh run: https://github.com/obs-rust/obs-studio/actions/runs/39737568724 Waiting for the characterization CI gate to pass before beginning Rust RED → GREEN. The characterization assertions/public headers remain immutable. Before any GREEN push I will run the applicable local CI checks, with Linux validation in Docker; the PR stays draft until all required CI is green. |
|
Rebased characterization head eebb004 is fully green: https://github.com/obs-rust/obs-studio/actions/runs/39737568724 (CI Gate, Fast Gate, Linux Tier 2 build and complete C-reference/hybrid test jobs). Marked this C-only prerequisite ready. Proceeding with the separately auditable Rust RED → GREEN port in its own draft PR, initially stacked on this extraction. GREEN will not be pushed until the applicable local checks have passed, including Linux Docker validation. The Rust PR will remain draft until its final-head CI is green. |
Refs #1716; Phase 6 #444. This is the C-only extraction and characterization checkpoint; the Rust port follows separately.
What and why
Move
shader_sampler_convertverbatim fromshader-parser.c.hintoshader-sampler-convert.c.hin the same graphics unity group. Its signature, public headers, layouts and behavior are unchanged. No Rust, existing C test, PCH or workflow is changed.Add
test_shader_sampler_convertto the cmocka aggregate. Six groups call the real exported libobs function without a parser/device: default reset and unknown keys; every filter mode; each address axis and aliases; signed decimal anisotropy and partial parsing; hex border colors and skipped first character; all fields together and duplicate last-write precedence. Inputs avoid undefined or platform-dependent overflow. The test remains useful unchanged when Rust replaces the symbol.Characterization evidence
./lintwas attempted: unrelated macOS SDK compilation failures and host path/harness assertions prevent a local pass. No local-gate attestation claimed../unittest: all native workspace tests passed (2,021 tests plus doctests; one ignored). The umbrella script then stopped because soldr does not support Windows GNU cross-checks on this macOS host, before Tier 2. The direct full Linux Tier 2 build stopped after zccache connection losses/retry and unrelated WebSocket/frontend-header build failures. Reusing its completed final-head libraries through the repository Docker harness, the new test passes all six groups against BOTH C reference and hybrid; ldd confirms selection and dynamic exports are identical (1,766 symbols). This is focused coverage, not a full local-suite pass. PR CI supplies the full final-head result.RED → GREEN
Not applicable to this behavior-neutral C extraction/characterization checkpoint. The tests pass on original C; Rust RED and GREEN are a separate PR. No user-visible behavior or protocol change, so no feature-ledger entry or live-app run applies.
Checklist
Final-head CI outcome
Run https://github.com/obs-rust/obs-studio/actions/runs/39726429717 tested
2319a0001a3d653f89cc1934c50a3611ce7adc58to completion. Formatting, data validation, Fast Gate and Tier 2 build passed. Hybrid Tier 2 completed all 356 registered tests with no failures (environment-dependent skips remain). The new sampler characterization passed in BOTH modes.C-reference completed with one failure out of 356: unchanged
test_screencast_portal_teardownhit its 20-second alarm (signal 14, line 330). That test passed in hybrid CI in 1.75 seconds and then passed three consecutive local reproductions per library (six runs, 1.74–1.76 seconds). No portal code was changed. This evidence points to an intermittent test/environment timeout; it does not prove the portal test is defect-free.