Skip to content

Conversation

@praveenkuttappan
Copy link
Member

Set package properties and handle meta package errors when parsing properties

@praveenkuttappan praveenkuttappan marked this pull request as ready for review February 18, 2021 01:24
@praveenkuttappan
Copy link
Member Author

@chidozieononiwu : This is the PR we talked about regarding changes to reduce package parsing iterations.

$setupProps = (python -c "import sys; import os; sys.path.append(os.path.join('scripts', 'devops_tasks')); from common_tasks import get_package_properties; obj=get_package_properties('$setupLocation'); print('{0},{1},{2}'.format(obj[0], obj[1], obj[2]));") -split ","
$setupProps = $null
try{
pip install packaging==20.4 -q -I
Copy link
Member

Choose a reason for hiding this comment

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

Did you intend to move this out so its only installed once?

Copy link
Member Author

Choose a reason for hiding this comment

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

Nope. It attempts to install for every package as opposed to every iteration. But we can move this completely outside too.

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 think an issue in that approach will be additional constraint to have python installed if anyone wants to use any other functions in this script. For now, I will leave as it is since this change alone has improved performance a lot.

@praveenkuttappan praveenkuttappan merged commit b9fe720 into Azure:master Feb 18, 2021
@praveenkuttappan praveenkuttappan deleted the set_pkg_properties branch February 18, 2021 18:01
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