CFS: Fix network isolation for registry.npmjs.org in GenerateReleaseArtifacts job#7140
Open
azure-sdk-automation[bot] wants to merge 3 commits into
Open
CFS: Fix network isolation for registry.npmjs.org in GenerateReleaseArtifacts job#7140azure-sdk-automation[bot] wants to merge 3 commits into
azure-sdk-automation[bot] wants to merge 3 commits into
Conversation
…facts job (CFS) Configure npm to use the internal Azure Artifacts npm feed instead of the public registry.npmjs.org in the GenerateReleaseArtifacts job. This resolves network isolation failures when installing moxygen. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
14 tasks
d133ddd to
811216a
Compare
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.
Network Isolation Fix
Domain being fixed:
registry.npmjs.orgAffected job:
GenerateReleaseArtifactsPipeline entry point YAML:
sdk/template/ci.ymlPipeline run URL: https://dev.azure.com/azure-sdk/590cfd2a-581c-4dcb-a12e-6568ce786175/_build/results?buildId=6372957
Change Description
The
GenerateReleaseArtifactsjob installs themoxygennpm package vianpm install -g moxygen, which attempts to reachregistry.npmjs.org. In network-isolated pipeline environments this connection is blocked.This fix adds a step to configure an authenticated
.npmrcpointing to the internal Azure Artifacts npm feed (https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js/npm/registry/) at$(UserProfile)/.npmrcbefore thenpm install -g moxygenstep, so npm resolves packages through the internal feed instead of the public registry.Test Pipeline
cpp - template