Skip to content

ci: allow copilot extension version bump in engineering system check#311122

Merged
benvillalobos merged 2 commits intomainfrom
bv/allow-copilot-version-bump
Apr 18, 2026
Merged

ci: allow copilot extension version bump in engineering system check#311122
benvillalobos merged 2 commits intomainfrom
bv/allow-copilot-version-bump

Conversation

@benvillalobos
Copy link
Copy Markdown
Member

@benvillalobos benvillalobos commented Apr 17, 2026

Example PR this should let through.

The no-engineering-system-changes workflow blocks PRs that modify engineering system files (.github/workflows/, build/, package.json). It has a special exception for vs-code-engineering[bot] to allow automated distro and version bumps to the root package.json (+ package-lock.json).

The version bump automation now also updates extensions/copilot/package.json (version + engines.vscode fields) and extensions/copilot/package-lock.json. The existing exception didn't account for these files, causing PR #309360 to fail.

This change expands the exception to also allow the 4-file version bump case:

  • package.json — only "version" field (2 changed lines)
  • package-lock.json — trusted, not inspected (same as before)
  • extensions/copilot/package.json — only "version" and "vscode" fields (4 changed lines)
  • extensions/copilot/package-lock.json — trusted, not inspected

The validation remains strict: exact file-set matching, exact line-count checks, and bot-identity gating.

Copilot AI review requested due to automatic review settings April 17, 2026 23:41
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

Updates the no-engineering-system-changes workflow to keep allowing automated version bump PRs from vs-code-engineering[bot] now that the automation also updates the Copilot extension’s package.json/package-lock.json.

Changes:

  • Expands the bot exception’s allowed file set to include extensions/copilot/package.json and extensions/copilot/package-lock.json alongside the root package.json/package-lock.json.
  • Adds strict validation that extensions/copilot/package.json diffs only touch the "version" and "vscode" fields (via exact changed-line and key counts).
  • Refactors file-set checks to sort the changed-file list once and reuse it for comparisons.
Show a summary per file
File Description
.github/workflows/no-engineering-system-changes.yml Extends the version-bump bot exception to cover Copilot extension version/engine bumps while keeping strict file-set and diff-shape validation.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 0

@benvillalobos benvillalobos enabled auto-merge (squash) April 17, 2026 23:48
@github-actions
Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: 96843429 Current: 82102723

Changed (2)

chat/aiCustomizations/aiCustomizationManagementEditor/McpBrowseMode/Light
Before After
before after
editor/inlineCompletions/other/JumpToHint/Dark
Before After
before after

@benvillalobos benvillalobos merged commit 6159ac5 into main Apr 18, 2026
26 checks passed
@benvillalobos benvillalobos deleted the bv/allow-copilot-version-bump branch April 18, 2026 00:09
@vs-code-engineering vs-code-engineering Bot added this to the 1.117.0 milestone Apr 18, 2026
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