-
Notifications
You must be signed in to change notification settings - Fork 518
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
Fix for timing out SQL integration tests #3917
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contributor
SergeyGaluzo
commented
Jun 12, 2024
•
edited
Loading
edited
- Removes "database memory" from store processing flags.
- Removes retries from store processing flags.
- Changes database names to [FHIR Version]-[Test]-[DateTime]-[GUID]
- Increases parallelism from 4 to 14 (should be less than 64/4)
- Fixes database name uniqueness for some tests which were creating database with internally set name.
- Adds more waits for tests affected by increased parallelism.
- Adjusts min schema versions to currently deployed in production.
...Microsoft.Health.Fhir.Shared.Tests.Integration/Persistence/SqlServerFhirStorageTestHelper.cs
Fixed
Show fixed
Hide fixed
SergeyGaluzo
changed the title
[Do not review] Users/sergal/integration
Fix for timing out SQL integration tests
Jun 13, 2024
SergeyGaluzo
added
Enhancement
Enhancement on existing functionality.
Azure Healthcare APIs
Label denotes that the issue or PR is relevant to the FHIR service in the Azure Healthcare APIs
Schema Version unchanged
labels
Jun 13, 2024
fhibf
previously approved these changes
Jun 13, 2024
...Microsoft.Health.Fhir.Shared.Tests.Integration/Persistence/SqlServerFhirStorageTestHelper.cs
Fixed
Show fixed
Hide fixed
LTA-Thinking
previously approved these changes
Jun 13, 2024
...red.Tests.Integration/Features/ChangeFeed/SqlServerFhirResourceChangeCaptureDisabledTests.cs
Outdated
Show resolved
Hide resolved
@@ -211,7 +211,7 @@ public async Task ExecuteSqlCmd(string sql) | |||
|
|||
public async Task DeleteDatabase(string databaseName, CancellationToken cancellationToken = default) | |||
{ | |||
if (!DropDatabase) | |||
if (IsAzure()) |
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.
Why don't we attempt to delete database when in Azure?
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.
Because tests will start timing out, even though I decreased command timeout to 15 seconds.
…hangeFeed/SqlServerFhirResourceChangeCaptureDisabledTests.cs Co-authored-by: Brendan Kowitz <bkowitz@microsoft.com>
…ft/fhir-server into users/sergal/integration
feordin
previously approved these changes
Jun 13, 2024
Azure Pipelines successfully started running 1 pipeline(s). |
2 similar comments
Azure Pipelines successfully started running 1 pipeline(s). |
Azure Pipelines successfully started running 1 pipeline(s). |
Azure Pipelines successfully started running 1 pipeline(s). |
2 similar comments
Azure Pipelines successfully started running 1 pipeline(s). |
Azure Pipelines successfully started running 1 pipeline(s). |
src/Microsoft.Health.Fhir.SqlServer/Features/Storage/SqlServerFhirDataStore.cs
Dismissed
Show dismissed
Hide dismissed
src/Microsoft.Health.Fhir.SqlServer/Features/Storage/SqlServerFhirDataStore.cs
Dismissed
Show dismissed
Hide dismissed
Azure Pipelines successfully started running 1 pipeline(s). |
1 similar comment
Azure Pipelines successfully started running 1 pipeline(s). |
LTA-Thinking
approved these changes
Jun 17, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Azure Healthcare APIs
Label denotes that the issue or PR is relevant to the FHIR service in the Azure Healthcare APIs
Enhancement
Enhancement on existing functionality.
Schema Version unchanged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.