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

Run Azure blob store integration tests with Azure and Azurite #1304

Merged
merged 1 commit into from
Aug 29, 2024

Conversation

groldan
Copy link
Member

@groldan groldan commented Aug 11, 2024

Azurite is run as a testcontainer, and the github CI build runs all integration tests for Java 11, 17, and 21.

In order to save on Azure resources, online integration tests are run only if the Azurite based tests succeeded, using github secrets to set up the account, key, and container; and for Java 11 only.

Both Azurite and Azure tests are run by the failsafe-maven-plugin, during the integration-test phase, so you need to run them as mvn verify, not as mvn test.


Fixes #1207

@groldan
Copy link
Member Author

groldan commented Aug 11, 2024

New jobs:

image

please note the Azure online tests are being run against my free-tier account while I wait for camptocamp to provision an account we can use for testing.

@groldan groldan requested a review from aaime August 12, 2024 01:52
@aaime
Copy link
Member

aaime commented Aug 19, 2024

It seems all Azure tests are run twice, push vs pull_request?

image

image

@groldan groldan force-pushed the azureblob_run_integration_tests_on_github_actions branch from 691a5b8 to 31d0223 Compare August 26, 2024 14:00
Azurite is run as a testcontainer, and the github CI build runs all
integration tests for Java 11, 17, and 21.

In order to save on Azure resources, online integration tests are
run only if the Azurite based tests succeeded, using github secrets
to set up the account, key, and container; and for Java 11 only.
@groldan groldan force-pushed the azureblob_run_integration_tests_on_github_actions branch from 31d0223 to 57fecb1 Compare August 27, 2024 18:53
@groldan groldan requested a review from aaime August 27, 2024 18:59
@groldan
Copy link
Member Author

groldan commented Aug 27, 2024

Made it so the ITs only run with -Ponline.

Copy link
Member

@aaime aaime left a comment

Choose a reason for hiding this comment

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

Had another go at testing the build, looking good, thanks!

@aaime aaime merged commit 8d1146e into main Aug 29, 2024
12 checks passed
@groldan groldan deleted the azureblob_run_integration_tests_on_github_actions branch August 29, 2024 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Azure Blobstore integration tests are never run
2 participants