Skip to content

Conversation

@kggilmer
Copy link
Contributor

@kggilmer kggilmer commented Jan 22, 2021

Issue #, if available: /story/show/176265266

Companion PR: aws/aws-crt-kotlin#4

Concerns

  • The package renaming resulted in the requirement that the @InternalSdkApi annotation be added in several places. I took a like at the annotation implementation but couldn't find a reason why the name change would result in this new requirement.

Description of changes:

Rename packages to aws.sdk.kotlin.runtime.*, as this is the final package namespace we decided upon

Testing Done

  • Unit/Protocol/SDK tests pass without regression

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Copy link
Contributor

@aajtodd aajtodd left a comment

Choose a reason for hiding this comment

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

There are some things that need addressed first. Let me know if you have questions.

I'd like to get a consensus on package names for CRT before moving forward, see my comment on that specifically.


private val serviceId: String = requireNotNull(config.serviceId) { "ServiceId must not be null" }
private val resolver: EndpointResolver = requireNotNull(config.resolver) { "EndpointResolver must not be null" }
private val resolver: aws.sdk.kotlin.runtime.endpoint.EndpointResolver = requireNotNull(config.resolver) { "EndpointResolver must not be null" }
Copy link
Contributor

Choose a reason for hiding this comment

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

style

Symbol is already imported...we don't need the package name prefix here.

I'm not going to call them all out in every file, but please address this everywhere. (symbols are already imported or are from same package shouldn't need the package name explicitly)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fix pushed

@jamesonwilliams
Copy link

cc: V2 Java SDK contribs, @zoewangg @millems

@kggilmer
Copy link
Contributor Author

kggilmer commented Jan 25, 2021

@aajtodd well that was a bit sloppy on my part. Thanks for having close 👀 on the diffs and keeping things clean! 😄

kggilmer added a commit to aws/aws-crt-kotlin that referenced this pull request Jan 26, 2021
Copy link
Contributor

@aajtodd aajtodd left a comment

Choose a reason for hiding this comment

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

LGTM


/**
* HTTP request pipeline middleware that signs outgoing requests
*/
@InternalSdkApi
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this one was actually there already. It's fine we need to comb through the runtime anyway at some point and mark API's as internal or not depending on what customers shouldn't be using (but need to be available for generated SDK's to consume)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I put this one back before push

val experimentalAnnotations = listOf("kotlin.RequiresOptIn", "software.aws.clientrt.util.InternalAPI", "software.aws.kotlinsdk.InternalSdkApi")
val experimentalAnnotations = listOf(
"kotlin.RequiresOptIn",
"software.aws.clientrt.util.InternalAPI",
Copy link
Contributor

Choose a reason for hiding this comment

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

no-op

It's on my TODO list to fix API to Api someday so they match but I just haven't gotten around to it...

kggilmer added a commit to aws/aws-crt-kotlin that referenced this pull request Jan 27, 2021
* Rename package prefix from software.amazon.awssdk.kotlin.crt to aws.sdk.kotlin.runtime.crt

* Rename root package prefix from aws.sdk.kotlin.runtime.crt to aws.sdk.kotlin.crt based on aws/aws-sdk-kotlin#54 (comment).

* Cleanup from PR feedback

* ktlint cleanup and resolve some warnings
@kggilmer kggilmer merged commit f5ffa1b into main Jan 27, 2021
@kggilmer kggilmer deleted the fix-clientrt-package-rename branch January 27, 2021 19:42
kggilmer added a commit that referenced this pull request Jan 27, 2021
kggilmer added a commit that referenced this pull request Feb 11, 2021
* Rename client runtime packages to aws.sdk.kotlin.runtime.

* Fix copyright headers from bad local config.

* Package namespace and annotation cleanup from PR feedback

* Update references to aws-crt-kotlin to use updated package namespace, add some lingering copyright header fixes missed in previous commit.
kggilmer added a commit that referenced this pull request Feb 11, 2021
aajtodd pushed a commit to smithy-lang/smithy-kotlin that referenced this pull request Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants