Repository navigation
build: keep the shared per-port lists sorted, one entry per line - #2010
Merged
Merged
Conversation
This was referenced Oct 24, 2026
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.
Refs #1997 (part 3; part 2, per-unit fragments, stays open).
Ports that append at the end of the same list collide at the same hunk and get ejected from the merge queue. These lists are now sorted, so each new entry lands at its own place, and a ci test keeps them sorted.
Sorted (order is not semantic, checked consumer by consumer):
test/cmocka/build/test-graph.jsontargetsandtests. obs-build deserializes both intoBTreeMaps, so it already ran them sorted. CMake (native-test-graph.cmake) defines each target on its own, and no target references another graph target. No generator writes this file.json.dumps(indent=2)round-trips it byte for byte.libobs/build/source-sets.json, every*_PORTED_SOURCESlist. Each entry is a unity group with its own translation unit, all C or a single ObjC group, with no constructors in libobs.LIBOBS_SOURCESand the host*_SOURCESlists are not per-port appends, so they keep upstream order.rust/obs-c-oracle/benches/port_comparison.rs, the<unit>::benchmarks(criterion);calls. Themodlines were already sorted. Each unit's benchmarks stand alone, with no shared startup or shutdown.ci/test_ported_sources.py. The per-portassertInruns became sorted tables (PORTED_ON_EVERY_HOST,PORTED_ON_LINUX,NOT_PORTED), checked by a loop. Every assertion is kept: 18 objects on linux, windows and macos, 3 on linux, and 7 not ported. Host and feature special cases stay as they were.Skipped:
rust/README.md. Its table is a grouped crate overview, not a per-port append list.RED c78bc4b: new
ci/test_sorted_shared_lists.py, picked up automatically by theci/test_*.pyglob. It failed with 3 failures and 1 error: test-graph, source-sets and benchmark calls were unsorted, and the tables did not exist yet.GREEN fd2c2e6 passes:
test_ported_sources,test_cmocka_mbedtls_graph,test_cmocka_windows_diagnostics,test_rust_scope,test_tier2_concurrencyandtest_perf_guard_lint;native_build::native_test_graph*tests (soldr cargo test -p obs-studio-rust --test obs-tests-app);soldr cargo bench -p obs-c-oracle --bench port_comparison --no-run;./lint.No user-visible change, so no features.md line.