Skip to content

build: remove the SDK canary parameters from the product builds - #350593

Open
Ladislau Szomoru (lszomoru) wants to merge 2 commits into
mainfrom
lszomoru/agents/remove-sdk-parameters-product-build
Open

Ladislau Szomoru (lszomoru) wants to merge 2 commits into
mainfrom
lszomoru/agents/remove-sdk-parameters-product-build

Conversation

@lszomoru

Copy link
Copy Markdown
Member

Why

SDK updates are tested in the SDK Validation pipeline (sdk-validation-build.yml) since #343604. The product builds still declare its two queue parameters, SDK canary (VSCODE_SDK_CANARY_VERSION) and Expected SDK-bundled runtime version (VSCODE_CLI_CANARY_VERSION). Recent product builds left both at their defaults.

What changed

product-build.yml and product-build-ado-ci.yml each drop the two parameters and the two variables that mapped none and auto to empty strings. The diff is 46 deleted lines.

Scope

The SDK Validation pipeline keeps both parameters. apply-sdk-canary.yml, apply-sdk-canary-override.ts and its test are unchanged. Without the variables, the override steps in the shared Windows, Linux and macOS setup templates skip. product-build-ci.yml already runs them that way.

Blast radius

Queuing the product build or the ADO CI build with either parameter now fails with Unexpected parameter. The queue form no longer shows the two fields.

Verification

  • Azure Pipelines preview API (POST _apis/pipelines/{id}/preview with yamlOverride and templates from main) on the old and new YAML of both files: passed. The final YAML differs only by the two parameters and the two variables.
  • The same preview, queued with VSCODE_SDK_CANARY_VERSION: fails with Unexpected parameter 'VSCODE_SDK_CANARY_VERSION', as expected.
  • Timelines of a recent product build (variables set to "") and a recent CI build (variables undefined): the three SDK canary steps are skipped in every job of both.
  • npm run -s precommit (hygiene) during the commit: passed.

SDK updates are tested in the SDK Validation pipeline (sdk-validation-build.yml) since #343604, so product-build.yml and product-build-ado-ci.yml no longer need VSCODE_SDK_CANARY_VERSION and VSCODE_CLI_CANARY_VERSION. The SDK Validation pipeline keeps both parameters and the apply-sdk-canary.yml override. Without the variables, the override steps in the shared setup templates skip, as they already do in product-build-ci.yml.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 26, 2026 19:55
@lszomoru
Ladislau Szomoru (lszomoru) marked this pull request as ready for review November 26, 2026 20:01

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues remain for the removal of SDK canary controls from the product build pipelines.

No open issues 🎉

What changed in this PR

Removes SDK canary queue controls from the product build pipelines now that SDK updates have a dedicated validation pipeline.

Changes:

  • Removes both canary parameters and their sentinel-normalizing variables from the product and ADO CI pipelines.
  • Leaves the SDK Validation pipeline and shared override implementation unchanged.
File Description
build/​azure-pipelines/​product-build.yml Removes SDK canary parameters and variable mappings from product builds.
build/​azure-pipelines/​product-build-ado-ci.yml Removes the same controls from ADO CI builds.

Review effort: Balanced

…builds (#350600)

product-build.yml, product-build-ado-ci.yml and sdk-validation-build.yml took the npm and Cargo feeds as free-text NPM_REGISTRY and CARGO_REGISTRY parameters, so a run could be queued with any feed. They now define both as readonly variables. Queuing a run with either parameter fails with "Unexpected parameter", and no step can change the feeds with task.setvariable. product-build-variables.yml does the same for the TSA pipeline, product-build-ci.yml marks its feed variables readonly, and product-build-template.yml drops the two parameters it never read.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

This branch has not been deployed

No deployments
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