Commit graph

58 commits

Author SHA1 Message Date
Tiago Costa
3c338a82c2
chore(NA): remove usage of re2 and replace it with a non native module (#188134)
This PR removes the usage of the native module version of `re2` and
replaces it with a js port called `re2js`.
It also ends our usage of native node modules in production and it
removes the task from the build as well. Further steps will be taken
along our strategy to avoid future usages of native node modules in prod
environments.
2024-07-15 20:33:28 +01:00
Jon
7891410d12
Upgrade Node.js to 20.15.1 (#187791)
https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V20.md
2024-07-15 12:34:07 -05:00
Brad White
7cc61db199
Upgrade Node.js to v20.13.1 (#183345)
Closes #180697
Closes #181724


https://buildkite.com/elastic/kibana-custom-node-dot-js-builds/builds/158


[Changelog](https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V20.md#20.13.0)
2024-05-14 12:11:56 -07:00
Jon
af0ab74d04
Upgrade Node.js to v20.12.2 (#180522)
Draft pending
https://buildkite.com/elastic/kibana-custom-node-dot-js-builds/builds/138
2024-04-11 08:56:38 -05:00
Jon
aea8060ba6
Upgrade Node.js to 20.12.1 (#180073)
https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V20.md#20.12.1
2024-04-04 13:50:43 -05:00
Jon
37ae67a0a0
Upgrade Node.js to 20.11.1 (#177042) 2024-02-20 14:01:23 -06:00
Jon
81ae390daa
Upgrade yarn to 1.22.21 in WORKSPACE.bazel (#175632)
In addition to https://github.com/elastic/kibana/pull/175495
2024-01-25 14:39:36 -06:00
Tiago Costa
c6f9d9881e
chore(NA): bump node into v20 (#173461)
Closes https://github.com/elastic/kibana/issues/173334

This is a reattempt of doing what was planned on
https://github.com/elastic/kibana/pull/162696 after solving the
bottlenecks we discovered previously.

---------

Co-authored-by: Jonathan Budzenski <jon@elastic.co>
2024-01-02 14:49:19 -06:00
Patryk Kopyciński
d4be2a33ac
Replace deprecated node-sass with sass #2 (#173942)
## Summary

The previous PR https://github.com/elastic/kibana/pull/161813 was
reverted due to the broken webpack config

eef1afcd59

---------

Co-authored-by: Tiago Costa <tiago.costa@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Jon <jon@elastic.co>
2023-12-28 10:35:17 -06:00
Jonathan Budzenski
3def20e8dc Revert "Replace deprecated node-sass with sass (#161813)"
This reverts commit 87d5d6be26.
2023-12-21 09:59:08 -06:00
Patryk Kopyciński
87d5d6be26
Replace deprecated node-sass with sass (#161813)
## Summary

https://sass-lang.com/blog/libsass-is-deprecated/

Most of the changes related to 
https://sass-lang.com/documentation/breaking-changes/slash-div/

---------

Co-authored-by: Tiago Costa <tiago.costa@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-12-21 12:51:58 +01:00
Jonathan Budzenski
f51e6cd248 Revert "Upgrade to Node.js 20 (#162696)"
This reverts commit 029b3ba81d.
2023-11-21 07:15:23 -06:00
Thomas Watson
029b3ba81d
Upgrade to Node.js 20 (#162696)
Co-authored-by: Jonathan Budzenski <jon@elastic.co>
2023-11-20 21:47:48 +01:00
Thomas Watson
217929a636
Bump Node.js from 18.17.1 to 18.18.2 (#168914) 2023-10-16 09:50:15 -04:00
Jon
146eecca85
[bazel] Use kibana-ci-proxy-cache for node downloads (#166875)
We're seeing less than ideal reliability for our node downloads from the
official site on CI.

This uses our cache for downloading node distributions for development.
The checksums on our linux distributions have been updated due to using
our glibc 2.17 node build.

Used similarly to our distributions: 

82024c240a/src/dev/build/tasks/nodejs/node_download_info.ts (L21)
2023-10-05 09:30:10 -05:00
Jon
41d8296db7
Upgrade Node.js to 18.17.1 (#163710)
https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V18.md#18.17.1
2023-08-14 12:08:27 -05:00
Tiago Costa
17936ffd21
fix(NA): yarn env vars for node_modules mirrors (#163549)
This PR fixes the setup we have for the node_module mirrors vars that
are overriding and pointing into our middle cache. The previous
configuration was not working as intended as the env vars set globally
on CI never ended up in the bazel managed yarn install.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-08-10 07:35:34 -07:00
Alex Szabo
8cf68dc6ba
[Ops] Bump Node.js to version 18 (#160289)
## Summary

Bumps node.js to 18.17.0 (replacement for PR #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
https://github.com/elastic/kibana-custom-nodejs-builds/pull/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: 
 - [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 <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Tiago Costa <tiago.costa@elastic.co>
Co-authored-by: Thomas Watson <w@tson.dk>
2023-07-27 14:12:48 +02:00
Jon
b8c36e11b1
Upgrade Node.js to 16.20.1 (#160177)
https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V16.md#16.20.1
2023-06-21 16:57:55 -05:00
Jon
d41bcb210a
Upgrade Node.js to 16.19.1 (#151527)
https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V16.md#16.19.1
2023-02-21 10:40:59 -06:00
Thomas Watson
6a0f7b9562
Downgrade Node.js to version 16 (#149531)
Closes #149438

We'll upgrade again once a suitable solution to the issue has been
found.
2023-01-26 11:53:52 +00:00
Thomas Watson
b345f75634
Upgrade Node.js from v16.18.1 to v18.13.0 (#144012)
Closes #134930

Breaking changes in Node.js majors:

- `17.0.0`:
https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V17.md#17.0.0
- `18.0.0`:
https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V18.md#18.0.0
2023-01-17 21:04:23 +01:00
Jonathan Budzenski
6672962d19
Bump node to 16.18.1 (#144751)
https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V16.md#16.18.1
2022-11-08 10:16:10 -06:00
Jonathan Budzenski
21bc8ba841
Bump node to 16.17.1 (#141702) 2022-09-23 15:02:48 -05:00
Jonathan Budzenski
369272efe1
Bump Node.js to 16.16.0 (#135926) 2022-07-07 17:05:09 -05:00
Jonathan Budzenski
5460e38361
Bazel config maintenance (#135442)
* Bazel config maintenance

- Removes node.js s390x - not a supported platform
- Updates the list of ignored bazel folders
- Updates yarn to 1.22.19, we're on a 2.5 year old version

* bump yarn in package.json
2022-07-05 10:20:26 -05:00
Tiago Costa
0b2da10a7d
chore(NA): downgrades rules nodejs into v4.7.0 (#130347)
* chore(NA): downgrade rules nodejs into v4.0.0

* chore(NA): include windows patch

* chore(NA): polish downgrade code

* chore(NA): include yarn.lock
2022-04-15 04:11:08 +01:00
Tiago Costa
b84383e937
fix(NA): do not remote cache npm directories copies on rules_nodejs v5 (#130214)
* fix(NA): bazel remote cache traffic

* chore(NA): include local patch to fix the caches node_modules problem
2022-04-14 05:19:49 +01:00
Tiago Costa
fb761dca4c
chore(NA): upgrades rules_node_js to v5.4.0 (#130051)
* chore(NA): upgrades rules_node_js to v5.4.0

* chore(NA): include expunge on bootstrap --force-install
2022-04-12 15:33:09 -05:00
Tiago Costa
fce2df0485
Revert "chore(NA): upgrades rules_node_js to v5.4.0 (#130021)"
This reverts commit d41fb22d92.
2022-04-12 19:18:15 +01:00
Tiago Costa
d41fb22d92
chore(NA): upgrades rules_node_js to v5.4.0 (#130021) 2022-04-12 10:14:23 -07:00
Tiago Costa
eb0ef19583
chore(NA): upgrades bazel rules nodejs to v5 (#129522)
* chore(NA): upgrade bazel into v5

* chore(NA): initial work to upgrade to rules v5

* chore(NA): remove @elastic/datemath jest unit test for eslint plugin imports

* chore(NA): removed packager tsc_wrapped added my mistake
2022-04-08 20:42:37 +01:00
Tiago Costa
32eb83cfd2
chore(NA): redesign integration between bazel node_modules management and yarn kbn commands (#114048)
* chore(NA): redesign integration between bazel node_modules management and yarn kbn commands

* fix(NA): remove .yarn-integrity on force install

* fix(NA): include clean on force install

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-28 13:57:04 +01:00
Thomas Watson
de02c2da65
Upgrade Node.js from v16.13.2 to v16.14.2 (#128123) 2022-03-21 07:30:00 -05:00
Spencer
c509fda3fb
[yarn] download prebuilt artifacts for re2 and node-sass from custom mirrors (#126820)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-03 15:22:10 -06:00
Tiago Costa
172bf98942
chore(NA): upgrades rules nodejs to v4.0.0 (#125163)
* chore(NA): upgrade rules_node_js into v4.4.3

* chore(NA): update bazel typescript dep to 4.6.1

* chore(NA): downgrade rules nodejs to v4.0.0

* chore(NA): update dep on bazel/typescript pkg

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-12 03:53:03 +00:00
Thom Heymann
2a2fd7cbf0
Bump Node.js from version 16.13.0 to 16.13.2 (#122723) 2022-01-12 08:26:26 +00:00
Jonathan Budzenski
6908420a8b
Bump node to 16.13.0 (#116519)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-02 21:56:47 -05:00
Jonathan Budzenski
fa1a233d23
Development and build support for ARM based Apple devices (#114879) 2021-10-19 23:01:52 +01:00
Jonathan Budzenski
7d66002da2
Bump node to 16.11.1 (#110684)
* Bump node to ^16

* fix comment

* use jest timers

* bump mock-fs

* Fix core type errors

* Unskipping tests that work on my machine

* skip new unhandled promise rejection

* Fix Nodejs v16 regression due to https://github.com/nodejs/node/issues/38924

* Fix failing concurrent connections collector test

* Fix types after merge from master

* update servicenow test

* Skip unhandledRejection tests

* Skip tests with unhandled promise rejection

* Fix discover jest failures

* bump node to 16.11.1

* revert timeout increase

* skip unhandled promise rejection

* rm jest import

* skip unhandled promise rejection

Co-authored-by: Rudolf Meijering <skaapgif@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Tim Roes <tim.roes@elastic.co>
2021-10-16 16:21:58 -05:00
Thomas Watson
29b45883be
Bump Node.js from version 14.17.5 to 14.17.6 (#110654) 2021-09-01 08:50:50 +02:00
Tiago Costa
7dc24e65d6
chore(NA): upgrades bazel rules nodejs into v3.8.0 (#108471) 2021-08-13 15:24:51 +01:00
Aleh Zasypkin
dc1ceefbfd
Bump Node.js from version 14.17.3 to 14.17.5. (#108324) 2021-08-13 09:26:42 +02:00
Tiago Costa
86225685c6
chore(NA): upgrades bazel rules nodejs into v3.7.0 (#105764)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-15 22:35:56 +01:00
Thomas Watson
3a173656ab
Upgrade from Node.js v14.17.2 to v14.17.3 (#104417) 2021-07-08 07:26:37 -04:00
Tiago Costa
2b236b7fa6
chore(NA): enable exports_directories_only on rules nodejs to improve performance (#104180)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-02 00:14:40 +01:00
Thomas Watson
23d900eb56
Bump Node.js from version 14.17.0 to 14.17.2 (#104148) 2021-07-01 21:27:49 +02:00
Tiago Costa
90db5fd4a4
chore(NA): upgrades bazel rules nodejs into v3.6.0 (#103895)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-01 01:48:48 +01:00
Tiago Costa
e565b22ab3
chore(NA): upgrade bazel rules nodejs to v3.5.1 (#101412) 2021-06-04 19:56:52 +01:00
Thomas Watson
afaacae777
Bump Node.js from version 14.16.1 to 14.17.0 (#100314) 2021-05-19 07:36:43 -07:00