Skip to content

Fix Azure Windows pipeline and CLI test failures#2920

Merged
heyitsaamir merged 3 commits into
mainfrom
heyitsaamir-port-azure-pipeline-fix
Jul 17, 2026
Merged

Fix Azure Windows pipeline and CLI test failures#2920
heyitsaamir merged 3 commits into
mainfrom
heyitsaamir-port-azure-pipeline-fix

Conversation

@heyitsaamir

@heyitsaamir heyitsaamir commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Ports the Azure pipeline nbgv install fix from Port CI pipeline fixes to main and bump to 2.0.15-preview teams.ts#650.
  • Authenticates to Azure Artifacts before installing nbgv from the TeamsSDKPreviews NuGet feed.
  • Makes the CLI build script cross-platform by replacing rm -rf dist with a Node fs.rmSync clean step for Azure Windows agents.
  • Normalizes generated teams app create --env ... command hints to use stable POSIX separators while keeping actual credential file paths platform-native.

Validation

  • npm -w @microsoft/teams.cli test -- project-new-bot-provision.test.ts
  • npx turbo build --filter=@microsoft/teams.cli
  • npm -w @microsoft/teams.cli test
  • git diff --check -- packages/cli/src/commands/project/shared.ts packages/cli/package.json .azdo/publish.yml
  • ruby -e 'require "yaml"; YAML.load_file(".azdo/publish.yml"); puts "yaml ok"'
  • rg "NuGetAuthenticate|NuGet.TeamsSDKPreviews.config|dotnet tool install -g nbgv --configfile|TeamsSDKPreviews/nuget" .azdo/publish.yml

Port the Azure pipeline nbgv install fix from microsoft/teams.ts#650 so the publish pipeline authenticates to Azure Artifacts and installs nbgv from the TeamsSDKPreviews NuGet feed.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 9bf4ae44-65a7-4cd5-8cbc-c1f1e561160f
Copilot AI review requested due to automatic review settings July 17, 2026 19:21

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

Ports an Azure Pipelines fix to ensure nbgv can be installed in the publish pipeline by authenticating to Azure Artifacts and using a temporary NuGet config pointing at the TeamsSDKPreviews feed.

Changes:

  • Adds NuGetAuthenticate@1 prior to installing nbgv.
  • Writes a temporary NuGet config targeting the TeamsSDKPreviews Azure Artifacts feed and uses it for dotnet tool install -g nbgv.
  • Ensures the global .NET tools path is prepended before invoking nbgv cloud.
Show a summary per file
File Description
.azdo/publish.yml Adds Azure Artifacts auth + temp NuGet config to make nbgv install reliable in the Windows 1ES pipeline.

Review details

  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Low

Comment thread .azdo/publish.yml
Replace the Unix-only rm invocation in the CLI build script with a Node fs.rmSync clean step so Azure Windows agents can build the package.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 9bf4ae44-65a7-4cd5-8cbc-c1f1e561160f
@heyitsaamir heyitsaamir changed the title Port Azure pipeline NuGet auth fix Fix Azure pipeline Windows publish build Jul 17, 2026
@heyitsaamir
heyitsaamir enabled auto-merge (squash) July 17, 2026 22:23
Use POSIX separators for generated app-create command hints so Windows test and CLI output keep stable slash formatting while preserving platform-native filesystem paths for credential writes.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 9bf4ae44-65a7-4cd5-8cbc-c1f1e561160f
@heyitsaamir heyitsaamir changed the title Fix Azure pipeline Windows publish build Fix Azure Windows pipeline and CLI test failures Jul 17, 2026
@heyitsaamir
heyitsaamir merged commit 93ab172 into main Jul 17, 2026
9 checks passed
@heyitsaamir
heyitsaamir deleted the heyitsaamir-port-azure-pipeline-fix branch July 17, 2026 22:33
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.

3 participants