Skip to content

fix(ci): set workingDirectory for ADO extension pipelines#100

Merged
digitarald merged 1 commit intomainfrom
users/digitarald/fix-ado-workdir
Apr 1, 2026
Merged

fix(ci): set workingDirectory for ADO extension pipelines#100
digitarald merged 1 commit intomainfrom
users/digitarald/fix-ado-workdir

Conversation

@digitarald
Copy link
Copy Markdown
Collaborator

Problem

The agentrc-vscode Azure Pipelines build has been failing on every main commit with:

Error: Manifest missing field: engines

The vsce package step runs from the repo root, picking up the root package.json (@microsoft/agentrc) instead of vscode-extension/package.json. The output filename confirms this: undefined.@microsoft/agentrc.2.1.0.universal.vsix (root name, no publisher).

Fix

Both .azure-pipelines/publish-extension.yml and publish-extension-prerelease.yml now pass workingDirectory: $(Build.SourcesDirectory)/vscode-extension to the vscode-engineering templates, so vsce package runs from the extension directory.

Verification

The agentrc-vscode-core pipeline (which handles tests, APIScan, etc.) has been green throughout — this only affects the packaging pipeline.

The vscode-engineering templates default workingDirectory to the repo
root, but this repo's extension lives in vscode-extension/. Without
this parameter, vsce package reads the root package.json (which lacks
engines.vscode and publisher), causing the Package Extension step to
fail with 'Manifest missing field: engines'.

Sets workingDirectory to $(Build.SourcesDirectory)/vscode-extension
in both stable and pre-release pipeline configs.
@digitarald digitarald requested a review from pierceboggan as a code owner April 1, 2026 04:07
Copilot AI review requested due to automatic review settings April 1, 2026 04:07
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes the Azure DevOps packaging pipelines for agentrc-vscode by ensuring the vscode-engineering extension templates run their packaging steps from the VS Code extension subdirectory (rather than the repo root), avoiding picking up the wrong package.json.

Changes:

  • Set workingDirectory: $(Build.SourcesDirectory)/vscode-extension in the stable extension publish pipeline.
  • Set workingDirectory: $(Build.SourcesDirectory)/vscode-extension in the prerelease extension publish pipeline.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
.azure-pipelines/publish-extension.yml Passes workingDirectory to the vscode-engineering stable extension pipeline template so packaging runs from vscode-extension/.
.azure-pipelines/publish-extension-prerelease.yml Passes workingDirectory to the vscode-engineering prerelease extension pipeline template so packaging runs from vscode-extension/.

@digitarald digitarald merged commit 94836f7 into main Apr 1, 2026
15 checks passed
@digitarald digitarald deleted the users/digitarald/fix-ado-workdir branch April 1, 2026 04:11
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