Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: Standalone protocol test package #1589

Merged
merged 6 commits into from
Jun 25, 2024
Merged

Conversation

sichanyoo
Copy link
Contributor

Issue #

#1551

Description of changes

In logical order, from top to bottom:

  • Add a new Package.swift for protocol tests, under codegen/.
  • Remove addProtocolTests() function from the Package.Base.swift.
  • Remove includeProtocolTests flag and addProtocolTests() function call codegen from AWSSDKSwiftCLI package codegen.
  • Remove includeProtocolTests flag from where they're used in scripts.
  • Update GH CI to run protocol tests with the new Package.swift under codegen/.

New/existing dependencies impact assessment, if applicable

Conventional Commits

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@sichanyoo sichanyoo requested a review from jbelkins June 25, 2024 16:49
Copy link
Contributor

@jbelkins jbelkins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just little stuff

cd AWSSDKSwiftCLI
swift run AWSSDKSwiftCLI generate-package-manifest --include-protocol-tests --exclude-aws-services --exclude-runtime-tests ..
swift run AWSSDKSwiftCLI generate-package-manifest --exclude-aws-services --exclude-runtime-tests ..
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need this step for regenerating Package.swift at all anymore. None of the AWS service clients are used in protocol tests

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deleted as suggested.

scripts/protogen.sh Show resolved Hide resolved
@@ -4,7 +4,7 @@ set -e

# Regenerate the SDK Package.swift to run only protocol tests and runtime unit tests
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need this comment at all anymore

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deleted as suggested.

@sichanyoo sichanyoo requested a review from jbelkins June 25, 2024 21:30
@sichanyoo sichanyoo merged commit c6506c6 into main Jun 25, 2024
29 checks passed
@sichanyoo sichanyoo deleted the feat/protocol-test-package branch June 25, 2024 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants