Code review sweep (run 24947827165)#18305
Merged
Merged
Conversation
Automated code review of instrumentation/aws-sdk/aws-sdk-1.11/library-autoconfigure.
Automated code review of instrumentation/aws-sdk/aws-sdk-1.11/testing.
trask
approved these changes
Apr 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automated code review sweep walked the following modules in order
and stopped after accumulating at least 10 modified files:
aws-sdk-1.11:library-autoconfigureaws-sdk-1.11:testingModule:
aws-sdk-1.11:library-autoconfigureModule path:
instrumentation/aws-sdk/aws-sdk-1.11/library-autoconfigureSummary
Applied 3 safe review fixes under
instrumentation/aws-sdk/aws-sdk-1.11/library-autoconfigure: oneRequestHandler2field-naming cleanup and two visibility tightenings on SQS test overrides.metadata.yamlconfig entries matched in-module usage, and the required:check,:check -PtestLatestDeps=true, andspotlessApplyruns completed successfully.Applied Changes
Style
File:
TracingRequestHandler.java:26Change: Renamed the static `RequestHandler2` collaborator field from `DELEGATE` to `delegate` and updated its call sites.
Reason: The style guide reserves uppercase field names for constants and stable identifiers; this field is a runtime-created collaborator, so lower camel case is the repository-preferred form.
File:
SqsSuppressReceiveSpansTest.java:25Change: Changed the `configureClient(...)` override from `public` to `protected`.
Reason: The style guide requires minimal necessary visibility, and the abstract base test declares `configureClient(...)` as `protected`.
File:
SqsTracingTest.java:25Change: Changed the `configureClient(...)` override from `public` to `protected`.
Reason: The style guide requires minimal necessary visibility, and the abstract base test declares `configureClient(...)` as `protected`.
Module:
aws-sdk-1.11:testingModule path:
instrumentation/aws-sdk/aws-sdk-1.11/testingSummary
Reviewed
instrumentation/aws-sdk/aws-sdk-1.11/testing, validated the modulemetadata.yamlusage, and applied safe testing fixes by replacing broadthrows Exceptiondeclarations with the specificthrows ReflectiveOperationExceptionwhere the checked failure path is only reflective access.Applied Changes
Testing
File:
AbstractBaseAwsClientTest.java:73Change: Narrowed `assertRequestWithMockedResponse(...)` and `extractRequestHandlers(...)` from `throws Exception` to `throws ReflectiveOperationException`.
Reason: `testing-general-patterns.md` says test entry points should keep a single, specific checked exception, so the shared helper now exposes only the reflective failure it actually throws.
File:
AbstractDynamoDbClientTest.java:44Change: Changed `sendRequestWithMockedResponse()` to declare `throws ReflectiveOperationException` instead of `throws Exception`.
Reason: `testing-general-patterns.md` prefers the narrowest single checked exception on `@Test` methods instead of broad `throws Exception`.
File:
AbstractEc2ClientTest.java:26Change: Changed `sendRequestWithMockedResponse()` to declare `throws ReflectiveOperationException` instead of `throws Exception`.
Reason: `testing-general-patterns.md` prefers the narrowest single checked exception on `@Test` methods instead of broad `throws Exception`.
File:
AbstractKinesisClientTest.java:35Change: Changed `testSendRequestWithMockedResponse(...)` to declare `throws ReflectiveOperationException` instead of `throws Exception`.
Reason: `testing-general-patterns.md` prefers the narrowest single checked exception on `@ParameterizedTest` methods instead of broad `throws Exception`.
File:
AbstractLambdaClientTest.java:167Change: Changed `testSendRequestWithMockedResponse(...)` to declare `throws ReflectiveOperationException` instead of `throws Exception`.
Reason: `testing-general-patterns.md` prefers the narrowest single checked exception on `@ParameterizedTest` methods instead of broad `throws Exception`.
File:
AbstractRdsClientTest.java:27Change: Changed `sendRequestWithMockedResponse()` to declare `throws ReflectiveOperationException` instead of `throws Exception`.
Reason: `testing-general-patterns.md` prefers the narrowest single checked exception on `@Test` methods instead of broad `throws Exception`.
File:
AbstractS3ClientTest.java:60Change: Changed `testSendRequestWithMockedResponse(...)` to declare `throws ReflectiveOperationException` instead of `throws Exception`.
Reason: `testing-general-patterns.md` prefers the narrowest single checked exception on `@ParameterizedTest` methods instead of broad `throws Exception`.
File:
AbstractSecretsManagerClientTest.java:33Change: Changed the secrets manager `@Test` methods to declare `throws ReflectiveOperationException` instead of `throws Exception`.
Reason: `testing-general-patterns.md` prefers the narrowest single checked exception on `@Test` methods instead of broad `throws Exception`.
File:
AbstractSnsClientTest.java:57Change: Changed `testSendRequestWithMockedResponse(...)` to declare `throws ReflectiveOperationException` instead of `throws Exception`.
Reason: `testing-general-patterns.md` prefers the narrowest single checked exception on `@ParameterizedTest` methods instead of broad `throws Exception`.
File:
AbstractStepFunctionsClientTest.java:38Change: Changed `testSendRequestWithMockedResponse(...)` to declare `throws ReflectiveOperationException` instead of `throws Exception`.
Reason: `testing-general-patterns.md` prefers the narrowest single checked exception on `@ParameterizedTest` methods instead of broad `throws Exception`.
Download code review diagnostics