Skip to content

Remove node16 from pipelines-agent package#5555

Open
Copilot wants to merge 3 commits into
masterfrom
copilot/remove-node-16-from-pipelines
Open

Remove node16 from pipelines-agent package#5555
Copilot wants to merge 3 commits into
masterfrom
copilot/remove-node-16-from-pipelines

Conversation

Copilot AI commented May 7, 2026

Copy link
Copy Markdown
Contributor

Context

Node 16 is EOL. The pipelines-agent package already strips node6 and node10; this PR extends that to node16. vsts-agent retains node16 unchanged.


Description

Removes Node 16 from the pipelines-agent package while keeping it in the vsts-agent package.

src/dev.sh

  • Added export INCLUDE_NODE16="false" to the pipelines-agent package type block, alongside the existing exclusions of node6 and node10.

src/Misc/externals.sh

  • Added INCLUDE_NODE16=${INCLUDE_NODE16:-true} flag (defaulting to true), mirroring the existing INCLUDE_NODE6 and INCLUDE_NODE10 pattern.
  • Wrapped all node16 binary downloads (win-x*, win-arm64, osx-arm64, linux-musl-arm64, and all other Linux/macOS) in if [[ "$INCLUDE_NODE16" == "true" ]] guards.
  • The node16 post-download cleanup (rm of lib/, npm, npx, corepack) runs unconditionally, consistent with the node6 and node10 cleanup pattern.

src/Misc/layoutbin/runsvc.sh

  • Updated the agent service runner fallback chain to node24 → node20_1 → node16, with node24 as the default, so the agent service prefers the newest available runtime and degrades gracefully on platforms where newer versions are absent.

Behavior:

Package node6 node10 node16 node20 node24
vsts-agent (default)
pipelines-agent

Risk Assessment (Low)

pipelines-agent already excludes older runtimes with no issues. INCLUDE_NODE16 defaults to true, so vsts-agent builds are unaffected. The runsvc.sh fallback degrades gracefully.


Unit Tests Added or Updated (No)

Build/packaging scripts only — no testable logic changes.


Additional Testing Performed

None beyond code review.


Change Behind Feature Flag (Yes)

INCLUDE_NODE16 defaults to true; only PACKAGE_TYPE=pipelines-agent flips it to false.


Tech Design / Approach

Follows the established INCLUDE_NODE6/INCLUDE_NODE10 exclusion pattern. Node16 cleanup is unconditional (matching node6/node10 pattern). runsvc.sh fallback order is node24 → node20_1 → node16 to prefer the newest available runtime.


Documentation Changes Required (No)


Logging Added/Updated (No)


Telemetry Added/Updated (No)


Rollback Scenario and Process (Yes)

Revert the three-file change. Low risk — flag defaults to true.


Dependency Impact Assessed and Regression Tested (Yes)

vsts-agent is unaffected. pipelines-agent mirrors existing node6/node10 exclusion behavior.

Copilot AI and others added 2 commits May 7, 2026 07:25
Comment thread src/Misc/externals.sh Outdated
Comment thread src/Misc/layoutbin/runsvc.sh Outdated
…t fallback in runsvc.sh

Agent-Logs-Url: https://github.com/microsoft/azure-pipelines-agent/sessions/ed5cd3e4-d7ae-4624-9003-b9a05f53fbe9

Co-authored-by: tarunramsinghani <2929463+tarunramsinghani@users.noreply.github.com>
@tarunramsinghani tarunramsinghani added the misc Miscellaneous Changes label May 7, 2026
Copilot stopped work on behalf of tarunramsinghani due to an error May 7, 2026 08:31
@tarunramsinghani tarunramsinghani marked this pull request as ready for review May 7, 2026 14:05
@tarunramsinghani tarunramsinghani requested review from a team as code owners May 7, 2026 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

misc Miscellaneous Changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants