From 567083ed76c9709042f3329d25626447b9ad07c0 Mon Sep 17 00:00:00 2001 From: Eduardo Villalpando Mello Date: Wed, 2 Dec 2026 15:19:06 -0800 Subject: [PATCH] Support release/0.0.0 test branch in stable pipeline Treat release/0.0.0 as a reserved branch for testing the stable release pipeline: builds from it are stamped as version 0.0.0 and force publishExtension off, so they build and package without the validation gate, signing, GitHub tag/release creation, or Marketplace publishing. Document the branch in the release agent instructions. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: f9460bc0-10d2-45a8-9d8a-cdf9f941918b --- .github/agents/release.agent.md | 18 ++++++++++++++++++ build/azure-devdiv-pipeline.stable.yml | 8 +++++++- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/.github/agents/release.agent.md b/.github/agents/release.agent.md index 8f5aac44..8bf348fa 100644 --- a/.github/agents/release.agent.md +++ b/.github/agents/release.agent.md @@ -22,6 +22,24 @@ Start by reading `package.json` to determine the current version. Then confirm w - Tag format: `v` (e.g. `v2026.4.0` — *example*) - Release branch format: `release/.` (e.g. `release/2026.4` — *example*) +## Testing the release pipeline with `release/0.0.0` + +`release/0.0.0` is a reserved test branch for exercising the stable pipeline +without releasing. Pushes to it trigger `build/azure-devdiv-pipeline.stable.yml`, +which stamps the version as `0.0.0` and forces `publishExtension` off. The build +and package stages run; the validation gate, signing, GitHub tag/release +creation, and Marketplace publishing are skipped. + +- Use it only to test pipeline or build changes, never for a real release, and + never tag it. +- It is the only `release/*` branch that may be force-updated. Confirm with the + user first, because every push queues an Azure build: + ``` + git push upstream :refs/heads/release/0.0.0 --force + ``` +- Never open PRs into `release/0.0.0` or merge it elsewhere. A green run proves + only that the build and packaging succeeded, not that anything was published. + ## Release Workflow Work through each phase in order. After presenting each phase's steps, **ask the user to confirm they have completed them before moving on**. diff --git a/build/azure-devdiv-pipeline.stable.yml b/build/azure-devdiv-pipeline.stable.yml index 1aabf87d..226a3b50 100644 --- a/build/azure-devdiv-pipeline.stable.yml +++ b/build/azure-devdiv-pipeline.stable.yml @@ -1,4 +1,6 @@ name: Publish Release +# release/0.0.0 is a reserved test branch: builds from it are stamped as +# version 0.0.0 and never wait for validation, sign, tag, or publish. trigger: branches: include: @@ -82,6 +84,10 @@ parameters: - script: python -m nox --session install_bundled_libs displayName: Install Python dependencies + - script: npm pkg set version=0.0.0 + displayName: Use test version 0.0.0 + condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/release/0.0.0')) + - script: python ./build/update_ext_version.py --release --for-publishing displayName: Update build number @@ -98,7 +104,7 @@ extends: buildSteps: ${{ parameters.buildSteps }} standardizedVersioning: true customNPMRegistry: $(AZURE_ARTIFACTS_FEED) - publishExtension: ${{ parameters.publishExtension }} + publishExtension: ${{ and(parameters.publishExtension, ne(variables['Build.SourceBranch'], 'refs/heads/release/0.0.0')) }} teamName: $(TeamName) ghCreateTag: true ghCreateRelease: true