Skip to content

azdo-extension CI fails on self-hosted agents: npm cannot reach registry.npmjs.org (EPERM egress block) #9286

Description

@vhvb1989

Summary

The azure-dev - azdo-extension pipeline (eng/pipelines/release-azuredevops.ymlazuredevops-build-and-test.ymlazuredevops-build.yml) consistently fails on the self-hosted Linux and Windows azsdk-pool agents because npm cannot reach the public registry.

Actual error (from the ADO build logs)

  • LinuxInstall build tools and dependencies step (npm i -g npm tfx-cli; npm ci):
    npm error code EPERM
    npm error FetchError: request to https://registry.npmjs.org/npm failed, reason:
    npm error The operation was rejected by your operating system.
    
  • WindowsTest step: 'tsc' is not recognized ... — a cascade of the same failed/incomplete npm ci.

The very first command to fail is npm i -g npm itself — before any project dependency is resolved.

Scope / evidence this is environmental, not code

Temporary mitigation

To unblock unrelated PRs (e.g. the grouped Dependabot security update #9240), the npm-dependent steps of the azdo-extension build have been made non-blocking for PR validation builds only (Build.Reason == PullRequest). Release/CD builds on main remain strict, so CodeQL and artifact generation are unaffected.

Follow-up (this issue)

  • Root-cause and fix the npm egress block on the self-hosted azsdk-pool Linux/Windows agents (allow registry.npmjs.org, or route the azdo-extension build through an allowlisted internal npm feed / Azure Artifacts, consistent with the working vscode build).
  • Re-enable the azdo-extension PR gate as blocking (revert the continueOnError / PR guards added in chore(deps): group all Dependabot security updates into a single PR #9240 to eng/pipelines/templates/jobs/azuredevops-build.yml).

Metadata

Metadata

Assignees

Labels

area/pipelineCI/CD pipeline config (GH Actions, AzDO)bugSomething isn't workingengsysEngineering systems

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions