Skip to content

Code review sweep (run 25233765496)#18499

Merged
trask merged 7 commits into
mainfrom
otelbot/code-review-sweep-25233765496
May 2, 2026
Merged

Code review sweep (run 25233765496)#18499
trask merged 7 commits into
mainfrom
otelbot/code-review-sweep-25233765496

Conversation

@otelbot

@otelbot otelbot Bot commented May 1, 2026

Copy link
Copy Markdown
Contributor

Automated code review sweep walked the following modules in order
and stopped after accumulating at least 10 modified files:

  • rxjava-1.0:library
  • rxjava-2.0:javaagent
  • rxjava-2.0:library
  • rxjava-2.0:testing
  • rxjava-3.0:javaagent
  • rxjava-3.0:library
  • rxjava-3.1.1:javaagent
  • rxjava-3.1.1:library
  • rxjava-common-3.0:library
  • rxjava-common-3.0:testing
  • scala-fork-join-2.8:javaagent
  • servlet-2.2:javaagent
  • servlet-3.0:javaagent
  • servlet-3.0:javaagent-testing

Module: rxjava-1.0:library

Module path: instrumentation/rxjava/rxjava-1.0/library

Summary

No safe repository-guideline fixes were found in instrumentation/rxjava/rxjava-1.0/library; metadata.yaml has no config entries and no matching RxJava 1.0 config reads were found.

Applied Changes

No safe automated changes were applied.

Module: rxjava-2.0:javaagent

Module path: instrumentation/rxjava/rxjava-2.0/javaagent

Summary

No safe repository-guideline fixes were applied under instrumentation/rxjava/rxjava-2.0/javaagent; the module metadata config matches its DeclarativeConfigUtil usage, sibling testInstrumentation wiring is present, and reviewed source/test patterns did not expose deterministic issues to fix.

Applied Changes

No safe automated changes were applied.

Module: rxjava-2.0:library

Module path: instrumentation/rxjava/rxjava-2.0/library

Summary

No safe repository-guideline fixes were applied after reviewing instrumentation/rxjava/rxjava-2.0/library; the parent metadata.yaml entry also matches the required experimental /development mapping and observed code usage.

Applied Changes

No safe automated changes were applied.

Module: rxjava-2.0:testing

Module path: instrumentation/rxjava/rxjava-2.0/testing

Summary

Applied and committed one safe repository-guideline fix in rxjava-2.0 testing: RxJava2ConcurrencyTestHelper now preserves interrupted status before translating InterruptedException to IllegalStateException.

Applied Changes

General

File: RxJava2ConcurrencyTestHelper.java:42
Change: Added `Thread.currentThread().interrupt()` in the `InterruptedException` catch block before throwing `IllegalStateException`.
Reason: Repository general engineering correctness/reliability guidance requires preserving interrupt status when converting `InterruptedException` to an unchecked exception.

Module: rxjava-3.0:javaagent

Module path: instrumentation/rxjava/rxjava-3.0/javaagent

Summary

No safe repository-guideline fixes were applied under instrumentation/rxjava/rxjava-3.0/javaagent; reviewed source, tests, build.gradle.kts, sibling testInstrumentation wiring, and mandatory metadata.yaml config coverage with no actionable issues found.

Applied Changes

No safe automated changes were applied.

Module: rxjava-3.0:library

Module path: instrumentation/rxjava/rxjava-3.0/library

Summary

Applied safe test cleanup fixes for the rxjava-3.0 library and committed them in 9af3a1f0.

Applied Changes

Testing

File: RxJava3SubscriptionTest.java:32
Change: Added an `@AfterAll` `cleanup()` method that calls `tracingAssembly.disable()`.
Reason: Repository testing cleanup guidance requires test-owned global resources/hooks to be cleaned up; `TracingAssembly.enable()` installs global `RxJavaPlugins` hooks that should not leak after the test class.

File: RxJava3Test.java:31
Change: Added an `@AfterAll` `cleanup()` method that calls `tracingAssembly.disable()`.
Reason: Repository testing cleanup guidance requires test-owned global resources/hooks to be cleaned up; `TracingAssembly.enable()` installs global `RxJavaPlugins` hooks that should not leak after the test class.

Module: rxjava-3.1.1:javaagent

Module path: instrumentation/rxjava/rxjava-3.1.1/javaagent

Summary

Applied one safe repository-guideline fix and committed it in 630e4198.

Applied Changes

Build

File: build.gradle.kts:33
Change: Added `metadataConfig` to the `testExperimental` task for `otel.instrumentation.rxjava.experimental-span-attributes=true`.
Reason: `testing-experimental-flags.md` requires experimental test tasks to set both the JVM flag and matching `metadataConfig` so metadata/config validation exercises the flag-on path.

Module: rxjava-3.1.1:library

Module path: instrumentation/rxjava/rxjava-3.1.1/library

Summary

No safe repository-guideline fixes were found in instrumentation/rxjava/rxjava-3.1.1/library; no files were changed.

Applied Changes

No safe automated changes were applied.

Module: rxjava-common-3.0:library

Module path: instrumentation/rxjava/rxjava-common-3.0/library

Summary

Applied safe repository-guideline fixes in rxjava-common-3.0 library and committed them as 31af4b91.

Applied Changes

Style

File: TracingSingleObserver.java:47
Change: Removed the redundant `this.` qualifier from the `disposable` assignment in `onSubscribe()`.
Reason: The repository style guide follows Google Java Style; unnecessary qualifiers add noise when field access is unambiguous.

File: RxJava3AsyncOperationEndStrategyTest.java:930
Change: Restricted the test-only `CustomPublisher` helper class, its `subscriber` field, and non-override helper methods to `private`.
Reason: The repository style guide requires minimal necessary visibility; these test helper members are only used within the enclosing test scope.

Module: rxjava-common-3.0:testing

Module path: instrumentation/rxjava/rxjava-common-3.0/testing

Summary

Applied one safe review fix in rxjava-common-3.0 testing and committed it as 61dcf890.

Applied Changes

Testing

File: AbstractRxJava3Test.java:185
Change: Replaced broad AssertJ `contains(...)` result assertions with `containsExactly(...)` for deterministic RxJava sequence results.
Reason: The testing guideline prefers precise AssertJ collection assertions; `containsExactly(...)` verifies both expected values and no unexpected extra elements for deterministic ordered results.

Module: scala-fork-join-2.8:javaagent

Module path: instrumentation/scala-fork-join-2.8/javaagent

Summary

No safe repository-guideline fixes were applied; instrumentation/scala-fork-join-2.8/javaagent and its module metadata.yaml already conform to the reviewed rules.

Applied Changes

No safe automated changes were applied.

Module: servlet-2.2:javaagent

Module path: instrumentation/servlet/servlet-2.2/javaagent

Summary

No safe repository-guideline fixes were applied after reviewing instrumentation/servlet/servlet-2.2/javaagent and validating the module metadata.yaml against servlet config usage.

Applied Changes

No safe automated changes were applied.

Module: servlet-3.0:javaagent

Module path: instrumentation/servlet/servlet-3.0/javaagent

Summary

Applied a safe hot-path allocation fix in servlet-3.0 javaagent and committed it as 0c3730b8.

Applied Changes

Style

File: Servlet3Advice.java:82
Change: Replaced per-request `new Servlet3HttpServerResponseMutator()` with `Servlet3HttpServerResponseMutator.INSTANCE`.
Reason: Repository review guideline for stateless `HttpServerResponseMutator` implementations allows keeping a singleton on hot paths to avoid per-request allocation.

File: Servlet3HttpServerResponseMutator.java:13
Change: Added reusable `Servlet3HttpServerResponseMutator.INSTANCE`.
Reason: Repository review guideline for stateless `HttpServerResponseMutator` implementations allows singleton reuse when the mutator is used from a hot path.

Module: servlet-3.0:javaagent-testing

Module path: instrumentation/servlet/servlet-3.0/javaagent-testing

Summary

Applied one safe repository-guideline fix in servlet-3.0 javaagent-testing; one build/test-task guideline issue remains report-only.

Applied Changes

Style

File: HttpServletResponseTest.java:133
Change: Moved repeated `@SuppressWarnings("deprecation")` and `@SuppressWarnings("ReturnsNullCollection")` annotations in `TestResponse` to a single class-level `@SuppressWarnings({"deprecation", "ReturnsNullCollection"})` and removed redundant per-method comments/annotations.
Reason: Repository `@SuppressWarnings` guidance says to place a suppression on the class when two or more members in the class need the same suppression, while preserving accurate explanatory context.

Unresolved Items

File: build.gradle.kts
Reason: `otel.instrumentation.servlet.experimental.capture-request-parameters` is set unconditionally for all `Test` tasks, but the review workflow marks missing dedicated `testExperimental` task fixes as report-only rather than safe auto-fixes.


Download code review diagnostics

otelbot Bot added 7 commits May 1, 2026 21:58
Automated code review of instrumentation/rxjava/rxjava-2.0/testing.
Automated code review of instrumentation/rxjava/rxjava-3.0/library.
Automated code review of instrumentation/rxjava/rxjava-3.1.1/javaagent.
Automated code review of instrumentation/rxjava/rxjava-common-3.0/library.
Automated code review of instrumentation/rxjava/rxjava-common-3.0/testing.
Automated code review of instrumentation/servlet/servlet-3.0/javaagent.
Automated code review of instrumentation/servlet/servlet-3.0/javaagent-testing.
@otelbot otelbot Bot requested a review from a team as a code owner May 1, 2026 22:46
@trask trask enabled auto-merge (squash) May 1, 2026 23:11
@trask trask merged commit b69b7b3 into main May 2, 2026
350 of 356 checks passed
@trask trask deleted the otelbot/code-review-sweep-25233765496 branch May 2, 2026 03:59
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.

1 participant