Skip to content

4.x: Isolate Flowable observeOn race test - #8399

Merged
akarnokd merged 1 commit into
ReactiveX:4.xfrom
YuqiGuo105:test/issue-8075-observeon-isolation-local
Nov 20, 2026
Merged

akarnokd merged 1 commit into
ReactiveX:4.xfrom
YuqiGuo105:test/issue-8075-observeon-isolation-local

Conversation

@YuqiGuo105

Copy link
Copy Markdown
Contributor

Related to #8075. This is a partial, movement-only contribution to the tracking issue.

Changes

  • Move backFusedCancelConditional() from FlowableObserveOnTest into FlowableObserveOnIsolatedTest and annotate the new class with @Isolated.
  • Keep the existing method body, assertions, and 2,500-iteration race loop unchanged.
  • No production code changes or conversions of manual race tests.

Validation

Run locally with Temurin 26.0.2.1 on macOS arm64:

  • ./gradlew test --tests 'io.reactivex.rxjava4.internal.operators.*.*ObserveOn*Test' checkstyleTest: 133 tests, 0 failures/errors, 5 skipped inherited placeholder tests; Checkstyle passed.
  • ./gradlew test --tests 'io.reactivex.rxjava4.validators.*': 299 tests, 0 failures/errors, 27 skipped.
  • The two Flowable observeOn classes also passed with JUnit class-level parallel execution explicitly enabled in a single test JVM.
  • git diff --check passed.

The full repository test suite was not run.

AI assistance

Codex assisted with preparing the test move, running validation, and drafting this description.

@github-actions

Copy link
Copy Markdown

🐷 TruffleHog + Entropy Beauty Scan

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

Changed files entropy:

src/test/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableObserveOnIsolatedTest.java: 4.911
src/test/java/io/reactivex/rxjava4/internal/operators/flowable/FlowableObserveOnTest.java: 4.543

✅ No secrets or suspicious high-entropy strings found.

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

@codecov

codecov Bot commented Nov 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.58%. Comparing base (3b4ec53) to head (ef38f93).
⚠️ Report is 1 commits behind head on 4.x.

Additional details and impacted files
@@             Coverage Diff              @@
##                4.x    #8399      +/-   ##
============================================
- Coverage     98.61%   98.58%   -0.03%     
+ Complexity     7182     7180       -2     
============================================
  Files           826      826              
  Lines         51038    51038              
  Branches       6944     6944              
============================================
- Hits          50331    50317      -14     
- Misses          478      485       +7     
- Partials        229      236       +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 718db5d into ReactiveX:4.x Nov 20, 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