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

Added entropy to database names created across bulk tests for @azure/cosmso #26625

Merged
merged 2 commits into from
Jul 27, 2023

Conversation

v1k1
Copy link
Contributor

@v1k1 v1k1 commented Jul 27, 2023

Packages impacted by this PR

@azure/cosmso

Issues associated with this PR

Describe the problem that is addressed by this PR

Few tests in sdk/cosmosdb/cosmos/test/public/functional/item/bulk.item.spec.ts share name of database created. This could result in race condition, where one test deletes on database while the other tests expects it to be there.

What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen?

Are there test cases added in this PR? (If not, why?)

Provide a list of related PRs (if any)

Command used to generate this PR:**(Applicable only to SDK release request PRs)

Checklists

  • Added impacted package name to the issue description
  • Does this PR needs any fixes in the SDK Generator?** (If so, create an Issue in the Autorest/typescript repository and link it here)
  • Added a changelog (if necessary)

@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

Copy link
Member

@topshot99 topshot99 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

@abkolant-MSFT abkolant-MSFT left a comment

Choose a reason for hiding this comment

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

LGTM

@sajeetharan sajeetharan merged commit b92214d into Azure:main Jul 27, 2023
dgetu pushed a commit that referenced this pull request Sep 6, 2023
…cosmso (#26625)

### Packages impacted by this PR
@azure/cosmso

### Issues associated with this PR


### Describe the problem that is addressed by this PR
Few tests in
`sdk/cosmosdb/cosmos/test/public/functional/item/bulk.item.spec.ts`
share name of database created. This could result in race condition,
where one test deletes on database while the other tests expects it to
be there.

### What are the possible designs available to address the problem? If
there are more than one possible design, why was the one in this PR
chosen?


### Are there test cases added in this PR? _(If not, why?)_


### Provide a list of related PRs _(if any)_


### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [ ] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [ ] Added a changelog (if necessary)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants