Skip to content

fix: resolve daily CI build failures (1ES pool image + npm auth)#494

Open
ramsessanchez wants to merge 6 commits into
mainfrom
fix/daily-ci-build-1es-pool-npm-auth
Open

fix: resolve daily CI build failures (1ES pool image + npm auth)#494
ramsessanchez wants to merge 6 commits into
mainfrom
fix/daily-ci-build-1es-pool-npm-auth

Conversation

@ramsessanchez
Copy link
Copy Markdown
Contributor

@ramsessanchez ramsessanchez commented Jun 4, 2026

Summary

Fixes the daily CI build pipeline which was failing due to two issues:

1. Missing image property in pool config

The 1ES Pipeline Templates require name, image, and os to all be specified. The main pool was missing the image property, causing:

1ES PT Error: The os property specified in the pool does not match with the actual image.

Fix: Added image: ubuntu-latest to the main pool configuration.

2. npm registry auth for network isolation

Under 1ES network isolation policies, direct access to registry.npmjs.org is blocked, causing:

npm error FetchError: request to https://registry.npmjs.org/... failed, reason: EPERM

Fix:

  • Added a pipeline step to generate an .npmrc inline at build time (not committed to the repo) pointing to the GraphDeveloperExperiences_Public Azure Artifacts feed
  • Added npmAuthenticate@0 task before npm ci in the pipeline

This approach avoids committing an .npmrc to the repo, which would break the GitHub Actions workflow that authenticates directly against registry.npmjs.org.

- Add missing 'image: ubuntu-latest' to main pool configuration
- Add .npmrc pointing to GraphDeveloperExperiences_Public Azure Artifacts feed
- Add npmAuthenticate@0 task before npm ci in the pipeline

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Aligns with updated approach in microsoftgraph/msgraph-sdk-typescript-core#583.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Replace hardcoded Azure Artifacts registry URL with ADO pipeline
variable, matching the approach in msgraph-sdk-typescript-core PR #583.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
adrian05-ms
adrian05-ms previously approved these changes Jun 5, 2026
Replace .npmrc creation + npmAuthenticate@0 + script npm ci with a
single npm@1 task using customRegistry/customFeed, matching the
approach from microsoftgraph/msgraph-sdk-typescript-core#583.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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