Skip to content

[Rust] Fixes Rust runtime tests not running in CI#9167

Open
csmulhern wants to merge 2 commits into
google:masterfrom
csmulhern:testing
Open

[Rust] Fixes Rust runtime tests not running in CI#9167
csmulhern wants to merge 2 commits into
google:masterfrom
csmulhern:testing

Conversation

@csmulhern

Copy link
Copy Markdown
Contributor

This PR fixes the Rust test scripts (which are run in CI) so that they run tests for the runtime crates.

This PR does not address:

  1. Obvious drift between what's covered by RustTest.sh and what's covered by RustTest.bat.
  2. Existing deficiencies that were highlighted by enabling these tests.

For 2, there was an existing failure in flatbuffers::builder::tests::with_internal_capacity_preallocates_vecs. This test was broken by #8958, as the use of HashMap for the string pool means there are allocations for the keys even when reserving initial capacity. This is a design issue that should be addressed by the authors of #8936 and #8958.

cc @wlkrm @statxc

The immediate fix is to limit the test to no_std, where it still passes, as string pooling still uses a Vec in the no_std configuration.

@csmulhern csmulhern requested a review from dbaileychess as a code owner July 6, 2026 04:48
@github-actions github-actions Bot added the rust label Jul 6, 2026
@csmulhern

Copy link
Copy Markdown
Contributor Author

cc @jtdavis777

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant