Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .changes/5a190de6-e9e5-4908-9bf9-62c34cf254f9.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"id": "5a190de6-e9e5-4908-9bf9-62c34cf254f9",
"type": "bugfix",
"description": "Bump the **smithy-kotlin** version to pick up a [bugfix for Endpoint Discovery](https://github.com/smithy-lang/smithy-kotlin/pull/1240)",
"issues": [
"awslabs/aws-sdk-kotlin#1413"
]
}
8 changes: 8 additions & 0 deletions .changes/5fa3154d-1f42-4b98-9ad1-ef8ef1ad5fbc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"id": "5fa3154d-1f42-4b98-9ad1-ef8ef1ad5fbc",
"type": "feature",
"description": "Improve the coding style of DynamoDB Mapper auto-generated schemas",
"issues": [
"https://github.com/awslabs/aws-sdk-kotlin/issues/1521"
]
}
4 changes: 4 additions & 0 deletions .github/workflows/codebuild-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ jobs:
with:
role-to-assume: ${{ secrets.CI_AWS_ROLE_ARN }}
aws-region: us-west-2
- name: Configure Gradle
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
- name: Run Service Check Batch and Calculate Artifact Size Metrics
id: svc-check-batch
run: |
Expand Down Expand Up @@ -212,6 +214,8 @@ jobs:
with:
role-to-assume: ${{ secrets.CI_AWS_ROLE_ARN }}
aws-region: us-west-2
- name: Configure Gradle
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
- name: Calculate Artifact Size Metrics
id: svc-check-batch
run: |
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ jobs:
path: 'aws-sdk-kotlin'
- name: Setup Build
uses: ./aws-sdk-kotlin/.github/actions/setup-build
- name: Configure Gradle
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
with:
working-directory: ./aws-sdk-kotlin
- name: Test
working-directory: ./aws-sdk-kotlin
shell: bash
Expand Down Expand Up @@ -60,6 +64,10 @@ jobs:
path: 'aws-sdk-kotlin'
- name: Setup Build
uses: ./aws-sdk-kotlin/.github/actions/setup-build
- name: Configure Gradle - smithy-kotlin
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
with:
working-directory: ./smithy-kotlin
- name: Build smithy-kotlin
working-directory: ./smithy-kotlin
shell: bash
Expand All @@ -68,6 +76,10 @@ jobs:
pwd
./gradlew --parallel assemble
./gradlew publishToMavenLocal
- name: Configure Gradle aws-sdk-kotlin
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
with:
working-directory: ./aws-sdk-kotlin
- name: Test
working-directory: ./aws-sdk-kotlin
shell: bash
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/kat-transform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ jobs:
role-to-assume: ${{ secrets.CI_AWS_ROLE_ARN }}
aws-region: us-west-2

- name: Configure Gradle
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
with:
working-directory: ./aws-sdk-kotlin

- name: Setup kat
uses: awslabs/aws-kotlin-repo-tools/.github/actions/setup-kat@main

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Configure Gradle
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
- name: Lint ${{ env.PACKAGE_NAME }}
run: |
./gradlew ktlint
2 changes: 2 additions & 0 deletions .github/workflows/update-release-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ jobs:
distribution: 'corretto'
java-version: 17
cache: 'gradle'
- name: Configure Gradle
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
- name: Check merge base
shell: bash
run: |
Expand Down
3 changes: 2 additions & 1 deletion examples/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip
# Keep gradle version in sync with aws-sdk-kotlin/gradle/wrapper/gradle-wrapper.properties
distributionUrl=https://services.gradle.org/distributions/gradle-8.12-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
6 changes: 3 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ ksp-version = "2.1.0-1.0.29" # Keep in sync with kotlin-version

dokka-version = "1.9.10"

aws-kotlin-repo-tools-version = "0.4.18"
aws-kotlin-repo-tools-version = "0.4.20"

# libs
coroutines-version = "1.9.0"
atomicfu-version = "0.25.0"
binary-compatibility-validator-version = "0.16.3"

# smithy-kotlin codegen and runtime are versioned separately
smithy-kotlin-runtime-version = "1.4.2"
smithy-kotlin-codegen-version = "0.34.2"
smithy-kotlin-runtime-version = "1.4.3"
smithy-kotlin-codegen-version = "0.34.3"

# codegen
smithy-version = "1.53.0"
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
distributionUrl=https://services.gradle.org/distributions/gradle-8.12-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ internal class SchemaRenderer(

// converter
renderValueConverter(prop.type.resolve())
write("")
write(",")
}
}

Expand Down Expand Up @@ -291,7 +291,7 @@ internal class SchemaRenderer(

write("@#T", Types.Smithy.ExperimentalApi)
withBlock("#Lobject #L : #T {", "}", ctx.attributes.visibility, schemaName, schemaType) {
write("override val converter : #1T = #1T", itemConverter)
write("override val converter: #1T = #1T", itemConverter)
write("override val partitionKey: #T = #T(#S)", MapperTypes.Items.keySpec(partitionKeyProp.keySpec), partitionKeyProp.keySpecType, partitionKeyName)
if (sortKeyProp != null) {
write("override val sortKey: #T = #T(#S)", MapperTypes.Items.keySpec(sortKeyProp.keySpec), sortKeyProp.keySpecType, sortKeyName!!)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,25 +106,25 @@ class SchemaGeneratorPluginTest {
"id",
User::id,
UserBuilder::id::set,
IntConverter
IntConverter,
),
AttributeDescriptor(
"fName",
User::givenName,
UserBuilder::givenName::set,
StringConverter
StringConverter,
),
AttributeDescriptor(
"lName",
User::surname,
UserBuilder::surname::set,
StringConverter
StringConverter,
),
AttributeDescriptor(
"age",
User::age,
UserBuilder::age::set,
IntConverter
IntConverter,
),
),
)
Expand All @@ -136,7 +136,7 @@ class SchemaGeneratorPluginTest {
schemaContents,
"""
object UserSchema : ItemSchema.PartitionKey<User, Int> {
override val converter : UserConverter = UserConverter
override val converter: UserConverter = UserConverter
override val partitionKey: KeySpec<Number> = aws.sdk.kotlin.hll.dynamodbmapper.items.KeySpec.Number("id")
}
""".trimIndent(),
Expand Down Expand Up @@ -173,25 +173,25 @@ class SchemaGeneratorPluginTest {
"id",
BuilderNotRequired::id,
BuilderNotRequired::id::set,
IntConverter
IntConverter,
),
AttributeDescriptor(
"fName",
BuilderNotRequired::givenName,
BuilderNotRequired::givenName::set,
StringConverter
StringConverter,
),
AttributeDescriptor(
"lName",
BuilderNotRequired::surname,
BuilderNotRequired::surname::set,
StringConverter
StringConverter,
),
AttributeDescriptor(
"age",
BuilderNotRequired::age,
BuilderNotRequired::age::set,
IntConverter
IntConverter,
),
),
)
Expand Down Expand Up @@ -414,7 +414,7 @@ class SchemaGeneratorPluginTest {
schemaContents,
"""
public object CustomUserSchema : ItemSchema.PartitionKey<CustomUser, Int> {
override val converter : MyCustomUserConverter = MyCustomUserConverter
override val converter: MyCustomUserConverter = MyCustomUserConverter
override val partitionKey: KeySpec<Number> = aws.sdk.kotlin.hll.dynamodbmapper.items.KeySpec.Number("id")
}
""".trimIndent(),
Expand Down Expand Up @@ -570,7 +570,7 @@ class SchemaGeneratorPluginTest {
schemaContents,
"""
object RenamedPartitionKeySchema : ItemSchema.PartitionKey<RenamedPartitionKey, Int> {
override val converter : RenamedPartitionKeyConverter = RenamedPartitionKeyConverter
override val converter: RenamedPartitionKeyConverter = RenamedPartitionKeyConverter
override val partitionKey: KeySpec<Number> = aws.sdk.kotlin.hll.dynamodbmapper.items.KeySpec.Number("user_id")
}
""".trimIndent(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ class SmokeTestE2ETest {

assertContains(smokeTestRunnerOutput, "not ok ExceptionService ExceptionTest - no error expected from service")
assertContains(smokeTestRunnerOutput, "#aws.smithy.kotlin.runtime.http.interceptors.SmokeTestsFailureException: Smoke test failed with HTTP status code: 400")
assertContains(smokeTestRunnerOutput, "#\tat aws.smithy.kotlin.runtime.http.interceptors.SmokeTestsInterceptor.readBeforeDeserialization(SmokeTestsInterceptor.kt:19)")
assertContains(smokeTestRunnerOutput, "#\tat aws.smithy.kotlin.runtime.http.interceptors.InterceptorExecutor.readBeforeDeserialization(InterceptorExecutor.kt:252)")
}

@Test
Expand Down Expand Up @@ -72,6 +70,7 @@ private fun runSmokeTests(
":tests:codegen:smoke-tests:services:$service:smokeTest",
)
.withEnvironment(envVars)
.forwardOutput()

val buildResult = if (expectingFailure) task.buildAndFail() else task.build()

Expand Down
6 changes: 0 additions & 6 deletions tests/integration-tests/ecs-credentials/.gitattributes

This file was deleted.

17 changes: 0 additions & 17 deletions tests/integration-tests/ecs-credentials/.gitignore

This file was deleted.

6 changes: 0 additions & 6 deletions tests/integration-tests/ecs-credentials/.npmignore

This file was deleted.

70 changes: 0 additions & 70 deletions tests/integration-tests/ecs-credentials/README.md

This file was deleted.

9 changes: 0 additions & 9 deletions tests/integration-tests/ecs-credentials/app/Dockerfile

This file was deleted.

Loading
Loading