-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Merge updates from main into project epic branch (#1325)
* chore!: Require Swift 5.7, fix deprecation warnings (#1173) * feat: support initial-response in RPC based event streams (#1165) * chore: bump models (#1178) Co-authored-by: Sichan Yoo <[email protected]> * chore: Updates version to 0.28.0 * add visionOS support to useragent (#1182) * chore: Remove all models before copying in latest versions (#1185) * chore: update models (#1187) * chore: Update to aws-crt-swift 0.15.0 (#1188) * chore: Updates version to 0.29.0 * chore: Update swiftlint to 0.53.0 (#1192) * chore: End the SDK package manifest with a newline (#1203) * fix: Update CRT dependency to 0.17.0 (#1210) * chore: Updates version to 0.30.0 * chore: Clean up unnecessary TODOs + move test functions to a better location (#1209) * feat: expose presign / presignURL methods in Models.swift to service client object (#1198) * Add codegen to expose presign / presignURL methods on service client object. --------- Co-authored-by: Sichan Yoo <[email protected]> * chore: Bump models in prep for release 0.31.0 (#1218) * chore: Updates version to 0.31.0 * fix: add s3 control to list of service clients that should have useSignedBodyHeader (#1219) * update SQS to latest model that uses aws json protocol + add integration test (#1233) * fix: Fix tests related to operation doc header (#1231) * fix: Codegen issues re: recursion, Swift keywords in unions (#1237) * fix: Integration test crashes on failure, build warning (#1239) * feat!: Replace the XML encoder with a custom Smithy implementation (#1224) * chore: Modernize the codegen-build-test CI workflow (#1240) * chore: Modernize the codegen-build-test-on-comment CI workflow (#1243) * fix: Fix ref used for smithy-swift checkout in codegen-build-test-on-comment (#1244) * feat!: Use closures for processing HTTP response (#1242) * add IsTruncated pagination customization for S3 ListParts (#1245) * feat: Publish documentation to public distribution (#1232) * fix: Fix script for extracting version from GH ref (#1247) * chore: Codegen dev script takes args for manifest generator (#1246) * fix: Use bash to run doc generator version step (#1248) * chore: Update models (#1252) * chore: Updates version to 0.32.0 * fix: DocC post-testing fixes (#1249) * chore: Run tvOS old & new in CI (#1253) * feat: Package manifest generator improvements (#1250) * fix: Use new manifest generator options to run protocol & unit tests in CI (#1257) * chore: remove use of HttpBody and replace with ByteStream (#1254) * fix: Remove codegen-build-test-on-comment workflow (#1262) * chore: update smithy to 1.42.0 (#1261) * feat: Add codegen-build-test workflow to pull requests (#1263) * fix: codegen-build-test with workflow dispatch & custom branch names (#1265) * fix integration tests (#1268) * chore: bump models (#1270) * chore: Updates version to 0.33.0 * fix: Batch documentation modules properly (#1274) * chore: Update to aws-crt-swift 0.20.0 (#1275) * fix: update partitions to latest fixes failing endpoints tests (#1277) * feat: handle errors in 200 response from S3 (#1266) * chore: Use Xcode 15.1 as CI latest version (#1286) * Delete unnecessary TODO item. (#1288) Co-authored-by: Sichan Yoo <[email protected]> * feat!: Use Foundation-based HTTP client on Apple platforms (#1282) * fix integration tests to conform to latest HTTPClient change (#1295) * chore: update to CRT 0.22.0 (#1296) * chore: Update smithy-swift to 0.38.0 (#1298) * chore: Update .spi.yml (#1297) * Delete bundle region provider. (#1290) Co-authored-by: Sichan Yoo <[email protected]> * fix!: Refactor resolveRegion method name to getRegion for consistency. (#1291) * Refactor resolveRegion method name to getRegion for consistency. --------- Co-authored-by: Sichan Yoo <[email protected]> * chore: Update models (#1301) * fix: Preserve data after reading response body stream in S3/200 middleware (#1303) * chore: Updates version to 0.34.0 * feat: Add integration tests to CI (#1308) * feat!: Provide HTTP request components by closure instead of protocol (#1317) * Update models with latest from main. * Add needed fix for making integration tests pass. * Fix input to private init of AWSClientConfig. --------- Co-authored-by: Josh Elkins <[email protected]> Co-authored-by: David Yaffe <[email protected]> Co-authored-by: Sichan Yoo <[email protected]> Co-authored-by: AWS SDK Swift Automation <[email protected]> Co-authored-by: Sven A. Schmidt <[email protected]>
- Loading branch information
1 parent
4069b54
commit 5137a69
Showing
623 changed files
with
155,245 additions
and
2,538 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,159 @@ | ||
name: Integration Tests | ||
|
||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
env: | ||
AWS_SWIFT_SDK_USE_LOCAL_DEPS: 1 | ||
|
||
permissions: | ||
id-token: write | ||
|
||
jobs: | ||
apple: | ||
runs-on: ${{ matrix.runner }} | ||
environment: Integration-Test | ||
env: | ||
DEVELOPER_DIR: /Applications/${{ matrix.xcode }}.app/Contents/Developer | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
# This matrix runs tests on Mac, on oldest & newest supported Xcodes | ||
runner: | ||
- macos-12 | ||
- macos-13 | ||
xcode: | ||
- Xcode_14.0.1 | ||
- Xcode_15.2 | ||
exclude: | ||
# Don't run old macOS with new Xcode | ||
- runner: macos-12 | ||
xcode: Xcode_15.2 | ||
# Don't run new macOS with old Xcode | ||
- runner: macos-13 | ||
xcode: Xcode_14.0.1 | ||
steps: | ||
- name: Configure AWS Credentials for Integration Tests | ||
uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
role-to-assume: ${{ secrets.INTEGRATION_TEST_ROLE_ARN }} | ||
aws-region: us-west-2 | ||
- name: Checkout aws-sdk-swift | ||
uses: actions/checkout@v3 | ||
- name: Select smithy-swift branch | ||
run: | | ||
ORIGINAL_REPO_HEAD_REF="$GITHUB_HEAD_REF" \ | ||
DEPENDENCY_REPO_URL="https://github.com/smithy-lang/smithy-swift.git" \ | ||
./scripts/ci_steps/select_dependency_branch.sh | ||
- name: Checkout smithy-swift | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: smithy-lang/smithy-swift | ||
ref: ${{ env.DEPENDENCY_REPO_SHA }} | ||
path: smithy-swift | ||
- name: Move smithy-swift into place | ||
run: mv smithy-swift .. | ||
- name: Cache Gradle | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
key: 1-${{ runner.os }}-gradle-${{ hashFiles('settings.gradle.kts', 'gradle/wrapper/gradle-wrapper.properties') }} | ||
restore-keys: | | ||
1-${{ runner.os }}-gradle-${{ hashFiles('settings.gradle.kts', 'gradle/wrapper/gradle-wrapper.properties') }} | ||
1-${{ runner.os }}-gradle- | ||
- name: Cache Swift | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/Library/Caches/org.swift.swiftpm | ||
~/.cache/org.swift.swiftpm | ||
key: 1-${{ runner.os }}-${{ matrix.xcode }}-${{ hashFiles('Package.swift', 'AWSSDKSwiftCLI/Package.swift') }} | ||
restore-keys: | | ||
1-${{ runner.os }}-${{ matrix.xcode }}-${{ hashFiles('Package.swift', 'AWSSDKSwiftCLI/Package.swift') }} | ||
1-${{ runner.os }}-${{ matrix.xcode }}- | ||
- name: Setup Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: corretto | ||
java-version: 17 | ||
- name: Tools Versions | ||
run: ./scripts/ci_steps/log_tool_versions.sh | ||
- name: Prepare Integration Tests | ||
run: ./scripts/ci_steps/prepare_integration_tests.sh | ||
- name: Build Integration Tests | ||
run: swift build --build-tests | ||
- name: Run Integration Tests | ||
run: swift test | ||
|
||
linux: | ||
runs-on: ubuntu-latest | ||
environment: Integration-Test | ||
container: swift:${{ matrix.version }}-${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- focal | ||
#- amazonlinux2 | ||
version: | ||
- 5.7 | ||
- 5.9 | ||
steps: | ||
- name: Configure AWS Credentials for Integration Tests | ||
uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
role-to-assume: ${{ secrets.INTEGRATION_TEST_ROLE_ARN }} | ||
aws-region: us-west-2 | ||
- name: Checkout aws-sdk-swift | ||
uses: actions/checkout@v3 | ||
- name: Select smithy-swift branch | ||
run: | | ||
ORIGINAL_REPO_HEAD_REF="${GITHUB_HEAD_REF:-${GITHUB_REF_NAME:-main}}" \ | ||
DEPENDENCY_REPO_URL="https://github.com/smithy-lang/smithy-swift.git" \ | ||
./scripts/ci_steps/select_dependency_branch.sh | ||
- name: Checkout smithy-swift | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: smithy-lang/smithy-swift | ||
ref: ${{ env.DEPENDENCY_REPO_SHA }} | ||
path: smithy-swift | ||
- name: Move smithy-swift into place | ||
run: mv smithy-swift .. | ||
- name: Cache Gradle | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
key: 1-${{ runner.os }}-gradle-${{ hashFiles('settings.gradle.kts', 'gradle/wrapper/gradle-wrapper.properties') }} | ||
restore-keys: | | ||
1-${{ runner.os }}-gradle-${{ hashFiles('settings.gradle.kts', 'gradle/wrapper/gradle-wrapper.properties') }} | ||
1-${{ runner.os }}-gradle- | ||
- name: Cache Swift | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/Library/Caches/org.swift.swiftpm | ||
~/.cache/org.swift.swiftpm | ||
key: 1-${{ runner.os }}-swift-${{ matrix.version }}-spm-${{ hashFiles('Package.swift', 'AWSSDKSwiftCLI/Package.swift') }} | ||
restore-keys: | | ||
1-${{ runner.os }}-swift-${{ matrix.version }}-spm-${{ hashFiles('Package.swift', 'AWSSDKSwiftCLI/Package.swift') }} | ||
1-${{ runner.os }}-swift-${{ matrix.version }}-spm- | ||
- name: Setup Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: corretto | ||
java-version: 17 | ||
- name: Install OpenSSL (all OS) and which (AL2 only) | ||
run: ./scripts/ci_steps/install_native_linux_dependencies.sh | ||
- name: Tools Versions | ||
run: ./scripts/ci_steps/log_tool_versions.sh | ||
- name: Prepare Integration Tests | ||
run: ./scripts/ci_steps/prepare_integration_tests.sh | ||
- name: Build Integration Tests | ||
run: swift build --build-tests | ||
- name: Run Integration Tests | ||
run: swift test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,5 @@ | ||
version: 1 | ||
builder: | ||
configs: | ||
- platform: macosXcodebuild | ||
target: AWSSTS | ||
- platform: ios | ||
target: AWSSTS | ||
- platform: linux | ||
swift_version: '5.7' | ||
image: registry.gitlab.com/finestructure/spi-images:basic-5.7-latest | ||
target: AWSSTS | ||
- platform: linux | ||
swift_version: '5.8' | ||
image: registry.gitlab.com/finestructure/spi-images:basic-5.8-latest | ||
target: AWSSTS | ||
- platform: linux | ||
swift_version: '5.9' | ||
image: registry.gitlab.com/finestructure/spi-images:basic-5.9-latest | ||
target: AWSSTS | ||
|
||
- target: AWSSTS | ||
scheme: AWSSTS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.33.0 | ||
0.34.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.