Skip to content

Limit npm APIScan jobs to main and release refs - #315

Closed
Dmitriy Vasyura (dmitrivMS) wants to merge 1 commit into
mainfrom
agents/fix-vscode-wasm-isolated-worktree
Closed

Dmitriy Vasyura (dmitrivMS) wants to merge 1 commit into
mainfrom
agents/fix-vscode-wasm-isolated-worktree

Conversation

@dmitrivMS

Copy link
Copy Markdown
Contributor

Definition 419 (wasm) uses build/azure-pipelines/pipeline.yml, not the root pipeline. pr: none does not disable push CI: the registered CI trigger has no branch filters, the YAML has no trigger restriction, and the project reports disableImpliedYAMLCiTrigger: false. Manual feature-branch run 454467 completed all six APIScan jobs.

Set skipAPIScan for all six packages based on the full, case-sensitive source ref. Keep scans on refs/heads/main, refs/heads/release/*, and refs/tags/release/*. The shared template's PR exclusion, tests, packaging, publishing and pipeline triggers are unchanged.

Validation: Azure pipeline previews retained all 26 other jobs. Actual main, release branch and release tag refs each expanded to six scan jobs; a feature branch with release/ inside its name expanded to zero. Preview expression cases for a PR ref, an unrelated tag, main-next, and mixed-case lookalikes also expanded to zero. git diff --check passed.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@dmitrivMS Dmitriy Vasyura (dmitrivMS) added bug Issue identified by VS Code Team member as probable bug debt Code quality issues labels Nov 27, 2026
@dmitrivMS Dmitriy Vasyura (dmitrivMS) added this to the 1.149.0 milestone Nov 27, 2026
@dmitrivMS

Copy link
Copy Markdown
Contributor Author

Closing without merge: the required distinction is the build reason, not the source ref. The registered npm pipeline declares pr: none; if GitHub PR validation runs, the shared template already omits APIScan when Build.Reason is PullRequest. Feature-branch CI and manually queued Azure builds (including a manual run on a PR ref) must retain APIScan. This draft would incorrectly suppress those scans, so no repository change is needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Issue identified by VS Code Team member as probable bug debt Code quality issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant