Skip to content

Conversation

@zoewangg
Copy link
Contributor

@zoewangg zoewangg commented Oct 15, 2025

Motivation and Context

• Removed the obsolete useSraAuth configuration flag that defaulted to true over a year ago
• Eliminated all conditional logic checking this flags
• Removed legacy test fixtures that were no longer used
• Simplified code generation by keeping only the SRA code paths

@zoewangg zoewangg requested a review from a team as a code owner October 15, 2025 18:06
Copy link
Contributor Author

@zoewangg zoewangg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that the test fixtures are still under sra folder. I will move them in a separate PR to make code review easier

*/
@Generated("software.amazon.awssdk:codegen")
@SdkInternalApi
abstract class DefaultH2BaseClientBuilder<B extends H2BaseClientBuilder<B, C>, C> extends AwsDefaultClientBuilder<B, C> {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test fixture was previously on non-SRA code path, hence the change


import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test fixture was previously on non-SRA code path, hence the change

try {
apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "Database Service");
apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "opWithSigv4UnSignedPayloadAndStreaming");
if (!isSignerOverridden(clientConfiguration)) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test fixture was previously on non-SRA code path, hence the change

@zoewangg zoewangg force-pushed the zoewang/master/removeUseSraConfig branch from 33dc89c to 8b6276c Compare October 15, 2025 21:05
@sonarqubecloud
Copy link

@zoewangg zoewangg added this pull request to the merge queue Oct 17, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 17, 2025
@zoewangg zoewangg added this pull request to the merge queue Oct 17, 2025
Merged via the queue into master with commit 6144c8a Oct 17, 2025
42 checks passed
@github-actions
Copy link

This pull request has been closed and the conversation has been locked. Comments on closed PRs are hard for our team to see. If you need more assistance, please open a new issue that references this one.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants