Repository navigation
ci: Keep mirrored hidden-symbol list changes on Linux - #2292
Merged
Merged
Conversation
…ows job (RED) Refs #2288
A port hides its non-EXPORT shims by adding one name to rust-hidden.txt, rust-exports.map (local:) and rust-unexports-macos.txt. Windows reads none of these, macOS already lists names it lacks, and rust/obs-util's export_list test checks on Linux that the three agree. When the three add or drop the same plain names and nothing else changes, they no longer start the macOS and Windows lanes. Wildcards, sections and exported fragments (rust-exports.d) stay shared. Refs #2288
This was referenced Oct 25, 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 #2288
Why
Between 2026-10-17 and 2026-10-24, 98 of 123 merged port PRs started the macOS and Windows lanes, about 9–10 min each in the merge queue. The main reason is that each port edits
libobs/cmake/rust-hidden.txt,rust-exports.mapandrust-unexports-macos.txtto hide its non-EXPORT shims. All oflibobs/cmake/counts as shared.Those three files list one inventory of hidden symbols, written once per linker:
rust-exports.d/only.-unexported_symbols_list, and that list already contains Linux-only names (_dbus_*,_portal_*). An extra name is harmless there.rust/obs-util/tests/platform/export_list.rsfails when a hidden name is missing from the map'slocal:section or from the macOS list.Change
ci_scope.pycompares the three lists against the merge base. If they add or drop the same plain names and nothing else changes, they no longer select macOS or Windows. Comments may change too.These still count as shared and start every platform:
_ZN*,_R*);global:or section edit;rust-exports.d/fragments, which do change the Windows exports;libobs/cmakefile.Nightly and release runs still build every platform.
Evidence
ci: Test that a mirrored…):ci/test_hidden_symbol_scope.pyfails 3 of its 7 tests against the stub.test_ci_scopeandtest_master_push_scopeare unchanged and still pass.build.rs,platform/mod.rs, C++ tests)../lint: one unrelated local failure.test_local_gate_probefails because of a soldr broker version mismatch on this machine.