Repository navigation
test: keep the cmocka test graph in name order (Refs #1997) - #2011
Merged
Merged
Conversation
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, test graph)
Every port adds a cmocka test to
test/cmocka/build/test-graph.json, appending it at the end of thetargetsandtestsmaps. Two open PRs that each add a test then edit the same hunk, and the second is ejected from the merge queue (#1929 vs #1934). Kept in name order, independent additions land in different places.ci/test_test_graph_sorted.py(auto-discovered by./lint) fails on master, because both maps are in insertion order.uv run ci/test_test_graph_sorted.py --fix. Only the order changes: 2245 lines moved, the content is identical, and the other top-level keys and the formatting (2-space JSON, as the file already used) are unchanged.Readers don't depend on the order. obs-build loads both maps into a
BTreeMap, and CMake and theci/tests look tests up by name. Checked locally:soldr cargo test -p obs-studio-rust --test obs-tests-app native_buildpasses (35 tests);ci/test_cmocka_mbedtls_graph.py,test_cmocka_windows_diagnostics.py,test_rust_scope.pyandtest_tier2_concurrency.pyall pass;./lintis clean.Open PRs that add a test-graph entry will need a rebase once this lands;
--fixre-sorts after resolving.