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

chore: add smoke test traits dep #5664

Merged
merged 1 commit into from
Jan 11, 2024

Conversation

milesziemer
Copy link
Contributor

Issue

Issue number, if available, prefixed with "#"

Description

What does this implement/fix? Explain your changes.

Adds a dependency on smithy-smoke-test-traits in the sdk code gen package so aws service models that use the smokeTests trait won't fail to build because of unknown traits.

Testing

How was this change tested?

Generated a client with a smoke test and confirmed there was no diff.

Additional context

Add any other context about the PR here.

Adding the dependency in the code gen package since it's the models that need the dependency, not the code generator. When smoke tests are implemented in the generator, we can add the dep there.

Checklist

  • If you wrote E2E tests, are they resilient to concurrent I/O?
  • If adding new public functions, did you add the @public tag and enable doc generation on the package?

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Adds a dependency on smithy-smoke-test-traits in the sdk code gen
package so aws service models that use the smokeTests trait won't
fail to build because of unknown traits. Generated a client with
a smoke test and confirmed there was no diff.

Adding the dependency in the code gen package since it's the models
that need the dependency, not the code generator. When smoke tests
are implemented in the generator, we can add the dep there.
@milesziemer milesziemer requested a review from a team as a code owner January 10, 2024 19:26
Copy link
Contributor

@hpmellema hpmellema left a comment

Choose a reason for hiding this comment

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

@milesziemer
Copy link
Contributor Author

Should this be added to the same place as the other trait dependencies? https://github.com/aws/aws-sdk-js-v3/blob/main/codegen/smithy-aws-typescript-codegen/build.gradle.kts#L37

Since this is a model dependency right now, i.e. the code generator implementation isn't using it, we're just adding it as a dep where the models are loaded. If anything it is a little funky that the model dependencies would be available through the code generator implementation package.

@milesziemer milesziemer merged commit 6d0dd46 into aws:main Jan 11, 2024
3 checks passed
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants