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

{Packaging/MSI} Use embeddable python for MSI #14300

Merged
merged 6 commits into from
Jul 30, 2020

Conversation

fengzhou-msft
Copy link
Member

Description

  1. Use embeddable Python + pip to reduce the size of the bundled Python in MSI.
  2. Add a script to test MSI package. The test is not added to CI as it needs Admin Permission to set up(MSI Install Phase of Build Pipeline Targets Incorrect Binary #9270). For now it can be run on a local machine when there's major changes in MSI packaging.

Testing Guide

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change.
[Component Name 2] az command b: Add some customer-facing feature.


This checklist is used to make sure that common guidelines for a pull request are followed.

@fengzhou-msft fengzhou-msft self-assigned this Jul 9, 2020
@Azure Azure deleted a comment from yonzhan Jul 13, 2020
@@ -14,7 +14,7 @@ class AmsSpTests(ScenarioTest):
@StorageAccountPreparer(parameter_name='storage_account_for_create')
@AllowLargeResponse()
def test_ams_sp_create_reset(self, resource_group, storage_account_for_create):
with mock.patch('azure.cli.command_modules.ams._utils._gen_guid', side_effect=self.create_guid):
with mock.patch('azure.cli.command_modules.ams.operations.sp._gen_guid', side_effect=self.create_guid):
Copy link
Member Author

Choose a reason for hiding this comment

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

@yonzhan
Copy link
Collaborator

yonzhan commented Jul 22, 2020

Packaging/MSI

@@ -13,3 +13,5 @@
*.bat eol=crlf
# The az script for Git Bash/Cygwin should be LF
build_scripts/windows/scripts/az eol=lf
# sh scripts should be LF
*.sh eol=lf
Copy link
Contributor

Choose a reason for hiding this comment

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

why need this? Will git applicaiton get conflict with it?

Copy link
Member Author

@fengzhou-msft fengzhou-msft Jul 28, 2020

Choose a reason for hiding this comment

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

I would like to reuse the scripts/ci/build.sh to run on Git Bash. Without this setting, all files checked out on Windows will be converted to crlf and will have error when run with bash.

@fengzhou-msft fengzhou-msft merged commit d23d175 into Azure:dev Jul 30, 2020
@fengzhou-msft fengzhou-msft deleted the msi_reduce_size branch July 30, 2020 11:02
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.

3 participants