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

[Automation] Generate Fluent Lite from TypeSpec playwrighttesting #43410

Merged

Conversation

azure-sdk
Copy link
Collaborator

[Automation] Generate Fluent Lite from TypeSpec playwrighttesting

@github-actions github-actions bot added the Mgmt This issue is related to a management-plane library. label Dec 16, 2024
@azure-sdk
Copy link
Collaborator Author

API change check

APIView has identified API level changes in this PR and created following API reviews.

com.azure.resourcemanager:azure-resourcemanager-playwrighttesting

@weidongxu-microsoft weidongxu-microsoft merged commit 31b9768 into Azure:main Dec 16, 2024
28 checks passed
Comment on lines 219 to +220
.append("/")
.append("1.0.0-beta.3");
.append("1.0.0-beta.1");
Copy link
Contributor

@XiaofeiCao XiaofeiCao Dec 16, 2024

Choose a reason for hiding this comment

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

This version seems not correct.
This is set by package-version/version. It's passed in in autorest, but not in TypeSpec.
Possible solutions:

  1. Add package-version/version to emitter option
  2. In codegen, determine package version(if version is absent)
  3. in updateVersion script, bump version. Though it'll be a bit tricky to decide the actual xxManager class..

Choose a reason for hiding this comment

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

We can do an emitter option, though sending it across tsp-client may be tricker.
Or a hack via env var...

Copy link
Contributor

Choose a reason for hiding this comment

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

env var should do the trick. Yeah, version seems no qualified candidate for an emitter option.

Copy link
Contributor

@XiaofeiCao XiaofeiCao Dec 17, 2024

Choose a reason for hiding this comment

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

Seems we have to strip the lib name for tsp-client:
--emitter-options="service-name=Playright" (without @azure-tools/typespec-java)

Copy link
Member

@weidongxu-microsoft weidongxu-microsoft Dec 17, 2024

Choose a reason for hiding this comment

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

Great. So we only need to add (maybe a hidden) package-version, and set this in script.

Let me see if I can include it in the typespec-java release.

@azure-sdk azure-sdk deleted the fluent-lite-generation-4412462 branch December 22, 2024 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mgmt - Track 2 Mgmt This issue is related to a management-plane library.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants