Repository navigation
Conversation
nathan-v
marked this pull request as ready for review
October 22, 2026 19:13
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1499
What and why
Replace
libobs/util/cf-lexer.c.hin production with the safeobs-util::cf_preprocessorcore and C ABI adapters. Preserve the public headers, five exported entry points, struct layouts, token provenance, directive whitespace, duplicate-definition behavior, macro argument diagnostics, root-relative includes, and depth-first dependency order. The C implementation remains in the C-reference unity group and the independent oracle; existing C tests are unchanged. The declaration oracle shares that original C preprocessor rather than compiling it twice. Tests extend the existing Utilities category binary.The C characterization landed in #1502. Defined behavior is preserved; C undefined behavior has explicit boundaries recorded in the issue decision, the parity test header, and
rust/README.md: Rust stops at the valid terminator for an unterminated macro invocation, treats empty includes as empty streams, and retains live dependency lexer provenance. Recursive cycles and the C cursor/provenance overruns are outside terminating differential parity. No protocol or intended user-facing behavior change; Tier 4 does not apply.RED → GREEN
6aa48fda3.SOLDR_RUSTC_WRAPPER=none soldr cargo test -p obs-util cf_preprocessor --libfailed all 51 characterization mirrors at thetodo!()stub (0 passed). This was pushed and opened as the draft checkpoint before GREEN.2e711430e(core compatibility fixes7af3580c2; initial implementationc59e886a5). Focused tests: 68 passed, including original C-test mirrors, real-header layouts, public definition lifecycle, file includes/dependency order, 256-case arbitrary-byte parity, generated conditional/macro parity, numeric and defined unterminated directives, and separate guards for C-undefined inputs.b836f17c7fails C parity for whitespace before a macro call. Hosted Linux Fast Gate atc1a377e3calso exposed host scanf differences for incomplete0x. GREEN7af3580c2preserves C's non-skipping macro cursor and probes only bounded constant literals through the existing CRT platform boundary; numeric parsing and its host grammar choices remain in the safe core. The final workspace and native Tier 2 suites were rerun before pushing this fix.2e711430euses a direct CRTsscanfdeclaration to match C inline linkage and avoid LNK4217 against libcaption. Include fixtures use forward-slash source paths, as the original C root-relative include code requires, and explicitly assert that files were loaded. All 68 focused tests and local Fast Gate lint passed before this push; hosted Windows verification remains mandatory.==to!=;cf_preprocessor_generated_directivesfailed against the C oracle. Correct code restored.Local CI before the GREEN push
soldr cargo test --workspace --locked: 2,247 passed, 1 ignored, plus passing doctests. All 68 focused tests and Fast Gate lint also passed before the final compatibility-fix push.OBS_GATE_SKIP_SELF_TEST=1 ./lint: passed, including formatters, warnings-denied Clippy and Dylints. This is the PR Fast Gate mode; the separate Checks job runs the Python self-tests.test_svt_av1skips in both modes. Only the local build used/tmp/obs1499-local-ci.xcconfig(ENABLE_HARDENED_RUNTIME=NO) to permit Homebrew cmocka loading; no signing-policy change is committed. The stock script'sDYLD_PRINT_LIBRARIES | grep -qprobe gives a false negative under pipefail; recording the full loader output verifies the requested framework and avoids SIGPIPE.Local environment limits, not claimed as passes:
./lintPython self-tests fail in 13 files on this macOS host; the same failures reproduce on untouched master29722decc. No unrelated fixes are included../unittestpasses the native workspace tests, then its Windows-GNU compile check is unsupported by soldr on Apple Silicon.obs-data/src/json_decref.cbecause the Windows C SDK'sstdio.his unavailable.Hosted CI
Final head
2e711430ec8abcc914ca7bd59257717f5df967a6: workflow 39834451796 completed successfully before readiness. CI Gate ✅ passed. Verified successful Fast Gate, Python/data checks, Linux Tier 2 build and OFF/ON suites, Windows/macOS Rust tests, Windows/macOS native Tier 2, and Windows/macOS cross lint. The PR is mergeable.GitHub's Linux aggregate check API retains
status=in_progressalongsideconclusion=successandcompleted_at=2026-10-22T18:58:21Z. Both underlying Linux suites, the completed workflow and the required gate are successful; no failed or cancelled selected validation is treated as a pass.Checklist
master; claim and collision checks completed