Skip to content

test: Fix flaky test - #1240

Merged
szokeasaurusrex merged 2 commits into
masterfrom
szokeasaurusrex/split-flaky-tests
Jul 13, 2026
Merged

szokeasaurusrex merged 2 commits into
masterfrom
szokeasaurusrex/split-flaky-tests

Conversation

@szokeasaurusrex

@szokeasaurusrex szokeasaurusrex commented Jul 13, 2026 •

Copy link
Copy Markdown
Member

Split the await_cross_thread_guard tests into separate files. This should hopefully fix the flakiness in #1112 by isolating the tests.

Unfortunately, we also need to split the common helper functions into separate files to prevent dead code warnings. Cargo includes the helper modules separately in each test file, so even if a function is used in another test, if at least one test imports the module but does not use all of it, we get a warning. So, the helpers are split into separate files so that they can be imported only where needed.

Fixes #1112
Fixes RUST-210

Split the `await_cross_thread_guard` tests into separate files. This should hopefully fix the flakiness in #1112 by isolating the tests.

Fixes [#1112](#1112)
Fixes [RUST-210](https://linear.app/getsentry/issue/RUST-210/flaky-test-future-cross-thread-info-span)
@linear-code

linear-code Bot commented Jul 13, 2026

Copy link
Copy Markdown

RUST-210

@szokeasaurusrex
szokeasaurusrex marked this pull request as draft July 13, 2026 12:51
@szokeasaurusrex
szokeasaurusrex marked this pull request as ready for review July 13, 2026 13:06
@szokeasaurusrex
szokeasaurusrex merged commit 3b3a6ca into master Jul 13, 2026
30 checks passed
@szokeasaurusrex
szokeasaurusrex deleted the szokeasaurusrex/split-flaky-tests branch July 13, 2026 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flaky test: future_cross_thread_info_span

2 participants