Skip to content

Commit 589e314

Browse files
committed
Merge remote-tracking branch 'origin/kn-main' into kn-bignums
2 parents 16c85d1 + 43e39b8 commit 589e314

File tree

96 files changed

+1080
-114
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+1080
-114
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"id": "1021e75a-45f3-4f3a-820c-700d9ec6e782",
3+
"type": "bugfix",
4+
"description": "Fix serialization of CBOR blobs"
5+
}

.github/workflows/api-compat-verification.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: API compatibility verification
33
on:
44
pull_request:
55
types: [ opened, synchronize, reopened, labeled, unlabeled ]
6-
branches: [ main ]
6+
branches: [ main, '*-main' ]
77

88
jobs:
99
api-compat-verification:

.github/workflows/artifact-size-metrics.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Artifact Size Metrics
22
on:
33
pull_request:
44
types: [ opened, synchronize, reopened, labeled, unlabeled ]
5-
branches: [ main ]
5+
branches: [ main, '*-main' ]
66
release:
77
types: [published]
88

@@ -53,9 +53,9 @@ jobs:
5353
role-to-assume: ${{ secrets.CI_AWS_ROLE_ARN }}
5454
aws-region: us-west-2
5555
- name: Generate Artifact Size Metrics
56-
run: ./gradlew artifactSizeMetrics
56+
run: ./gradlew -Paws.kotlin.native=false artifactSizeMetrics
5757
- name: Analyze Artifact Size Metrics
58-
run: ./gradlew analyzeArtifactSizeMetrics
58+
run: ./gradlew -Paws.kotlin.native=false analyzeArtifactSizeMetrics
5959
- name: Show Results
6060
uses: actions/github-script@v7
6161
with:

.github/workflows/changelog-verification.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Changelog verification
33
on:
44
pull_request:
55
types: [ opened, synchronize, reopened, labeled, unlabeled ]
6-
branches: [ main ]
6+
branches: [ main, '*-main' ]
77

88
jobs:
99
changelog-verification:

.github/workflows/ci.yml renamed to .github/workflows/continuous-integration.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,44 @@ jobs:
135135
name: test-reports-windows
136136
path: '**/build/reports'
137137

138+
all-platforms:
139+
runs-on: ${{ matrix.os }}
140+
strategy:
141+
fail-fast: false
142+
matrix:
143+
os: [ ubuntu-latest, macos-latest, windows-latest ]
144+
steps:
145+
- name: Checkout sources
146+
uses: actions/checkout@v4
147+
with:
148+
path: 'smithy-kotlin'
149+
150+
- name: Setup build
151+
uses: ./smithy-kotlin/.github/actions/setup-build
152+
153+
- name: Configure JDK
154+
uses: actions/setup-java@v3
155+
with:
156+
distribution: 'corretto'
157+
java-version: 17
158+
cache: 'gradle'
159+
160+
- name: Test
161+
working-directory: ./smithy-kotlin
162+
shell: bash
163+
run: |
164+
# FIXME K2. Re-enable warnings as errors after this warning is removed: https://youtrack.jetbrains.com/issue/KT-68532
165+
# echo "kotlinWarningsAsErrors=true" >> $GITHUB_WORKSPACE/local.properties
166+
./gradlew -Paws.kotlin.native=false apiCheck
167+
./gradlew -Paws.kotlin.native=false test jvmTest
168+
169+
- name: Save Test Reports
170+
if: failure()
171+
uses: actions/upload-artifact@v3
172+
with:
173+
name: test-reports-${{ matrix.os }}
174+
path: '**/build/reports'
175+
138176
protocol-tests:
139177
runs-on: ubuntu-latest
140178
steps:

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## [1.3.31] - 12/18/2024
4+
5+
### Features
6+
* [#1473](https://github.com/awslabs/aws-sdk-kotlin/issues/1473) Enhance support for replayable instances of `InputStream`
7+
8+
## [1.3.30] - 12/16/2024
9+
310
## [1.3.29] - 12/12/2024
411

512
## [1.3.28] - 12/03/2024

codegen/smithy-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/rendering/protocol/HttpProtocolUnitTestRequestGenerator.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,11 @@ open class HttpProtocolUnitTestRequestGenerator protected constructor(builder: B
117117
write("return")
118118
}
119119
write("requireNotNull(expectedBytes) { #S }", "expected application/cbor body cannot be null")
120-
write("requireNotNull(expectedBytes) { #S }", "actual application/cbor body cannot be null")
120+
write("requireNotNull(actualBytes) { #S }", "actual application/cbor body cannot be null")
121121

122122
write("")
123123
write("val expectedRequest = #L(#T(expectedBytes))", inputDeserializer.name, RuntimeTypes.Serde.SerdeCbor.CborDeserializer)
124-
write("val actualRequest = #L(#T(expectedBytes))", inputDeserializer.name, RuntimeTypes.Serde.SerdeCbor.CborDeserializer)
124+
write("val actualRequest = #L(#T(actualBytes))", inputDeserializer.name, RuntimeTypes.Serde.SerdeCbor.CborDeserializer)
125125
write("assertEquals(expectedRequest, actualRequest)")
126126
}
127127
writer.write("")

codegen/smithy-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/rendering/serde/SerializeStructGenerator.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,6 @@ open class SerializeStructGenerator(
647647
val target = member.targetOrSelf(ctx.model)
648648

649649
val encoded = when {
650-
target.type == ShapeType.BLOB -> writer.format("#L.#T()", identifier, RuntimeTypes.Core.Text.Encoding.encodeBase64String)
651650
target.type == ShapeType.TIMESTAMP -> {
652651
writer.addImport(RuntimeTypes.Core.TimestampFormat)
653652
val tsFormat = member

codegen/smithy-kotlin-codegen/src/test/kotlin/software/amazon/smithy/kotlin/codegen/rendering/serde/SerializeStructGeneratorTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1822,7 +1822,7 @@ class SerializeStructGeneratorTest {
18221822

18231823
val expected = """
18241824
serializer.serializeStruct(OBJ_DESCRIPTOR) {
1825-
input.fooBlob?.let { field(FOOBLOB_DESCRIPTOR, it.encodeBase64String()) }
1825+
input.fooBlob?.let { field(FOOBLOB_DESCRIPTOR, it) }
18261826
}
18271827
""".trimIndent()
18281828

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ kotlinx.atomicfu.enableNativeIrTransformation=false
1414
org.gradle.jvmargs=-Xmx2G -XX:MaxMetaspaceSize=1G
1515

1616
# SDK
17-
sdkVersion=1.3.30-SNAPSHOT
17+
sdkVersion=1.3.32-SNAPSHOT
1818

1919
# codegen
20-
codegenVersion=0.33.30-SNAPSHOT
20+
codegenVersion=0.33.32-SNAPSHOT

0 commit comments

Comments
 (0)