kibana/packages
Eyo O. Eyo ed788cde40
[7.17] [Reporting] update puppeteer to version 23.3.1 (#192345) (#193396)
# Backport

This will backport the following commits from `main` to `7.17`:
- [[Reporting] update puppeteer to version 23.3.1
(#192345)](https://github.com/elastic/kibana/pull/192345)

<!--- Backport version: 8.9.8 -->

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

<!--BACKPORT [{"author":{"name":"Eyo O.
Eyo","email":"7893459+eokoneyo@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-09-18T20:26:44Z","message":"[Reporting]
update puppeteer to version 23.3.1 (#192345)\n\n## Summary\r\n\r\nUpdate
for puppeteer, the following changeset updates puppeteer to\r\nversion
`23.3.1`.\r\n\r\nThe chromium version required for this version of
puppeteer is\r\n`128.0.6613.137` from revision `1331488`, as such the
chromium binary\r\nincluded for windows and darwin platforms either
match or were the\r\nclosest revision to the expectation. The linux
headless binary was built\r\nfrom commit
`fe621c5aa2d6b987e964fb1b5066833da5fb613d` of the
same\r\nrevision.\r\n\r\n_**N.B.**_ Puppeteer 23.0.0 is earmarked as
containing breaking
changes\r\nsee\r\n[here](abda5dcc99/packages/puppeteer-core/CHANGELOG.md (2300-2024-08-07)),\r\nthis
PR considers the outlined changes and makes relevant adjustments
so\r\nreporting continues working as is.\r\n\r\n<!--\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\r\n\r\n- [ ] Any text added follows [EUI's
writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\r\nsentence case text and includes
[i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n-
[
]\r\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\r\nwas
added for features that require explanation or tutorials\r\n- [ ] [Unit
or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [ ] [Flaky
Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\r\nused on any tests changed\r\n- [ ] Any UI touched in this PR is
usable by keyboard only (learn more\r\nabout [keyboard
accessibility](https://webaim.org/techniques/keyboard/))\r\n- [ ] Any UI
touched in this PR does not create any new axe failures\r\n(run axe in
browser:\r\n[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),\r\n[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))\r\n-
[ ] If a plugin configuration key changed, check if it needs to
be\r\nallowlisted in the cloud and added to the
[docker\r\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\r\n-
[ ] This renders correctly on smaller devices using a
responsive\r\nlayout. (You can test this [in
your\r\nbrowser](https://www.browserstack.com/guide/responsive-testing-on-local-server))\r\n-
[ ] This was checked for
[cross-browser\r\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)\r\n\r\n\r\n###
Risk Matrix\r\n\r\nDelete this section if it is not applicable to this
PR.\r\n\r\nBefore closing this PR, invite QA, stakeholders, and other
developers to\r\nidentify risks that should be tested prior to the
change/feature\r\nrelease.\r\n\r\nWhen forming the risk matrix, consider
some of the following examples\r\nand how they may potentially impact
the change:\r\n\r\n| Risk | Probability | Severity | Mitigation/Notes
|\r\n\r\n|---------------------------|-------------|----------|-------------------------|\r\n|
Multiple Spaces&mdash;unexpected behavior in non-default Kibana
Space.\r\n| Low | High | Integration tests will verify that all features
are still\r\nsupported in non-default Kibana Space and when user
switches between\r\nspaces. |\r\n| Multiple nodes&mdash;Elasticsearch
polling might have race conditions\r\nwhen multiple Kibana nodes are
polling for the same tasks. | High | Low\r\n| Tasks are idempotent, so
executing them multiple times will not result\r\nin logical error, but
will degrade performance. To test for this case we\r\nadd plenty of unit
tests around this logic and document manual testing\r\nprocedure. |\r\n|
Code should gracefully handle cases when feature X or plugin Y
are\r\ndisabled. | Medium | High | Unit tests will verify that any
feature flag\r\nor plugin combination still results in our service
operational. |\r\n| [See more potential
risk\r\nexamples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)
|\r\n\r\n\r\n### For maintainers\r\n\r\n- [ ] This was checked for
breaking API changes and was
[labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n-->\r\n\r\n\r\n###
How to verify linux headless build\r\n- clone the following
repo\r\nhttps://github.com/tsullivan/kibana-dev-docker\r\n- pull this
particular PR\r\n- follow the steps outlined in the repo, replacing any
occurrence of\r\n`kibana-<version>-SNAPSHOT-linux-aarch64.tar.gz` from
the repo above's\r\nstep with the output of running build on this
changeset.\r\n- before running step 4, modify the `kibana.yml` file from
the\r\n`kibana-dev-docker` repo and include the following so we might be
able\r\nto verify the version of chromium running;\r\n ```yaml\r\n
logging.loggers:\r\n - name: plugins.reporting\r\n level: debug\r\n
```\r\n- complete the steps outlined in the README, you'll have a linux
distro\r\nof kibana running on port `5601`\r\n- Attempt creating exports
of PDF and PNG reports, in dashboard, canvas,\r\nand visualizations, on
report creation attempt we would see a log output\r\nthat prints out the
chromium version exactly matching this;\r\n\r\n<img width=\"1326\"
alt=\"Screenshot 2024-09-18 at 14 50
19\"\r\nsrc=\"https://github.com/user-attachments/assets/7206781a-e8f9-469c-ad65-fd13749766b2\">\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"91ca8ab95c01f88ea2d79779f3670c88bf269da0","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:SharedUX","backport:prev-major","v8.16.0","backport:version","v8.15.2"],"number":192345,"url":"https://github.com/elastic/kibana/pull/192345","mergeCommit":{"message":"[Reporting]
update puppeteer to version 23.3.1 (#192345)\n\n## Summary\r\n\r\nUpdate
for puppeteer, the following changeset updates puppeteer to\r\nversion
`23.3.1`.\r\n\r\nThe chromium version required for this version of
puppeteer is\r\n`128.0.6613.137` from revision `1331488`, as such the
chromium binary\r\nincluded for windows and darwin platforms either
match or were the\r\nclosest revision to the expectation. The linux
headless binary was built\r\nfrom commit
`fe621c5aa2d6b987e964fb1b5066833da5fb613d` of the
same\r\nrevision.\r\n\r\n_**N.B.**_ Puppeteer 23.0.0 is earmarked as
containing breaking
changes\r\nsee\r\n[here](abda5dcc99/packages/puppeteer-core/CHANGELOG.md (2300-2024-08-07)),\r\nthis
PR considers the outlined changes and makes relevant adjustments
so\r\nreporting continues working as is.\r\n\r\n<!--\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\r\n\r\n- [ ] Any text added follows [EUI's
writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\r\nsentence case text and includes
[i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n-
[
]\r\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\r\nwas
added for features that require explanation or tutorials\r\n- [ ] [Unit
or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [ ] [Flaky
Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\r\nused on any tests changed\r\n- [ ] Any UI touched in this PR is
usable by keyboard only (learn more\r\nabout [keyboard
accessibility](https://webaim.org/techniques/keyboard/))\r\n- [ ] Any UI
touched in this PR does not create any new axe failures\r\n(run axe in
browser:\r\n[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),\r\n[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))\r\n-
[ ] If a plugin configuration key changed, check if it needs to
be\r\nallowlisted in the cloud and added to the
[docker\r\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\r\n-
[ ] This renders correctly on smaller devices using a
responsive\r\nlayout. (You can test this [in
your\r\nbrowser](https://www.browserstack.com/guide/responsive-testing-on-local-server))\r\n-
[ ] This was checked for
[cross-browser\r\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)\r\n\r\n\r\n###
Risk Matrix\r\n\r\nDelete this section if it is not applicable to this
PR.\r\n\r\nBefore closing this PR, invite QA, stakeholders, and other
developers to\r\nidentify risks that should be tested prior to the
change/feature\r\nrelease.\r\n\r\nWhen forming the risk matrix, consider
some of the following examples\r\nand how they may potentially impact
the change:\r\n\r\n| Risk | Probability | Severity | Mitigation/Notes
|\r\n\r\n|---------------------------|-------------|----------|-------------------------|\r\n|
Multiple Spaces&mdash;unexpected behavior in non-default Kibana
Space.\r\n| Low | High | Integration tests will verify that all features
are still\r\nsupported in non-default Kibana Space and when user
switches between\r\nspaces. |\r\n| Multiple nodes&mdash;Elasticsearch
polling might have race conditions\r\nwhen multiple Kibana nodes are
polling for the same tasks. | High | Low\r\n| Tasks are idempotent, so
executing them multiple times will not result\r\nin logical error, but
will degrade performance. To test for this case we\r\nadd plenty of unit
tests around this logic and document manual testing\r\nprocedure. |\r\n|
Code should gracefully handle cases when feature X or plugin Y
are\r\ndisabled. | Medium | High | Unit tests will verify that any
feature flag\r\nor plugin combination still results in our service
operational. |\r\n| [See more potential
risk\r\nexamples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)
|\r\n\r\n\r\n### For maintainers\r\n\r\n- [ ] This was checked for
breaking API changes and was
[labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n-->\r\n\r\n\r\n###
How to verify linux headless build\r\n- clone the following
repo\r\nhttps://github.com/tsullivan/kibana-dev-docker\r\n- pull this
particular PR\r\n- follow the steps outlined in the repo, replacing any
occurrence of\r\n`kibana-<version>-SNAPSHOT-linux-aarch64.tar.gz` from
the repo above's\r\nstep with the output of running build on this
changeset.\r\n- before running step 4, modify the `kibana.yml` file from
the\r\n`kibana-dev-docker` repo and include the following so we might be
able\r\nto verify the version of chromium running;\r\n ```yaml\r\n
logging.loggers:\r\n - name: plugins.reporting\r\n level: debug\r\n
```\r\n- complete the steps outlined in the README, you'll have a linux
distro\r\nof kibana running on port `5601`\r\n- Attempt creating exports
of PDF and PNG reports, in dashboard, canvas,\r\nand visualizations, on
report creation attempt we would see a log output\r\nthat prints out the
chromium version exactly matching this;\r\n\r\n<img width=\"1326\"
alt=\"Screenshot 2024-09-18 at 14 50
19\"\r\nsrc=\"https://github.com/user-attachments/assets/7206781a-e8f9-469c-ad65-fd13749766b2\">\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"91ca8ab95c01f88ea2d79779f3670c88bf269da0"}},"sourceBranch":"main","suggestedTargetBranches":["8.15"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/192345","number":192345,"mergeCommit":{"message":"[Reporting]
update puppeteer to version 23.3.1 (#192345)\n\n## Summary\r\n\r\nUpdate
for puppeteer, the following changeset updates puppeteer to\r\nversion
`23.3.1`.\r\n\r\nThe chromium version required for this version of
puppeteer is\r\n`128.0.6613.137` from revision `1331488`, as such the
chromium binary\r\nincluded for windows and darwin platforms either
match or were the\r\nclosest revision to the expectation. The linux
headless binary was built\r\nfrom commit
`fe621c5aa2d6b987e964fb1b5066833da5fb613d` of the
same\r\nrevision.\r\n\r\n_**N.B.**_ Puppeteer 23.0.0 is earmarked as
containing breaking
changes\r\nsee\r\n[here](abda5dcc99/packages/puppeteer-core/CHANGELOG.md (2300-2024-08-07)),\r\nthis
PR considers the outlined changes and makes relevant adjustments
so\r\nreporting continues working as is.\r\n\r\n<!--\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\r\n\r\n- [ ] Any text added follows [EUI's
writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\r\nsentence case text and includes
[i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n-
[
]\r\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\r\nwas
added for features that require explanation or tutorials\r\n- [ ] [Unit
or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [ ] [Flaky
Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\r\nused on any tests changed\r\n- [ ] Any UI touched in this PR is
usable by keyboard only (learn more\r\nabout [keyboard
accessibility](https://webaim.org/techniques/keyboard/))\r\n- [ ] Any UI
touched in this PR does not create any new axe failures\r\n(run axe in
browser:\r\n[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),\r\n[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))\r\n-
[ ] If a plugin configuration key changed, check if it needs to
be\r\nallowlisted in the cloud and added to the
[docker\r\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\r\n-
[ ] This renders correctly on smaller devices using a
responsive\r\nlayout. (You can test this [in
your\r\nbrowser](https://www.browserstack.com/guide/responsive-testing-on-local-server))\r\n-
[ ] This was checked for
[cross-browser\r\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)\r\n\r\n\r\n###
Risk Matrix\r\n\r\nDelete this section if it is not applicable to this
PR.\r\n\r\nBefore closing this PR, invite QA, stakeholders, and other
developers to\r\nidentify risks that should be tested prior to the
change/feature\r\nrelease.\r\n\r\nWhen forming the risk matrix, consider
some of the following examples\r\nand how they may potentially impact
the change:\r\n\r\n| Risk | Probability | Severity | Mitigation/Notes
|\r\n\r\n|---------------------------|-------------|----------|-------------------------|\r\n|
Multiple Spaces&mdash;unexpected behavior in non-default Kibana
Space.\r\n| Low | High | Integration tests will verify that all features
are still\r\nsupported in non-default Kibana Space and when user
switches between\r\nspaces. |\r\n| Multiple nodes&mdash;Elasticsearch
polling might have race conditions\r\nwhen multiple Kibana nodes are
polling for the same tasks. | High | Low\r\n| Tasks are idempotent, so
executing them multiple times will not result\r\nin logical error, but
will degrade performance. To test for this case we\r\nadd plenty of unit
tests around this logic and document manual testing\r\nprocedure. |\r\n|
Code should gracefully handle cases when feature X or plugin Y
are\r\ndisabled. | Medium | High | Unit tests will verify that any
feature flag\r\nor plugin combination still results in our service
operational. |\r\n| [See more potential
risk\r\nexamples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)
|\r\n\r\n\r\n### For maintainers\r\n\r\n- [ ] This was checked for
breaking API changes and was
[labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n-->\r\n\r\n\r\n###
How to verify linux headless build\r\n- clone the following
repo\r\nhttps://github.com/tsullivan/kibana-dev-docker\r\n- pull this
particular PR\r\n- follow the steps outlined in the repo, replacing any
occurrence of\r\n`kibana-<version>-SNAPSHOT-linux-aarch64.tar.gz` from
the repo above's\r\nstep with the output of running build on this
changeset.\r\n- before running step 4, modify the `kibana.yml` file from
the\r\n`kibana-dev-docker` repo and include the following so we might be
able\r\nto verify the version of chromium running;\r\n ```yaml\r\n
logging.loggers:\r\n - name: plugins.reporting\r\n level: debug\r\n
```\r\n- complete the steps outlined in the README, you'll have a linux
distro\r\nof kibana running on port `5601`\r\n- Attempt creating exports
of PDF and PNG reports, in dashboard, canvas,\r\nand visualizations, on
report creation attempt we would see a log output\r\nthat prints out the
chromium version exactly matching this;\r\n\r\n<img width=\"1326\"
alt=\"Screenshot 2024-09-18 at 14 50
19\"\r\nsrc=\"https://github.com/user-attachments/assets/7206781a-e8f9-469c-ad65-fd13749766b2\">\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"91ca8ab95c01f88ea2d79779f3670c88bf269da0"}},{"branch":"8.x","label":"v8.16.0","labelRegex":"^v8.16.0$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/193357","number":193357,"state":"OPEN"},{"branch":"8.15","label":"v8.15.2","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
2024-09-20 16:36:25 -07:00
..
elastic-apm-synthtrace [7.17] chore(NA): upgrade typescript into v4.7.4 (#162738) (#164765) 2023-08-30 23:08:35 +01:00
elastic-datemath [7.17] chore(NA): upgrade typescript into v4.7.4 (#162738) (#164765) 2023-08-30 23:08:35 +01:00
elastic-safer-lodash-set [7.17] Fix eslint rule for restricting certain lodash imports (#151023) (#151550) 2023-02-17 04:06:09 -07:00
kbn-ace chore(NA): replace babel config files by inline presets by default in the jsts_transpiler rule (#110620) (#111217) 2021-09-03 18:41:32 -04:00
kbn-alerts [7.17] Upgrade Typescript to 4.3.5 (#104470) (#158788) 2023-06-01 02:35:54 +01:00
kbn-analytics [7.17] Bump moment-timezone to the latest version (#155832) (#155970) 2023-05-01 06:06:46 -07:00
kbn-apm-config-loader [7.17] Config loader: remove unecessary properties (#154902) (#155028) 2023-04-17 11:28:49 -07:00
kbn-apm-utils chore(NA): replace babel config files by inline presets by default in the jsts_transpiler rule (#110620) (#111217) 2021-09-03 18:41:32 -04:00
kbn-babel-code-parser Updates Github link references from master to main (#116789) (#116792) 2021-10-29 10:08:30 -07:00
kbn-babel-preset [7.17] Upgrade babel to ^7 (#174003) 2024-01-02 11:01:07 -06:00
kbn-babel-register [7.17] Bump Node.js from 18.17.1 to 18.18.2 (#168914) (#169058) 2023-10-17 09:18:26 +02:00
kbn-cli-dev-mode Rewrite brittle test to more resilient, ignoring FORCE_COLOR (#187539) 2024-07-05 04:26:03 +01:00
kbn-config [7.17] Config loader: remove unecessary properties (#154902) (#155028) 2023-04-17 11:28:49 -07:00
kbn-config-schema [7.17] Upgrades joi to 17.7.1 (#150953) (#151201) 2023-02-14 17:29:47 -07:00
kbn-crypto [7.17] Backport test certificates from #111879 (#163099) 2023-08-04 08:04:08 -05:00
kbn-dev-utils [7.17] [Ops] Upgrade to axios 1.4 (#163732) (#164418) 2023-08-23 08:51:55 -05:00
kbn-docs-utils [7.17] Upgrade Typescript to 4.3.5 (#104470) (#158788) 2023-06-01 02:35:54 +01:00
kbn-es [7.17] Upgrade Node.js to v20.10.0 (#173962) 2024-01-02 18:04:09 -06:00
kbn-es-archiver [7.17] Upgrade Node.js to v20.10.0 (#173962) 2024-01-02 18:04:09 -06:00
kbn-es-query [7.17] [Unified Search] Fix "Edit as Query DSL" breaks when pasting in entire query DSL (#131906) (#157355) 2023-05-11 03:36:16 -07:00
kbn-eslint-config [7.17] Changing load/dump in source files (#190641) (#190992) 2024-08-22 09:26:54 +02:00
kbn-eslint-import-resolver-kibana Updates Github link references from master to main (#116789) (#116792) 2021-10-29 10:08:30 -07:00
kbn-eslint-plugin-eslint [7.17] Changing load/dump in source files (#190641) (#190992) 2024-08-22 09:26:54 +02:00
kbn-expect [build_ts_refs] improve caches, allow building a subset of projects (#107981) (#108139) 2021-08-11 05:08:54 -04:00
kbn-field-types [7.17] Upgrade Typescript to 4.3.5 (#104470) (#158788) 2023-06-01 02:35:54 +01:00
kbn-i18n [7.17] Upgrade to Jest 29 (#143319) (#158607) 2023-06-09 16:25:26 -07:00
kbn-interpreter [7.16] [eslint] enable type-specific lint rules (#114184) (#117451) 2021-11-03 23:58:42 -06:00
kbn-io-ts-utils [7.17] [Infrastructure UI] Improve metrics settings error handling (#146272) (#146699) 2022-12-01 03:33:59 -07:00
kbn-legacy-logging [7.17] Bump Node.js from 18.17.1 to 18.18.2 (#168914) (#169058) 2023-10-17 09:18:26 +02:00
kbn-logging [7.16] [eslint] enable type-specific lint rules (#114184) (#117451) 2021-11-03 23:58:42 -06:00
kbn-mapbox-gl chore(NA): replace babel config files by inline presets by default in the jsts_transpiler rule (#110620) (#111217) 2021-09-03 18:41:32 -04:00
kbn-monaco [7.17] [Ops] Bump Node.js to version 18 (#160289) (#162722) 2023-08-15 09:16:19 +02:00
kbn-optimizer [7.17] Replace deprecated node-sass with sass (#174114) 2024-01-02 18:07:07 -06:00
kbn-plugin-generator [7.17] [@kbn/plugin-generator] Skip .i18nrc.json for internal plugins (#150556) (#150694) 2023-02-09 17:28:58 -07:00
kbn-plugin-helpers [7.17] [node] Enable openssl legacy provider (#165147) 2023-08-30 17:46:38 -05:00
kbn-pm [7.17] Upgrade express 4.19.2→4.21.0 (#192862) (#193130) 2024-09-17 11:06:18 -05:00
kbn-rule-data-utils [7.16] [ci] Run Jest tests in parallel (#117188) (#118244) 2021-11-18 18:45:18 -07:00
kbn-screenshotting-server [7.17] [Reporting] update puppeteer to version 23.3.1 (#192345) (#193396) 2024-09-20 16:36:25 -07:00
kbn-securitysolution-autocomplete [7.17] Upgrade Typescript to 4.3.5 (#104470) (#158788) 2023-06-01 02:35:54 +01:00
kbn-securitysolution-es-utils Update ES client to 7.16-canary.6 (#117305) 2021-11-04 16:48:31 +01:00
kbn-securitysolution-hook-utils Increases the timeout for the test from default 1 second. (#117389) (#117534) 2021-11-04 16:52:57 +00:00
kbn-securitysolution-io-ts-alerting-types [7.x][DX] Upgrade prettier to v2.4.0 (#112359) (#112524) 2021-09-19 22:34:46 -07:00
kbn-securitysolution-io-ts-list-types [Security Solution][Platform] - Update rule exported counts to include total object count (#116338) (#117464) 2021-11-04 05:34:21 +00:00
kbn-securitysolution-io-ts-types chore(NA): replace babel config files by inline presets by default in the jsts_transpiler rule (#110620) (#111217) 2021-09-03 18:41:32 -04:00
kbn-securitysolution-io-ts-utils [7.17] chore(NA): upgrade typescript into v4.7.4 (#162738) (#164765) 2023-08-30 23:08:35 +01:00
kbn-securitysolution-list-api Fixing exceptions export format (#114920) (#114949) 2021-10-14 02:06:34 -04:00
kbn-securitysolution-list-constants [7.16] [ci] Run Jest tests in parallel (#117188) (#118244) 2021-11-18 18:45:18 -07:00
kbn-securitysolution-list-hooks [Security Solutions] Fix host isolation exception list showing up on the exceptions list (#114987) (#115269) 2021-10-16 04:44:15 +00:00
kbn-securitysolution-list-utils [Security Solutions] Fix host isolation exception list showing up on the exceptions list (#114987) (#115269) 2021-10-16 04:44:15 +00:00
kbn-securitysolution-t-grid [7.16] [ci] Run Jest tests in parallel (#117188) (#118244) 2021-11-18 18:45:18 -07:00
kbn-securitysolution-utils Fixing exceptions export format (#114920) (#114949) 2021-10-14 02:06:34 -04:00
kbn-server-http-tools Backport #177309 to 7.17 (#182838) 2024-05-08 10:45:24 +02:00
kbn-server-route-repository [7.16] [kbn/io-ts] export and require importing individual functions (#117958) (#118075) 2021-11-11 18:32:39 -05:00
kbn-spec-to-console Updates Github link references from master to main (#116789) (#116792) 2021-10-29 10:08:30 -07:00
kbn-std [7.17] Config loader: remove unecessary properties (#154902) (#155028) 2023-04-17 11:28:49 -07:00
kbn-storybook Upgrade Markdown-it (#179581) 2024-04-23 12:08:29 -07:00
kbn-telemetry-tools [7.17] Migrate from listr to listr2 (#182683) (#183141) 2024-05-14 17:53:40 +02:00
kbn-test [7.17] Add docker retries (#191981) 2024-09-04 11:43:23 -05:00
kbn-test-subj-selector [build_ts_refs] improve caches, allow building a subset of projects (#107981) (#108139) 2021-08-11 05:08:54 -04:00
kbn-timelion-grammar [7.x] [timelion] Move grammar to package (#111881) (#112373) 2021-09-16 12:59:21 -04:00
kbn-tinymath [7.17] Remove eslint-plugin-prefer-object-spread dependency (#162439) (#162461) 2023-07-25 13:52:01 -05:00
kbn-typed-react-router-config [7.17] Upgrade to Jest 29 (#143319) (#158607) 2023-06-09 16:25:26 -07:00
kbn-ui-framework [jest] update config files to get coverage per plugin (#111299) (#111674) 2021-09-09 04:47:28 -04:00
kbn-ui-shared-deps-npm [7.17] [Ops] Bump Node.js to version 18 (#160289) (#162722) 2023-08-15 09:16:19 +02:00
kbn-ui-shared-deps-src [7.17] chore(NA): upgrade typescript into v4.7.4 (#162738) (#164765) 2023-08-30 23:08:35 +01:00
kbn-utility-types [7.16] [eslint] enable type-specific lint rules (#114184) (#117451) 2021-11-03 23:58:42 -06:00
kbn-utils [7.17] Upgrade Node.js to 20.11.1 (#177043) 2024-02-20 16:29:08 -06:00
BUILD.bazel [Screenshotting/7.17] Server package for stateless code (#190950) 2024-08-22 06:28:45 -05:00
README.md Remove grunt (#111882) (#112474) 2021-09-16 17:48:57 -04:00

Kibana-related packages

This folder contains packages that are intended for use in Kibana and Kibana plugins.

tl;dr:

  • Don't publish to npm registry
  • Always use the @kbn namespace
  • Always set "private": true in package.json

Using these packages

We no longer publish these packages to the npm registry. Now, instead of specifying a version when including these packages, we rely on yarn workspaces, which sets up a symlink to the package.

For example if you want to use the @kbn/i18n package in Kibana itself, you can specify the dependency like this:

"@kbn/i18n": "1.0.0"

However, if you want to use this from a Kibana plugin, you need to use a link: dependency and account for the relative location of the Kibana repo, so it would instead be:

"@kbn/i18n": "link:../../kibana/packages/kbn-i18n"

How all of this works is described in more detail in the @kbn/pm docs.

Creating a new package

Create a new sub-folder. The name of the folder should mirror the name in the package's package.json. E.g. if the name is @kbn/i18n the folder name should be kbn-i18n.

All new packages should use the @kbn namespace, and should be marked with "private": true.

Unit tests for a package

Currently there is only one tool being used in order to test packages which is Jest. Below we will explain how it should be done.

Jest

A package should follow the pattern of having .test.js files as siblings of the source code files, and these run by Jest.

A package using the .test.js naming convention will have those tests automatically picked up by Jest and run by the unit test runner, currently mapped to the Kibana test script in the root package.json.

  • yarn test runs all unit tests.
  • yarn jest runs all Jest tests in Kibana.

In order for the plugin or package to use Jest, a jest.config.js file must be present in it's root. However, there are safeguards for this in CI should a test file be added without a corresponding config file.


Each package can also specify its own test script in the package's package.json, for cases where you'd prefer to run the tests from the local package directory.