Skip to content

CI: Limit DevDiv APIScan to main and release refs - #588

Closed
Dmitriy Vasyura (dmitrivMS) wants to merge 1 commit into
devdiv-prereleasefrom
fix/devdiv-apiscan-source-ref
Closed

Dmitriy Vasyura (dmitrivMS) wants to merge 1 commit into
devdiv-prereleasefrom
fix/devdiv-apiscan-source-ref

Conversation

@dmitrivMS

Copy link
Copy Markdown
Contributor

Stacked on #585. Base: devdiv-prerelease, not main: the DevDiv definition used by the manual run and its local Rust template exist only on #585. If #585 lands first, retarget this draft to main and recheck the diff.

The manual feature-head build invoked APIScan because the stage only checked for the Windows x64 target. Keep that target requirement and successful packaging, but gate the whole APIScan/TSA stage on the full source ref. Allow main, release/* branches, stable release/<year>.<build> tags and historical v<year>.<build>.<patch> release tags. PR builds and other refs do not scan, including manually queued feature heads. No changes to triggers, signing, artifact publication or the Monaco pipelines.

Validation: all 7 DevDiv pipeline unit tests passed; executed the actual PowerShell classifier for main, release branch, both tag formats, malformed tag, PR merge and manual feature-head refs. git diff --check passed. Separate signing tests could not run successfully without a .NET SDK; no signing logic changed. No live DevDiv build was queued.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@dmitrivMS Dmitriy Vasyura (dmitrivMS) added the bug Issue identified by VS Code Team member as probable bug label 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: the APIScan status on #585 came from a manually queued Azure DevOps build, not GitHub-triggered PR validation. The proposed DevDiv pipeline sets pr: none. With no evidence of a PR-triggered scan, this guard would suppress permitted manual scans.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant