-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: apply clock skew interceptor to clients created via invoke
#1284
Conversation
A new generated diff is ready to view. |
A new generated diff is ready to view. |
FYI I added the ackhowledge-api-break label to this PR because I think the breaks are safe but please chime in if you have differing opinions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved, but let's talk about the API break
@@ -23,18 +23,14 @@ class ServiceClientCompanionObjectWriterTest { | |||
ServiceClientCompanionObjectWriter().write(writer, null) | |||
|
|||
val expected = """ | |||
public companion object : AbstractAwsSdkClientFactory<Config, Config.Builder, TestGeneratorClient, Builder>() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a test for the companion object but there's no longer a companion object being generated, is that because there's no protocol? Can we add a protocol or maybe rename the test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's no longer ServiceClientCompanionObjectWriter
's job to create the companion object, merely to append things to sections of it, which the updated test reflects. In my view the class and test names are still correct.
Quality Gate passedIssues Measures |
Discussed offline and this change is breaking enough that we don't want to push it directly to main. Updated base branch to v1.2. Will pursue a temporary fix strictly within aws-sdk-kotlin codegen until such time as we have another minor version bump. |
* fix: apply clock skew interceptor to clients created via `invoke` (#1284) * Add new changelog * Upgrade Kotlin version to match smithy-kotlin --------- Co-authored-by: Ian Botsford <83236726+ianbotsf@users.noreply.github.com>
Issue #
Addresses #1211
Description of changes
This change adds the clock skew interceptor to clients created via
invoke
(as opposed tofromEnvironment
). It pulls in upstream changes from smithy-kotlin which add afinalizeConfig
method to the abstract superclass from whichAbstractAwsSdkClientFactory
extends. This causes a naming conflict so the SDK'ssuspend
finalizeConfig
method has been renamedfinalizeEnvironmentalConfig
.Companion PR: smithy-lang/smithy-kotlin#1067
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.