Skip to content

Commit 1687088

Browse files
authored
chore: merge main into v1.5-main (#1269)
1 parent 1077f10 commit 1687088

File tree

74 files changed

+1968
-337
lines changed

Some content is hidden

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

74 files changed

+1968
-337
lines changed

.brazil.json

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,30 +7,44 @@
77
"com.squareup.okhttp3:okhttp:5.*": "OkHttp3-5.x",
88
"com.squareup.okio:okio-jvm:3.*": "OkioJvm-3.x",
99
"io.opentelemetry:opentelemetry-api:1.*": "Maven-io-opentelemetry_opentelemetry-api-1.x",
10+
"io.opentelemetry:opentelemetry-extension-kotlin:1.*": "Maven-io-opentelemetry_opentelemetry-extension-kotlin-1.x",
1011
"org.slf4j:slf4j-api:2.*": "Maven-org-slf4j_slf4j-api-2.x",
1112
"aws.sdk.kotlin.crt:aws-crt-kotlin:0.9.*": "AwsCrtKotlin-0.9.x",
1213
"aws.sdk.kotlin.crt:aws-crt-kotlin:0.8.*": "AwsCrtKotlin-0.8.x",
13-
"com.squareup.okhttp3:okhttp:4.*": "OkHttp3-4.x"
14+
"com.squareup.okhttp3:okhttp:4.*": "OkHttp3-4.x",
15+
16+
"software.amazon.smithy:smithy-aws-traits:1.*": "Maven-software-amazon-smithy_smithy-aws-traits-1.x",
17+
"software.amazon.smithy:smithy-aws-iam-traits:1.*": "Maven-software-amazon-smithy_smithy-aws-iam-traits-1.x",
18+
"software.amazon.smithy:smithy-aws-cloudformation-traits:1.*": "Maven-software-amazon-smithy_smithy-aws-cloudformation-traits-1.x",
19+
"software.amazon.smithy:smithy-protocol-test-traits:1.*": "Maven-software-amazon-smithy_smithy-protocol-test-traits-1.x",
20+
"software.amazon.smithy:smithy-protocol-traits:1.*": "Maven-software-amazon-smithy_smithy-protocol-traits-1.x",
21+
"software.amazon.smithy:smithy-aws-endpoints:1.*": "Maven-software-amazon-smithy_smithy-aws-endpoints-1.x",
22+
"software.amazon.smithy:smithy-codegen-core:1.*": "Maven-software-amazon-smithy_smithy-codegen-core-1.x",
23+
"software.amazon.smithy:smithy-waiters:1.*": "Maven-software-amazon-smithy_smithy-waiters-1.x",
24+
"software.amazon.smithy:smithy-rules-engine:1.*": "Maven-software-amazon-smithy_smithy-rules-engine-1.x",
25+
"software.amazon.smithy:smithy-smoke-test-traits:1.*": "Maven-software-amazon-smithy_smithy-smoke-test-traits-1.x",
26+
"org.jsoup:jsoup:1.19.*": "Maven-jsoup-1.19.x"
1427
},
1528
"packageHandlingRules": {
1629
"versioning": {
1730
"defaultVersionLayout": "{MAJOR}.0.x",
1831
"overrides": {
19-
"software.amazon.smithy.kotlin:smithy-kotlin-codegen": "{MAJOR}.{MINOR}.x",
20-
"software.amazon.smithy.kotlin:smithy-kotlin-codegen-testutils": "{MAJOR}.{MINOR}.x"
32+
"software.amazon.smithy.kotlin:smithy-aws-kotlin-codegen": "{MAJOR}.x",
33+
"software.amazon.smithy.kotlin:smithy-kotlin-codegen": "{MAJOR}.x"
2134
}
2235
},
2336
"rename": {
24-
"software.amazon.smithy.kotlin:smithy-kotlin-codegen": "SmithyKotlinCodegen",
25-
"software.amazon.smithy.kotlin:smithy-kotlin-codegen-testutils": "SmithyKotlinCodegenTestUtils"
37+
"software.amazon.smithy.kotlin:smithy-aws-kotlin-codegen": "AwsSmithyAwsKotlinCodegen",
38+
"software.amazon.smithy.kotlin:smithy-kotlin-codegen": "AwsSmithyKotlinCodegen"
2639
},
2740
"ignore": [
2841
"aws.smithy.kotlin:http-test",
2942
"aws.smithy.kotlin:smithy-test",
3043
"aws.smithy.kotlin:telemetry-provider-micrometer",
3144
"aws.smithy.kotlin:testing",
3245
"aws.smithy.kotlin:bom",
33-
"aws.smithy.kotlin:version-catalog"
46+
"aws.smithy.kotlin:version-catalog",
47+
"software.amazon.smithy.kotlin:smithy-kotlin-codegen-testutils"
3448
],
3549
"resolvesConflictDependencies": {
3650
"org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.*": [

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

Lines changed: 6 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ jobs:
3131
with:
3232
role-to-assume: ${{ secrets.CI_AWS_ROLE_ARN }}
3333
aws-region: us-west-2
34+
- name: Configure Gradle
35+
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
3436
- name: Generate Artifact Size Metrics
3537
run: ./gradlew artifactSizeMetrics
3638
- name: Save Artifact Size Metrics
@@ -54,60 +56,15 @@ jobs:
5456
with:
5557
role-to-assume: ${{ secrets.CI_AWS_ROLE_ARN }}
5658
aws-region: us-west-2
59+
- name: Configure Gradle
60+
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
5761
- name: Generate Artifact Size Metrics
5862
run: ./gradlew artifactSizeMetrics
5963
- name: Analyze Artifact Size Metrics
6064
run: ./gradlew analyzeArtifactSizeMetrics
61-
- name: Show Results
62-
uses: actions/github-script@v7
63-
with:
64-
script: |
65-
const getComments =
66-
`query {
67-
repository(owner:"${context.repo.owner}", name:"${context.repo.repo}"){
68-
pullRequest(number: ${context.issue.number}) {
69-
id
70-
comments(last:100) {
71-
nodes {
72-
id
73-
body
74-
author {
75-
login
76-
}
77-
isMinimized
78-
}
79-
}
80-
}
81-
}
82-
}`
83-
84-
const response = await github.graphql(getComments)
85-
const comments = response.repository.pullRequest.comments.nodes
86-
87-
const mutations = comments
88-
.filter(comment => comment.author.login == 'github-actions' && !comment.isMinimized && comment.body.startsWith('Affected Artifacts'))
89-
.map(comment =>
90-
github.graphql(
91-
`mutation {
92-
minimizeComment(input:{subjectId:"${comment.id}", classifier:OUTDATED}){
93-
clientMutationId
94-
}
95-
}`
96-
)
97-
)
98-
await Promise.all(mutations)
9965

100-
const fs = require('node:fs')
101-
const comment = fs.readFileSync('build/reports/metrics/artifact-analysis.md', 'utf8')
102-
103-
const writeComment =
104-
`mutation {
105-
addComment(input:{body:"""${comment}""", subjectId:"${response.repository.pullRequest.id}"}){
106-
clientMutationId
107-
}
108-
}`
109-
110-
await github.graphql(writeComment)
66+
- name: Show Results
67+
uses: awslabs/aws-kotlin-repo-tools/.github/actions/artifact-size-metrics/show-results@main
11168

11269
- name: Evaluate
11370
if: ${{ !contains(github.event.pull_request.labels.*.name, 'acknowledge-artifact-size-increase') }}

.github/workflows/continuous-integration.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ jobs:
3939
distribution: 'corretto'
4040
java-version: 17
4141
cache: 'gradle'
42+
- name: Configure Gradle
43+
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
4244
- name: Test
4345
shell: bash
4446
run: |
@@ -59,6 +61,8 @@ jobs:
5961
distribution: 'corretto'
6062
java-version: 17
6163
cache: 'gradle'
64+
- name: Configure Gradle
65+
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
6266
- name: Test
6367
shell: bash
6468
run: |
@@ -83,6 +87,8 @@ jobs:
8387
distribution: 'corretto'
8488
java-version: 17
8589
cache: 'gradle'
90+
- name: Configure Gradle
91+
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
8692
- name: Test
8793
shell: bash
8894
run: |
@@ -110,6 +116,14 @@ jobs:
110116
# smithy-kotlin is checked out as a sibling dir which will automatically make it an included build
111117
path: 'aws-sdk-kotlin'
112118
repository: 'awslabs/aws-sdk-kotlin'
119+
- name: Configure Gradle - smithy-kotlin
120+
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
121+
with:
122+
working-directory: ./smithy-kotlin
123+
- name: Configure Gradle - aws-sdk-kotlin
124+
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
125+
with:
126+
working-directory: ./aws-sdk-kotlin
113127
- name: Configure JDK
114128
uses: actions/setup-java@v3
115129
with:

.github/workflows/kat-transform.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ jobs:
3535
role-to-assume: ${{ secrets.CI_AWS_ROLE_ARN }}
3636
aws-region: us-west-2
3737

38+
- name: Configure Gradle
39+
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
40+
with:
41+
working-directory: ./smithy-kotlin
42+
3843
- name: Setup kat
3944
uses: awslabs/aws-kotlin-repo-tools/.github/actions/setup-kat@main
4045

.github/workflows/lint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
steps:
2222
- name: Checkout sources
2323
uses: actions/checkout@v2
24+
- name: Configure Gradle
25+
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
2426
- name: Lint ${{ env.PACKAGE_NAME }}
2527
run: |
2628
./gradlew ktlint

.github/workflows/merge-main.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Merge main
2+
on:
3+
push:
4+
branches: [ main ]
5+
workflow_dispatch:
6+
7+
jobs:
8+
merge:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Merge main
12+
uses: awslabs/aws-kotlin-repo-tools/.github/actions/merge-main@main
13+
with:
14+
exempt-branches: # Add any if required

.github/workflows/sync-mirror.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Sync Mirror
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
workflow_dispatch:
7+
8+
jobs:
9+
git-sync:
10+
# Only sync when pushing to source repo
11+
if: github.repository == 'smithy-lang/smithy-kotlin'
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: git-sync
15+
uses: wei/git-sync@v3
16+
with:
17+
source_repo: "https://aws-sdk-kotlin-ci:${{ secrets.CI_USER_PAT }}@github.com/smithy-lang/smithy-kotlin.git"
18+
source_branch: "main"
19+
destination_repo: "https://aws-sdk-kotlin-ci:${{ secrets.CI_USER_PAT }}@github.com/smithy-lang/private-smithy-kotlin-staging.git"
20+
destination_branch: "main"

CHANGELOG.md

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

3+
## [1.4.13] - 04/10/2025
4+
5+
## [1.4.12] - 04/04/2025
6+
7+
## [1.4.11] - 03/14/2025
8+
9+
## [1.4.10] - 03/06/2025
10+
11+
### Fixes
12+
* Correctly handle sequential calls to `SingleFlightGroup`
13+
14+
## [1.4.9] - 02/27/2025
15+
16+
### Fixes
17+
* 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`)
18+
19+
## [1.4.8] - 02/27/2025
20+
21+
### Fixes
22+
* Idempotency tokens are no longer code-generated for nested structures. See: https://smithy.io/2.0/spec/behavior-traits.html#smithy-api-idempotencytoken-trait
23+
24+
## [1.4.7] - 02/25/2025
25+
26+
### Fixes
27+
* [#1211](https://github.com/smithy-lang/smithy-kotlin/issues/1211) Fix OpenTelemetry span concurrency by using Span.asContextElement() instead of Span.makeCurrent()
28+
29+
## [1.4.6] - 02/25/2025
30+
31+
## [1.4.5] - 02/24/2025
32+
33+
### Features
34+
* Add SigV4a support to the default AWS signer
35+
36+
## [1.4.4] - 02/18/2025
37+
38+
### Miscellaneous
39+
* Increase maximum event stream message length to 24MB
40+
41+
## [1.4.3] - 02/13/2025
42+
43+
### Fixes
44+
* Fix errors in equality checks for `CaseInsensitiveMap` which affect `Headers` and `ValuesMap` implementations
45+
* fix: correct hash code calculation for case-insensitive map entries
46+
* [#1413](https://github.com/awslabs/aws-sdk-kotlin/issues/1413) Favor `endpointUrl` over endpoint discovery when provided
47+
48+
### Miscellaneous
49+
* Add telemetry provider configuration to `DefaultAwsSigner`
50+
351
## [1.4.2] - 01/28/2025
452

553
### Fixes

codegen/smithy-aws-kotlin-codegen/build.gradle.kts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,11 @@ plugins {
1313
}
1414

1515
val codegenVersion: String by project
16-
description = "Codegen support for AWS protocols"
16+
description = "Smithy codegen support for AWS protocols"
1717
group = "software.amazon.smithy.kotlin"
1818
version = codegenVersion
1919

20-
val sdkVersion: String by project
21-
2220
dependencies {
23-
24-
implementation(libs.kotlin.stdlib.jdk8)
2521
api(project(":codegen:smithy-kotlin-codegen"))
2622

2723
api(libs.smithy.aws.traits)

0 commit comments

Comments
 (0)