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

[Ops] Bump Node.js to version 18 #160289

Merged
merged 27 commits into from
Jul 27, 2023
Merged

[Ops] Bump Node.js to version 18 #160289

merged 27 commits into from
Jul 27, 2023

Conversation

delanni
Copy link
Contributor

@delanni delanni commented Jun 22, 2023

Summary

Bumps node.js to 18.17.0 (replacement for PR #144012 which was later reverted)

Also closes: #134930

As a result, these categorical additions were needed:

  • node evocations will need the --openssl-legacy-provider flag, wherever it would use certain crypto functionalities
  • tests required updating of the expected HTTPS Agent call arguments, noDelay seems to be a default
  • window.[NAME] fields cannot be written directly
  • some stricter typechecks

This is using our in-house built node.js 18 versions through the URLs the proxy-cache. (built with elastic/kibana-custom-nodejs-builds#4)

These urls are served from a bucket, where the RHEL7/Centos7 compatible node distributables are. (see: https://github.com/elastic/kibana-ci-proxy-cache/pull/7)

Further todos:

  • check docs wording and consistency
  • update the dependency report
  • explain custom builds in documentation
  • node_sass prebuilts

@delanni delanni requested review from a team as code owners June 22, 2023 15:44
@github-actions
Copy link
Contributor

Documentation preview:

package.json Show resolved Hide resolved
@delanni delanni requested a review from a team as a code owner June 23, 2023 10:23
@delanni delanni requested a review from a team as a code owner June 23, 2023 13:18
@delanni delanni requested a review from a team June 23, 2023 13:18
@delanni delanni added Team:Operations Team label for Operations Team backport:skip This commit does not require backporting release_note:feature Makes this part of the condensed release notes labels Jun 23, 2023
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-operations (Team:Operations)

@delanni delanni requested a review from a team as a code owner June 23, 2023 14:09
Copy link
Contributor

@TinaHeiligers TinaHeiligers left a comment

Choose a reason for hiding this comment

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

Changes in cloud detector files LGTM.

@delanni delanni requested review from a team as code owners June 26, 2023 09:16
@delanni delanni requested a review from banderror June 26, 2023 09:16
Copy link
Contributor

@sebelga sebelga left a comment

Choose a reason for hiding this comment

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

LGTM

@patrykkopycinski
Copy link
Contributor

Thank you @delanni
Please make sure to read #149438 before merging this PR

@delanni
Copy link
Contributor Author

delanni commented Jun 26, 2023

Thanks @patrykkopycinski - I forgot to highlight in the PR that this is with the custom node 18 builds (with glibc 2.17) in mind.

@delanni delanni requested review from a team as code owners June 26, 2023 13:18
@botelastic botelastic bot added the Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability label Jun 26, 2023
@elasticmachine
Copy link
Contributor

Pinging @elastic/uptime (Team:uptime)

@patrykkopycinski
Copy link
Contributor

Added label to make sure all our E2E are passing as well

@delanni delanni marked this pull request as draft June 26, 2023 15:36
Copy link
Contributor

@amyjtechwriter amyjtechwriter left a comment

Choose a reason for hiding this comment

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

LGTM on docs side!

@jrodewig jrodewig requested a review from lcawl July 26, 2023 16:43
@delanni
Copy link
Contributor Author

delanni commented Jul 26, 2023

@elasticmachine merge upstream

@kibana-ci
Copy link
Collaborator

kibana-ci commented Jul 27, 2023

💔 Build Failed

Failed CI Steps

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @delanni @lcawl @amyjtechwriter

@delanni delanni merged commit 8cf68dc into elastic:main Jul 27, 2023
@delanni
Copy link
Contributor Author

delanni commented Jul 27, 2023

Thanks everyone for their help and reviews!

@delanni
Copy link
Contributor Author

delanni commented Jul 28, 2023

💚 All backports created successfully

Status Branch Result
7.17

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

delanni added a commit to delanni/kibana that referenced this pull request Jul 28, 2023
## Summary

Bumps node.js to 18.17.0 (replacement for PR elastic#144012 which was later
reverted)

As a result, these categorical additions were needed:
- `node` evocations will need the `--openssl-legacy-provider` flag,
wherever it would use certain crypto functionalities
- tests required updating of the expected HTTPS Agent call arguments,
`noDelay` seems to be a default
 - `window.[NAME]` fields cannot be written directly
 - some stricter typechecks

This is using our in-house built node.js 18 versions through the URLs
the proxy-cache. (built with
elastic/kibana-custom-nodejs-builds#4)

These urls are served from a bucket, where the RHEL7/Centos7 compatible
node distributables are. (see:
elastic/kibana-ci-proxy-cache#7)

Further todos:
 - [x] check docs wording and consistency
 - [ ] update the dependency report
 - [x] explain custom builds in documentation
 - [x] node_sass prebuilts

---------

Co-authored-by: Kibana Machine <[email protected]>
Co-authored-by: Tiago Costa <[email protected]>
Co-authored-by: Thomas Watson <[email protected]>
mistic added a commit that referenced this pull request Jul 31, 2023
…preter on the cloud artifacts deployment scripts (#162742)

Closes #162756

This PR fixes a problem introduced after the merge of
#160289

Looks like the behaviour of node regarding the use of the `FORCE_COLOR`
flag is now propagated differently when cashing the output of a given
node interpreter run in a bash variable which was affecting the script
and making it to fail when casting a number string to a number.

---------

Co-authored-by: kibanamachine <[email protected]>
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jul 31, 2023
…preter on the cloud artifacts deployment scripts (elastic#162742)

Closes elastic#162756

This PR fixes a problem introduced after the merge of
elastic#160289

Looks like the behaviour of node regarding the use of the `FORCE_COLOR`
flag is now propagated differently when cashing the output of a given
node interpreter run in a bash variable which was affecting the script
and making it to fail when casting a number string to a number.

---------

Co-authored-by: kibanamachine <[email protected]>
(cherry picked from commit f981722)
mistic added a commit that referenced this pull request Jul 31, 2023
… interpreter on the cloud artifacts deployment scripts (#162742) (#162843)

# Backport

This will backport the following commits from `main` to `8.9`:
- [chore(NA): disables FORCE_COLOR temporarily when executing node
interpreter on the cloud artifacts deployment scripts
(#162742)](#162742)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Tiago
Costa","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-07-31T19:57:21Z","message":"chore(NA):
disables FORCE_COLOR temporarily when executing node interpreter on the
cloud artifacts deployment scripts (#162742)\n\nCloses
https://github.com/elastic/kibana/issues/162756\r\n\r\nThis PR fixes a
problem introduced after the merge
of\r\nhttps://github.com//pull/160289\r\n\r\nLooks like
the behaviour of node regarding the use of the `FORCE_COLOR`\r\nflag is
now propagated differently when cashing the output of a given\r\nnode
interpreter run in a bash variable which was affecting the script\r\nand
making it to fail when casting a number string to a
number.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<[email protected]>","sha":"f98172291af44055f1e3ec7a8d55bbf4dacd5f18","branchLabelMapping":{"^v8.10.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["chore","Team:Operations","release_note:skip","backport:all-open","v8.10.0"],"number":162742,"url":"https://github.com/elastic/kibana/pull/162742","mergeCommit":{"message":"chore(NA):
disables FORCE_COLOR temporarily when executing node interpreter on the
cloud artifacts deployment scripts (#162742)\n\nCloses
https://github.com/elastic/kibana/issues/162756\r\n\r\nThis PR fixes a
problem introduced after the merge
of\r\nhttps://github.com//pull/160289\r\n\r\nLooks like
the behaviour of node regarding the use of the `FORCE_COLOR`\r\nflag is
now propagated differently when cashing the output of a given\r\nnode
interpreter run in a bash variable which was affecting the script\r\nand
making it to fail when casting a number string to a
number.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<[email protected]>","sha":"f98172291af44055f1e3ec7a8d55bbf4dacd5f18"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.10.0","labelRegex":"^v8.10.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/162742","number":162742,"mergeCommit":{"message":"chore(NA):
disables FORCE_COLOR temporarily when executing node interpreter on the
cloud artifacts deployment scripts (#162742)\n\nCloses
https://github.com/elastic/kibana/issues/162756\r\n\r\nThis PR fixes a
problem introduced after the merge
of\r\nhttps://github.com//pull/160289\r\n\r\nLooks like
the behaviour of node regarding the use of the `FORCE_COLOR`\r\nflag is
now propagated differently when cashing the output of a given\r\nnode
interpreter run in a bash variable which was affecting the script\r\nand
making it to fail when casting a number string to a
number.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<[email protected]>","sha":"f98172291af44055f1e3ec7a8d55bbf4dacd5f18"}}]}]
BACKPORT-->

Co-authored-by: Tiago Costa <[email protected]>
ThomThomson pushed a commit to ThomThomson/kibana that referenced this pull request Aug 1, 2023
## Summary

Bumps node.js to 18.17.0 (replacement for PR elastic#144012 which was later
reverted)

As a result, these categorical additions were needed: 
- `node` evocations will need the `--openssl-legacy-provider` flag,
wherever it would use certain crypto functionalities
- tests required updating of the expected HTTPS Agent call arguments,
`noDelay` seems to be a default
 - `window.[NAME]` fields cannot be written directly
 - some stricter typechecks

This is using our in-house built node.js 18 versions through the URLs
the proxy-cache. (built with
elastic/kibana-custom-nodejs-builds#4)

These urls are served from a bucket, where the RHEL7/Centos7 compatible
node distributables are. (see:
elastic/kibana-ci-proxy-cache#7)

Further todos: 
 - [x] check docs wording and consistency
 - [ ] update the dependency report
 - [x] explain custom builds in documentation
 - [x] node_sass prebuilts

---------

Co-authored-by: Kibana Machine <[email protected]>
Co-authored-by: Tiago Costa <[email protected]>
Co-authored-by: Thomas Watson <[email protected]>
ThomThomson pushed a commit to ThomThomson/kibana that referenced this pull request Aug 1, 2023
…preter on the cloud artifacts deployment scripts (elastic#162742)

Closes elastic#162756

This PR fixes a problem introduced after the merge of
elastic#160289

Looks like the behaviour of node regarding the use of the `FORCE_COLOR`
flag is now propagated differently when cashing the output of a given
node interpreter run in a bash variable which was affecting the script
and making it to fail when casting a number string to a number.

---------

Co-authored-by: kibanamachine <[email protected]>
delanni added a commit that referenced this pull request Aug 15, 2023
Closes #162695

# Backport

This will backport the following commits from `main` to `7.17`:
- [[Ops] Bump Node.js to version 18
(#160289)](#160289)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Alex
Szabo","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-07-27T12:12:48Z","message":"[Ops]
Bump Node.js to version 18 (#160289)\n\n## Summary\r\n\r\nBumps node.js
to 18.17.0 (replacement for PR #144012 which was
later\r\nreverted)\r\n\r\nAs a result, these categorical additions were
needed: \r\n- `node` evocations will need the
`--openssl-legacy-provider` flag,\r\nwherever it would use certain
crypto functionalities\r\n- tests required updating of the expected
HTTPS Agent call arguments,\r\n`noDelay` seems to be a default\r\n -
`window.[NAME]` fields cannot be written directly\r\n - some stricter
typechecks\r\n\r\nThis is using our in-house built node.js 18 versions
through the URLs\r\nthe proxy-cache. (built
with\r\nhttps://github.com/elastic/kibana-custom-nodejs-builds/pull/4)\r\n\r\nThese
urls are served from a bucket, where the RHEL7/Centos7
compatible\r\nnode distributables are.
(see:\r\nhttps://github.com/elastic/kibana-ci-proxy-cache/pull/7)\r\n\r\nFurther
todos: \r\n - [x] check docs wording and consistency\r\n - [ ] update
the dependency report\r\n - [x] explain custom builds in
documentation\r\n - [x] node_sass
prebuilts\r\n\r\n---------\r\n\r\nCo-authored-by: Kibana Machine
<[email protected]>\r\nCo-authored-by:
Tiago Costa <[email protected]>\r\nCo-authored-by: Thomas Watson
<[email protected]>","sha":"8cf68dc6ba8f010e36538c1e7c92601a341efcf4","branchLabelMapping":{"^v8.10.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Operations","Team:uptime","backport:skip","release_note:feature","ci:all-cypress-suites","v8.10.0"],"number":160289,"url":"https://github.com/elastic/kibana/pull/160289","mergeCommit":{"message":"[Ops]
Bump Node.js to version 18 (#160289)\n\n## Summary\r\n\r\nBumps node.js
to 18.17.0 (replacement for PR #144012 which was
later\r\nreverted)\r\n\r\nAs a result, these categorical additions were
needed: \r\n- `node` evocations will need the
`--openssl-legacy-provider` flag,\r\nwherever it would use certain
crypto functionalities\r\n- tests required updating of the expected
HTTPS Agent call arguments,\r\n`noDelay` seems to be a default\r\n -
`window.[NAME]` fields cannot be written directly\r\n - some stricter
typechecks\r\n\r\nThis is using our in-house built node.js 18 versions
through the URLs\r\nthe proxy-cache. (built
with\r\nhttps://github.com/elastic/kibana-custom-nodejs-builds/pull/4)\r\n\r\nThese
urls are served from a bucket, where the RHEL7/Centos7
compatible\r\nnode distributables are.
(see:\r\nhttps://github.com/elastic/kibana-ci-proxy-cache/pull/7)\r\n\r\nFurther
todos: \r\n - [x] check docs wording and consistency\r\n - [ ] update
the dependency report\r\n - [x] explain custom builds in
documentation\r\n - [x] node_sass
prebuilts\r\n\r\n---------\r\n\r\nCo-authored-by: Kibana Machine
<[email protected]>\r\nCo-authored-by:
Tiago Costa <[email protected]>\r\nCo-authored-by: Thomas Watson
<[email protected]>","sha":"8cf68dc6ba8f010e36538c1e7c92601a341efcf4"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.10.0","labelRegex":"^v8.10.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/160289","number":160289,"mergeCommit":{"message":"[Ops]
Bump Node.js to version 18 (#160289)\n\n## Summary\r\n\r\nBumps node.js
to 18.17.0 (replacement for PR #144012 which was
later\r\nreverted)\r\n\r\nAs a result, these categorical additions were
needed: \r\n- `node` evocations will need the
`--openssl-legacy-provider` flag,\r\nwherever it would use certain
crypto functionalities\r\n- tests required updating of the expected
HTTPS Agent call arguments,\r\n`noDelay` seems to be a default\r\n -
`window.[NAME]` fields cannot be written directly\r\n - some stricter
typechecks\r\n\r\nThis is using our in-house built node.js 18 versions
through the URLs\r\nthe proxy-cache. (built
with\r\nhttps://github.com/elastic/kibana-custom-nodejs-builds/pull/4)\r\n\r\nThese
urls are served from a bucket, where the RHEL7/Centos7
compatible\r\nnode distributables are.
(see:\r\nhttps://github.com/elastic/kibana-ci-proxy-cache/pull/7)\r\n\r\nFurther
todos: \r\n - [x] check docs wording and consistency\r\n - [ ] update
the dependency report\r\n - [x] explain custom builds in
documentation\r\n - [x] node_sass
prebuilts\r\n\r\n---------\r\n\r\nCo-authored-by: Kibana Machine
<[email protected]>\r\nCo-authored-by:
Tiago Costa <[email protected]>\r\nCo-authored-by: Thomas Watson
<[email protected]>","sha":"8cf68dc6ba8f010e36538c1e7c92601a341efcf4"}}]}]
BACKPORT-->

---------

Co-authored-by: Kibana Machine <[email protected]>
Co-authored-by: Tiago Costa <[email protected]>
Co-authored-by: Thomas Watson <[email protected]>
Co-authored-by: Jonathan Budzenski <[email protected]>
@delanni delanni deleted the bump-node-18 branch May 2, 2024 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting ci:all-cypress-suites release_note:feature Makes this part of the condensed release notes Team:Operations Team label for Operations Team Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability v7.17.13 v8.10.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade to Node 18.x