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

Support track2 management packages #15975

Merged
merged 2 commits into from
Jun 28, 2021

Conversation

praveenkuttappan
Copy link
Member

Change to include track2 management package in rush runner script.

@praveenkuttappan praveenkuttappan added the Central-EngSys This issue is owned by the Engineering System team. label Jun 24, 2021
@praveenkuttappan praveenkuttappan self-assigned this Jun 24, 2021
@praveenkuttappan
Copy link
Member Author

I think I will need a change in gulp scrip as well to skip track2 mgmt from track1 pipeline.

@@ -78,7 +77,7 @@ const getServicePackages = (baseDir, serviceDirs) => {
const packageJsons = getPackageJsons(searchDir);
for (const filePath of packageJsons) {
const contents = JSON.parse(fs.readFileSync(filePath, "utf8"));
if (contents["sdk-type"] === "client") {
if (contents["sdk-type"] === "client" || contents["sdk-type"] === "management") {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if (contents["sdk-type"] === "client" || contents["sdk-type"] === "management") {
if (contents["sdk-type"] === "client" || contents["sdk-type"] === "mgmt") {

Most other places call this mgmt so lets do that here as well.

Copy link
Contributor

Choose a reason for hiding this comment

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

@sarangan12 just made changes to the code generator to use management.
@praveenkuttappan Please confirm which way we want to go here so that @sarangan12 can make the changes appropriately

Copy link
Member

Choose a reason for hiding this comment

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

@praveenkuttappan I prefer mgmt, which is used in most places for management plane.

Copy link
Member

@dw511214992 dw511214992 Jun 28, 2021

Choose a reason for hiding this comment

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

@praveenkuttappan will you change it to mgmt?
@ramya-rao-a @sarangan12 I have found the codegen has used management, please confirm which will we use? I just checked some other places, such as https://github.com/Azure/azure-sdk/tree/main/eng#csv-fields, I think mgmt is usually used.

Copy link
Member Author

Choose a reason for hiding this comment

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

I will change my PR to look for mgmt. @sarangan12 : Can you please change it to mgmt in code gen.

@dw511214992
Copy link
Member

I think I will need a change in gulp scrip as well to skip track2 mgmt from track1 pipeline.

@praveenkuttappan We will create a branch release/track1 to continue release track1 sdk when track2 is preview. in main branch, we can change the mgmt-ci.yml and mgmt-pr.yml to make it not triggered in main branch. So we don't need to change the gulp script.

Copy link
Member

@weshaggard weshaggard left a comment

Choose a reason for hiding this comment

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

Looks like a good first step. We will eventually need to make more tweaks to things in the langauge-settings.ps1 to ensure the properties are set correctly

@praveenkuttappan praveenkuttappan merged commit 00ea067 into Azure:main Jun 28, 2021
@praveenkuttappan praveenkuttappan deleted the track2_mgmt branch June 28, 2021 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Central-EngSys This issue is owned by the Engineering System team.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants