Skip to content

Commit b475dfd

Browse files
committed
Merge remote-tracking branch 'origin/main' into feat-invocation-scoped-metrics
2 parents e2d70b0 + 0f8db44 commit b475dfd

File tree

192 files changed

+5151
-846
lines changed

Some content is hidden

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

192 files changed

+5151
-846
lines changed

.brazil.json

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
{
22
"dependencies": {
3-
"org.jetbrains.kotlin:kotlin-stdlib:2.0.*": "KotlinStdlib-2.x",
4-
"org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.8.*": "KotlinxCoroutinesCoreJvm-1.8.x",
3+
"org.jetbrains.kotlin:kotlin-stdlib:2.*": "KotlinStdlib-2.x",
4+
"org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.*": "KotlinxCoroutinesCoreJvm-1.x",
55

66
"com.squareup.okhttp3:okhttp-coroutines:5.*": "OkHttp3Coroutines-5.x",
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",
1010
"org.slf4j:slf4j-api:2.*": "Maven-org-slf4j_slf4j-api-2.x",
11-
"aws.sdk.kotlin.crt:aws-crt-kotlin:0.8.*": "AwsCrtKotlin-0.8.x"
11+
"aws.sdk.kotlin.crt:aws-crt-kotlin:0.9.*": "AwsCrtKotlin-0.9.x",
12+
"aws.sdk.kotlin.crt:aws-crt-kotlin:0.8.*": "AwsCrtKotlin-0.8.x",
13+
"com.squareup.okhttp3:okhttp:4.*": "OkHttp3-4.x"
1214
},
1315
"packageHandlingRules": {
1416
"versioning": {
@@ -25,14 +27,18 @@
2527
"ignore": [
2628
"aws.smithy.kotlin:http-test",
2729
"aws.smithy.kotlin:smithy-test",
30+
"aws.smithy.kotlin:telemetry-provider-micrometer",
2831
"aws.smithy.kotlin:testing",
2932
"aws.smithy.kotlin:bom",
3033
"aws.smithy.kotlin:version-catalog"
3134
],
3235
"resolvesConflictDependencies": {
36+
"org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.*": [
37+
"KotlinxCoroutinesCoreJvm-1.x"
38+
],
3339
"com.squareup.okhttp3:okhttp-coroutines:5.*": [
3440
"KotlinStdlib-2.x",
35-
"KotlinxCoroutinesCoreJvm-1.8.x",
41+
"KotlinxCoroutinesCoreJvm-1.x",
3642
"KotlinStdlibJdk7-2.x",
3743
"KotlinStdlibJdk8-2.x"
3844
],
@@ -41,6 +47,9 @@
4147
],
4248
"com.squareup.okio:okio-jvm:3.*": [
4349
"KotlinStdlib-2.x"
50+
],
51+
"com.squareup.okhttp3:okhttp:4.*": [
52+
"OkHttp3-4.x"
4453
]
4554
}
4655
}

.changes/29e93882-7346-4a2f-bbcd-1cdf478a3b10.json

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

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@ body:
1111
validations:
1212
required: true
1313

14+
- type: checkboxes
15+
id: regression
16+
attributes:
17+
label: Regression Issue
18+
description: What is a regression? If it worked in a previous version but doesn't in the latest version, it's considered a regression. In this case, please provide specific version number in the report.
19+
options:
20+
- label: Select this option if this issue appears to be a regression.
21+
required: false
22+
1423
- type: textarea
1524
id: expected
1625
attributes:

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

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

810
jobs:
911
api-compat-verification:

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ name: Artifact Size Metrics
22
on:
33
pull_request:
44
types: [ opened, synchronize, reopened, labeled, unlabeled ]
5-
branches: [ main ]
5+
branches:
6+
- main
7+
- '*-main'
68
release:
79
types: [published]
810

.github/workflows/changelog-verification.yml

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

810
jobs:
911
changelog-verification:

.github/workflows/continuous-integration.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ name: CI
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches:
6+
- main
7+
- '*-main'
68
pull_request:
79
workflow_dispatch:
810

@@ -66,7 +68,7 @@ jobs:
6668
./gradlew test jvmTest
6769
- name: Save Test Reports
6870
if: failure()
69-
uses: actions/upload-artifact@v3
71+
uses: actions/upload-artifact@v4
7072
with:
7173
name: test-reports-${{ matrix.os }}
7274
path: '**/build/reports'

.github/workflows/dependabot.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ name: Dependabot Dependency Submission
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches:
6+
- main
7+
- '*-main'
68

79
permissions:
810
contents: write
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Apply potential regression label on issues
2+
name: issue-regression-label
3+
on:
4+
issues:
5+
types: [opened, edited]
6+
jobs:
7+
add-regression-label:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
issues: write
11+
steps:
12+
- name: Fetch template body
13+
id: check_regression
14+
uses: actions/github-script@v7
15+
env:
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
TEMPLATE_BODY: ${{ github.event.issue.body }}
18+
with:
19+
script: |
20+
const regressionPattern = /\[x\] Select this option if this issue appears to be a regression\./i;
21+
const template = `${process.env.TEMPLATE_BODY}`
22+
const match = regressionPattern.test(template);
23+
core.setOutput('is_regression', match);
24+
- name: Manage regression label
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
run: |
28+
if [ "${{ steps.check_regression.outputs.is_regression }}" == "true" ]; then
29+
gh issue edit ${{ github.event.issue.number }} --add-label "potential-regression" -R ${{ github.repository }}
30+
else
31+
gh issue edit ${{ github.event.issue.number }} --remove-label "potential-regression" -R ${{ github.repository }}
32+
fi
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
name: Kat Transform
2+
3+
on:
4+
pull_request:
5+
types: [ opened, synchronize, reopened, labeled, unlabeled ]
6+
branches:
7+
- main
8+
- '*-main'
9+
10+
# Allow one instance of this workflow per pull request, and cancel older runs when new changes are pushed
11+
concurrency:
12+
group: kat-pr-${{ github.ref }}
13+
cancel-in-progress: true
14+
15+
permissions:
16+
id-token: write
17+
contents: read
18+
19+
env:
20+
RUN: ${{ github.run_id }}-${{ github.run_number }}
21+
GRADLE_OPTS: "-Dorg.gradle.daemon=false -Dkotlin.incremental=false"
22+
23+
jobs:
24+
verify-transform:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- name: Checkout sources
28+
uses: actions/checkout@v4
29+
with:
30+
path: 'smithy-kotlin'
31+
32+
- name: Configure AWS Credentials
33+
uses: aws-actions/configure-aws-credentials@v4
34+
with:
35+
role-to-assume: ${{ secrets.CI_AWS_ROLE_ARN }}
36+
aws-region: us-west-2
37+
38+
- name: Setup kat
39+
uses: awslabs/aws-kotlin-repo-tools/.github/actions/setup-kat@main
40+
41+
- name: Configure JDK
42+
uses: actions/setup-java@v3
43+
with:
44+
distribution: 'corretto'
45+
java-version: 17
46+
cache: 'gradle'
47+
48+
- name: Build
49+
working-directory: ./smithy-kotlin
50+
shell: bash
51+
run: |
52+
pwd
53+
ls -lsa
54+
kat bump-version # Bump from `vNext-SNAPSHOT` to `vNext`. kat transform only works on non-SNAPSHOT versions
55+
kat bump-version --property codegenVersion
56+
./gradlew build
57+
./gradlew publishAllPublicationsToTestLocalRepository
58+
59+
- name: Transform
60+
working-directory: ./smithy-kotlin
61+
shell: bash
62+
run: |
63+
pwd
64+
ls -lsa
65+
kat brazil transform -i ./build/m2 -o ./transformed -t .brazil.json -v live
66+
67+
# Check for manifest file
68+
if [ ! -f "./transformed/brazil-import-manifest.json" ]; then
69+
echo "Error: brazil-import-manifest.json not found in the transformed artifact"
70+
exit 1
71+
fi
72+
73+
echo "Transformation succeeded!"

0 commit comments

Comments
 (0)