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

fix: Make AWS SDK CLI test runner fail when tests fail #1049

Merged
merged 3 commits into from
Jun 22, 2023

Conversation

jbelkins
Copy link
Contributor

@jbelkins jbelkins commented Jun 21, 2023

Issue #

#1046

Description of changes

Currently, when the AWS SDK CLI test runner fails (i.e. swift test exits with a nonzero status code), the AWS SDK CLI command exits but with a status code zero for success.

With this change, when the AWS SDK CLI runs a Process and the process exits with a nonzero exit code, an ExitCode error (defined in the Swift Argument Parser package) is thrown with the abnormal exit code.

A test is added to verify the change works as expected.

New/existing dependencies impact assessment, if applicable

No new dependencies were added to this change.

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

sdk.properties Outdated Show resolved Hide resolved
@jbelkins
Copy link
Contributor Author

Ran this Model Integration CI job on this branch:
https://github.com/awslabs/aws-sdk-swift/actions/runs/5339539775

As expected, it now fails the CI job when tests fail. Reverting sdk.properties now that this behavior has been verified.

@jbelkins jbelkins requested a review from waahm7 June 22, 2023 04:46
@jbelkins jbelkins merged commit bfe12d8 into main Jun 22, 2023
@jbelkins jbelkins deleted the jbe/throw_on_test_failure branch June 22, 2023 16:27
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