Skip to content

Commit 15a7dd8

Browse files
committed
merge main
2 parents 4b7fda1 + 4d071f3 commit 15a7dd8

File tree

100 files changed

+43351
-24345
lines changed

Some content is hidden

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

100 files changed

+43351
-24345
lines changed

.changes/5a190de6-e9e5-4908-9bf9-62c34cf254f9.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

.changes/5fa3154d-1f42-4b98-9ad1-ef8ef1ad5fbc.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

.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+
schedule:
4+
- cron: "0 7 * * 1-5" # At 07:00 UTC (00:00 PST, 03:00 EST), Monday through Friday
5+
workflow_dispatch:
6+
7+
jobs:
8+
test:
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/update-release-branch.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ on:
1616
schedule:
1717
- cron: "0 7 * * 1-5" # At 07:00 UTC (00:00 PST, 03:00 EST), Monday through Friday
1818

19+
permissions:
20+
id-token: write
21+
contents: read
22+
1923
concurrency:
2024
group: release-manual-${{ github.ref }}
2125
cancel-in-progress: true
@@ -27,6 +31,16 @@ jobs:
2731
update-release:
2832
runs-on: ubuntu-latest
2933
steps:
34+
- name: Set start timestamp
35+
id: start
36+
run: printf 'timestamp=%(%s)T\n' >> "$GITHUB_OUTPUT"
37+
- name: Configure AWS Credentials
38+
uses: aws-actions/configure-aws-credentials@v4
39+
with:
40+
role-to-assume: ${{ secrets.CI_AWS_ROLE_ARN }}
41+
aws-region: us-west-2
42+
- name: Setup kat
43+
uses: awslabs/aws-kotlin-repo-tools/.github/actions/setup-kat@main
3044
- uses: actions/checkout@v4
3145
with:
3246
ref: 'main'
@@ -91,6 +105,10 @@ jobs:
91105
shell: bash
92106
run: |
93107
echo "merging main @ $main_sha into release @ $release_sha";
108+
109+
# Getting rid of the Gradle URL config changes caused by "Configure Gradle"
110+
git stash -- gradle/wrapper/gradle-wrapper.properties
111+
94112
git switch release;
95113
input_message=${{ inputs.commit_message }}
96114
message=${input_message:-"Merging main into release"}
@@ -103,3 +121,23 @@ jobs:
103121
echo "pushing changes to release branch";
104122
git push origin release;
105123
fi
124+
- name: Calculate duration
125+
id: end
126+
run: |
127+
printf -v now '%(%s)T'
128+
duration=$(( now - ${{ steps.start.outputs.timestamp }} ))
129+
echo "duration=$duration" >> "$GITHUB_OUTPUT"
130+
- name: Emit metrics
131+
if: always() # run this step even if previous steps failed or the job is canceled
132+
uses: awslabs/aws-kotlin-repo-tools/.github/actions/emit-metrics@main
133+
with:
134+
namespace: CI Metrics
135+
dimensions: |
136+
Product=aws-sdk-kotlin
137+
Trigger=${{ github.event_name == 'schedule' && 'schedule' || 'manual' }}
138+
metrics: |
139+
ReleaseMergeAttempted:1:Count
140+
ReleaseMergeSucceeded:${{ job.status == 'success' && '1' || '0' }}:Count
141+
ReleaseMergeCanceled:${{ job.status == 'cancelled' && '1' || '0' }}:Count
142+
ReleaseMergeFailed:${{ job.status == 'failure' && '1' || '0' }}:Count
143+
ReleaseMergeDuration:${{ steps.end.outputs.duration }}:Seconds

CHANGELOG.md

Lines changed: 236 additions & 0 deletions
Large diffs are not rendered by default.

aws-runtime/aws-http/common/src/aws/sdk/kotlin/runtime/http/interceptors/UnsupportedSigningAlgorithmInterceptor.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import aws.smithy.kotlin.runtime.http.response.HttpResponse
1818
* If so it sends users to a section in the AWS SDK for Kotlin documentation on how to fix it.
1919
*/
2020
@InternalSdkApi
21+
@Deprecated("This interceptor is no longer used. It will be removed in the next minor version, v1.5.x.")
2122
public class UnsupportedSigningAlgorithmInterceptor : HttpInterceptor {
2223
override suspend fun modifyBeforeCompletion(context: ResponseInterceptorContext<Any, Any, HttpRequest?, HttpResponse?>): Result<Any> {
2324
context.response.exceptionOrNull()?.let {

codegen/aws-sdk-codegen/src/main/kotlin/aws/sdk/kotlin/codegen/AwsRuntimeTypes.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ object AwsRuntimeTypes {
6363
object Http : RuntimeTypePackage(AwsKotlinDependency.AWS_HTTP) {
6464
object Interceptors : RuntimeTypePackage(AwsKotlinDependency.AWS_HTTP, "interceptors") {
6565
val AddUserAgentMetadataInterceptor = symbol("AddUserAgentMetadataInterceptor")
66-
val UnsupportedSigningAlgorithmInterceptor = symbol("UnsupportedSigningAlgorithmInterceptor")
6766
val IgnoreCompositeFlexibleChecksumResponseInterceptor = symbol("IgnoreCompositeFlexibleChecksumResponseInterceptor")
6867

6968
object BusinessMetrics : RuntimeTypePackage(AwsKotlinDependency.AWS_HTTP, "interceptors.businessmetrics") {

codegen/aws-sdk-codegen/src/main/kotlin/aws/sdk/kotlin/codegen/customization/s3/UnsupportedSigningAlgorithmIntegration.kt

Lines changed: 0 additions & 46 deletions
This file was deleted.

codegen/aws-sdk-codegen/src/main/kotlin/aws/sdk/kotlin/codegen/endpoints/AwsBuiltins.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ package aws.sdk.kotlin.codegen.endpoints
66

77
object AwsBuiltins {
88
const val ACCOUNT_ID = "AWS::Auth::AccountId"
9+
const val ACCOUNT_ID_ENDPOINT_MODE = "AWS::Auth::AccountIdEndpointMode"
910
const val USE_FIPS = "AWS::UseFIPS"
1011
const val USE_DUAL_STACK = "AWS::UseDualStack"
1112
const val S3_ACCELERATE = "AWS::S3::Accelerate"

codegen/aws-sdk-codegen/src/main/kotlin/aws/sdk/kotlin/codegen/endpoints/BindAwsEndpointBuiltins.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,14 @@ fun renderBindAwsBuiltins(ctx: ProtocolGenerator.GenerationContext, writer: Kotl
106106
AwsRuntimeTypes.Config.Endpoints.resolveAccountId,
107107
AccountIdEndpointBuiltinCustomization.AccountIdEndpointModeProp.propertyName,
108108
)
109+
110+
AwsBuiltins.ACCOUNT_ID_ENDPOINT_MODE -> {
111+
writer.write(
112+
"#L = config.#L.toString().lowercase()", // Spec specifies these enum values must be lowercase
113+
it.defaultName(),
114+
AccountIdEndpointBuiltinCustomization.AccountIdEndpointModeProp.propertyName,
115+
)
116+
}
109117
}
110118
}
111119
}

0 commit comments

Comments
 (0)