Skip to content

Integ testing with Apache 5#6611

Merged
dagnir merged 2 commits into
masterfrom
dongie/apache5-integ-testing
Dec 4, 2025
Merged

Integ testing with Apache 5#6611
dagnir merged 2 commits into
masterfrom
dongie/apache5-integ-testing

Conversation

@dagnir

@dagnir dagnir commented Dec 4, 2025

Copy link
Copy Markdown
Contributor

Motivation and Context

This commit creates a new buildspecs/apache5-integ-test.yml that applies a patch that updates the SDK and integ tests to use the Apache 5.x client before running the integ tests.

Modifications

Testing

Screenshots (if appropriate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Checklist

  • I have read the CONTRIBUTING document
  • Local run of mvn install succeeds
  • My code follows the code style of this project
  • My change requires a change to the Javadoc documentation
  • I have updated the Javadoc documentation accordingly
  • I have added tests to cover my changes
  • All new and existing tests passed
  • I have added a changelog entry. Adding a new entry must be accomplished by running the scripts/new-change script and following the instructions. Commit the new file created by the script in .changes/next-release with your changes.
  • My change is to implement 1.11 parity feature and I have updated LaunchChangelog

License

  • I confirm that this pull request can be released under the Apache 2 license

This commit creates a new buildspecs/apache5-integ-test.yml that applies
a patch that updates the SDK and integ tests to use the Apache 5.x
client before running the integ tests.
@dagnir dagnir force-pushed the dongie/apache5-integ-testing branch from a82b42d to cf30038 Compare December 4, 2025 01:16
@dagnir dagnir marked this pull request as ready for review December 4, 2025 01:17
@dagnir dagnir requested a review from a team as a code owner December 4, 2025 01:17
@dagnir

dagnir commented Dec 4, 2025

Copy link
Copy Markdown
Contributor Author

Integ tests succeed with Apache 5 (see #6610). This PR is to so integ tests run with Apache 5 in parallel for PRs

@sonarqubecloud

sonarqubecloud Bot commented Dec 4, 2025

Copy link
Copy Markdown

AWS_SESSION_TOKEN=`echo $ASSUME_ROLE_OUTPUT | awk '{ print $3 }'`
echo "Using role $INTEGRATION_TEST_ROLE_ARN with access key $AWS_ACCESS_KEY_ID."
fi
- git apply buildspecs/apache5-integ-test/0001-Replace-Apache-4.x-with-5.x.patch

@S-Saranya1 S-Saranya1 Dec 4, 2025

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Question: Is there any chance that patch fails to apply due to line shifts or modifications in those target files? For example, if someone submits a PR that refactors imports or modifies HTTP client usage in CloudFrontUtilitiesIntegrationTest.java, would git apply fail and continue running tests with Apache 4 code instead of Apache 5?

@S-Saranya1 S-Saranya1 Dec 4, 2025

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do we need error handling here to prevent silent failures where the patch doesn't apply but tests continue with Apache 4, creating a false positive?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes there is a chance. If the git apply fails here, the CodeBuild job will exit with an error. The commands are not concatenated with a pipe (|)

@dagnir dagnir added this pull request to the merge queue Dec 4, 2025
Merged via the queue into master with commit 20b2376 Dec 4, 2025
38 checks passed
@github-actions

github-actions Bot commented Dec 4, 2025

Copy link
Copy Markdown

This pull request has been closed and the conversation has been locked. Comments on closed PRs are hard for our team to see. If you need more assistance, please open a new issue that references this one.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Dec 4, 2025
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.

3 participants