Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

HarshaNalluru
Copy link
Contributor

@HarshaNalluru HarshaNalluru commented Aug 25, 2021

Background

test-utils-recorder package is a devDependency of our packages and is maintained by the rush infra, is not published to the npm.

Problem

@qiaozha has been working on getting the test framework set up for the generated SDKs in the generator repo, PR at Azure/autorest.typescript#1162.
This depends on the test-utils-recorder project. The CI fails because the test-utils-recorder library is not published to npm.

As there didn't seem to be any simpler solutions to address the problem, we are considering publishing the @azure/test-utils-recorder package to npm as suggested by @sarangan12.

This is the PR that adds a note in the readme stating it is not meant for public utilization.
(We may have to do the same for other utility packages if they need to be published in the future for the same reason.)

As part of publishing, we are renaming this to @azure-tools/test-recorder.

@@ -1,5 +1,7 @@
## Azure test-utils-recorder SDK client library for JavaScript
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@bterlson suggests releasing under @azure-tools scope.

Copy link
Member

Choose a reason for hiding this comment

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

Yes please!

Copy link
Contributor

Choose a reason for hiding this comment

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

azure-tools or azure-sdk-tools?

Copy link
Contributor Author

@HarshaNalluru HarshaNalluru Aug 25, 2021

Choose a reason for hiding this comment

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

Sounds good as well, azure-sdk-tools seems more relevant to us. :)

@azure/test-utils-recorder changes to one of the following

  • @azure-tools/test-utils-recorder
  • @azure-sdk-tools/test-utils-recorder (too long)
  • @azure-tools/recorder
  • @azure-sdk-tools/recorder (this?)

Picking @azure-sdk-tools/test-recorder as @ramya-rao-a suggesed, any objections or any other suggestions?

Copy link
Member

@qiaozha qiaozha Aug 26, 2021

Choose a reason for hiding this comment

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

I wonder if LLC package can also make use of this test recorder libraries ?

Copy link
Member

Choose a reason for hiding this comment

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

If yes, would it be more appropriate to use @Azure-Tools scope ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@qiaozha

@bterlson also prefers @azure-tools since we have things like autorest in that scope

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Now, I'm inclined to @azure-tools/test-recorder

Copy link
Contributor Author

@HarshaNalluru HarshaNalluru Aug 26, 2021

Choose a reason for hiding this comment

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

I wonder if LLC package can also make use of this test recorder libraries ?

Currently, it supports only the SDKs in this repository because we rely on the file structure of this repo to be able to generate and pick up the recordings. We can support external packages but would need extra work to allow passing file paths as such at the very least. Any example you have in mind, @qiaozha?

I just realized.. is LLC the low level client? If they follow the same structure as other packages in this repo, we can use it. 😁

@HarshaNalluru HarshaNalluru marked this pull request as draft August 26, 2021 01:58
@HarshaNalluru
Copy link
Contributor Author

Just waiting for a couple hundred checks in the CI. :)

Copy link
Member

@jeremymeng jeremymeng left a comment

Choose a reason for hiding this comment

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

@azure-tools/test-recorder sounds good to me. Just one comment.

@HarshaNalluru HarshaNalluru changed the title [Recorder] Adding a note in the readme to release publicly [Recorder] Adding a note in the readme to release publicly and rename the package(everywhere) Aug 26, 2021
@HarshaNalluru HarshaNalluru enabled auto-merge (squash) August 26, 2021 18:57
@praveenkuttappan
Copy link
Member

/check-enforcer override

@HarshaNalluru HarshaNalluru merged commit 8dbbedd into Azure:main Aug 26, 2021
@HarshaNalluru HarshaNalluru deleted the harshan/release/recorder branch August 26, 2021 21:23
@HarshaNalluru
Copy link
Contributor Author

Talked to @praveenkuttappan about releasing the package.

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.

8 participants