8000 Remove installing python in install-microbuild.yml by akoeplinger · Pull Request #15734 · dotnet/arcade · GitHub
[go: up one dir, main page]

Skip to content

Remove installing python in install-microbuild.yml #15734

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

Merged
merged 3 commits into from
Apr 15, 2025

Conversation

akoeplinger
Copy link
Member
@akoeplinger akoeplinger commented Apr 12, 2025

No longer needed.

The build currently prints:
> ##[warning]Specifying an exact version is not recommended on Microsoft-Hosted agents. Patch versions of Python can be replaced by new ones on Hosted agents without notice, which will cause builds to fail unexpectedly. It is recommended to specify only major or major and minor version (Example: `3` or `3.9`)

This is wrong, we're not specifying an exact version, but the task just checks that there's a third component in the version string: https://github.com/microsoft/azure-pipelines-tasks/blob/f953dbc84a4564856207919220f2001535812d26/Tasks/UsePythonVersionV0/versionspec.ts#L24-L34

We can use just the major.minor to fix the warning.
Copy link
Member
@ellahathaway ellahathaway left a comment

Choose a reason for hiding this comment

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

I think that we can remove the python installation entirely because the dependency is no longer needed when using the ESRP CLI tooling: https://dev.azure.com/dnceng/internal/_build/results?buildId=2686414&view=logs&j=4166124c-2a68-5c8d-2aa8-71d962d96b1e&t=7f73f132-529c-59c0-6d64-cc0d47c96472

@akoeplinger akoeplinger changed the title Fix warning about exact python version in install-microbuild.yml Remove installing python in install-microbuild.yml Apr 14, 2025
@akoeplinger
Copy link
Member Author

@ellahathaway even better :) updated

@akoeplinger akoeplinger enabled auto-merge (squash) April 15, 2025 13:40
Copy link
Member
@ellahathaway ellahathaway left a comment

Choose a reason for hiding this comment

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

LGTM, thanks :)

@akoeplinger akoeplinger merged commit ba88ae2 into main Apr 15, 2025
11 checks passed
@akoeplinger akoeplinger deleted the akoeplinger-patch-2 branch April 15, 2025 17:27
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.

2 participants
0