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

sdk, fix service-dir #32843

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

XiaofeiCao
Copy link
Contributor

SDK configuration pull request

Purpose of this PR

Some service-dir got changed after SDK released packages.
https://github.com/Azure/azure-rest-api-specs/pull/30578/files#diff-5235c0db2ec5ace38abfa31236a348c893d67cfc16a833e4fdb3e6701276c18f

Change back for consistency.

  • Make changes to the SDK configuration only when there are no modifications to the API specification, eliminating the need for an ARM or Stewardship Board API review.

Due diligence checklist

To merge this PR, you must go through the following checklist and confirm you understood
and followed the instructions by checking all the boxes:

Getting help

  • First, carefully read through this PR description, from top to bottom. Fill out the Purpose of this PR and Due diligence checklist.
  • If you don't have permissions to remove or add labels to the PR, request write access per aka.ms/azsdk/access#request-access-to-rest-api-or-sdk-repositories
  • To understand what you must do next to merge this PR, see the Next Steps to Merge comment. It will appear within few minutes of submitting this PR and will continue to be up-to-date with current PR state.
  • For guidance on fixing this PR CI check failures, see the hyperlinks provided in given failure and https://aka.ms/ci-fix.
  • If the PR CI checks appear to be stuck in queued state, please add a comment with contents /azp run.
    This should result in a new comment denoting a PR validation pipeline has started and the checks should be updated after few minutes.
  • If the help provided by the previous points is not enough, post to https://aka.ms/azsdk/support/specreview-channel and link to this PR.

Copy link

openapi-pipeline-app bot commented Feb 26, 2025

Next Steps to Merge

✅ All automated merging requirements have been met! To get your PR merged, see aka.ms/azsdk/specreview/merge.

Copy link

openapi-pipeline-app bot commented Feb 26, 2025

Generated ApiView

Language Package Name ApiView Link
.Net Azure.ResourceManager.ContainerOrchestratorRuntime There is no API change compared with the previous version
Java azure-resourcemanager-containerorchestratorruntime There is no API change compared with the previous version
.Net Azure.ResourceManager.InformaticaDataManagement There is no API change compared with the previous version
Java azure-resourcemanager-informaticadatamanagement https://apiview.dev/Assemblies/Review/0b990b1bab01456a86d62570fc902c02?revisionId=5629c27350e34a29b96529fd4d66e3ac
Python azure-mgmt-containerorchestratorruntime https://apiview.dev/Assemblies/Review/697c0dc1817d4755a5eb3239bdd39cb3?revisionId=9827a76d96914aeeb4911546d80279ac
Python azure-mgmt-informaticadatamanagement https://apiview.dev/Assemblies/Review/8d5cb66ede1d41849dd441a8cc497c42?revisionId=f8f377bf35a34dd0b92a68e1878f0759

@azure-sdk
Copy link
Collaborator

azure-sdk commented Feb 26, 2025

API change check

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

Informatica.DataManagement
Microsoft.KubernetesRuntime

@XiaofeiCao
Copy link
Contributor Author

/azp run

Copy link

You have several pipelines (over 10) configured to build pull requests in this repository. Specify which pipelines you would like to run by using /azp run [pipelines] command. You can specify multiple pipelines using a comma separated list.

Copy link
Member

@weidongxu-microsoft weidongxu-microsoft left a comment

Choose a reason for hiding this comment

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

nit, we don't need to move namespace config (as emitter option will still be there as tcgc) -- fine if already modified.

@XiaofeiCao
Copy link
Contributor Author

/azp run

Copy link

You have several pipelines (over 10) configured to build pull requests in this repository. Specify which pipelines you would like to run by using /azp run [pipelines] command. You can specify multiple pipelines using a comma separated list.

@XiaofeiCao XiaofeiCao marked this pull request as ready for review February 27, 2025 06:20
@@ -1,6 +1,6 @@
parameters:
"service-dir":
default: "sdk/informatica"
default: "sdk/informaticadatamanagement"
Copy link
Member

Choose a reason for hiding this comment

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

why this is different?

Copy link
Member

@MaryGao MaryGao Feb 28, 2025

Choose a reason for hiding this comment

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

if this is only for python and java, i prefer the original default which makes more sense to me.

Copy link
Member

Choose a reason for hiding this comment

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

The failure is caused by out automation to handle the different service-dir and here is the issue to track that: Azure/azure-sdk-tools#9946.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

if this is only for python and java, i prefer the original default which makes more sense to me.

Original default is informaticadatamanagement, as approved by namespace review:
https://github.com/Azure/azure-sdk-pr/issues/1731

service-dir usually conforms to package name, unless specifically mentioned otherwise, and I haven't seen such case before..

Copy link
Member

@weidongxu-microsoft weidongxu-microsoft Feb 28, 2025

Choose a reason for hiding this comment

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

.net
https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/informaticadatamanagement

go also not "informaticadata" (but they got a slightly different tree)
https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/informaticadatamgmt

So seems only JS is "informaticadata"?

Interesting, JS automation actually parse the file yourself?
Java's (and I think Go, maybe Python too) would do

  1. generate the code
  2. do a "git status" to see whether code get generated, and use that folder/package

It's not great, though...
(previously in script time, we actually have Ray return the folder in output of his script -- but that gone after tsp-client)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants