Skip to content

Conversation

@pulimsr
Copy link
Contributor

@pulimsr pulimsr commented Oct 22, 2025

Description of changes: Adding service ID filtering for integration tests

Check all that applies:

  • Did a review by yourself.
  • Added proper tests to cover this PR. (If tests are not applicable, explain.)
  • Checked if this PR is a breaking (APIs have been changed) change.
  • Checked if this PR will not introduce cross-platform inconsistent behavior.
  • Checked if this PR would require a ReadMe/Wiki update.

Check which platforms you have built SDK on to verify the correctness of this PR.

  • Linux
  • Windows
  • Android
  • MacOS
  • IOS
  • Other Platforms

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


echo "Setting the run environment"
export TEST_ASSUME_ROLE_ARN=arn:aws:iam::${AWS_ACCOUNT}:role/IntegrationTest
cd ${PREFIX_DIR}/aws-sdk-cpp
Copy link
Contributor

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/,$//")
Copy link
Contributor

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

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