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

Fix for timing out SQL integration tests #3917

Merged
merged 26 commits into from
Jun 17, 2024
Merged

Conversation

SergeyGaluzo
Copy link
Contributor

@SergeyGaluzo SergeyGaluzo commented Jun 12, 2024

  1. Removes "database memory" from store processing flags.
  2. Removes retries from store processing flags.
  3. Changes database names to [FHIR Version]-[Test]-[DateTime]-[GUID]
  4. Increases parallelism from 4 to 14 (should be less than 64/4)
  5. Fixes database name uniqueness for some tests which were creating database with internally set name.
  6. Adds more waits for tests affected by increased parallelism.
  7. Adjusts min schema versions to currently deployed in production.

@SergeyGaluzo SergeyGaluzo requested a review from a team as a code owner June 12, 2024 19:58
@microsoft microsoft deleted a comment from azure-pipelines bot Jun 12, 2024
@microsoft microsoft deleted a comment from azure-pipelines bot Jun 13, 2024
@SergeyGaluzo SergeyGaluzo changed the title [Do not review] Users/sergal/integration Fix for timing out SQL integration tests Jun 13, 2024
@SergeyGaluzo 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
@SergeyGaluzo SergeyGaluzo added this to the S138 milestone Jun 13, 2024
fhibf
fhibf previously approved these changes Jun 13, 2024
LTA-Thinking
LTA-Thinking previously approved these changes Jun 13, 2024
@@ -211,7 +211,7 @@ public async Task ExecuteSqlCmd(string sql)

public async Task DeleteDatabase(string databaseName, CancellationToken cancellationToken = default)
{
if (!DropDatabase)
if (IsAzure())
Copy link
Member

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?

Copy link
Contributor Author

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.

SergeyGaluzo and others added 2 commits June 13, 2024 14:02
…hangeFeed/SqlServerFhirResourceChangeCaptureDisabledTests.cs

Co-authored-by: Brendan Kowitz <bkowitz@microsoft.com>
feordin
feordin previously approved these changes Jun 13, 2024
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

2 similar comments
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

2 similar comments
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@SergeyGaluzo SergeyGaluzo enabled auto-merge (squash) June 16, 2024 16:29
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

1 similar comment
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@SergeyGaluzo SergeyGaluzo merged commit e5c679d into main Jun 17, 2024
46 of 52 checks passed
@SergeyGaluzo SergeyGaluzo deleted the users/sergal/integration branch June 17, 2024 15:53
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants