Skip to content

Change Login Migration Console App source to NuGet.org and Versioning…#7371

Merged
evelyn-ys merged 4 commits intoAzure:mainfrom
Bhavikshah123:LoginMigrationConsoleSourceChangeAndVersioning
Mar 18, 2024
Merged

Change Login Migration Console App source to NuGet.org and Versioning…#7371
evelyn-ys merged 4 commits intoAzure:mainfrom
Bhavikshah123:LoginMigrationConsoleSourceChangeAndVersioning

Conversation

@Bhavikshah123
Copy link
Copy Markdown
Contributor

Description

SQL Login migration CLI backend uses SqlLoginMigration console app, which is stored in SQLVM storage account blob which is not the recommended source to get the console App.
We need to maintain the version files as part of console app and also in the storage account to support upgrades. Want to do away with this approach as this is error prone.

Fix

This PR fixes the following

  • Moves the SQL Login migration console app source from Storage account to recommended Nuget.org. https://www.nuget.org/packages/Microsoft.SqlServer.Migration.LoginsConsoleApp
  • It also adds the support for versioning for aiding in upgrading to latest version when available.
  • Renames the console app from Logins.Console to Microsoft.SqlServer.Migration.Logins.ConsoleApp.exe to keep the naming convention consistent with all the other NuGet packages.

Local Testing

  1. First time running the cli command

image

  1. Running the script with the environment containing the old Login.console app.

image

  1. When local has a version lower than the latest version uploaded in Nuget.org. But the cx doesn't want to upgrade.

image

  1. When local has a version lower than the latest version uploaded in Nuget.org and cx opts to upgrade.

image

  1. When local and latest version is the same.

image

Related command

az datamigration login-migration

General Guidelines

  • Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • Have you run python scripts/ci/test_index.py -q locally? (pip install wheel==0.30.0 required)
  • My extension version conforms to the Extension version schema

For new extensions:

About Extension Publish

There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update src/index.json automatically.
You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify src/index.json.

@azure-client-tools-bot-prd
Copy link
Copy Markdown

azure-client-tools-bot-prd bot commented Mar 11, 2024

️✔️Azure CLI Extensions Breaking Change Test
️✔️Non Breaking Changes

@azure-client-tools-bot-prd
Copy link
Copy Markdown

Hi @Bhavikshah123,
Please write the description of changes which can be perceived by customers into HISTORY.rst.
If you want to release a new extension version, please update the version in setup.py as well.

@yonzhan
Copy link
Copy Markdown
Collaborator

yonzhan commented Mar 11, 2024

Thank you for your contribution! We will review the pull request and get back to you soon.

@evelyn-ys
Copy link
Copy Markdown
Member

Please fix the style check failure in CI

@evelyn-ys
Copy link
Copy Markdown
Member

Hi @Bhavikshah123, Please write the description of changes which can be perceived by customers into HISTORY.rst. If you want to release a new extension version, please update the version in setup.py as well.

Don't forget to upgrade the release version

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 15, 2024

⚠️ Suggestions

Module: datamigration

  • Update version to 1.0.0b1 in setup.py
  • Set azext.isPreview to true in azext_datamigration/azext_metadata.json if not exists

Notes

  • Stable/preview tag is inherited from last release. If needed, please add stable/preview label to modify it.
  • Major/minor/patch/pre increment of version number is calculated by pull request code changes automatically. If needed, please add major/minor/patch/pre label to adjust it.
  • For more info about extension versioning, please refer to Extension version schema

@evelyn-ys
Copy link
Copy Markdown
Member

We have defined guideline for Extension version schema, can you pls review and re-define your extension version to 1.0.0 or 1.0.0b1 accordingly?

@Bhavikshah123
Copy link
Copy Markdown
Contributor Author

We have defined guideline for Extension version schema, can you pls review and re-define your extension version to 1.0.0 or 1.0.0b1 accordingly?

Done.

@evelyn-ys evelyn-ys merged commit eafed37 into Azure:main Mar 18, 2024
@azclibot
Copy link
Copy Markdown
Collaborator

[Release] Update index.json for extension [ datamigration ] : https://dev.azure.com/azclitools/internal/_build/results?buildId=140257&view=results

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.

5 participants