Skip to content

Fix visibility for RPC#129

Merged
stephen-derosa merged 1 commit into
livekit:mainfrom
stephen-derosa:sderosa/bugfix/BOT-360-fix-rpc-vis
May 14, 2026
Merged

Fix visibility for RPC#129
stephen-derosa merged 1 commit into
livekit:mainfrom
stephen-derosa:sderosa/bugfix/BOT-360-fix-rpc-vis

Conversation

@stephen-derosa
Copy link
Copy Markdown
Collaborator

@stephen-derosa stephen-derosa commented May 14, 2026

@alan-george-lk summary of what's going on here:

  • The RPC integration tests ensure a livekit::RpcError was caught in an error-condition test. This error extends std::runtime_error
  • These tests were not enabled on Mac due to performance issues (speculative) with Mac GHA runners
    • This was missed during the initial visibility PR due to this
  • Mac's .dylib type info behavior is different than on Linux, which does run and pass these integration tests
  • Adjusting the visibility controls to default when not just building the livekit SDK (internal to the SDK build itself, not consumers or unit tests) fixes this visibility issue on the livekit::RpcError type so it can be correctly caught (on Mac)

This likely would have popped up in other ways as consumers used the SDK and wanted to inherit from our types (on Mac).

@stephen-derosa stephen-derosa self-assigned this May 14, 2026
@stephen-derosa stephen-derosa added the bug Something isn't working label May 14, 2026
Comment thread include/livekit/rpc_error.h Outdated
@stephen-derosa stephen-derosa force-pushed the sderosa/bugfix/BOT-360-fix-rpc-vis branch 2 times, most recently from 9904d26 to e89a358 Compare May 14, 2026 17:47
@stephen-derosa stephen-derosa force-pushed the sderosa/bugfix/BOT-360-fix-rpc-vis branch from e89a358 to 973a8b9 Compare May 14, 2026 18:03
Copy link
Copy Markdown
Collaborator

@alan-george-lk alan-george-lk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved, thanks. If we run into future issues I think we can verbatim use the one here (with our own LIVEKIT_API labels): https://gcc.gnu.org/wiki/Visibility

But for now this generally matches what we want.

@stephen-derosa stephen-derosa merged commit 6a133e9 into livekit:main May 14, 2026
37 of 39 checks passed
@stephen-derosa stephen-derosa deleted the sderosa/bugfix/BOT-360-fix-rpc-vis branch May 14, 2026 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants