Skip to content

Move three race tests into @Isolated classes (#8075) - #8408

Merged
akarnokd merged 1 commit into
ReactiveX:4.xfrom
Sakibpedia:isolate-race-tests-batch
Nov 30, 2026
Merged

akarnokd merged 1 commit into
ReactiveX:4.xfrom
Sakibpedia:isolate-race-tests-batch

Conversation

@Sakibpedia

@Sakibpedia Sakibpedia commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Movements-only batch for the race test isolation work in #8075.

Moved three TestHelper.race tests into separate @Isolated classes, using the <Original>IsolatedTest naming convention:

  • ExceptionHelperTest.addRace -> ExceptionHelperIsolatedTest.addRace
  • CachedSchedulerInternalTest.expireReuseRace -> CachedSchedulerInternalIsolatedTest.expireReuseRace
  • FlowableScalarXMapTest.scalarDisposableRunDisposeRace -> FlowableScalarXMapIsolatedTest.scalarDisposableRunDisposeRace

The race tests themselves are unchanged; only their location and the @Isolated annotation differ. No conversions or other refactorings are included.

Verification: ./gradlew test passes for all six affected test classes (the three new isolated classes and the three trimmed originals).

@akarnokd akarnokd added this to the 4.0 milestone Nov 30, 2026
@github-actions

Copy link
Copy Markdown

🐷 TruffleHog + Entropy Beauty Scan

Average entropy of changed code: 4.881 bits/char
Verdict: ⚠️ Consider review — entropy outside sweet spot

Changed files entropy:

src/test/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableScalarXMapIsolatedTest.java: 4.966
src/test/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableScalarXMapTest.java: 4.780
src/test/java/io/reactivex/rxjava4/internal/schedulers/CachedSchedulerInternalIsolatedTest.java: 4.923
src/test/java/io/reactivex/rxjava4/internal/schedulers/CachedSchedulerInternalTest.java: 4.840
src/test/java/io/reactivex/rxjava4/internal/util/ExceptionHelperIsolatedTest.java: 4.950
src/test/java/io/reactivex/rxjava4/internal/util/ExceptionHelperTest.java: 4.824

✅ No secrets or suspicious high-entropy strings found.

Mid-4 beauty heuristic in action — powered by our entropy chats! 😊

@codecov

codecov Bot commented Nov 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.65%. Comparing base (68696e5) to head (1942a2f).
⚠️ Report is 2 commits behind head on 4.x.

Additional details and impacted files
@@             Coverage Diff              @@
##                4.x    #8408      +/-   ##
============================================
+ Coverage     98.62%   98.65%   +0.02%     
- Complexity     7183     7185       +2     
============================================
  Files           826      826              
  Lines         51055    51055              
  Branches       6951     6951              
============================================
+ Hits          50355    50367      +12     
+ Misses          474      469       -5     
+ Partials        226      219       -7     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@akarnokd
akarnokd merged commit d84f22a into ReactiveX:4.x Nov 30, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants