-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Integration tests #3591
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
base: main
Are you sure you want to change the base?
Integration tests #3591
Conversation
|
|
||
| echo "Setting the run environment" | ||
| export TEST_ASSUME_ROLE_ARN=arn:aws:iam::${AWS_ACCOUNT}:role/IntegrationTest | ||
| cd ${PREFIX_DIR}/aws-sdk-cpp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: for this type of operation we really should be using pushd and popd, i.e.
pushd ${PREFIX_DIR}/aws-sdk-cpp
# ...do whatever you want to do there
popd
this was the directory remains the same before and after the operatoin you ran. right now you cd into a dir and dont return, that may not have any complications now, but could in the future.
| echo "Setting the run environment" | ||
| export TEST_ASSUME_ROLE_ARN=arn:aws:iam::${AWS_ACCOUNT}:role/IntegrationTest | ||
| cd ${PREFIX_DIR}/aws-sdk-cpp | ||
| SERVICE_ID=$(git status generated/src/aws-cpp-sdk-* --porcelain | grep "generated/src/" | sed -n 's|.*generated/src/aws-cpp-sdk-\([^/]*\).*|\1|p' | sort -u | tr "\n" "," | sed "s/,$//") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
on our daily releases i think we want to run all tests not just the ones in SERVICE_ID. so while this does do what we want to it to i think we might want to add another argument called RUN_ALL or something to script to override running all of the tests.
also when this is run in the step does git status generated/src/aws-cpp-sdk-* --porcelain actually produce a output? this is because at this point things are actually committed when this run
Description of changes: Adding service ID filtering for integration tests
Check all that applies:
Check which platforms you have built SDK on to verify the correctness of this PR.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.