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

DT-1194: Speed up integration tests by running them in parallel #1896

Draft
wants to merge 33 commits into
base: develop
Choose a base branch
from

Conversation

pshapiro4broad
Copy link
Member

@pshapiro4broad pshapiro4broad commented Jan 27, 2025

Jira ticket: https://broadworkbench.atlassian.net/browse/[ticket_number]

Addresses

Run integration tests even more in parallel to speed them up

Summary of changes

Use JUnit's concurrent execution mode, along with changing tests to be thread safe.

Note that unit and connected tests are currently broken on this branch due to configuration changes, once I have the integration tests working I'll go back and sort those out.

Testing Strategy

- migrate UserBase to a field instead of using inheritance
- replace sleep with Awaitility (sonar fix)
- use log formatter (sonar fix)
- use record for test settings
- modify SnapshotIntegrationTest to use thread local storage for parallelization
# Conflicts:
#	src/test/java/bio/terra/app/controller/RepositoryApiControllerAccessTest.java
#	src/test/java/bio/terra/integration/AzureIntegrationTest.java
#	src/test/java/bio/terra/integration/FileTest.java
#	src/test/java/bio/terra/integration/IngestSnapshotIntegrationTest.java
#	src/test/java/bio/terra/integration/IngestTest.java
#	src/test/java/bio/terra/integration/IntegrationTestConfiguration.java
#	src/test/java/bio/terra/integration/SimpleScenarioFaultTests.java
#	src/test/java/bio/terra/integration/UsersBase.java
#	src/test/java/bio/terra/service/auth/iam/sam/SamRetryIntegrationTest.java
#	src/test/java/bio/terra/service/dataset/DatasetControlFilesIntegrationTest.java
#	src/test/java/bio/terra/service/dataset/DatasetIntegrationTest.java
#	src/test/java/bio/terra/service/dataset/DatasetSchemaUpdateIntegrationTest.java
#	src/test/java/bio/terra/service/dataset/DatasetSoftDeletesTest.java
#	src/test/java/bio/terra/service/dataset/SecureMonitoringIntegrationTest.java
#	src/test/java/bio/terra/service/dataset/SelfHostedDatasetIntegrationTest.java
#	src/test/java/bio/terra/service/filedata/DrsTest.java
#	src/test/java/bio/terra/service/job/JobPermissionTest.java
#	src/test/java/bio/terra/service/snapshot/SnapshotExportIntegrationTest.java
#	src/test/java/bio/terra/service/snapshot/SnapshotIntegrationTest.java
#	src/test/java/bio/terra/service/snapshot/SnapshotPermissionsIntegrationTest.java
@pshapiro4broad pshapiro4broad changed the title Integration test improvements DT-1194: Speed up integration tests by running them in parallel Jan 31, 2025
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.

1 participant