Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
a4ace35
fix: add 0.9.x aws-crt-kotlin transform (#1220)
lauzadis Jan 16, 2025
15e5f0c
fix: Ensure `Host` header is included when signing auth tokens (#1222)
lauzadis Jan 16, 2025
447ac10
chore: release 1.4.1
aws-sdk-kotlin-ci Jan 16, 2025
0f8db44
chore: bump snapshot version to 1.4.2-SNAPSHOT
aws-sdk-kotlin-ci Jan 16, 2025
8b33693
fix: address various failing protocol tests (#1223)
lauzadis Jan 23, 2025
03badf9
misc: re-enable `kotlinWarningsAsErrors=true` (#1224)
lauzadis Jan 23, 2025
9f44cdb
fix: ignore hop-by-hop headers when signing requests (#1227)
ianbotsf Jan 28, 2025
97ac447
chore: release 1.4.2
aws-sdk-kotlin-ci Jan 28, 2025
b7e50e3
chore: bump snapshot version to 1.4.3-SNAPSHOT
aws-sdk-kotlin-ci Jan 28, 2025
e6357f9
misc: add telemetry configuration to DefaultAwsSigner (#1226)
xinsong-cui Jan 30, 2025
9d6857b
misc: gradle mirror (#1204)
0marperez Feb 4, 2025
5323882
fix: correctly check equality for CaseInsensitiveMap (#1235)
ianbotsf Feb 6, 2025
1af0e82
misc: gradle version bump (#1236)
0marperez Feb 7, 2025
120768c
fix: correct hash code calculation for case-insensitive map entries (…
ianbotsf Feb 8, 2025
d7e3603
misc: bump build plugin version (#1239)
lauzadis Feb 12, 2025
c1bcb04
fix: favor endpointUrl over endpoint discovery when provided (#1240)
ianbotsf Feb 13, 2025
4223bfa
chore: release 1.4.3
aws-sdk-kotlin-ci Feb 13, 2025
cea7b1f
chore: bump snapshot version to 1.4.4-SNAPSHOT
aws-sdk-kotlin-ci Feb 13, 2025
ad4d2a3
misc: test union member name same as union (#1241)
0marperez Feb 14, 2025
a0be9e4
fix: unions with member names matching auto-imported Kotlin symbols (…
0marperez Feb 14, 2025
00500f2
fix: bump maximum event stream message length to 24MB (#1243)
lauzadis Feb 18, 2025
7329212
chore: release 1.4.4
aws-sdk-kotlin-ci Feb 18, 2025
612c39b
chore: bump snapshot version to 1.4.5-SNAPSHOT
aws-sdk-kotlin-ci Feb 18, 2025
283ca31
misc: Remove Elastic Inference SDK ID test (#1247)
0marperez Feb 24, 2025
82b9ffe
feat: Kotlin implementation of SigV4a signing (#1246)
lauzadis Feb 24, 2025
0df4e42
chore: release 1.4.5
aws-sdk-kotlin-ci Feb 24, 2025
7430722
chore: bump snapshot version to 1.4.6-SNAPSHOT
aws-sdk-kotlin-ci Feb 24, 2025
80d395b
fix: account ID based endpoints (#1245)
0marperez Feb 25, 2025
5dbc684
chore: release 1.4.6
aws-sdk-kotlin-ci Feb 25, 2025
dc6b646
chore: bump snapshot version to 1.4.7-SNAPSHOT
aws-sdk-kotlin-ci Feb 25, 2025
09838a7
fix: replace `Span.makeCurrent()` with `Span.asContextElement()` (#1237)
lauzadis Feb 25, 2025
d06ccf3
chore: release 1.4.7
aws-sdk-kotlin-ci Feb 25, 2025
03a8e62
chore: bump snapshot version to 1.4.8-SNAPSHOT
aws-sdk-kotlin-ci Feb 25, 2025
aae827c
fix: idempotency tokens being code-generated for nested structures (#…
0marperez Feb 27, 2025
c498b42
chore: release 1.4.8
aws-sdk-kotlin-ci Feb 27, 2025
462967b
chore: bump snapshot version to 1.4.9-SNAPSHOT
aws-sdk-kotlin-ci Feb 27, 2025
72155f7
fix: correctly codegen paginators for types which require fully-quali…
ianbotsf Feb 27, 2025
0e4a7cb
chore: bump Ktor dependency (#1250)
ianbotsf Feb 27, 2025
aa02ac4
chore: release 1.4.9
aws-sdk-kotlin-ci Feb 27, 2025
8178808
chore: bump snapshot version to 1.4.10-SNAPSHOT
aws-sdk-kotlin-ci Feb 27, 2025
4b0df67
misc: remove `@InternalApi` from `SdkClientOption` extension function…
lauzadis Mar 3, 2025
6f94c6a
fix: correctly handle sequential calls to `SingleFlightGroup` (#1251)
ianbotsf Mar 3, 2025
667161b
chore: release 1.4.10
aws-sdk-kotlin-ci Mar 6, 2025
f1d5f6b
chore: bump snapshot version to 1.4.11-SNAPSHOT
aws-sdk-kotlin-ci Mar 6, 2025
bf9a200
feat: main to feature branches merge (#1254)
0marperez Mar 12, 2025
6e10c01
feat: emit accountId metrics (#1255)
xinsong-cui Mar 14, 2025
1caac30
chore: release 1.4.11
aws-sdk-kotlin-ci Mar 14, 2025
0a29a00
chore: bump snapshot version to 1.4.12-SNAPSHOT
aws-sdk-kotlin-ci Mar 14, 2025
3e307f7
misc: run merge main on push to main (#1261)
0marperez Apr 1, 2025
f6557ba
feat: sync mirror (#1260)
0marperez Apr 1, 2025
5d8d7fd
chore: reintegrate E2E smoke tests into the top-level Gradle build; m…
ianbotsf Apr 2, 2025
2109a72
misc: include `aws-crt-kotlin` as a composite build (#1263)
lauzadis Apr 3, 2025
b092fd6
chore: release 1.4.12
aws-sdk-kotlin-ci Apr 4, 2025
ce7c62d
chore: bump snapshot version to 1.4.13-SNAPSHOT
aws-sdk-kotlin-ci Apr 4, 2025
fc3837b
misc: prepare codegen packages for internal import (#1266)
lauzadis Apr 9, 2025
a5e1874
chore: release 1.4.13
aws-sdk-kotlin-ci Apr 10, 2025
f6e959c
chore: bump snapshot version to 1.4.14-SNAPSHOT
aws-sdk-kotlin-ci Apr 10, 2025
9621ad1
misc: use aws-kotlin-repo-tools show-results action (#1268)
lauzadis Apr 11, 2025
a54b149
Merge branch 'v1.5-main' into v1.5-merge
ianbotsf Apr 11, 2025
4e05caa
backporting PeriodicSweepCache to SigV4a signer
ianbotsf Apr 11, 2025
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
26 changes: 20 additions & 6 deletions .brazil.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,44 @@
"com.squareup.okhttp3:okhttp:5.*": "OkHttp3-5.x",
"com.squareup.okio:okio-jvm:3.*": "OkioJvm-3.x",
"io.opentelemetry:opentelemetry-api:1.*": "Maven-io-opentelemetry_opentelemetry-api-1.x",
"io.opentelemetry:opentelemetry-extension-kotlin:1.*": "Maven-io-opentelemetry_opentelemetry-extension-kotlin-1.x",
"org.slf4j:slf4j-api:2.*": "Maven-org-slf4j_slf4j-api-2.x",
"aws.sdk.kotlin.crt:aws-crt-kotlin:0.9.*": "AwsCrtKotlin-0.9.x",
"aws.sdk.kotlin.crt:aws-crt-kotlin:0.8.*": "AwsCrtKotlin-0.8.x",
"com.squareup.okhttp3:okhttp:4.*": "OkHttp3-4.x"
"com.squareup.okhttp3:okhttp:4.*": "OkHttp3-4.x",

"software.amazon.smithy:smithy-aws-traits:1.*": "Maven-software-amazon-smithy_smithy-aws-traits-1.x",
"software.amazon.smithy:smithy-aws-iam-traits:1.*": "Maven-software-amazon-smithy_smithy-aws-iam-traits-1.x",
"software.amazon.smithy:smithy-aws-cloudformation-traits:1.*": "Maven-software-amazon-smithy_smithy-aws-cloudformation-traits-1.x",
"software.amazon.smithy:smithy-protocol-test-traits:1.*": "Maven-software-amazon-smithy_smithy-protocol-test-traits-1.x",
"software.amazon.smithy:smithy-protocol-traits:1.*": "Maven-software-amazon-smithy_smithy-protocol-traits-1.x",
"software.amazon.smithy:smithy-aws-endpoints:1.*": "Maven-software-amazon-smithy_smithy-aws-endpoints-1.x",
"software.amazon.smithy:smithy-codegen-core:1.*": "Maven-software-amazon-smithy_smithy-codegen-core-1.x",
"software.amazon.smithy:smithy-waiters:1.*": "Maven-software-amazon-smithy_smithy-waiters-1.x",
"software.amazon.smithy:smithy-rules-engine:1.*": "Maven-software-amazon-smithy_smithy-rules-engine-1.x",
"software.amazon.smithy:smithy-smoke-test-traits:1.*": "Maven-software-amazon-smithy_smithy-smoke-test-traits-1.x",
"org.jsoup:jsoup:1.19.*": "Maven-jsoup-1.19.x"
},
"packageHandlingRules": {
"versioning": {
"defaultVersionLayout": "{MAJOR}.0.x",
"overrides": {
"software.amazon.smithy.kotlin:smithy-kotlin-codegen": "{MAJOR}.{MINOR}.x",
"software.amazon.smithy.kotlin:smithy-kotlin-codegen-testutils": "{MAJOR}.{MINOR}.x"
"software.amazon.smithy.kotlin:smithy-aws-kotlin-codegen": "{MAJOR}.x",
"software.amazon.smithy.kotlin:smithy-kotlin-codegen": "{MAJOR}.x"
}
},
"rename": {
"software.amazon.smithy.kotlin:smithy-kotlin-codegen": "SmithyKotlinCodegen",
"software.amazon.smithy.kotlin:smithy-kotlin-codegen-testutils": "SmithyKotlinCodegenTestUtils"
"software.amazon.smithy.kotlin:smithy-aws-kotlin-codegen": "AwsSmithyAwsKotlinCodegen",
"software.amazon.smithy.kotlin:smithy-kotlin-codegen": "AwsSmithyKotlinCodegen"
},
"ignore": [
"aws.smithy.kotlin:http-test",
"aws.smithy.kotlin:smithy-test",
"aws.smithy.kotlin:telemetry-provider-micrometer",
"aws.smithy.kotlin:testing",
"aws.smithy.kotlin:bom",
"aws.smithy.kotlin:version-catalog"
"aws.smithy.kotlin:version-catalog",
"software.amazon.smithy.kotlin:smithy-kotlin-codegen-testutils"
],
"resolvesConflictDependencies": {
"org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.*": [
Expand Down
55 changes: 6 additions & 49 deletions .github/workflows/artifact-size-metrics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,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: Generate Artifact Size Metrics
run: ./gradlew artifactSizeMetrics
- name: Save Artifact Size Metrics
Expand All @@ -54,60 +56,15 @@ 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: Generate Artifact Size Metrics
run: ./gradlew artifactSizeMetrics
- name: Analyze Artifact Size Metrics
run: ./gradlew analyzeArtifactSizeMetrics
- name: Show Results
uses: actions/github-script@v7
with:
script: |
const getComments =
`query {
repository(owner:"${context.repo.owner}", name:"${context.repo.repo}"){
pullRequest(number: ${context.issue.number}) {
id
comments(last:100) {
nodes {
id
body
author {
login
}
isMinimized
}
}
}
}
}`

const response = await github.graphql(getComments)
const comments = response.repository.pullRequest.comments.nodes

const mutations = comments
.filter(comment => comment.author.login == 'github-actions' && !comment.isMinimized && comment.body.startsWith('Affected Artifacts'))
.map(comment =>
github.graphql(
`mutation {
minimizeComment(input:{subjectId:"${comment.id}", classifier:OUTDATED}){
clientMutationId
}
}`
)
)
await Promise.all(mutations)

const fs = require('node:fs')
const comment = fs.readFileSync('build/reports/metrics/artifact-analysis.md', 'utf8')

const writeComment =
`mutation {
addComment(input:{body:"""${comment}""", subjectId:"${response.repository.pullRequest.id}"}){
clientMutationId
}
}`

await github.graphql(writeComment)
- name: Show Results
uses: awslabs/aws-kotlin-repo-tools/.github/actions/artifact-size-metrics/show-results@main

- name: Evaluate
if: ${{ !contains(github.event.pull_request.labels.*.name, 'acknowledge-artifact-size-increase') }}
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ jobs:
distribution: 'corretto'
java-version: 17
cache: 'gradle'
- name: Configure Gradle
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
- name: Test
shell: bash
run: |
Expand All @@ -59,6 +61,8 @@ jobs:
distribution: 'corretto'
java-version: 17
cache: 'gradle'
- name: Configure Gradle
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
- name: Test
shell: bash
run: |
Expand All @@ -83,6 +87,8 @@ jobs:
distribution: 'corretto'
java-version: 17
cache: 'gradle'
- name: Configure Gradle
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
- name: Test
shell: bash
run: |
Expand Down Expand Up @@ -110,6 +116,14 @@ jobs:
# smithy-kotlin is checked out as a sibling dir which will automatically make it an included build
path: 'aws-sdk-kotlin'
repository: 'awslabs/aws-sdk-kotlin'
- name: Configure Gradle - smithy-kotlin
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
with:
working-directory: ./smithy-kotlin
- name: Configure Gradle - aws-sdk-kotlin
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
with:
working-directory: ./aws-sdk-kotlin
- name: Configure JDK
uses: actions/setup-java@v3
with:
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 @@ -35,6 +35,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: ./smithy-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@v2
- name: Configure Gradle
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
- name: Lint ${{ env.PACKAGE_NAME }}
run: |
./gradlew ktlint
14 changes: 14 additions & 0 deletions .github/workflows/merge-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Merge main
on:
push:
branches: [ main ]
workflow_dispatch:

jobs:
merge:
runs-on: ubuntu-latest
steps:
- name: Merge main
uses: awslabs/aws-kotlin-repo-tools/.github/actions/merge-main@main
with:
exempt-branches: # Add any if required
20 changes: 20 additions & 0 deletions .github/workflows/sync-mirror.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Sync Mirror

on:
push:
branches: [ main ]
workflow_dispatch:

jobs:
git-sync:
# Only sync when pushing to source repo
if: github.repository == 'smithy-lang/smithy-kotlin'
runs-on: ubuntu-latest
steps:
- name: git-sync
uses: wei/git-sync@v3
with:
source_repo: "https://aws-sdk-kotlin-ci:${{ secrets.CI_USER_PAT }}@github.com/smithy-lang/smithy-kotlin.git"
source_branch: "main"
destination_repo: "https://aws-sdk-kotlin-ci:${{ secrets.CI_USER_PAT }}@github.com/smithy-lang/private-smithy-kotlin-staging.git"
destination_branch: "main"
48 changes: 48 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,53 @@
# Changelog

## [1.4.13] - 04/10/2025

## [1.4.12] - 04/04/2025

## [1.4.11] - 03/14/2025

## [1.4.10] - 03/06/2025

### Fixes
* Correctly handle sequential calls to `SingleFlightGroup`

## [1.4.9] - 02/27/2025

### Fixes
* Correctly generate paginators for item type names which collide with other used types (e.g., an item type `com.foo.Flow` which conflicts with `kotlinx.coroutines.flow.Flow`)

## [1.4.8] - 02/27/2025

### Fixes
* Idempotency tokens are no longer code-generated for nested structures. See: https://smithy.io/2.0/spec/behavior-traits.html#smithy-api-idempotencytoken-trait

## [1.4.7] - 02/25/2025

### Fixes
* [#1211](https://github.com/smithy-lang/smithy-kotlin/issues/1211) Fix OpenTelemetry span concurrency by using Span.asContextElement() instead of Span.makeCurrent()

## [1.4.6] - 02/25/2025

## [1.4.5] - 02/24/2025

### Features
* Add SigV4a support to the default AWS signer

## [1.4.4] - 02/18/2025

### Miscellaneous
* Increase maximum event stream message length to 24MB

## [1.4.3] - 02/13/2025

### Fixes
* Fix errors in equality checks for `CaseInsensitiveMap` which affect `Headers` and `ValuesMap` implementations
* fix: correct hash code calculation for case-insensitive map entries
* [#1413](https://github.com/awslabs/aws-sdk-kotlin/issues/1413) Favor `endpointUrl` over endpoint discovery when provided

### Miscellaneous
* Add telemetry provider configuration to `DefaultAwsSigner`

## [1.4.2] - 01/28/2025

### Fixes
Expand Down
6 changes: 1 addition & 5 deletions codegen/smithy-aws-kotlin-codegen/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,11 @@ plugins {
}

val codegenVersion: String by project
description = "Codegen support for AWS protocols"
description = "Smithy codegen support for AWS protocols"
group = "software.amazon.smithy.kotlin"
version = codegenVersion

val sdkVersion: String by project

dependencies {

implementation(libs.kotlin.stdlib.jdk8)
api(project(":codegen:smithy-kotlin-codegen"))

api(libs.smithy.aws.traits)
Expand Down
Loading
Loading