Skip to content

Configured CosmosDB Local Emulator for running integration tests on the Windows agent#1876

Merged
Aniruddh25 merged 1 commit intomainfrom
dev/neesharma/use-local-emulator-for-windows-job
Nov 9, 2023
Merged

Configured CosmosDB Local Emulator for running integration tests on the Windows agent#1876
Aniruddh25 merged 1 commit intomainfrom
dev/neesharma/use-local-emulator-for-windows-job

Conversation

@neeraj-sharma2592
Copy link
Copy Markdown
Contributor

Why make this change?

Currently, we are running integration tests against a production CosmosDB account. Recently, we've encountered 429 errors during these tests because the same production account is used for each OS agent. To address this issue, we have started using the CosmosDB Local Emulator when running integration tests on the Windows agent.

What is this change?

Changed the Windows agent to windows-latest. This agent has an emulator preinstalled.
Removed the FileTransform task for the Windows agent. Temporarily removed the Mac-os job to prevent 429 errors.
Todo: Use an emulator in the Mac-os agent and Linux agent.

How was this tested?

  • Integration Tests

Copy link
Copy Markdown
Collaborator

@Aniruddh25 Aniruddh25 left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for this mitigation.

@Aniruddh25
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 6 pipeline(s).

Copy link
Copy Markdown
Contributor

@seantleonard seantleonard left a comment

Choose a reason for hiding this comment

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

Thanks for adding this change! looking forward to follow up on adjusting macos/linux runners.

@Aniruddh25 Aniruddh25 merged commit 74cb4b4 into main Nov 9, 2023
@Aniruddh25 Aniruddh25 deleted the dev/neesharma/use-local-emulator-for-windows-job branch November 9, 2023 19:51
@Aniruddh25 Aniruddh25 added this to the 0.9 milestone Nov 13, 2023
@Aniruddh25 Aniruddh25 added the port needed Describes if port to release branch is required label Nov 13, 2023
Aniruddh25 pushed a commit that referenced this pull request Nov 13, 2023
…he Windows agent (#1876)

## Why make this change?

Currently, we are running integration tests against a production
CosmosDB account. Recently, we've encountered 429 errors during these
tests because the same production account is used for each OS agent. To
address this issue, we have started using the CosmosDB Local Emulator
when running integration tests on the Windows agent.

## What is this change?
Changed the Windows agent to windows-latest. This agent has an emulator
preinstalled.
Removed the FileTransform task for the Windows agent. Temporarily
removed the Mac-os job to prevent 429 errors.
Todo: Use an emulator in the Mac-os agent and Linux agent.

## How was this tested?

- [x] Integration Tests

Co-authored-by: Neeraj Sharma (from Dev Box) <[email protected]>
Aniruddh25 added a commit that referenced this pull request Nov 13, 2023
## Why make this change?

This is simply cherry-picking the following PRs before creating the next
stable 0.9 version:

- #1876
- #1821 
- #1854 
- #1851 
- #1872 
- #1868

---------

Co-authored-by: Sean Leonard <[email protected]>
Co-authored-by: Abhishek  Kumar <[email protected]>
Co-authored-by: neeraj-sharma2592 <[email protected]>
Co-authored-by: Neeraj Sharma (from Dev Box) <[email protected]>
Co-authored-by: aaronburtle <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

port needed Describes if port to release branch is required

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants