Skip to content

Add read-only release PR validation - #26282

Merged
Eduardo Villalpando Mello (edvilme) merged 2 commits into
mainfrom
release-pr-plan
Nov 12, 2026
Merged

Eduardo Villalpando Mello (edvilme) merged 2 commits into
mainfrom
release-pr-plan

Conversation

@edvilme

@edvilme Eduardo Villalpando Mello (edvilme) commented Nov 9, 2026 •

Copy link
Copy Markdown

Summary

Adds a dedicated Release PR / Plan check to all PRs targeting main, including edited/reopened PRs. Uses contents: read, no path filters, and the shared release-pr action pinned to reviewed commit 4e0c4335bbf6b1a274673e22d9c39cd7efb93ccf in mode: plan.

Only PRs changing root package.json alone, with a different version, are release candidates. Those must be version-only JSON changes with an increasing SemVer, a positive odd development minor, supported Marketplace bounds, and lossless serialization. Mixed-file changes and unchanged versions pass as not applicable, explicitly distinguished from validated candidates in the job summary. Other manifests, including api/package.json, are outside this check's scope.

Existing CI and Azure publishing are unchanged. This does not create release branches, enable release mode, or change branch protection. Make the check required only after merging and observing it working; publishing activation remains a separate rollout.

Validation

This adoption PR changes only the workflow. Its Release PR / Plan check passed on head fa1d9b2bcd5bbdba5caabab74832e0b385a94ed9 as not applicable. This workflow-only diff does not exercise candidate authorization; shared-action tests and hosted API smoke cover that behavior.

Issue tracking: this is workflow-only maintenance from the shared CI rollout, with no separate product issue. Uses the repository's existing skip-issue-check label for that case.

Latest shared action

Updated to merged commit 4e0c4335bbf6b1a274673e22d9c39cd7efb93ccf, including microsoft/vscode-python-ci#11 and microsoft/vscode-python-ci#12. Release candidates now require the PR creator to have write/maintain/admin repository access; permission lookups fail closed. Configurable branch prefixes and the branch output are available, with the existing release/ default. This workflow remains read-only plan mode. The linked disposable pilot covers the original baseline; shared-action CI covers the added prefix/authorization behavior.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 956d3afd-ae0b-486c-a60c-3a6276c23213
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 956d3afd-ae0b-486c-a60c-3a6276c23213
Eduardo Villalpando Mello (edvilme) added a commit that referenced this pull request Nov 12, 2026
## Summary

Follow-up to #26282. Adds only
`.github/workflows/release-pr-release.yml`; the separate read-only
`Release PR / Plan` workflow is unchanged. Keeping the release trigger
separate also avoids overlapping the plan-adoption PR.

- Handles only `pull_request_target: closed` events targeting `main`,
and runs only when the PR was merged. Closing an unmerged PR does not
run the release job.
- Calls
`microsoft/vscode-python-ci/actions/release-pr@4e0c4335bbf6b1a274673e22d9c39cd7efb93ccf`
with `mode: release` and the default `release/` prefix. Only this
dedicated job receives `contents: write`; no custom token or additional
checkout is added.
- Revalidates the exact merged change and the PR creator's current
write/maintain/admin permission. Only root-`package.json`-only,
top-level-version-only valid bumps qualify. Ordinary PRs skip
successfully. Creates `release/<calculated-stable-version>` without
pushing to `main` or updating an existing release branch; retries fail
if the branch already exists.
- Uses the trusted target-branch workflow and pinned action; no
checked-out PR scripts or hooks are executed. Reports either the created
branch/stable version or that no release candidate was found.

## Activation and prerequisites

**Merging this PR enables release-branch creation on subsequent
qualifying merges. The existing Azure stable pipeline matches
`release/*` and defaults `publishExtension` to `true`, so branch
creation can publish an extension.** This does not change Azure YAML,
publishing approvals, credentials, or branch protection.

- **Merge prerequisite #26282 first. It is still open; do not approve
activation before its read-only plan check is available.**
- Before approving activation, configure/confirm `Release PR / Plan` as
a required check and confirm the Actions bot can create `release/*`
refs.
- Confirm the intended Azure pipeline is enabled, its UI trigger
overrides match the checked-in YAML, and publishing
permissions/approvals are ready. Only checked-in configuration was
inspected; live publishing was not exercised.
- Prefer observing the [Black Formatter
pilot](microsoft/vscode-black-formatter#841)
before approving the remaining repositories. No release branches were
created as part of this PR.

Python's Azure publishing prerequisite #26277 is merged. This
workflow-only maintenance PR uses the existing `skip-issue-check` label;
there is no separate product issue.

## Validation

- Prettier, whitespace checks, and actionlint v1.7.7 pass for the new
workflow.
- Local workflow contract checks cover the main/closed event filter,
merged-only guard, dedicated write permission, reviewed action pin, and
single-file scope. Bash syntax and both job-summary outcomes pass.
- The exact pinned shared action passes all 22 tests: 15 release-action
tests and 7 version-action tests, including authorization/API failures,
unchanged-version skips, stable serialization, and existing-branch
rejection.
- The release workflow cannot be exercised on an open PR: it uses the
trusted target-branch workflow after merge. No live release/publish
smoke test is claimed. Where the plan check is already present on
`main`, this workflow-only PR should pass as not applicable.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 956d3afd-ae0b-486c-a60c-3a6276c23213
@edvilme
Eduardo Villalpando Mello (edvilme) merged commit 6ee0d28 into main Nov 12, 2026
82 checks passed
Eduardo Villalpando Mello (edvilme) added a commit that referenced this pull request Nov 16, 2026
## Summary
Prepare the **2026.12.0** stable release using the merged release-PR
automation.

- Change only root `package.json`'s top-level version: `2026.11.0` ->
`2026.13.0`.
- Keep `main` on the next odd development minor, preserving the existing
suffix-free version format.
- After approval and merge, the existing release workflow derives stable
`2026.12.0` and creates `release/2026.12.0` from the merged source. Its
push can trigger Azure stable publishing; normal release approvals still
apply.
- No lockfiles, dependencies, changelogs, workflows, tags, or publishing
configuration are changed. No release branch has been created manually.

## Prerequisite
**Merge #26282 before merging this release PR.**
The read-only `Release PR / Plan` workflow is still absent from `main`.
Once that workflow lands, update this PR branch to include it and verify
a successful, non-skipped candidate Plan on the latest head. This PR
intentionally remains version-only and does not duplicate that workflow
change. Auto-merge is not enabled.

## Validation
- Prettier and whitespace checks passed; the diff is one insertion and
one deletion in root `package.json` only.
- The exact release/version Python scripts pinned by the consumer
workflow at `4e0c4335bbf6b1a274673e22d9c39cd7efb93ccf` validate this
candidate locally.
- Isolated stable-manifest serialization passed without changing other
JSON values; calculated branch: `release/2026.12.0`.
- PR creator repository write access verified. The exact target release
ref was absent at preparation.

Issue tracking: routine release preparation; uses `skip-issue-check` and
`no-changelog` rather than a separate product issue or changelog entry.

## Version-only check policy
Uses the repository's existing `skip package*.json` label for this
top-level version-only bump. No dependency or lockfile change is needed;
changing a lockfile would make the release action classify this as an
ordinary mixed-file PR. The sole impact label is `no-changelog`.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 956d3afd-ae0b-486c-a60c-3a6276c23213
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

debt Code quality issues skip-issue-check

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants