Skip to content

feat: migration of the release pipeline (wip)#197

Merged
tnaum-ms merged 1 commit into
nextfrom
dev/tnaum/163-use-signing-build-pipelines-for-the-extension
Jul 21, 2025
Merged

feat: migration of the release pipeline (wip)#197
tnaum-ms merged 1 commit into
nextfrom
dev/tnaum/163-use-signing-build-pipelines-for-the-extension

Conversation

@tnaum-ms

Copy link
Copy Markdown
Collaborator

This pull request introduces significant updates to the Azure Pipelines configuration, primarily aimed at consolidating and modernizing the CI/CD pipeline setup. Key changes include the removal of legacy pipeline configurations, the addition of a new unified build pipeline, and updates to dependency management.

setting up the build pipeline
Copilot AI review requested due to automatic review settings July 21, 2025 12:27
@tnaum-ms tnaum-ms linked an issue Jul 21, 2025 that may be closed by this pull request

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request introduces a migration from legacy Azure DevOps pipeline templates to a modern OneBranch pipeline configuration. The migration consolidates multiple separate pipeline files into a single unified build pipeline and removes dependency on external template repositories.

Key changes:

  • Complete removal of legacy pipeline configurations and template files
  • Introduction of a new OneBranch-based build pipeline with integrated security scanning
  • Addition of custom npm registry configuration for Azure Artifacts

Reviewed Changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
.azure-pipelines/release.yml Removed legacy release pipeline that depended on external Azure Tools templates
.azure-pipelines/main.yml Removed multi-platform build pipeline with separate Windows/Linux/macOS jobs
.azure-pipelines/1esmain.yml Removed 1ES pipeline configuration that used Azure Tools templates
.azure-pipelines/build.yml Added new OneBranch pipeline with integrated build, package, sign, and test steps
.azure-pipelines/common/* Removed all shared template files (build, test, lint, package, sbom)
.azure-pipelines/SignExtension.signproj Removed legacy signing project file
.azure-pipelines/.npmrc Added npm configuration for Azure Artifacts private registry

Comment on lines +84 to +85
${{ if eq(variables['Build.SourceBranch'], 'refs/heads/master') }}: # conditionally enable symbolsPublishing for master branch only
ob_symbolsPublishing_enabled: true # https://aka.ms/obpipelines/symbols

Copilot AI Jul 21, 2025

Copy link

Choose a reason for hiding this comment

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

The condition checks for 'refs/heads/master' but the pipeline is configured to trigger on 'main' and 'next' branches (lines 3-4). This condition will never be true since 'master' is not in the trigger list.

Suggested change
${{ if eq(variables['Build.SourceBranch'], 'refs/heads/master') }}: # conditionally enable symbolsPublishing for master branch only
ob_symbolsPublishing_enabled: true # https://aka.ms/obpipelines/symbols
# Removed unreachable condition for 'refs/heads/master'

Copilot uses AI. Check for mistakes.
ob_symbolsPublishing_enabled: true # https://aka.ms/obpipelines/symbols
ob_sdl_codeSignValidation_excludes: '-|**\*.json;-|**\*.js;-|**\node_modules\**;'
# ob_sdl_suppression_suppressionFile: $(Build.SourcesDirectory)/.config/guardian/.gdnsuppress
${{ if eq(variables['Build.SourceBranch'], 'refs/heads/main') }}:

Copilot AI Jul 21, 2025

Copy link

Choose a reason for hiding this comment

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

This condition for enabling CodeQL on main branch is inconsistent with the symbols publishing condition above (line 84) which checks for 'master'. Both conditions should use the same branch name for consistency.

Copilot uses AI. Check for mistakes.
codeql:
excludePathPatterns: '**/.vscode-test, dist' # Exclude .vscode-test and dist directories from CodeQL alerting
compiled:
${{ if eq(variables['Build.SourceBranch'], 'refs/heads/main') }}:

Copilot AI Jul 21, 2025

Copy link

Choose a reason for hiding this comment

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

[nitpick] This is the third instance of checking for the main branch. Consider extracting this condition into a variable to reduce duplication and improve maintainability.

Suggested change
${{ if eq(variables['Build.SourceBranch'], 'refs/heads/main') }}:
${{ if variables['isMainBranch'] }}:

Copilot uses AI. Check for mistakes.
@tnaum-ms tnaum-ms merged commit 77db7cb into next Jul 21, 2025
5 checks passed
@tnaum-ms tnaum-ms deleted the dev/tnaum/163-use-signing-build-pipelines-for-the-extension branch July 21, 2025 12:55
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.

Use signing build pipelines for the extension

2 participants