Repository navigation
Fix release Python setup and ESRP task runner compatibility - #236
Merged
Merged
Conversation
Configure the approved pip mirror on UsePythonVersion so uncached Python bootstrap uses it before wheel verification. Add a configuration regression and document the task-scoped setting. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Use EsrpRelease@11 for npm and both PyPI publishers to avoid the Node16 EOL handler block without changing existing inputs or agent policy. Add a regression for every publisher and document the task runner requirement. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Kai Tao (vanzue)
approved these changes
Nov 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fix two release-task startup failures. When Python 3.12 is not cached, the downloaded installer upgrades pip against the blocked default package index; the mirror on the later wheel-verification command cannot configure that earlier setup. Set task-scoped
PIP_INDEX_URLonUsePythonVersion@0so its installer inherits the approved mirror.Upgrade all three npm/PyPI publishers from
EsrpRelease@10to@11. The installed10.0.2task uses Node16, which the agent's end-of-life policy blocks before execution;11.0.0usesNode20_1with compatible existing inputs. Keep all task inputs, approvals, stage dependencies, artifact handling and agent policies unchanged. This changes the ESRP task runner, not the Node version used by shipped packages. Add focused configuration regressions and document both requirements.Reproduction
Prerequisites:
An Azure Pipelines Windows agent without Python 3.12 cached, where GitHub Python downloads and the approved mirror are reachable but the default pip index is blocked, with no inherited pip mirror configuration. For ESRP, the existing release artifacts and service connection must be configured, and the agent must enforce
AGENT_RESTRICT_EOL_NODE_VERSIONSwith the installed Node16-basedEsrpRelease@10task.Steps:
Publish to NPM via ESRPstep from.pipelines/release.ymlwithEsrpRelease@10and its existing release inputs on the EOL-restricted agent. The same handler incompatibility applies to both PyPI publishers.Actual behavior:
Python installs, but its pip upgrade fails while querying
/simple/pip/; the outer task reports a Python download/setup failure. Sanitized error excerpt:ESRP then fails before its task code executes, preventing npm publication and skipping downstream PyPI publication. Sanitized error excerpt:
After the fix:
The Python task passes
PIP_INDEX_URL: https://packagefeedproxy.microsoft.io/pypi/simple/to the installer's pip subprocess. All three ESRP publishers select the installed@11task'sNode20_1handler instead of the blocked Node16 handler, without relaxing the agent policy.Validation
python -m unittest discover -s eng\ci -p test_ci.py -k ReleasePipelineTests -vpassed. The regressions first failed against the missing setup mirror and the old ESRP publisher versions respectively. The hosted Python installer and ESRP publishing were not run; local configuration checks do not prove hosted release completion.