Skip to content

Commit bec032d

Browse files
committed
merge main
2 parents 63653e2 + 23f09b0 commit bec032d

File tree

154 files changed

+39504
-15482
lines changed

Some content is hidden

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

154 files changed

+39504
-15482
lines changed

.brazil-1.x.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"dependencies": {
3+
"org.jetbrains.kotlin:kotlin-gradle-plugin:2.*": "KotlinGradlePlugin-2.x",
4+
"org.jetbrains.kotlin:kotlin-stdlib-common:2.*.*": "KotlinStdlibCommon-2.x",
5+
"org.jetbrains.kotlin:kotlin-stdlib-jdk8:2.*.*": "KotlinStdlibJdk8-2.x",
6+
"org.jetbrains.kotlin:kotlin-stdlib:2.*.*": "KotlinStdlib-2.x",
7+
"org.jetbrains.kotlinx:atomicfu:0.*.*": "Atomicfu-0.x",
8+
"org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.*": "KotlinxCoroutinesCoreJvm-1.x",
9+
"org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:1.*": "KotlinxCoroutinesJdk8-1.x",
10+
"com.google.devtools.ksp:symbol-processing-api:2.*": "Maven-com-google-devtools-ksp_symbol-processing-api-2.x",
11+
"com.google.devtools.ksp:symbol-processing-gradle-plugin:2.*": "Maven-com-google-devtools-ksp_symbol-processing-gradle-plugin-2.x"
12+
},
13+
"packageHandlingRules": {
14+
"versioning": {
15+
"defaultVersionLayout": "{MAJOR}.x"
16+
},
17+
"ignore": [
18+
"aws.sdk.kotlin:bom",
19+
"aws.sdk.kotlin:testing",
20+
"aws.sdk.kotlin:version-catalog"
21+
],
22+
"resolvesConflictDependencies": {
23+
"org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.*" : ["KotlinxCoroutinesCoreJvm-1.x"],
24+
"org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:1.*": ["KotlinxCoroutinesJdk8-1.x"],
25+
"aws.smithy.kotlin:aws-event-stream:1.*": ["KotlinxCoroutinesCoreJvm-1.x"]
26+
}
27+
}
28+
}

.github/scripts/run-codebuild-batch-job.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ START_RESULT=$(
9494
aws codebuild start-build-batch \
9595
--project-name ${PROJECT_NAME} \
9696
--source-version $SOURCE_VERSION \
97-
--environment-variables-override file:///tmp/gh_env_vars.json
97+
--environment-variables-override file:///tmp/gh_env_vars.json \
98+
--source-location-override "https://github.com/awslabs/$GITHUB_REPOSITORY_NO_ORG.git"
9899
)
99100

100101
if [ "$?" != "0" ]; then

.github/workflows/merge-main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ jobs:
1111
- name: Merge main
1212
uses: awslabs/aws-kotlin-repo-tools/.github/actions/merge-main@main
1313
with:
14+
ci-user-pat: ${{ secrets.CI_USER_PAT }}
1415
exempt-branches: # Add any if required
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: Release readiness (snapshot dependency)
2+
description: >
3+
Makes sure that we aren't relying on SNAPSHOT/dev versions of smithy-kotlin before merging
4+
otherwise we could forget because the rest of CI is masking it.
5+
6+
on:
7+
pull_request:
8+
branches: [ main ]
9+
10+
jobs:
11+
release-readiness:
12+
if: ${{ !contains(github.event.pull_request.labels.*.name, 'ready-for-release') }}
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout SDK
16+
uses: actions/checkout@v4
17+
with:
18+
path: 'aws-sdk-kotlin'
19+
20+
- name: Configure Gradle
21+
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
22+
with:
23+
working-directory: ./aws-sdk-kotlin
24+
25+
- name: Build SDK
26+
working-directory: ./aws-sdk-kotlin
27+
run: ./gradlew test jvmTest
28+
29+
- name: Build SDK client
30+
working-directory: ./aws-sdk-kotlin
31+
run: |
32+
./gradlew -Paws.kotlin.native=false -Paws.services=s3 bootstrap
33+
./gradlew -Paws.kotlin.native=false build
34+
35+
- name: Checkout smithy-kotlin
36+
uses: awslabs/aws-kotlin-repo-tools/.github/actions/checkout-head@main
37+
with:
38+
path: 'smithy-kotlin'
39+
repository: 'smithy-lang/smithy-kotlin'
40+
41+
- name: Check for smithy-kotlin unreleased changes
42+
run: |
43+
echo "aws-sdk-kotlin branch: $GITHUB_HEAD_REF"
44+
45+
cd smithy-kotlin
46+
SMITHY_KOTLIN_BRANCH=$(git branch --show-current)
47+
echo "smithy-kotlin branch: $SMITHY_KOTLIN_BRANCH"
48+
49+
if [ "$GITHUB_HEAD_REF" == "$SMITHY_KOTLIN_BRANCH" ]; then
50+
cd ../aws-sdk-kotlin
51+
git fetch origin
52+
53+
DIFF=$(git diff origin/main -- gradle/libs.versions.toml | grep '^[-+][^-+]'; exit 0)
54+
SMITHY_KOTLIN_VERSION_BUMP=$(echo "$DIFF" | grep "smithy-kotlin-runtime-version =\|smithy-kotlin-codegen-version ="; exit 0)
55+
56+
if [ -z "$SMITHY_KOTLIN_VERSION_BUMP" ]; then
57+
echo "::error::Matching smithy-kotlin and aws-sdk-kotlin branches but no smithy-kotlin version bump"
58+
exit 1
59+
else
60+
echo "Matching smithy-kotlin and aws-sdk-kotlin branches with smithy-kotlin version bump detected"
61+
fi
62+
fi
63+
64+
- name: Emit error message
65+
if: ${{ failure() }}
66+
run: |
67+
echo "::error::Did you forget to release smithy-kotlin and bump the dependency version?"
68+
exit 1

.github/workflows/update-canary.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
release:
66
types: [ published ]
77

8+
permissions:
9+
id-token: write
10+
contents: read
11+
812
jobs:
913
update-canary:
1014
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)