Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It is not clear which version of the node is supported by the version of the azure-pipelines-task-lib #982

Closed
gusega opened this issue Oct 18, 2023 · 3 comments

Comments

@gusega
Copy link

gusega commented Oct 18, 2023

Dear maintainers,

It's not clear which version of the node is supported by the azure-pipelines-task-lib

From reading this microsoft documentation I understand that only task node 10 runner is guaranteed to be present on the agent. Which means that in order for the task and task tests to run successfully, the task.json execution must be set to Node10 and so the task and it's tests must only use functionality provided in node version 10. Also other dependencies of the task, such as typescript @types/node should be of version 10 and the tsconfig.json should be for node version 10.

On the other hand, the task.json schema allows to use execution Node16, although task node 16 runner is not available on the agents.

So my question is what version of node corresponds to which version of the azure-pipelines-task-lib library? How do I install or request task node 16 runner on an agent?

Thanks.

@DmitriiBobreshev
Copy link
Contributor

Hi @gusega, thank you for the question and sorry for the inconvenience. We'll try to improve the docs for better understanding.

Answering your questions, the Node16 runner was introduced in the agent in version 2.206.1 and new node20 runner was introduced in 3.225.0 so all agent with higher version supports the runners.

For the task-lib, node16 support was introduced with the major version 4 so all task-lib 4.x versions are compatible with it, for node 20 runner we're preparing the node 20 support and it will be task-lib version 5.x, but you can use task-lib 4.x with node 20 runners for now, as it uses in some in-the-box tasks

@gusega
Copy link
Author

gusega commented Oct 19, 2023

Hi @DmitriiBobreshev, thanks a lot for the clarification.

What also might be helpful is to emphasize that node runner used to run tasks is bundled in the agent version and to run tasks with node version X handler, the minimum agent version should be set in the task.json.

Thanks again for the help.

Copy link

This issue has had no activity in 90 days. Please comment if it is not actually stale

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants