Skip to content

Restructuring common folder, take 1#2

Merged
banderror merged 11 commits intoonweek-refactoring-rule-managementfrom
restructuring-common-folder
Oct 14, 2022
Merged

Restructuring common folder, take 1#2
banderror merged 11 commits intoonweek-refactoring-rule-managementfrom
restructuring-common-folder

Conversation

@banderror
Copy link
Copy Markdown
Owner

No description provided.

@banderror banderror merged this pull request into onweek-refactoring-rule-management Oct 14, 2022
@banderror banderror deleted the restructuring-common-folder branch October 14, 2022 05:59
banderror pushed a commit that referenced this pull request Nov 4, 2022
* Misc enhancements following PR comments

* Adding functional tests

* Fixing types

* Fixing tests

* Removing unnecessary Promise.all

* Cleanup

* Misc fixes and simplifications

* Add missing tsconfig.json

* [CI] Auto-commit changed files from 'node scripts/build_plugin_list_docs'

* Add dependency to Actions plugin in tsconfig.json

* Separate setup logic from start logic

* Fix bulkEnqueueExecution params structure

* Update README

* Add UTs

* Check license type >platinum for email notifications

* Fix incorrect UTs

* Import types when possible

* Misc enhancements and code cleanup

* Transform factory => provider, update start contract

* Code cleanup, update README

* Fix TS error

* Fix CI types error

* Address PR remarks

* Address PR remarks #2

Co-authored-by: Ying Mao <ying.mao@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
banderror pushed a commit that referenced this pull request Nov 8, 2022
* Updated EUI to version 67.1.2. Updated instaces of ButtonColor from EUI to EuiButtonColor.

* Updated to EuiCard instances that utilize the betaBadgeProps object to return an empty string instead of undefined when the label is unavailable

* Removed two instances of the deprecated internetExplorerOnly() mixin

* Updated two instances of the ButtonColor import to EuiButtonColor as is was renamed in PR elastic#6150

* Updated snapshots in Jest Test Suite #1 to account for EuiButton and EuiCard Emotion conversions. Updated snapshots for EuiTooltip as it now contains the new EuiToolTipAnchor component that replaced the tooltip anchor styles

* Updated snapshots in Jest Test Suite #2 to account forEuiButton, EuiDescriptionList, EuiButtonIcon, and EuiBadge Emotion conversions.

* Updated snapshots in Jest Test Suite #3 to account for EuiDescriptionList, EuiButton, and EuiBadge Emotion conversions. Updated snapshots for EuiTooltip as if now contains the new EuiTooltipAnchor component that replaced the tooltop anchor styles

* Updated snapshots in Jest Test Suite #4 to account for EuiButton Emotion conversion.

* Updated snapshots in Jest Test Suite #5 to account for EuiButton Emotion conversion.

* Updated snapshots in Jest Test Suite #8 to account for EuiButtonIcon and EuiButton Emotion conversions. Updated snapshots for EuiTooltip as it now contains the new EuiTooltipAnchor component that replaced the tooltip anchor styles.

* Updated snapshots in Jest Test Suite elastic#9 to account for EuiFlyout and EuiButton Emotion conversions.

* Updated snapshots in Jest Test Suite elastic#10 to account for EuiButton, EuiBadge, EuiButtonIcon, and EuiCard Emotion conversions. Updated snapshots for EuiToolTtip as it now contains the new EuiTooltipAnchor component that replaced the tooltip anchor styles

* Updated instances of EuiButtonIconColor to use EuiButtonIconProps['color'] as it was removed in PR elastic#6150

* Updated tests that target EuiButton to simulate click events to target a generic button to prevent undefined click event errors

* Updated snapshots in Jest Test Suite #1 to account for EuiButton and EuiCard Emotion conversions

* Added the EuiFlyout mixins and variables to Lens Sass file as EuiFlyout has been converted to Emotion and the Sass styles are no longer available in EUI

* Added the EuiCallOutTypes variable to Step Progress Sass file as EuiCallOut has been converted to Emotion and the Sass styles are no longer available in EUI

* Updated snapshots in Jest Test Suite #2 to account for recent Emotion conversions.
Updated snapshots in server_status.test.tsx to render EuiBadge before checking the snapshots to reduce the snapshot churn caused by Emotion.
Updated tests that target EuiButton to simulate click events to target a generic button to prevent undefined click event errors

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

* Added imports for the added flyout mixin. Removed references to EuiCallOut mixin as the component has been converted to Emotion and is no longer available for use.

* Updated unit tests and snapshots in Jest Test Suite elastic#10.
Updated snaphshots to account for EuiBadge, EuiDescriptionList, EuiFlyout, and EuiCard Emotion conversions. Updated snapshots for EuiTooltip as it now contains the new EuiTooltipAnchor component that replaced the tooltip anchor styles.
Updated tests that target EuiButton to simulate click events to target a generic button element to prevent undefined click event errors

* Updated unit tests in Jest Test Suite elastic#11 that target EuiButton to simulate click events to target a generic button to prevent undefined click event errors

* Updated unit tests in Jest Test Suite elastic#12 by updating tests that target EuiButton to simulate click events. Instead, these tests now target a generic button element to prevent undefined click event errors

* Updated unit tests in Jest Test Suite #1 by updating tests that target EuiButton to simulate click events. Instead, these tests now target a generic button element to prevent undefined click event errors

* Updated unit tests in Jest Test Suite #2 by updating tests that use EuiButton to simulate click events. Instead, these test have been updated to target a button element to prevent undefined click event errors.

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* Updated reference to mixins Sass file.
Updated snapshots for Jest Test Suite #5 to account for EuiButton Emotion conversion. Updated unit tests that target EuiButton to simulate click events. These tests have been updated to target a button element to prevent undefined click event errors

* Updated unit tests in Jest Test Suites 3, 7, 8, 13, and 14.
Updated snapshot to account for EuiButton Emotion conversion.
Updated tests that target EuiButton to simulate click events. These tests now target a generic button element to prevent undefined click event errors.
Updated a few snapshots by adding .render() before checking the snapshot. This will prevent large snapshots coming from recent Emotion conversions

* Updated snapshots in Jest Test Suite elastic#10 to account for the recent EuiButton Emotion conversion

* Updated unit tests in Jest Test Suite #2 by editing tests that target EuiButton to simulate click events. These tests now target a button element in order to prevent undefinde click event errors

* Updated snapshots in Jest Test Suite elastic#10 to account for EuiButton and EuiDescriptionList Emotion conversions

* Updated test cases in Jest Test Suites 3, 7, and 8. Updated snapshots to account for EuiButton and EuiPagination Emotion conversions.
Updated tests that target EuiButton to simulate click events. These tests now target a button element to prevent undefined click errors

* Updated test cases in Jest Test Suite 14. Updated snapshots to account for EuiButton Emotion conversion. Opted to use .render() when updating a few snapshots to reduce the large length of snapshots caused by Emotion

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* Revised a change to betaBadgeProps to ensure that the label is available. If not, the value for the badge with be set to undefined.

* Resolved two linting errors

* Resolved two linting errors

* Updated Jest unit tests in various suites.
Updated snapshots to account for EuiButton Emotion conversion. Updated snapshots for EuiTooltip as it now contains the new EuiTooltipAnchor component that replaced the tooltip anchor styles.

* Updated EuiFlyout in query_flyout.tsx to remove the onClick function from maskProps as it is no longer available. Updated this flyout to use ownFocus and not to close when the overlay mask is clicked.

* Removed the use of EuiButtonIconColor in favor of EuiButtonIconProps['color']

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* Updated Cypress test looking for strict equality on EuiPaginationButton class names to match a substring of the Emotion generated class name

* Removed unneeded debugging code. Updated snapshots for various test suites to account for the recent EuiButton Emotion conversion

* Updated a few EuiButton, EuiButtonEmpty, and EuiText components that set the color as ghost. The ghost color mode has been deprecated as of PR elastic#6150. These components now are wrapped in EuiThemeProvider with a dark colorMode to create the previous ghost color.

* Resolved  TS error with EuiCard betaBadgeProps

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* Remove references to now-removed EuiFlyout CSS classes/vars

* Remove now-removed euiBadge className references

- Convert directly to EuiBadge instead of using CSS

- Remove confusing and now-possibly-irrelevant CSS badge overrides - left/right icons are now set via JSX and not via flex-direction

* Pre-emptively fix various euiOverlayMask CSS overrides

- this data attr isn't technically in yet but will be once elastic/eui#6289 merges

- at the very least this isn't breaking any more than it currently already is!

* Update to v67.1.3

* v67.1.4

* Resolved test failing test case in Security/Manage/Blocklist. The test did not remove focus from the last combo box in the form, which didn't allow the disbaled attribute to be removed from the flyout submit button. I've updated the mock file for Blocklist to return focus to the first form element in the flyout to allow the disabled attribute to be removed.

* Updated snapshots to account for the recent EuiText Emotion conversion

* Fix Log's custom tooltips relying on EuiTooltip classNames that no longer exist

* Fix Vega vis custom tooltips relying on EuiTooltip classNames that no longer exist

- this one is trickier than Log's as it's not using React, so we need to use Emotion's Global to set a static className

* Convert remaining vega_vis.scss to Emotion

- as an example of how other global + non global styles could be handled in the future

* Fix references to removed `euiPaginationButton-isActive` className

- use aria-current attribute instead

* Added missing EuiFlyoutAnimation keyframes for EuiFlyout. This resolved test that failed because they used onAnimationEnd because the FlyoutAnimation could not be found.

* Reolved Jest Tests in suites 1 and 5. Updated snapshots to account for the recent EuiButton Emotion conversion. Updated snapshots for EuiToolTip as it now contains the new EuiToolTipAnchor component that replaced the tooltip anchor styles.

* iterate on rules_list.test.tsx

* bump eui to v67.1.5

* Updatde snapshots for jest test suites to account for the recent EuiButton, EuiOverlayMask, EuiTooltip, and EuiBadge Emotion conversions

* Resolved failing security test by updating the target element for CONNECTOR_TITLE. EuiCard has recently been converted to Emotion and the card title is no longer wrapper in a span.

* Resolved failing test case in Runtime Fields. The modify runtime field test was failing because the combobox responsbible for adding and updating scripts was not appearing. The textbox did not appear because the shared setFieldScript function targets and toggles the script textbox when opening the flyout. When a runtime field is being modified, the toggle is already active and using the shared function will trigger the toggle again (losing access to the script textbox).
Also resolved an issue that prevented the warning EuiCallout to appear when changing the type of a runtime field from its original type. Resolved this by adding an enter keypress at the end of setFieldType function to confirm the type selection, thus triggering the EuiCallout

* Resolved two tests that were failing in Lens. These test were failing because they were checking for equality in class names that no longer exist within EuiButtonGroup as it was recently converted to Emotion. These tests were updated to check for a substring of the new and longer class name

* Quick fix in test case failing because of misspelling in data-test-sub

* Updated snapshot for Jest test case as EuiButton as recently been converted to Emotion

* Removed console.log statement. Oops!

* Resolved a failing test case in Lens. They were failing because they were checking for equality in class names that no longer exist within EuiButtonGroup as it was recently converted to Emotion. These tests were updated to check for a substring of the new and longer class name.
Updated a Security test case by giving a target button the data-test-subj attribute for easier querying

* Removed reference to EuiFlyout mixin as it has been converted to Emotion. Updated the reference to an interal copy of EuiFlyout styles

* Corrected spelling error in EuiFlyout animation in Lens app

* Update EUI with latest backport

* Update button snapshots

* fix another button snapshot

* More snapshot fixes

* [EuiButton][Security] Fix button relying on now-removed `euiButton__text` CSS

- replace removed CSS with `eui-textTruncate` util instead

- combine/DRY out unnecessary span - was affecting min-width of truncation util

+ increase screenshot diff limit - this was smaller than updating the actual baseline screenshots for whatever reason (likely render diff between local and CI)

* Fix remaining Jest tests affected by Emotion conversions

- because Emotion creates its own wrapper, `.first()` can no longer be used - prefer `.last()` instead

* Fix Jest test affected by EuiButton Emotion conversion + removed modifier class

- targeting the native DOM node + filtering by disabled true/false gets us back to the 'correct' lengths

* Fix + improve flyout test

- `.last()` changes to account for EuiButton Emotion conversion is needed, but the last onClose assertion still fails due to us having modified inputs, and the confirm modal being displayed

- split test into two separate tests - one testing the onClose call, and the other testing the confirm modal

* derpin

* Skip rules_list Jest suite

* Update new EuiButton snapshot

* Upgraded EUI version to 67.1.7

* [EuiCard] Update snapshots

* [EuiPopover] Update snapshots

* [QA] Fix missing Vega warn/error message colors

;_;

* [CI] Auto-commit changed files from 'node scripts/generate codeowners'

* Fix Lens kbnToolbarButton regressions

- Caused by flattening of EUI button CSS specificity

- background-color was previously relying on isDisabled CSS specificity to override its #fff color

- `text` color modifier & `!important` is no longer needed and overrides Emotion CSS flatly

- isDisabled class is no longer needed - euiButton no longer sets `pointer-events: none` on disabled buttons (fixes tooltip bug in webkit as well)

* Backport EUI 67.1.8 fixes

* Update EuiCard snapshots

* Fix EuiModal form wrapper causing overflow issues

- see https://elastic.github.io/eui/#/layout/modal#forms-in-a-modal

* Workaround for `.kbnOverlayMountWrapper` mount point causing overflow issues

- not sure what all is using this modal service to be honest, but the wrapper is causing issues with the modal layout, this fixes overflow issues but will not fix any mask-image issues as a result

* more snapshot updates

* EuiButton - added textProps to EuiButton to prevent very long button names from spilling over outside of the container

* EuiButton - Update EuiButton related snapshots. Updated tests that target EuiButton directly to use a data-telementary-id for more specific element querying required by Emotion

* QA - Removed unnecessary comment in code

* Temporary fix for EuiCard[selectable][layout=horizontal] instances on security solutions' rule page

* Temporary fix for EuiCard[selectable][layout=horizontal] instances on osquery live query and canvas's datasource selector

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

* Fix CSS specificity, where canvas's solutionToolbarButton's background-color now takes precedence over EuiButton's primary styles

* Removed update to search_marker_tooltip that removed the euiTooltip styles and replaced then with Emotion styling. Added EuiTooltip Sass styles for the component to rely on to test for a styling bug that is causing the tooltip and the tooltip arrow to be out of sync with each other.

* Lint Sass file

* Lint Sass file

* Removed overflow:hidden style from .vgaVis_view as it was causing euiScrollStyles not to present the scroll bars in Vega Vis

* Remove typo from EuiButton textProps object. 'className' should not have been included in the actual class name

* Revert tooltip Sass

This reverts commit 20e6ead, a5cd2de, and c605cbd

* Fix Emotion tooltip arrows

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Constance Chen <constance.chen@elastic.co>
Co-authored-by: Chandler Prall <chandler.prall@elastic.co>
banderror pushed a commit that referenced this pull request Dec 22, 2022
## Summary

Fixes elastic#144161

As discussed
[here](elastic#144161 (comment)),
the existing implementation of update tags doesn't work well with real
agents, as there are many conflicts with checkin, even when trying to
add/remove one tag.
Refactored the logic to make retries more efficient:
- Instead of aborting the whole bulk action on conflicts, changed the
conflict strategy to 'proceed'. This means, if an action of 50k agents
has 1k conflicts, not all 50k is retried, but only the 1k conflicts,
this makes it less likely to conflict on retry.
- Because of this, on retry we have to know which agents don't yet have
the tag added/removed. For this, added an additional filter to the
`updateByQuery` request. Only adding the filter if there is exactly one
`tagsToAdd` or one `tagsToRemove`. This is the main use case from the
UI, and handling other cases would complicate the logic more (each
additional tag to add/remove would result in another OR query, which
would match more agents, making conflicts more likely).
- Added this additional query on the initial request as well (not only
retries) to save on unnecessary work e.g. if the user tries to add a tag
on 50k agents, but 48k already have it, it is enough to update the
remaining 2k agents.
- This improvement has the effect that 'Agent activity' shows the real
updated agent count, not the total selected. I think this is not really
a problem for update tags.
- Cleaned up some of the UI logic, because the conflicts are fully
handled now on the backend.
- Locally I couldn't reproduce the conflict with agent checkins, even
with 1k horde agents. I'll try to test in cloud with more real agents.

To verify:
- Enroll 50k agents (I used 50k with create_agents script, and 1k with
horde). Enroll 50k with horde if possible.
- Select all on UI and try to add/remove one or more tags
- Expect the changes to propagate quickly (up to 1m). It might take a
few refreshes to see the result on agent list and tags list, because the
UI polls the agents every 30s. It is expected that the tags list
temporarily shows incorrect data because the action is async.

E.g. removed `test3` tag and added `add` tag quickly:
<img width="1776" alt="image"
src="https://user-images.githubusercontent.com/90178898/207824481-411f0f70-d7e8-42a6-b73f-ed80e77b7700.png">
<img width="422" alt="image"
src="https://user-images.githubusercontent.com/90178898/207824550-582d43fc-87db-45e1-ba58-15915447fefd.png">

The logs show the details of how many `version_conflicts` were there,
and it decreased with retries.

```
[2022-12-15T10:32:12.937+01:00][INFO ][plugins.fleet] Running action asynchronously, actionId: 90acd541-19ac-4738-b3d3-db32789233de, total agents: 52000
[2022-12-15T10:32:12.981+01:00][INFO ][plugins.fleet] Scheduling task fleet:update_agent_tags:retry:check:90acd541-19ac-4738-b3d3-db32789233de
[2022-12-15T10:32:16.477+01:00][INFO ][plugins.fleet] Running action asynchronously, actionId: 29e9da70-7194-4e52-8004-2c1b19f6dfd5, total agents: 52000
[2022-12-15T10:32:16.537+01:00][INFO ][plugins.fleet] Scheduling task fleet:update_agent_tags:retry:check:29e9da70-7194-4e52-8004-2c1b19f6dfd5
[2022-12-15T10:32:22.893+01:00][DEBUG][plugins.fleet] {"took":9886,"timed_out":false,"total":52000,"updated":41143,"deleted":0,"batches":52,"version_conflicts":10857,"noops":0,"retries":{"bulk":0,"search":0},"throttled_millis":0,"requests_per_second":-1,"throttled_until_millis":0,"failures":[]}
[2022-12-15T10:32:26.066+01:00][DEBUG][plugins.fleet] {"took":9518,"timed_out":false,"total":52000,"updated":25755,"deleted":0,"batches":52,"version_conflicts":26245,"noops":0,"retries":{"bulk":0,"search":0},"throttled_millis":0,"requests_per_second":-1,"throttled_until_millis":0,"failures":[]}
[2022-12-15T10:32:27.401+01:00][ERROR][plugins.fleet] Action failed: version conflict of 10857 agents
[2022-12-15T10:32:27.461+01:00][INFO ][plugins.fleet] Scheduling task fleet:update_agent_tags:retry:90acd541-19ac-4738-b3d3-db32789233de
[2022-12-15T10:32:27.462+01:00][INFO ][plugins.fleet] Retrying in task: fleet:update_agent_tags:retry:90acd541-19ac-4738-b3d3-db32789233de
[2022-12-15T10:32:29.274+01:00][ERROR][plugins.fleet] Action failed: version conflict of 26245 agents
[2022-12-15T10:32:29.353+01:00][INFO ][plugins.fleet] Scheduling task fleet:update_agent_tags:retry:29e9da70-7194-4e52-8004-2c1b19f6dfd5
[2022-12-15T10:32:29.353+01:00][INFO ][plugins.fleet] Retrying in task: fleet:update_agent_tags:retry:29e9da70-7194-4e52-8004-2c1b19f6dfd5
[2022-12-15T10:32:31.480+01:00][INFO ][plugins.fleet] Running bulk action retry task
[2022-12-15T10:32:31.481+01:00][DEBUG][plugins.fleet] Retry #1 of task fleet:update_agent_tags:retry:90acd541-19ac-4738-b3d3-db32789233de
[2022-12-15T10:32:31.481+01:00][INFO ][plugins.fleet] Running action asynchronously, actionId: 90acd541-19ac-4738-b3d3-db32789233de, total agents: 52000
[2022-12-15T10:32:31.481+01:00][INFO ][plugins.fleet] Completed bulk action retry task
[2022-12-15T10:32:31.485+01:00][INFO ][plugins.fleet] Scheduling task fleet:update_agent_tags:retry:check:90acd541-19ac-4738-b3d3-db32789233de
[2022-12-15T10:32:33.841+01:00][DEBUG][plugins.fleet] {"took":2347,"timed_out":false,"total":10857,"updated":9857,"deleted":0,"batches":11,"version_conflicts":1000,"noops":0,"retries":{"bulk":0,"search":0},"throttled_millis":0,"requests_per_second":-1,"throttled_until_millis":0,"failures":[]}
[2022-12-15T10:32:34.556+01:00][INFO ][plugins.fleet] Running bulk action retry task
[2022-12-15T10:32:34.557+01:00][DEBUG][plugins.fleet] Retry #1 of task fleet:update_agent_tags:retry:29e9da70-7194-4e52-8004-2c1b19f6dfd5
[2022-12-15T10:32:34.557+01:00][INFO ][plugins.fleet] Running action asynchronously, actionId: 29e9da70-7194-4e52-8004-2c1b19f6dfd5, total agents: 52000
[2022-12-15T10:32:34.557+01:00][INFO ][plugins.fleet] Completed bulk action retry task
[2022-12-15T10:32:34.560+01:00][INFO ][plugins.fleet] Scheduling task fleet:update_agent_tags:retry:check:29e9da70-7194-4e52-8004-2c1b19f6dfd5
[2022-12-15T10:32:35.388+01:00][ERROR][plugins.fleet] Retry #1 of task fleet:update_agent_tags:retry:90acd541-19ac-4738-b3d3-db32789233de failed: version conflict of 1000 agents
[2022-12-15T10:32:35.468+01:00][INFO ][plugins.fleet] Scheduling task fleet:update_agent_tags:retry:90acd541-19ac-4738-b3d3-db32789233de
[2022-12-15T10:32:35.468+01:00][INFO ][plugins.fleet] Retrying in task: fleet:update_agent_tags:retry:90acd541-19ac-4738-b3d3-db32789233de
{"took":5509,"timed_out":false,"total":26245,"updated":26245,"deleted":0,"batches":27,"version_conflicts":0,"noops":0,"retries":{"bulk":0,"search":0},"throttled_millis":0,"requests_per_second":-1,"throttled_until_millis":0,"failures":[]}
[2022-12-15T10:32:42.722+01:00][INFO ][plugins.fleet] processed 26245 agents, took 5509ms
[2022-12-15T10:32:42.723+01:00][INFO ][plugins.fleet] Removing task fleet:update_agent_tags:retry:check:29e9da70-7194-4e52-8004-2c1b19f6dfd5
[2022-12-15T10:32:46.705+01:00][INFO ][plugins.fleet] Running bulk action retry task
[2022-12-15T10:32:46.706+01:00][DEBUG][plugins.fleet] Retry #2 of task fleet:update_agent_tags:retry:90acd541-19ac-4738-b3d3-db32789233de
[2022-12-15T10:32:46.707+01:00][INFO ][plugins.fleet] Running action asynchronously, actionId: 90acd541-19ac-4738-b3d3-db32789233de, total agents: 52000
[2022-12-15T10:32:46.707+01:00][INFO ][plugins.fleet] Completed bulk action retry task
[2022-12-15T10:32:46.711+01:00][INFO ][plugins.fleet] Scheduling task fleet:update_agent_tags:retry:check:90acd541-19ac-4738-b3d3-db32789233de
[2022-12-15T10:32:47.099+01:00][DEBUG][plugins.fleet] {"took":379,"timed_out":false,"total":1000,"updated":1000,"deleted":0,"batches":1,"version_conflicts":0,"noops":0,"retries":{"bulk":0,"search":0},"throttled_millis":0,"requests_per_second":-1,"throttled_until_millis":0,"failures":[]}
[2022-12-15T10:32:47.623+01:00][INFO ][plugins.fleet] processed 1000 agents, took 379ms
[2022-12-15T10:32:47.623+01:00][INFO ][plugins.fleet] Removing task fleet:update_agent_tags:retry:check:90acd541-19ac-4738-b3d3-db32789233de
```

### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
banderror pushed a commit that referenced this pull request Jan 23, 2023
…stic#147839)

# Backport

This will backport the following commits from `main` to `8.6`:
- [[Fleet] refactored bulk update tags retry
(elastic#147594)](elastic#147594)

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

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

<!--BACKPORT [{"author":{"name":"Julia
Bardi","email":"90178898+juliaElastic@users.noreply.github.com"},"sourceCommit":{"committedDate":"2022-12-20T09:36:36Z","message":"[Fleet]
refactored bulk update tags retry (elastic#147594)\n\n## Summary\r\n\r\nFixes
https://github.com/elastic/kibana/issues/144161\r\n\r\nAs
discussed\r\n[here](https://github.com/elastic/kibana/issues/144161#issuecomment-1348668610),\r\nthe
existing implementation of update tags doesn't work well with
real\r\nagents, as there are many conflicts with checkin, even when
trying to\r\nadd/remove one tag.\r\nRefactored the logic to make retries
more efficient:\r\n- Instead of aborting the whole bulk action on
conflicts, changed the\r\nconflict strategy to 'proceed'. This means, if
an action of 50k agents\r\nhas 1k conflicts, not all 50k is retried, but
only the 1k conflicts,\r\nthis makes it less likely to conflict on
retry.\r\n- Because of this, on retry we have to know which agents don't
yet have\r\nthe tag added/removed. For this, added an additional filter
to the\r\n`updateByQuery` request. Only adding the filter if there is
exactly one\r\n`tagsToAdd` or one `tagsToRemove`. This is the main use
case from the\r\nUI, and handling other cases would complicate the logic
more (each\r\nadditional tag to add/remove would result in another OR
query, which\r\nwould match more agents, making conflicts more
likely).\r\n- Added this additional query on the initial request as well
(not only\r\nretries) to save on unnecessary work e.g. if the user tries
to add a tag\r\non 50k agents, but 48k already have it, it is enough to
update the\r\nremaining 2k agents.\r\n- This improvement has the effect
that 'Agent activity' shows the real\r\nupdated agent count, not the
total selected. I think this is not really\r\na problem for update
tags.\r\n- Cleaned up some of the UI logic, because the conflicts are
fully\r\nhandled now on the backend.\r\n- Locally I couldn't reproduce
the conflict with agent checkins, even\r\nwith 1k horde agents. I'll try
to test in cloud with more real agents.\r\n\r\nTo verify:\r\n- Enroll
50k agents (I used 50k with create_agents script, and 1k with\r\nhorde).
Enroll 50k with horde if possible.\r\n- Select all on UI and try to
add/remove one or more tags\r\n- Expect the changes to propagate quickly
(up to 1m). It might take a\r\nfew refreshes to see the result on agent
list and tags list, because the\r\nUI polls the agents every 30s. It is
expected that the tags list\r\ntemporarily shows incorrect data because
the action is async.\r\n\r\nE.g. removed `test3` tag and added `add` tag
quickly:\r\n<img width=\"1776\"
alt=\"image\"\r\nsrc=\"https://user-images.githubusercontent.com/90178898/207824481-411f0f70-d7e8-42a6-b73f-ed80e77b7700.png\">\r\n<img
width=\"422\"
alt=\"image\"\r\nsrc=\"https://user-images.githubusercontent.com/90178898/207824550-582d43fc-87db-45e1-ba58-15915447fefd.png\">\r\n\r\nThe
logs show the details of how many `version_conflicts` were there,\r\nand
it decreased with
retries.\r\n\r\n```\r\n[2022-12-15T10:32:12.937+01:00][INFO
][plugins.fleet] Running action asynchronously, actionId:
90acd541-19ac-4738-b3d3-db32789233de, total agents:
52000\r\n[2022-12-15T10:32:12.981+01:00][INFO ][plugins.fleet]
Scheduling task
fleet:update_agent_tags:retry:check:90acd541-19ac-4738-b3d3-db32789233de\r\n[2022-12-15T10:32:16.477+01:00][INFO
][plugins.fleet] Running action asynchronously, actionId:
29e9da70-7194-4e52-8004-2c1b19f6dfd5, total agents:
52000\r\n[2022-12-15T10:32:16.537+01:00][INFO ][plugins.fleet]
Scheduling task
fleet:update_agent_tags:retry:check:29e9da70-7194-4e52-8004-2c1b19f6dfd5\r\n[2022-12-15T10:32:22.893+01:00][DEBUG][plugins.fleet]
{\"took\":9886,\"timed_out\":false,\"total\":52000,\"updated\":41143,\"deleted\":0,\"batches\":52,\"version_conflicts\":10857,\"noops\":0,\"retries\":{\"bulk\":0,\"search\":0},\"throttled_millis\":0,\"requests_per_second\":-1,\"throttled_until_millis\":0,\"failures\":[]}\r\n[2022-12-15T10:32:26.066+01:00][DEBUG][plugins.fleet]
{\"took\":9518,\"timed_out\":false,\"total\":52000,\"updated\":25755,\"deleted\":0,\"batches\":52,\"version_conflicts\":26245,\"noops\":0,\"retries\":{\"bulk\":0,\"search\":0},\"throttled_millis\":0,\"requests_per_second\":-1,\"throttled_until_millis\":0,\"failures\":[]}\r\n[2022-12-15T10:32:27.401+01:00][ERROR][plugins.fleet]
Action failed: version conflict of 10857
agents\r\n[2022-12-15T10:32:27.461+01:00][INFO ][plugins.fleet]
Scheduling task
fleet:update_agent_tags:retry:90acd541-19ac-4738-b3d3-db32789233de\r\n[2022-12-15T10:32:27.462+01:00][INFO
][plugins.fleet] Retrying in task:
fleet:update_agent_tags:retry:90acd541-19ac-4738-b3d3-db32789233de\r\n[2022-12-15T10:32:29.274+01:00][ERROR][plugins.fleet]
Action failed: version conflict of 26245
agents\r\n[2022-12-15T10:32:29.353+01:00][INFO ][plugins.fleet]
Scheduling task
fleet:update_agent_tags:retry:29e9da70-7194-4e52-8004-2c1b19f6dfd5\r\n[2022-12-15T10:32:29.353+01:00][INFO
][plugins.fleet] Retrying in task:
fleet:update_agent_tags:retry:29e9da70-7194-4e52-8004-2c1b19f6dfd5\r\n[2022-12-15T10:32:31.480+01:00][INFO
][plugins.fleet] Running bulk action retry
task\r\n[2022-12-15T10:32:31.481+01:00][DEBUG][plugins.fleet] Retry #1
of task
fleet:update_agent_tags:retry:90acd541-19ac-4738-b3d3-db32789233de\r\n[2022-12-15T10:32:31.481+01:00][INFO
][plugins.fleet] Running action asynchronously, actionId:
90acd541-19ac-4738-b3d3-db32789233de, total agents:
52000\r\n[2022-12-15T10:32:31.481+01:00][INFO ][plugins.fleet] Completed
bulk action retry task\r\n[2022-12-15T10:32:31.485+01:00][INFO
][plugins.fleet] Scheduling task
fleet:update_agent_tags:retry:check:90acd541-19ac-4738-b3d3-db32789233de\r\n[2022-12-15T10:32:33.841+01:00][DEBUG][plugins.fleet]
{\"took\":2347,\"timed_out\":false,\"total\":10857,\"updated\":9857,\"deleted\":0,\"batches\":11,\"version_conflicts\":1000,\"noops\":0,\"retries\":{\"bulk\":0,\"search\":0},\"throttled_millis\":0,\"requests_per_second\":-1,\"throttled_until_millis\":0,\"failures\":[]}\r\n[2022-12-15T10:32:34.556+01:00][INFO
][plugins.fleet] Running bulk action retry
task\r\n[2022-12-15T10:32:34.557+01:00][DEBUG][plugins.fleet] Retry #1
of task
fleet:update_agent_tags:retry:29e9da70-7194-4e52-8004-2c1b19f6dfd5\r\n[2022-12-15T10:32:34.557+01:00][INFO
][plugins.fleet] Running action asynchronously, actionId:
29e9da70-7194-4e52-8004-2c1b19f6dfd5, total agents:
52000\r\n[2022-12-15T10:32:34.557+01:00][INFO ][plugins.fleet] Completed
bulk action retry task\r\n[2022-12-15T10:32:34.560+01:00][INFO
][plugins.fleet] Scheduling task
fleet:update_agent_tags:retry:check:29e9da70-7194-4e52-8004-2c1b19f6dfd5\r\n[2022-12-15T10:32:35.388+01:00][ERROR][plugins.fleet]
Retry #1 of task
fleet:update_agent_tags:retry:90acd541-19ac-4738-b3d3-db32789233de
failed: version conflict of 1000
agents\r\n[2022-12-15T10:32:35.468+01:00][INFO ][plugins.fleet]
Scheduling task
fleet:update_agent_tags:retry:90acd541-19ac-4738-b3d3-db32789233de\r\n[2022-12-15T10:32:35.468+01:00][INFO
][plugins.fleet] Retrying in task:
fleet:update_agent_tags:retry:90acd541-19ac-4738-b3d3-db32789233de\r\n{\"took\":5509,\"timed_out\":false,\"total\":26245,\"updated\":26245,\"deleted\":0,\"batches\":27,\"version_conflicts\":0,\"noops\":0,\"retries\":{\"bulk\":0,\"search\":0},\"throttled_millis\":0,\"requests_per_second\":-1,\"throttled_until_millis\":0,\"failures\":[]}\r\n[2022-12-15T10:32:42.722+01:00][INFO
][plugins.fleet] processed 26245 agents, took
5509ms\r\n[2022-12-15T10:32:42.723+01:00][INFO ][plugins.fleet] Removing
task
fleet:update_agent_tags:retry:check:29e9da70-7194-4e52-8004-2c1b19f6dfd5\r\n[2022-12-15T10:32:46.705+01:00][INFO
][plugins.fleet] Running bulk action retry
task\r\n[2022-12-15T10:32:46.706+01:00][DEBUG][plugins.fleet] Retry #2
of task
fleet:update_agent_tags:retry:90acd541-19ac-4738-b3d3-db32789233de\r\n[2022-12-15T10:32:46.707+01:00][INFO
][plugins.fleet] Running action asynchronously, actionId:
90acd541-19ac-4738-b3d3-db32789233de, total agents:
52000\r\n[2022-12-15T10:32:46.707+01:00][INFO ][plugins.fleet] Completed
bulk action retry task\r\n[2022-12-15T10:32:46.711+01:00][INFO
][plugins.fleet] Scheduling task
fleet:update_agent_tags:retry:check:90acd541-19ac-4738-b3d3-db32789233de\r\n[2022-12-15T10:32:47.099+01:00][DEBUG][plugins.fleet]
{\"took\":379,\"timed_out\":false,\"total\":1000,\"updated\":1000,\"deleted\":0,\"batches\":1,\"version_conflicts\":0,\"noops\":0,\"retries\":{\"bulk\":0,\"search\":0},\"throttled_millis\":0,\"requests_per_second\":-1,\"throttled_until_millis\":0,\"failures\":[]}\r\n[2022-12-15T10:32:47.623+01:00][INFO
][plugins.fleet] processed 1000 agents, took
379ms\r\n[2022-12-15T10:32:47.623+01:00][INFO ][plugins.fleet] Removing
task
fleet:update_agent_tags:retry:check:90acd541-19ac-4738-b3d3-db32789233de\r\n```\r\n\r\n###
Checklist\r\n\r\n- [x] [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\r\nCo-authored-by: Kibana Machine
<42973632+kibanamachine@users.noreply.github.com>","sha":"687987aa9ce56ce359f722485330179a4807d79a","branchLabelMapping":{"^v8.7.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Fleet","v8.7.0","v8.6.1"],"number":147594,"url":"https://github.com/elastic/kibana/pull/147594","mergeCommit":{"message":"[Fleet]
refactored bulk update tags retry (elastic#147594)\n\n## Summary\r\n\r\nFixes
https://github.com/elastic/kibana/issues/144161\r\n\r\nAs
discussed\r\n[here](https://github.com/elastic/kibana/issues/144161#issuecomment-1348668610),\r\nthe
existing implementation of update tags doesn't work well with
real\r\nagents, as there are many conflicts with checkin, even when
trying to\r\nadd/remove one tag.\r\nRefactored the logic to make retries
more efficient:\r\n- Instead of aborting the whole bulk action on
conflicts, changed the\r\nconflict strategy to 'proceed'. This means, if
an action of 50k agents\r\nhas 1k conflicts, not all 50k is retried, but
only the 1k conflicts,\r\nthis makes it less likely to conflict on
retry.\r\n- Because of this, on retry we have to know which agents don't
yet have\r\nthe tag added/removed. For this, added an additional filter
to the\r\n`updateByQuery` request. Only adding the filter if there is
exactly one\r\n`tagsToAdd` or one `tagsToRemove`. This is the main use
case from the\r\nUI, and handling other cases would complicate the logic
more (each\r\nadditional tag to add/remove would result in another OR
query, which\r\nwould match more agents, making conflicts more
likely).\r\n- Added this additional query on the initial request as well
(not only\r\nretries) to save on unnecessary work e.g. if the user tries
to add a tag\r\non 50k agents, but 48k already have it, it is enough to
update the\r\nremaining 2k agents.\r\n- This improvement has the effect
that 'Agent activity' shows the real\r\nupdated agent count, not the
total selected. I think this is not really\r\na problem for update
tags.\r\n- Cleaned up some of the UI logic, because the conflicts are
fully\r\nhandled now on the backend.\r\n- Locally I couldn't reproduce
the conflict with agent checkins, even\r\nwith 1k horde agents. I'll try
to test in cloud with more real agents.\r\n\r\nTo verify:\r\n- Enroll
50k agents (I used 50k with create_agents script, and 1k with\r\nhorde).
Enroll 50k with horde if possible.\r\n- Select all on UI and try to
add/remove one or more tags\r\n- Expect the changes to propagate quickly
(up to 1m). It might take a\r\nfew refreshes to see the result on agent
list and tags list, because the\r\nUI polls the agents every 30s. It is
expected that the tags list\r\ntemporarily shows incorrect data because
the action is async.\r\n\r\nE.g. removed `test3` tag and added `add` tag
quickly:\r\n<img width=\"1776\"
alt=\"image\"\r\nsrc=\"https://user-images.githubusercontent.com/90178898/207824481-411f0f70-d7e8-42a6-b73f-ed80e77b7700.png\">\r\n<img
width=\"422\"
alt=\"image\"\r\nsrc=\"https://user-images.githubusercontent.com/90178898/207824550-582d43fc-87db-45e1-ba58-15915447fefd.png\">\r\n\r\nThe
logs show the details of how many `version_conflicts` were there,\r\nand
it decreased with
retries.\r\n\r\n```\r\n[2022-12-15T10:32:12.937+01:00][INFO
][plugins.fleet] Running action asynchronously, actionId:
90acd541-19ac-4738-b3d3-db32789233de, total agents:
52000\r\n[2022-12-15T10:32:12.981+01:00][INFO ][plugins.fleet]
Scheduling task
fleet:update_agent_tags:retry:check:90acd541-19ac-4738-b3d3-db32789233de\r\n[2022-12-15T10:32:16.477+01:00][INFO
][plugins.fleet] Running action asynchronously, actionId:
29e9da70-7194-4e52-8004-2c1b19f6dfd5, total agents:
52000\r\n[2022-12-15T10:32:16.537+01:00][INFO ][plugins.fleet]
Scheduling task
fleet:update_agent_tags:retry:check:29e9da70-7194-4e52-8004-2c1b19f6dfd5\r\n[2022-12-15T10:32:22.893+01:00][DEBUG][plugins.fleet]
{\"took\":9886,\"timed_out\":false,\"total\":52000,\"updated\":41143,\"deleted\":0,\"batches\":52,\"version_conflicts\":10857,\"noops\":0,\"retries\":{\"bulk\":0,\"search\":0},\"throttled_millis\":0,\"requests_per_second\":-1,\"throttled_until_millis\":0,\"failures\":[]}\r\n[2022-12-15T10:32:26.066+01:00][DEBUG][plugins.fleet]
{\"took\":9518,\"timed_out\":false,\"total\":52000,\"updated\":25755,\"deleted\":0,\"batches\":52,\"version_conflicts\":26245,\"noops\":0,\"retries\":{\"bulk\":0,\"search\":0},\"throttled_millis\":0,\"requests_per_second\":-1,\"throttled_until_millis\":0,\"failures\":[]}\r\n[2022-12-15T10:32:27.401+01:00][ERROR][plugins.fleet]
Action failed: version conflict of 10857
agents\r\n[2022-12-15T10:32:27.461+01:00][INFO ][plugins.fleet]
Scheduling task
fleet:update_agent_tags:retry:90acd541-19ac-4738-b3d3-db32789233de\r\n[2022-12-15T10:32:27.462+01:00][INFO
][plugins.fleet] Retrying in task:
fleet:update_agent_tags:retry:90acd541-19ac-4738-b3d3-db32789233de\r\n[2022-12-15T10:32:29.274+01:00][ERROR][plugins.fleet]
Action failed: version conflict of 26245
agents\r\n[2022-12-15T10:32:29.353+01:00][INFO ][plugins.fleet]
Scheduling task
fleet:update_agent_tags:retry:29e9da70-7194-4e52-8004-2c1b19f6dfd5\r\n[2022-12-15T10:32:29.353+01:00][INFO
][plugins.fleet] Retrying in task:
fleet:update_agent_tags:retry:29e9da70-7194-4e52-8004-2c1b19f6dfd5\r\n[2022-12-15T10:32:31.480+01:00][INFO
][plugins.fleet] Running bulk action retry
task\r\n[2022-12-15T10:32:31.481+01:00][DEBUG][plugins.fleet] Retry #1
of task
fleet:update_agent_tags:retry:90acd541-19ac-4738-b3d3-db32789233de\r\n[2022-12-15T10:32:31.481+01:00][INFO
][plugins.fleet] Running action asynchronously, actionId:
90acd541-19ac-4738-b3d3-db32789233de, total agents:
52000\r\n[2022-12-15T10:32:31.481+01:00][INFO ][plugins.fleet] Completed
bulk action retry task\r\n[2022-12-15T10:32:31.485+01:00][INFO
][plugins.fleet] Scheduling task
fleet:update_agent_tags:retry:check:90acd541-19ac-4738-b3d3-db32789233de\r\n[2022-12-15T10:32:33.841+01:00][DEBUG][plugins.fleet]
{\"took\":2347,\"timed_out\":false,\"total\":10857,\"updated\":9857,\"deleted\":0,\"batches\":11,\"version_conflicts\":1000,\"noops\":0,\"retries\":{\"bulk\":0,\"search\":0},\"throttled_millis\":0,\"requests_per_second\":-1,\"throttled_until_millis\":0,\"failures\":[]}\r\n[2022-12-15T10:32:34.556+01:00][INFO
][plugins.fleet] Running bulk action retry
task\r\n[2022-12-15T10:32:34.557+01:00][DEBUG][plugins.fleet] Retry #1
of task
fleet:update_agent_tags:retry:29e9da70-7194-4e52-8004-2c1b19f6dfd5\r\n[2022-12-15T10:32:34.557+01:00][INFO
][plugins.fleet] Running action asynchronously, actionId:
29e9da70-7194-4e52-8004-2c1b19f6dfd5, total agents:
52000\r\n[2022-12-15T10:32:34.557+01:00][INFO ][plugins.fleet] Completed
bulk action retry task\r\n[2022-12-15T10:32:34.560+01:00][INFO
][plugins.fleet] Scheduling task
fleet:update_agent_tags:retry:check:29e9da70-7194-4e52-8004-2c1b19f6dfd5\r\n[2022-12-15T10:32:35.388+01:00][ERROR][plugins.fleet]
Retry #1 of task
fleet:update_agent_tags:retry:90acd541-19ac-4738-b3d3-db32789233de
failed: version conflict of 1000
agents\r\n[2022-12-15T10:32:35.468+01:00][INFO ][plugins.fleet]
Scheduling task
fleet:update_agent_tags:retry:90acd541-19ac-4738-b3d3-db32789233de\r\n[2022-12-15T10:32:35.468+01:00][INFO
][plugins.fleet] Retrying in task:
fleet:update_agent_tags:retry:90acd541-19ac-4738-b3d3-db32789233de\r\n{\"took\":5509,\"timed_out\":false,\"total\":26245,\"updated\":26245,\"deleted\":0,\"batches\":27,\"version_conflicts\":0,\"noops\":0,\"retries\":{\"bulk\":0,\"search\":0},\"throttled_millis\":0,\"requests_per_second\":-1,\"throttled_until_millis\":0,\"failures\":[]}\r\n[2022-12-15T10:32:42.722+01:00][INFO
][plugins.fleet] processed 26245 agents, took
5509ms\r\n[2022-12-15T10:32:42.723+01:00][INFO ][plugins.fleet] Removing
task
fleet:update_agent_tags:retry:check:29e9da70-7194-4e52-8004-2c1b19f6dfd5\r\n[2022-12-15T10:32:46.705+01:00][INFO
][plugins.fleet] Running bulk action retry
task\r\n[2022-12-15T10:32:46.706+01:00][DEBUG][plugins.fleet] Retry #2
of task
fleet:update_agent_tags:retry:90acd541-19ac-4738-b3d3-db32789233de\r\n[2022-12-15T10:32:46.707+01:00][INFO
][plugins.fleet] Running action asynchronously, actionId:
90acd541-19ac-4738-b3d3-db32789233de, total agents:
52000\r\n[2022-12-15T10:32:46.707+01:00][INFO ][plugins.fleet] Completed
bulk action retry task\r\n[2022-12-15T10:32:46.711+01:00][INFO
][plugins.fleet] Scheduling task
fleet:update_agent_tags:retry:check:90acd541-19ac-4738-b3d3-db32789233de\r\n[2022-12-15T10:32:47.099+01:00][DEBUG][plugins.fleet]
{\"took\":379,\"timed_out\":false,\"total\":1000,\"updated\":1000,\"deleted\":0,\"batches\":1,\"version_conflicts\":0,\"noops\":0,\"retries\":{\"bulk\":0,\"search\":0},\"throttled_millis\":0,\"requests_per_second\":-1,\"throttled_until_millis\":0,\"failures\":[]}\r\n[2022-12-15T10:32:47.623+01:00][INFO
][plugins.fleet] processed 1000 agents, took
379ms\r\n[2022-12-15T10:32:47.623+01:00][INFO ][plugins.fleet] Removing
task
fleet:update_agent_tags:retry:check:90acd541-19ac-4738-b3d3-db32789233de\r\n```\r\n\r\n###
Checklist\r\n\r\n- [x] [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\r\nCo-authored-by: Kibana Machine
<42973632+kibanamachine@users.noreply.github.com>","sha":"687987aa9ce56ce359f722485330179a4807d79a"}},"sourceBranch":"main","suggestedTargetBranches":["8.6"],"targetPullRequestStates":[{"branch":"main","label":"v8.7.0","labelRegex":"^v8.7.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/147594","number":147594,"mergeCommit":{"message":"[Fleet]
refactored bulk update tags retry (elastic#147594)\n\n## Summary\r\n\r\nFixes
https://github.com/elastic/kibana/issues/144161\r\n\r\nAs
discussed\r\n[here](https://github.com/elastic/kibana/issues/144161#issuecomment-1348668610),\r\nthe
existing implementation of update tags doesn't work well with
real\r\nagents, as there are many conflicts with checkin, even when
trying to\r\nadd/remove one tag.\r\nRefactored the logic to make retries
more efficient:\r\n- Instead of aborting the whole bulk action on
conflicts, changed the\r\nconflict strategy to 'proceed'. This means, if
an action of 50k agents\r\nhas 1k conflicts, not all 50k is retried, but
only the 1k conflicts,\r\nthis makes it less likely to conflict on
retry.\r\n- Because of this, on retry we have to know which agents don't
yet have\r\nthe tag added/removed. For this, added an additional filter
to the\r\n`updateByQuery` request. Only adding the filter if there is
exactly one\r\n`tagsToAdd` or one `tagsToRemove`. This is the main use
case from the\r\nUI, and handling other cases would complicate the logic
more (each\r\nadditional tag to add/remove would result in another OR
query, which\r\nwould match more agents, making conflicts more
likely).\r\n- Added this additional query on the initial request as well
(not only\r\nretries) to save on unnecessary work e.g. if the user tries
to add a tag\r\non 50k agents, but 48k already have it, it is enough to
update the\r\nremaining 2k agents.\r\n- This improvement has the effect
that 'Agent activity' shows the real\r\nupdated agent count, not the
total selected. I think this is not really\r\na problem for update
tags.\r\n- Cleaned up some of the UI logic, because the conflicts are
fully\r\nhandled now on the backend.\r\n- Locally I couldn't reproduce
the conflict with agent checkins, even\r\nwith 1k horde agents. I'll try
to test in cloud with more real agents.\r\n\r\nTo verify:\r\n- Enroll
50k agents (I used 50k with create_agents script, and 1k with\r\nhorde).
Enroll 50k with horde if possible.\r\n- Select all on UI and try to
add/remove one or more tags\r\n- Expect the changes to propagate quickly
(up to 1m). It might take a\r\nfew refreshes to see the result on agent
list and tags list, because the\r\nUI polls the agents every 30s. It is
expected that the tags list\r\ntemporarily shows incorrect data because
the action is async.\r\n\r\nE.g. removed `test3` tag and added `add` tag
quickly:\r\n<img width=\"1776\"
alt=\"image\"\r\nsrc=\"https://user-images.githubusercontent.com/90178898/207824481-411f0f70-d7e8-42a6-b73f-ed80e77b7700.png\">\r\n<img
width=\"422\"
alt=\"image\"\r\nsrc=\"https://user-images.githubusercontent.com/90178898/207824550-582d43fc-87db-45e1-ba58-15915447fefd.png\">\r\n\r\nThe
logs show the details of how many `version_conflicts` were there,\r\nand
it decreased with
retries.\r\n\r\n```\r\n[2022-12-15T10:32:12.937+01:00][INFO
][plugins.fleet] Running action asynchronously, actionId:
90acd541-19ac-4738-b3d3-db32789233de, total agents:
52000\r\n[2022-12-15T10:32:12.981+01:00][INFO ][plugins.fleet]
Scheduling task
fleet:update_agent_tags:retry:check:90acd541-19ac-4738-b3d3-db32789233de\r\n[2022-12-15T10:32:16.477+01:00][INFO
][plugins.fleet] Running action asynchronously, actionId:
29e9da70-7194-4e52-8004-2c1b19f6dfd5, total agents:
52000\r\n[2022-12-15T10:32:16.537+01:00][INFO ][plugins.fleet]
Scheduling task
fleet:update_agent_tags:retry:check:29e9da70-7194-4e52-8004-2c1b19f6dfd5\r\n[2022-12-15T10:32:22.893+01:00][DEBUG][plugins.fleet]
{\"took\":9886,\"timed_out\":false,\"total\":52000,\"updated\":41143,\"deleted\":0,\"batches\":52,\"version_conflicts\":10857,\"noops\":0,\"retries\":{\"bulk\":0,\"search\":0},\"throttled_millis\":0,\"requests_per_second\":-1,\"throttled_until_millis\":0,\"failures\":[]}\r\n[2022-12-15T10:32:26.066+01:00][DEBUG][plugins.fleet]
{\"took\":9518,\"timed_out\":false,\"total\":52000,\"updated\":25755,\"deleted\":0,\"batches\":52,\"version_conflicts\":26245,\"noops\":0,\"retries\":{\"bulk\":0,\"search\":0},\"throttled_millis\":0,\"requests_per_second\":-1,\"throttled_until_millis\":0,\"failures\":[]}\r\n[2022-12-15T10:32:27.401+01:00][ERROR][plugins.fleet]
Action failed: version conflict of 10857
agents\r\n[2022-12-15T10:32:27.461+01:00][INFO ][plugins.fleet]
Scheduling task
fleet:update_agent_tags:retry:90acd541-19ac-4738-b3d3-db32789233de\r\n[2022-12-15T10:32:27.462+01:00][INFO
][plugins.fleet] Retrying in task:
fleet:update_agent_tags:retry:90acd541-19ac-4738-b3d3-db32789233de\r\n[2022-12-15T10:32:29.274+01:00][ERROR][plugins.fleet]
Action failed: version conflict of 26245
agents\r\n[2022-12-15T10:32:29.353+01:00][INFO ][plugins.fleet]
Scheduling task
fleet:update_agent_tags:retry:29e9da70-7194-4e52-8004-2c1b19f6dfd5\r\n[2022-12-15T10:32:29.353+01:00][INFO
][plugins.fleet] Retrying in task:
fleet:update_agent_tags:retry:29e9da70-7194-4e52-8004-2c1b19f6dfd5\r\n[2022-12-15T10:32:31.480+01:00][INFO
][plugins.fleet] Running bulk action retry
task\r\n[2022-12-15T10:32:31.481+01:00][DEBUG][plugins.fleet] Retry #1
of task
fleet:update_agent_tags:retry:90acd541-19ac-4738-b3d3-db32789233de\r\n[2022-12-15T10:32:31.481+01:00][INFO
][plugins.fleet] Running action asynchronously, actionId:
90acd541-19ac-4738-b3d3-db32789233de, total agents:
52000\r\n[2022-12-15T10:32:31.481+01:00][INFO ][plugins.fleet] Completed
bulk action retry task\r\n[2022-12-15T10:32:31.485+01:00][INFO
][plugins.fleet] Scheduling task
fleet:update_agent_tags:retry:check:90acd541-19ac-4738-b3d3-db32789233de\r\n[2022-12-15T10:32:33.841+01:00][DEBUG][plugins.fleet]
{\"took\":2347,\"timed_out\":false,\"total\":10857,\"updated\":9857,\"deleted\":0,\"batches\":11,\"version_conflicts\":1000,\"noops\":0,\"retries\":{\"bulk\":0,\"search\":0},\"throttled_millis\":0,\"requests_per_second\":-1,\"throttled_until_millis\":0,\"failures\":[]}\r\n[2022-12-15T10:32:34.556+01:00][INFO
][plugins.fleet] Running bulk action retry
task\r\n[2022-12-15T10:32:34.557+01:00][DEBUG][plugins.fleet] Retry #1
of task
fleet:update_agent_tags:retry:29e9da70-7194-4e52-8004-2c1b19f6dfd5\r\n[2022-12-15T10:32:34.557+01:00][INFO
][plugins.fleet] Running action asynchronously, actionId:
29e9da70-7194-4e52-8004-2c1b19f6dfd5, total agents:
52000\r\n[2022-12-15T10:32:34.557+01:00][INFO ][plugins.fleet] Completed
bulk action retry task\r\n[2022-12-15T10:32:34.560+01:00][INFO
][plugins.fleet] Scheduling task
fleet:update_agent_tags:retry:check:29e9da70-7194-4e52-8004-2c1b19f6dfd5\r\n[2022-12-15T10:32:35.388+01:00][ERROR][plugins.fleet]
Retry #1 of task
fleet:update_agent_tags:retry:90acd541-19ac-4738-b3d3-db32789233de
failed: version conflict of 1000
agents\r\n[2022-12-15T10:32:35.468+01:00][INFO ][plugins.fleet]
Scheduling task
fleet:update_agent_tags:retry:90acd541-19ac-4738-b3d3-db32789233de\r\n[2022-12-15T10:32:35.468+01:00][INFO
][plugins.fleet] Retrying in task:
fleet:update_agent_tags:retry:90acd541-19ac-4738-b3d3-db32789233de\r\n{\"took\":5509,\"timed_out\":false,\"total\":26245,\"updated\":26245,\"deleted\":0,\"batches\":27,\"version_conflicts\":0,\"noops\":0,\"retries\":{\"bulk\":0,\"search\":0},\"throttled_millis\":0,\"requests_per_second\":-1,\"throttled_until_millis\":0,\"failures\":[]}\r\n[2022-12-15T10:32:42.722+01:00][INFO
][plugins.fleet] processed 26245 agents, took
5509ms\r\n[2022-12-15T10:32:42.723+01:00][INFO ][plugins.fleet] Removing
task
fleet:update_agent_tags:retry:check:29e9da70-7194-4e52-8004-2c1b19f6dfd5\r\n[2022-12-15T10:32:46.705+01:00][INFO
][plugins.fleet] Running bulk action retry
task\r\n[2022-12-15T10:32:46.706+01:00][DEBUG][plugins.fleet] Retry #2
of task
fleet:update_agent_tags:retry:90acd541-19ac-4738-b3d3-db32789233de\r\n[2022-12-15T10:32:46.707+01:00][INFO
][plugins.fleet] Running action asynchronously, actionId:
90acd541-19ac-4738-b3d3-db32789233de, total agents:
52000\r\n[2022-12-15T10:32:46.707+01:00][INFO ][plugins.fleet] Completed
bulk action retry task\r\n[2022-12-15T10:32:46.711+01:00][INFO
][plugins.fleet] Scheduling task
fleet:update_agent_tags:retry:check:90acd541-19ac-4738-b3d3-db32789233de\r\n[2022-12-15T10:32:47.099+01:00][DEBUG][plugins.fleet]
{\"took\":379,\"timed_out\":false,\"total\":1000,\"updated\":1000,\"deleted\":0,\"batches\":1,\"version_conflicts\":0,\"noops\":0,\"retries\":{\"bulk\":0,\"search\":0},\"throttled_millis\":0,\"requests_per_second\":-1,\"throttled_until_millis\":0,\"failures\":[]}\r\n[2022-12-15T10:32:47.623+01:00][INFO
][plugins.fleet] processed 1000 agents, took
379ms\r\n[2022-12-15T10:32:47.623+01:00][INFO ][plugins.fleet] Removing
task
fleet:update_agent_tags:retry:check:90acd541-19ac-4738-b3d3-db32789233de\r\n```\r\n\r\n###
Checklist\r\n\r\n- [x] [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\r\nCo-authored-by: Kibana Machine
<42973632+kibanamachine@users.noreply.github.com>","sha":"687987aa9ce56ce359f722485330179a4807d79a"}},{"branch":"8.6","label":"v8.6.1","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Julia Bardi <90178898+juliaElastic@users.noreply.github.com>
banderror pushed a commit that referenced this pull request Jun 13, 2023
…lastic#159352)

## Summary
Skip `Security Solution Tests #2 / rule snoozing Rule editing page /
actions tab adds an action to a snoozed rule`

[This test failed on `main` as soon as it was
merged.](https://buildkite.com/elastic/kibana-on-merge-unsupported-ftrs/builds/2952)


### For maintainers

- [ ] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
banderror pushed a commit that referenced this pull request Sep 28, 2023
… integration for ES|QL query generation via ELSER (elastic#167097)

## [Security Solution] [Elastic AI Assistant] LangChain Agents and Tools integration for ES|QL query generation via ELSER

This PR integrates [LangChain](https://www.langchain.com/) [Agents](https://js.langchain.com/docs/modules/agents/) and [Tools](https://js.langchain.com/docs/modules/agents/tools/) with the [Elastic AI Assistant](https://www.elastic.co/blog/introducing-elastic-ai-assistant).

These abstractions enable the LLM to dynamically choose whether or not to query, via [ELSER](https://www.elastic.co/guide/en/machine-learning/current/ml-nlp-elser.html), an [ES|QL](https://www.elastic.co/blog/elasticsearch-query-language-esql) knowledge base. Context from the knowledge base is used to generate `ES|QL` queries, or answer questions about `ES|QL`.

Registration of the tool occurs in `x-pack/plugins/elastic_assistant/server/lib/langchain/execute_custom_llm_chain/index.ts`:

```typescript
  const tools: Tool[] = [
    new ChainTool({
      name: 'esql-language-knowledge-base',
      description:
        'Call this for knowledge on how to build an ESQL query, or answer questions about the ES|QL query language.',
      chain,
    }),
  ];
```

The `tools` array above may be updated in future PRs to include, for example, an `ES|QL` query validator endpoint.

### Details

The `callAgentExecutor` function in `x-pack/plugins/elastic_assistant/server/lib/langchain/execute_custom_llm_chain/index.ts`:

1. Creates a `RetrievalQAChain` from an `ELSER` backed `ElasticsearchStore`, which serves as a knowledge base for `ES|QL`:

```typescript
  // ELSER backed ElasticsearchStore for Knowledge Base
  const esStore = new ElasticsearchStore(esClient, KNOWLEDGE_BASE_INDEX_PATTERN, logger);
  const chain = RetrievalQAChain.fromLLM(llm, esStore.asRetriever());
```

2. Registers the chain as a tool, which may be invoked by the LLM based on its description:

```typescript
  const tools: Tool[] = [
    new ChainTool({
      name: 'esql-language-knowledge-base',
      description:
        'Call this for knowledge on how to build an ESQL query, or answer questions about the ES|QL query language.',
      chain,
    }),
  ];
```

3. Creates an Agent executor that combines the `tools` above, the `ActionsClientLlm` (an abstraction that calls `actionsClient.execute`), and memory of the previous messages in the conversation:

```typescript
  const executor = await initializeAgentExecutorWithOptions(tools, llm, {
    agentType: 'chat-conversational-react-description',
    memory,
    verbose: false,
  });
```

Note: Set `verbose` above to `true` to for detailed debugging output from LangChain.

4. Calls the `executor`, kicking it off with `latestMessage`:

```typescript
    await executor.call({ input: latestMessage[0].content });
```

### Changes to `x-pack/packages/kbn-elastic-assistant`

A client side change was required to the assistant, because the response returned from the agent executor is JSON. This response is parsed on the client in `x-pack/packages/kbn-elastic-assistant/impl/assistant/api.tsx`:

```typescript
  return assistantLangChain ? getFormattedMessageContent(result) : result;
```

Client-side parsing of the response only happens when then `assistantLangChain` feature flag is `true`.

## Desk testing

Set

```typescript
assistantLangChain={true}
```

in `x-pack/plugins/security_solution/public/assistant/provider.tsx` to enable this experimental feature in development environments.

Also (optionally) set `verbose` to `true` in the following code in ``x-pack/plugins/elastic_assistant/server/lib/langchain/execute_custom_llm_chain/index.ts``:

```typescript
  const executor = await initializeAgentExecutorWithOptions(tools, llm, {
    agentType: 'chat-conversational-react-description',
    memory,
    verbose: true,
  });
```

After setting the feature flag and optionally enabling verbose debugging output, you may ask the assistant to generate an `ES|QL` query, per the example in the next section.

### Example output

When the Elastic AI Assistant is asked:

```
From employees, I want to see the 5 earliest employees (hire_date), I want to display only the month and the year that they were hired in and their employee number (emp_no). Format the date as e.g. "September 2019". Only show the query
```

it replies:

```
Here is the query to get the employee number and the formatted hire date for the 5 earliest employees by hire_date:

FROM employees
| KEEP emp_no, hire_date
| EVAL month_year = DATE_FORMAT(hire_date, "MMMM YYYY")
| SORT hire_date
| LIMIT 5
```

Per the screenshot below:

![ESQL_query_via_langchain_agents_and_tools](https://github.com/elastic/kibana/assets/4459398/c5cc75da-f7aa-4a12-9078-ed531f3463e7)

The `verbose: true` output from LangChain logged to the console reveals that the prompt sent to the LLM includes text like the following:

```
Assistant can ask the user to use tools to look up information that may be helpful in answering the users original question. The tools the human can use are:\\n\\nesql-language-knowledge-base: Call this for knowledge on how to build an ESQL query, or answer questions about the ES|QL query language.
```

along with instructions for "calling" the tool like a function.

The debugging output also reveals the agent selecting the tool, and returning results from ESLR:

```
[agent/action] [1:chain:AgentExecutor] Agent selected action: {
  "tool": "esql-language-knowledge-base",
  "toolInput": "Display the 'emp_no', month and year of the 5 earliest employees by 'hire_date'. Format the date as 'Month Year'.",
  "log": "```json\n{\n    \"action\": \"esql-language-knowledge-base\",\n    \"action_input\": \"Display the 'emp_no', month and year of the 5 earliest employees by 'hire_date'. Format the date as 'Month Year'.\"\n}\n```"
}
[tool/start] [1:chain:AgentExecutor > 4:tool:ChainTool] Entering Tool run with input: "Display the 'emp_no', month and year of the 5 earliest employees by 'hire_date'. Format the date as 'Month Year'."
[chain/start] [1:chain:AgentExecutor > 4:tool:ChainTool > 5:chain:RetrievalQAChain] Entering Chain run with input: {
  "query": "Display the 'emp_no', month and year of the 5 earliest employees by 'hire_date'. Format the date as 'Month Year'."
}
[retriever/start] [1:chain:AgentExecutor > 4:tool:ChainTool > 5:chain:RetrievalQAChain > 6:retriever:VectorStoreRetriever] Entering Retriever run with input: {
  "query": "Display the 'emp_no', month and year of the 5 earliest employees by 'hire_date'. Format the date as 'Month Year'."
}
[retriever/end] [1:chain:AgentExecutor > 4:tool:ChainTool > 5:chain:RetrievalQAChain > 6:retriever:VectorStoreRetriever] [115ms] Exiting Retriever run with output: {
  "documents": [
    {
      "pageContent": "[[esql-date_format]]\n=== `DATE_FORMAT`\nReturns a string representation of a date in the provided format. If no format\nis specified, the `yyyy-MM-dd'T'HH:mm:ss.SSSZ` format is used.\n\n[source,esql]\n----\nFROM employees\n| KEEP first_name, last_name, hire_date\n| EVAL hired = DATE_FORMAT(hire_date, \"YYYY-MM-dd\")\n----\n",
```

The documents containing `ES|QL` examples, retrieved from ELSER, are sent back to the LLM to answer the original question, per the abridged output below:

```
[llm/start] [1:chain:AgentExecutor > 4:tool:ChainTool > 5:chain:RetrievalQAChain > 7:chain:StuffDocumentsChain > 8:chain:LLMChain > 9:llm:ActionsClientLlm] Entering LLM run with input: {
  "prompts": [
    "Use the following pieces of context to answer the question at the end. If you don't know the answer, just say that you don't know, don't try to make up an answer.\n\n[[esql-date_format]]\n=== `DATE_FORMAT`\nReturns a string representation of a date in the provided format. If no format\nis specified, the `yyyy-MM-dd'T'HH:mm:ss.SSSZ` format is used.\n\n[source,esql]\n----\nFROM employees\n| KEEP first_name, last_name, hire_date\n| EVAL hired = DATE_FORMAT(hire_date, \"YYYY-MM-dd\")\n----\n\n\n[[esql-date_trunc]]\n=== `DATE_TRUNC`\nRounds down a date to the closest interval. Intervals can be expressed using the\n<<esql-timespan-literals,timespan literal syntax>>.\n\n[source,esql]\n----\nFROM employees\n| EVAL year_hired = DATE_TRUNC(1 year, hire_date)\n| STATS count(emp_no) BY year_hired\n| SORT year_hired\n----\n\n\n[[esql-from]]\n=== `FROM`\n\nThe `FROM` source command returns a table with up to 10,000 documents from a\ndata stream, index,
```

### Complete (verbose) LangChain output from the example

The following `verbose: true` output from LangChain below was produced via the example in the previous section:

```
[chain/start] [1:chain:AgentExecutor] Entering Chain run with input: {
  "input": "\n\n\n\nFrom employees, I want to see the 5 earliest employees (hire_date), I want to display only the month and the year that they were hired in and their employee number (emp_no). Format the date as e.g. \"September 2019\". Only show the query",
  "chat_history": []
}
[chain/start] [1:chain:AgentExecutor > 2:chain:LLMChain] Entering Chain run with input: {
  "input": "\n\n\n\nFrom employees, I want to see the 5 earliest employees (hire_date), I want to display only the month and the year that they were hired in and their employee number (emp_no). Format the date as e.g. \"September 2019\". Only show the query",
  "chat_history": [],
  "agent_scratchpad": [],
  "stop": [
    "Observation:"
  ]
}
[llm/start] [1:chain:AgentExecutor > 2:chain:LLMChain > 3:llm:ActionsClientLlm] Entering LLM run with input: {
  "prompts": [
    "[{\"lc\":1,\"type\":\"constructor\",\"id\":[\"langchain\",\"schema\",\"SystemMessage\"],\"kwargs\":{\"content\":\"Assistant is a large language model trained by OpenAI.\\n\\nAssistant is designed to be able to assist with a wide range of tasks, from answering simple questions to providing in-depth explanations and discussions on a wide range of topics. As a language model, Assistant is able to generate human-like text based on the input it receives, allowing it to engage in natural-sounding conversations and provide responses that are coherent and relevant to the topic at hand.\\n\\nAssistant is constantly learning and improving, and its capabilities are constantly evolving. It is able to process and understand large amounts of text, and can use this knowledge to provide accurate and informative responses to a wide range of questions. Additionally, Assistant is able to generate its own text based on the input it receives, allowing it to engage in discussions and provide explanations and descriptions on a wide range of topics.\\n\\nOverall, Assistant is a powerful system that can help with a wide range of tasks and provide valuable insights and information on a wide range of topics. Whether you need help with a specific question or just want to have a conversation about a particular topic, Assistant is here to assist. However, above all else, all responses must adhere to the format of RESPONSE FORMAT INSTRUCTIONS.\",\"additional_kwargs\":{}}},{\"lc\":1,\"type\":\"constructor\",\"id\":[\"langchain\",\"schema\",\"HumanMessage\"],\"kwargs\":{\"content\":\"TOOLS\\n------\\nAssistant can ask the user to use tools to look up information that may be helpful in answering the users original question. The tools the human can use are:\\n\\nesql-language-knowledge-base: Call this for knowledge on how to build an ESQL query, or answer questions about the ES|QL query language.\\n\\nRESPONSE FORMAT INSTRUCTIONS\\n----------------------------\\n\\nOutput a JSON markdown code snippet containing a valid JSON object in one of two formats:\\n\\n**Option 1:**\\nUse this if you want the human to use a tool.\\nMarkdown code snippet formatted in the following schema:\\n\\n```json\\n{\\n    \\\"action\\\": string, // The action to take. Must be one of [esql-language-knowledge-base]\\n    \\\"action_input\\\": string // The input to the action. May be a stringified object.\\n}\\n```\\n\\n**Option #2:**\\nUse this if you want to respond directly and conversationally to the human. Markdown code snippet formatted in the following schema:\\n\\n```json\\n{\\n    \\\"action\\\": \\\"Final Answer\\\",\\n    \\\"action_input\\\": string // You should put what you want to return to use here and make sure to use valid json newline characters.\\n}\\n```\\n\\nFor both options, remember to always include the surrounding markdown code snippet delimiters (begin with \\\"```json\\\" and end with \\\"```\\\")!\\n\\n\\nUSER'S INPUT\\n--------------------\\nHere is the user's input (remember to respond with a markdown code snippet of a json blob with a single action, and NOTHING else):\\n\\n\\n\\n\\n\\nFrom employees, I want to see the 5 earliest employees (hire_date), I want to display only the month and the year that they were hired in and their employee number (emp_no). Format the date as e.g. \\\"September 2019\\\". Only show the query\",\"additional_kwargs\":{}}}]"
  ]
}
[llm/end] [1:chain:AgentExecutor > 2:chain:LLMChain > 3:llm:ActionsClientLlm] [3.08s] Exiting LLM run with output: {
  "generations": [
    [
      {
        "text": "```json\n{\n    \"action\": \"esql-language-knowledge-base\",\n    \"action_input\": \"Display the 'emp_no', month and year of the 5 earliest employees by 'hire_date'. Format the date as 'Month Year'.\"\n}\n```"
      }
    ]
  ]
}
[chain/end] [1:chain:AgentExecutor > 2:chain:LLMChain] [3.09s] Exiting Chain run with output: {
  "text": "```json\n{\n    \"action\": \"esql-language-knowledge-base\",\n    \"action_input\": \"Display the 'emp_no', month and year of the 5 earliest employees by 'hire_date'. Format the date as 'Month Year'.\"\n}\n```"
}
[agent/action] [1:chain:AgentExecutor] Agent selected action: {
  "tool": "esql-language-knowledge-base",
  "toolInput": "Display the 'emp_no', month and year of the 5 earliest employees by 'hire_date'. Format the date as 'Month Year'.",
  "log": "```json\n{\n    \"action\": \"esql-language-knowledge-base\",\n    \"action_input\": \"Display the 'emp_no', month and year of the 5 earliest employees by 'hire_date'. Format the date as 'Month Year'.\"\n}\n```"
}
[tool/start] [1:chain:AgentExecutor > 4:tool:ChainTool] Entering Tool run with input: "Display the 'emp_no', month and year of the 5 earliest employees by 'hire_date'. Format the date as 'Month Year'."
[chain/start] [1:chain:AgentExecutor > 4:tool:ChainTool > 5:chain:RetrievalQAChain] Entering Chain run with input: {
  "query": "Display the 'emp_no', month and year of the 5 earliest employees by 'hire_date'. Format the date as 'Month Year'."
}
[retriever/start] [1:chain:AgentExecutor > 4:tool:ChainTool > 5:chain:RetrievalQAChain > 6:retriever:VectorStoreRetriever] Entering Retriever run with input: {
  "query": "Display the 'emp_no', month and year of the 5 earliest employees by 'hire_date'. Format the date as 'Month Year'."
}
[retriever/end] [1:chain:AgentExecutor > 4:tool:ChainTool > 5:chain:RetrievalQAChain > 6:retriever:VectorStoreRetriever] [115ms] Exiting Retriever run with output: {
  "documents": [
    {
      "pageContent": "[[esql-date_format]]\n=== `DATE_FORMAT`\nReturns a string representation of a date in the provided format. If no format\nis specified, the `yyyy-MM-dd'T'HH:mm:ss.SSSZ` format is used.\n\n[source,esql]\n----\nFROM employees\n| KEEP first_name, last_name, hire_date\n| EVAL hired = DATE_FORMAT(hire_date, \"YYYY-MM-dd\")\n----\n",
      "metadata": {
        "source": "/Users/andrew.goldstein/Projects/forks/spong/kibana/x-pack/plugins/elastic_assistant/server/knowledge_base/esql/docs/functions/date_format.asciidoc"
      }
    },
    {
      "pageContent": "[[esql-date_trunc]]\n=== `DATE_TRUNC`\nRounds down a date to the closest interval. Intervals can be expressed using the\n<<esql-timespan-literals,timespan literal syntax>>.\n\n[source,esql]\n----\nFROM employees\n| EVAL year_hired = DATE_TRUNC(1 year, hire_date)\n| STATS count(emp_no) BY year_hired\n| SORT year_hired\n----\n",
      "metadata": {
        "source": "/Users/andrew.goldstein/Projects/forks/spong/kibana/x-pack/plugins/elastic_assistant/server/knowledge_base/esql/docs/functions/date_trunc.asciidoc"
      }
    },
    {
      "pageContent": "[[esql-from]]\n=== `FROM`\n\nThe `FROM` source command returns a table with up to 10,000 documents from a\ndata stream, index, or alias. Each row in the resulting table represents a\ndocument. Each column corresponds to a field, and can be accessed by the name\nof that field.\n\n[source,esql]\n----\nFROM employees\n----\n\nYou can use <<api-date-math-index-names,date math>> to refer to indices, aliases\nand data streams. This can be useful for time series data, for example to access\ntoday's index:\n\n[source,esql]\n----\nFROM <logs-{now/d}>\n----\n\nUse comma-separated lists or wildcards to query multiple data streams, indices,\nor aliases:\n\n[source,esql]\n----\nFROM employees-00001,employees-*\n----\n",
      "metadata": {
        "source": "/Users/andrew.goldstein/Projects/forks/spong/kibana/x-pack/plugins/elastic_assistant/server/knowledge_base/esql/docs/source_commands/from.asciidoc"
      }
    },
    {
      "pageContent": "[[esql-where]]\n=== `WHERE`\n\nUse `WHERE` to produce a table that contains all the rows from the input table\nfor which the provided condition evaluates to `true`:\n\n[source,esql]\n----\ninclude::{esql-specs}/docs.csv-spec[tag=where]\n----\n\nWhich, if `still_hired` is a boolean field, can be simplified to:\n\n[source,esql]\n----\ninclude::{esql-specs}/docs.csv-spec[tag=whereBoolean]\n----\n\n[discrete]\n==== Operators\n\nRefer to <<esql-operators>> for an overview of the supported operators.\n\n[discrete]\n==== Functions\n`WHERE` supports various functions for calculating values. Refer to\n<<esql-functions,Functions>> for more information.\n\n[source,esql]\n----\ninclude::{esql-specs}/docs.csv-spec[tag=whereFunction]\n----\n",
      "metadata": {
        "source": "/Users/andrew.goldstein/Projects/forks/spong/kibana/x-pack/plugins/elastic_assistant/server/knowledge_base/esql/docs/processing_commands/where.asciidoc"
      }
    }
  ]
}
[chain/start] [1:chain:AgentExecutor > 4:tool:ChainTool > 5:chain:RetrievalQAChain > 7:chain:StuffDocumentsChain] Entering Chain run with input: {
  "question": "Display the 'emp_no', month and year of the 5 earliest employees by 'hire_date'. Format the date as 'Month Year'.",
  "input_documents": [
    {
      "pageContent": "[[esql-date_format]]\n=== `DATE_FORMAT`\nReturns a string representation of a date in the provided format. If no format\nis specified, the `yyyy-MM-dd'T'HH:mm:ss.SSSZ` format is used.\n\n[source,esql]\n----\nFROM employees\n| KEEP first_name, last_name, hire_date\n| EVAL hired = DATE_FORMAT(hire_date, \"YYYY-MM-dd\")\n----\n",
      "metadata": {
        "source": "/Users/andrew.goldstein/Projects/forks/spong/kibana/x-pack/plugins/elastic_assistant/server/knowledge_base/esql/docs/functions/date_format.asciidoc"
      }
    },
    {
      "pageContent": "[[esql-date_trunc]]\n=== `DATE_TRUNC`\nRounds down a date to the closest interval. Intervals can be expressed using the\n<<esql-timespan-literals,timespan literal syntax>>.\n\n[source,esql]\n----\nFROM employees\n| EVAL year_hired = DATE_TRUNC(1 year, hire_date)\n| STATS count(emp_no) BY year_hired\n| SORT year_hired\n----\n",
      "metadata": {
        "source": "/Users/andrew.goldstein/Projects/forks/spong/kibana/x-pack/plugins/elastic_assistant/server/knowledge_base/esql/docs/functions/date_trunc.asciidoc"
      }
    },
    {
      "pageContent": "[[esql-from]]\n=== `FROM`\n\nThe `FROM` source command returns a table with up to 10,000 documents from a\ndata stream, index, or alias. Each row in the resulting table represents a\ndocument. Each column corresponds to a field, and can be accessed by the name\nof that field.\n\n[source,esql]\n----\nFROM employees\n----\n\nYou can use <<api-date-math-index-names,date math>> to refer to indices, aliases\nand data streams. This can be useful for time series data, for example to access\ntoday's index:\n\n[source,esql]\n----\nFROM <logs-{now/d}>\n----\n\nUse comma-separated lists or wildcards to query multiple data streams, indices,\nor aliases:\n\n[source,esql]\n----\nFROM employees-00001,employees-*\n----\n",
      "metadata": {
        "source": "/Users/andrew.goldstein/Projects/forks/spong/kibana/x-pack/plugins/elastic_assistant/server/knowledge_base/esql/docs/source_commands/from.asciidoc"
      }
    },
    {
      "pageContent": "[[esql-where]]\n=== `WHERE`\n\nUse `WHERE` to produce a table that contains all the rows from the input table\nfor which the provided condition evaluates to `true`:\n\n[source,esql]\n----\ninclude::{esql-specs}/docs.csv-spec[tag=where]\n----\n\nWhich, if `still_hired` is a boolean field, can be simplified to:\n\n[source,esql]\n----\ninclude::{esql-specs}/docs.csv-spec[tag=whereBoolean]\n----\n\n[discrete]\n==== Operators\n\nRefer to <<esql-operators>> for an overview of the supported operators.\n\n[discrete]\n==== Functions\n`WHERE` supports various functions for calculating values. Refer to\n<<esql-functions,Functions>> for more information.\n\n[source,esql]\n----\ninclude::{esql-specs}/docs.csv-spec[tag=whereFunction]\n----\n",
      "metadata": {
        "source": "/Users/andrew.goldstein/Projects/forks/spong/kibana/x-pack/plugins/elastic_assistant/server/knowledge_base/esql/docs/processing_commands/where.asciidoc"
      }
    }
  ],
  "query": "Display the 'emp_no', month and year of the 5 earliest employees by 'hire_date'. Format the date as 'Month Year'."
}
[chain/start] [1:chain:AgentExecutor > 4:tool:ChainTool > 5:chain:RetrievalQAChain > 7:chain:StuffDocumentsChain > 8:chain:LLMChain] Entering Chain run with input: {
  "question": "Display the 'emp_no', month and year of the 5 earliest employees by 'hire_date'. Format the date as 'Month Year'.",
  "query": "Display the 'emp_no', month and year of the 5 earliest employees by 'hire_date'. Format the date as 'Month Year'.",
  "context": "[[esql-date_format]]\n=== `DATE_FORMAT`\nReturns a string representation of a date in the provided format. If no format\nis specified, the `yyyy-MM-dd'T'HH:mm:ss.SSSZ` format is used.\n\n[source,esql]\n----\nFROM employees\n| KEEP first_name, last_name, hire_date\n| EVAL hired = DATE_FORMAT(hire_date, \"YYYY-MM-dd\")\n----\n\n\n[[esql-date_trunc]]\n=== `DATE_TRUNC`\nRounds down a date to the closest interval. Intervals can be expressed using the\n<<esql-timespan-literals,timespan literal syntax>>.\n\n[source,esql]\n----\nFROM employees\n| EVAL year_hired = DATE_TRUNC(1 year, hire_date)\n| STATS count(emp_no) BY year_hired\n| SORT year_hired\n----\n\n\n[[esql-from]]\n=== `FROM`\n\nThe `FROM` source command returns a table with up to 10,000 documents from a\ndata stream, index, or alias. Each row in the resulting table represents a\ndocument. Each column corresponds to a field, and can be accessed by the name\nof that field.\n\n[source,esql]\n----\nFROM employees\n----\n\nYou can use <<api-date-math-index-names,date math>> to refer to indices, aliases\nand data streams. This can be useful for time series data, for example to access\ntoday's index:\n\n[source,esql]\n----\nFROM <logs-{now/d}>\n----\n\nUse comma-separated lists or wildcards to query multiple data streams, indices,\nor aliases:\n\n[source,esql]\n----\nFROM employees-00001,employees-*\n----\n\n\n[[esql-where]]\n=== `WHERE`\n\nUse `WHERE` to produce a table that contains all the rows from the input table\nfor which the provided condition evaluates to `true`:\n\n[source,esql]\n----\ninclude::{esql-specs}/docs.csv-spec[tag=where]\n----\n\nWhich, if `still_hired` is a boolean field, can be simplified to:\n\n[source,esql]\n----\ninclude::{esql-specs}/docs.csv-spec[tag=whereBoolean]\n----\n\n[discrete]\n==== Operators\n\nRefer to <<esql-operators>> for an overview of the supported operators.\n\n[discrete]\n==== Functions\n`WHERE` supports various functions for calculating values. Refer to\n<<esql-functions,Functions>> for more information.\n\n[source,esql]\n----\ninclude::{esql-specs}/docs.csv-spec[tag=whereFunction]\n----\n"
}
[llm/start] [1:chain:AgentExecutor > 4:tool:ChainTool > 5:chain:RetrievalQAChain > 7:chain:StuffDocumentsChain > 8:chain:LLMChain > 9:llm:ActionsClientLlm] Entering LLM run with input: {
  "prompts": [
    "Use the following pieces of context to answer the question at the end. If you don't know the answer, just say that you don't know, don't try to make up an answer.\n\n[[esql-date_format]]\n=== `DATE_FORMAT`\nReturns a string representation of a date in the provided format. If no format\nis specified, the `yyyy-MM-dd'T'HH:mm:ss.SSSZ` format is used.\n\n[source,esql]\n----\nFROM employees\n| KEEP first_name, last_name, hire_date\n| EVAL hired = DATE_FORMAT(hire_date, \"YYYY-MM-dd\")\n----\n\n\n[[esql-date_trunc]]\n=== `DATE_TRUNC`\nRounds down a date to the closest interval. Intervals can be expressed using the\n<<esql-timespan-literals,timespan literal syntax>>.\n\n[source,esql]\n----\nFROM employees\n| EVAL year_hired = DATE_TRUNC(1 year, hire_date)\n| STATS count(emp_no) BY year_hired\n| SORT year_hired\n----\n\n\n[[esql-from]]\n=== `FROM`\n\nThe `FROM` source command returns a table with up to 10,000 documents from a\ndata stream, index, or alias. Each row in the resulting table represents a\ndocument. Each column corresponds to a field, and can be accessed by the name\nof that field.\n\n[source,esql]\n----\nFROM employees\n----\n\nYou can use <<api-date-math-index-names,date math>> to refer to indices, aliases\nand data streams. This can be useful for time series data, for example to access\ntoday's index:\n\n[source,esql]\n----\nFROM <logs-{now/d}>\n----\n\nUse comma-separated lists or wildcards to query multiple data streams, indices,\nor aliases:\n\n[source,esql]\n----\nFROM employees-00001,employees-*\n----\n\n\n[[esql-where]]\n=== `WHERE`\n\nUse `WHERE` to produce a table that contains all the rows from the input table\nfor which the provided condition evaluates to `true`:\n\n[source,esql]\n----\ninclude::{esql-specs}/docs.csv-spec[tag=where]\n----\n\nWhich, if `still_hired` is a boolean field, can be simplified to:\n\n[source,esql]\n----\ninclude::{esql-specs}/docs.csv-spec[tag=whereBoolean]\n----\n\n[discrete]\n==== Operators\n\nRefer to <<esql-operators>> for an overview of the supported operators.\n\n[discrete]\n==== Functions\n`WHERE` supports various functions for calculating values. Refer to\n<<esql-functions,Functions>> for more information.\n\n[source,esql]\n----\ninclude::{esql-specs}/docs.csv-spec[tag=whereFunction]\n----\n\n\nQuestion: Display the 'emp_no', month and year of the 5 earliest employees by 'hire_date'. Format the date as 'Month Year'.\nHelpful Answer:"
  ]
}
[llm/end] [1:chain:AgentExecutor > 4:tool:ChainTool > 5:chain:RetrievalQAChain > 7:chain:StuffDocumentsChain > 8:chain:LLMChain > 9:llm:ActionsClientLlm] [2.23s] Exiting LLM run with output: {
  "generations": [
    [
      {
        "text": "FROM employees\n| KEEP emp_no, hire_date\n| EVAL month_year = DATE_FORMAT(hire_date, \"MMMM YYYY\")\n| SORT hire_date\n| LIMIT 5"
      }
    ]
  ]
}
[chain/end] [1:chain:AgentExecutor > 4:tool:ChainTool > 5:chain:RetrievalQAChain > 7:chain:StuffDocumentsChain > 8:chain:LLMChain] [2.23s] Exiting Chain run with output: {
  "text": "FROM employees\n| KEEP emp_no, hire_date\n| EVAL month_year = DATE_FORMAT(hire_date, \"MMMM YYYY\")\n| SORT hire_date\n| LIMIT 5"
}
[chain/end] [1:chain:AgentExecutor > 4:tool:ChainTool > 5:chain:RetrievalQAChain > 7:chain:StuffDocumentsChain] [2.23s] Exiting Chain run with output: {
  "text": "FROM employees\n| KEEP emp_no, hire_date\n| EVAL month_year = DATE_FORMAT(hire_date, \"MMMM YYYY\")\n| SORT hire_date\n| LIMIT 5"
}
[chain/end] [1:chain:AgentExecutor > 4:tool:ChainTool > 5:chain:RetrievalQAChain] [2.35s] Exiting Chain run with output: {
  "text": "FROM employees\n| KEEP emp_no, hire_date\n| EVAL month_year = DATE_FORMAT(hire_date, \"MMMM YYYY\")\n| SORT hire_date\n| LIMIT 5"
}
[tool/end] [1:chain:AgentExecutor > 4:tool:ChainTool] [2.35s] Exiting Tool run with output: "FROM employees
| KEEP emp_no, hire_date
| EVAL month_year = DATE_FORMAT(hire_date, "MMMM YYYY")
| SORT hire_date
| LIMIT 5"
[chain/start] [1:chain:AgentExecutor > 10:chain:LLMChain] Entering Chain run with input: {
  "input": "\n\n\n\nFrom employees, I want to see the 5 earliest employees (hire_date), I want to display only the month and the year that they were hired in and their employee number (emp_no). Format the date as e.g. \"September 2019\". Only show the query",
  "chat_history": [],
  "agent_scratchpad": [
    {
      "lc": 1,
      "type": "constructor",
      "id": [
        "langchain",
        "schema",
        "AIMessage"
      ],
      "kwargs": {
        "content": "```json\n{\n    \"action\": \"esql-language-knowledge-base\",\n    \"action_input\": \"Display the 'emp_no', month and year of the 5 earliest employees by 'hire_date'. Format the date as 'Month Year'.\"\n}\n```",
        "additional_kwargs": {}
      }
    },
    {
      "lc": 1,
      "type": "constructor",
      "id": [
        "langchain",
        "schema",
        "HumanMessage"
      ],
      "kwargs": {
        "content": "TOOL RESPONSE:\n---------------------\nFROM employees\n| KEEP emp_no, hire_date\n| EVAL month_year = DATE_FORMAT(hire_date, \"MMMM YYYY\")\n| SORT hire_date\n| LIMIT 5\n\nUSER'S INPUT\n--------------------\n\nOkay, so what is the response to my last comment? If using information obtained from the tools you must mention it explicitly without mentioning the tool names - I have forgotten all TOOL RESPONSES! Remember to respond with a markdown code snippet of a json blob with a single action, and NOTHING else.",
        "additional_kwargs": {}
      }
    }
  ],
  "stop": [
    "Observation:"
  ]
}
[llm/start] [1:chain:AgentExecutor > 10:chain:LLMChain > 11:llm:ActionsClientLlm] Entering LLM run with input: {
  "prompts": [
    "[{\"lc\":1,\"type\":\"constructor\",\"id\":[\"langchain\",\"schema\",\"SystemMessage\"],\"kwargs\":{\"content\":\"Assistant is a large language model trained by OpenAI.\\n\\nAssistant is designed to be able to assist with a wide range of tasks, from answering simple questions to providing in-depth explanations and discussions on a wide range of topics. As a language model, Assistant is able to generate human-like text based on the input it receives, allowing it to engage in natural-sounding conversations and provide responses that are coherent and relevant to the topic at hand.\\n\\nAssistant is constantly learning and improving, and its capabilities are constantly evolving. It is able to process and understand large amounts of text, and can use this knowledge to provide accurate and informative responses to a wide range of questions. Additionally, Assistant is able to generate its own text based on the input it receives, allowing it to engage in discussions and provide explanations and descriptions on a wide range of topics.\\n\\nOverall, Assistant is a powerful system that can help with a wide range of tasks and provide valuable insights and information on a wide range of topics. Whether you need help with a specific question or just want to have a conversation about a particular topic, Assistant is here to assist. However, above all else, all responses must adhere to the format of RESPONSE FORMAT INSTRUCTIONS.\",\"additional_kwargs\":{}}},{\"lc\":1,\"type\":\"constructor\",\"id\":[\"langchain\",\"schema\",\"HumanMessage\"],\"kwargs\":{\"content\":\"TOOLS\\n------\\nAssistant can ask the user to use tools to look up information that may be helpful in answering the users original question. The tools the human can use are:\\n\\nesql-language-knowledge-base: Call this for knowledge on how to build an ESQL query, or answer questions about the ES|QL query language.\\n\\nRESPONSE FORMAT INSTRUCTIONS\\n----------------------------\\n\\nOutput a JSON markdown code snippet containing a valid JSON object in one of two formats:\\n\\n**Option 1:**\\nUse this if you want the human to use a tool.\\nMarkdown code snippet formatted in the following schema:\\n\\n```json\\n{\\n    \\\"action\\\": string, // The action to take. Must be one of [esql-language-knowledge-base]\\n    \\\"action_input\\\": string // The input to the action. May be a stringified object.\\n}\\n```\\n\\n**Option #2:**\\nUse this if you want to respond directly and conversationally to the human. Markdown code snippet formatted in the following schema:\\n\\n```json\\n{\\n    \\\"action\\\": \\\"Final Answer\\\",\\n    \\\"action_input\\\": string // You should put what you want to return to use here and make sure to use valid json newline characters.\\n}\\n```\\n\\nFor both options, remember to always include the surrounding markdown code snippet delimiters (begin with \\\"```json\\\" and end with \\\"```\\\")!\\n\\n\\nUSER'S INPUT\\n--------------------\\nHere is the user's input (remember to respond with a markdown code snippet of a json blob with a single action, and NOTHING else):\\n\\n\\n\\n\\n\\nFrom employees, I want to see the 5 earliest employees (hire_date), I want to display only the month and the year that they were hired in and their employee number (emp_no). Format the date as e.g. \\\"September 2019\\\". Only show the query\",\"additional_kwargs\":{}}},{\"lc\":1,\"type\":\"constructor\",\"id\":[\"langchain\",\"schema\",\"AIMessage\"],\"kwargs\":{\"content\":\"```json\\n{\\n    \\\"action\\\": \\\"esql-language-knowledge-base\\\",\\n    \\\"action_input\\\": \\\"Display the 'emp_no', month and year of the 5 earliest employees by 'hire_date'. Format the date as 'Month Year'.\\\"\\n}\\n```\",\"additional_kwargs\":{}}},{\"lc\":1,\"type\":\"constructor\",\"id\":[\"langchain\",\"schema\",\"HumanMessage\"],\"kwargs\":{\"content\":\"TOOL RESPONSE:\\n---------------------\\nFROM employees\\n| KEEP emp_no, hire_date\\n| EVAL month_year = DATE_FORMAT(hire_date, \\\"MMMM YYYY\\\")\\n| SORT hire_date\\n| LIMIT 5\\n\\nUSER'S INPUT\\n--------------------\\n\\nOkay, so what is the response to my last comment? If using information obtained from the tools you must mention it explicitly without mentioning the tool names - I have forgotten all TOOL RESPONSES! Remember to respond with a markdown code snippet of a json blob with a single action, and NOTHING else.\",\"additional_kwargs\":{}}}]"
  ]
}
[llm/end] [1:chain:AgentExecutor > 10:chain:LLMChain > 11:llm:ActionsClientLlm] [6.47s] Exiting LLM run with output: {
  "generations": [
    [
      {
        "text": "```json\n{\n    \"action\": \"Final Answer\",\n    \"action_input\": \"Here is the query to get the employee number and the formatted hire date for the 5 earliest employees by hire_date:\\n\\nFROM employees\\n| KEEP emp_no, hire_date\\n| EVAL month_year = DATE_FORMAT(hire_date, \\\"MMMM YYYY\\\")\\n| SORT hire_date\\n| LIMIT 5\"\n}\n```"
      }
    ]
  ]
}
[chain/end] [1:chain:AgentExecutor > 10:chain:LLMChain] [6.47s] Exiting Chain run with output: {
  "text": "```json\n{\n    \"action\": \"Final Answer\",\n    \"action_input\": \"Here is the query to get the employee number and the formatted hire date for the 5 earliest employees by hire_date:\\n\\nFROM employees\\n| KEEP emp_no, hire_date\\n| EVAL month_year = DATE_FORMAT(hire_date, \\\"MMMM YYYY\\\")\\n| SORT hire_date\\n| LIMIT 5\"\n}\n```"
}
[chain/end] [1:chain:AgentExecutor] [11.91s] Exiting Chain run with output: {
  "output": "Here is the query to get the employee number and the formatted hire date for the 5 earliest employees by hire_date:\n\nFROM employees\n| KEEP emp_no, hire_date\n| EVAL month_year = DATE_FORMAT(hire_date, \"MMMM YYYY\")\n| SORT hire_date\n| LIMIT 5"
}
```
banderror pushed a commit that referenced this pull request Dec 5, 2023
## Summary

### This PR enables user roles testing in FTR

We use SAML authentication to get session cookie for user with the
specific role. The cookie is cached on FTR service side so we only make
SAML auth one time per user within FTR config run. For Kibana CI service
relies on changes coming in elastic#170852

In order to run FTR tests locally against existing MKI project:
- add `.ftr/role_users.json` in Kibana root dir
```
{
  "viewer": {
    "email": "...",
    "password": "..."
  },
  "developer": {
    "email": "...",
    "password": "..."
  }
}

```
- set Cloud hostname (!not project hostname!) with TEST_CLOUD_HOST_NAME,
e.g.
`export TEST_CLOUD_HOST_NAME=console.qa.cld.elstc.co`


### How to use:

- functional tests:
```
const svlCommonPage = getPageObject('svlCommonPage');

before(async () => {
  // login with Viewer role  
  await svlCommonPage.loginWithRole('viewer');
  // you are logged in in browser and on project home page, start the test 
});

it('has project header', async () => {
  await svlCommonPage.assertProjectHeaderExists();
});
```

- API integration tests:
```
const svlUserManager = getService('svlUserManager');
const supertestWithoutAuth = getService('supertestWithoutAuth');
let credentials: { Cookie: string };

before(async () => {
  // get auth header for Viewer role  
 credentials = await svlUserManager.getApiCredentialsForRole('viewer');
});

it('returns full status payload for authenticated request', async () => {
    const { body } = await supertestWithoutAuth
    .get('/api/status')
    .set(credentials)
    .set('kbn-xsrf', 'kibana');

    expect(body.name).to.be.a('string');
    expect(body.uuid).to.be.a('string');
    expect(body.version.number).to.be.a('string');
});
```

Flaky-test-runner: 

#1
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/4081
#2
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/4114

---------

Co-authored-by: Robert Oskamp <traeluki@gmail.com>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Aleh Zasypkin <aleh.zasypkin@gmail.com>
banderror pushed a commit that referenced this pull request Dec 29, 2023
## Summary

The previous PR elastic#161813 was
reverted due to the broken webpack config

elastic@eef1afc

---------

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>
banderror pushed a commit that referenced this pull request Jan 29, 2024
…ic#175194)

## Summary

This PR fixes the issue causing (mostly) [login
journey](https://buildkite.com/elastic/kibana-single-user-performance/builds/12398#018d1149-cc2e-4591-a61c-176768081e2c)
stuck for 14 min waiting for Telemetry call response.


<img width="964" alt="Screenshot 2024-01-22 at 11 12 24"
src="https://github.com/elastic/kibana/assets/10977896/8cadc2ec-ee84-42f6-8a0c-ad949367429c">

I believe the issue was in how we handle the Observables for request
events. I added extra comment in the particular code change.

I no longer can reproduce it, all the events are reported correctly:
<img width="964" alt="image"
src="https://github.com/elastic/kibana/assets/10977896/fa2c4b27-dcf2-480b-a07f-aeb23045149a">

Logs cleaning is to log in console only performance metrics event but
not all EBT elements. Also not to report some browser errors that not
Kibana specific.


Testing:

run the following script 3-4 times
```
PERFORMANCE_ENABLE_TELEMETRY=1 node scripts/run_performance.js --journey-path x-pack/performance/journeys/login.ts
```

- script is completed without delays (e.g. doesn't hang on after hook in
TEST phase)
- telemetry requests are logged with correct counter and all finished,
e.g. `Waiting for telemetry request #2 to complete` is followed by
`Telemetry request #2 complete`
- only events started with `Report event "performance_metric"` are in
console output
banderror pushed a commit that referenced this pull request Feb 20, 2024
…ging (elastic#175194) (elastic#175247)

# Backport

This will backport the following commits from `main` to `8.12`:
- [[kbn/journeys] fix hanging on telemetry call &amp; improve logging
(elastic#175194)](elastic#175194)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Dzmitry
Lemechko","email":"dzmitry.lemechko@elastic.co"},"sourceCommit":{"committedDate":"2024-01-22T17:18:10Z","message":"[kbn/journeys]
fix hanging on telemetry call & improve logging (elastic#175194)\n\n##
Summary\r\n\r\nThis PR fixes the issue causing (mostly)
[login\r\njourney](https://buildkite.com/elastic/kibana-single-user-performance/builds/12398#018d1149-cc2e-4591-a61c-176768081e2c)\r\nstuck
for 14 min waiting for Telemetry call response.\r\n\r\n\r\n<img
width=\"964\" alt=\"Screenshot 2024-01-22 at 11 12
24\"\r\nsrc=\"https://github.com/elastic/kibana/assets/10977896/8cadc2ec-ee84-42f6-8a0c-ad949367429c\">\r\n\r\nI
believe the issue was in how we handle the Observables for
request\r\nevents. I added extra comment in the particular code
change.\r\n\r\nI no longer can reproduce it, all the events are reported
correctly:\r\n<img width=\"964\"
alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/10977896/fa2c4b27-dcf2-480b-a07f-aeb23045149a\">\r\n\r\nLogs
cleaning is to log in console only performance metrics event but\r\nnot
all EBT elements. Also not to report some browser errors that
not\r\nKibana specific.\r\n\r\n\r\nTesting:\r\n\r\nrun the following
script 3-4 times\r\n```\r\nPERFORMANCE_ENABLE_TELEMETRY=1 node
scripts/run_performance.js --journey-path
x-pack/performance/journeys/login.ts\r\n```\r\n\r\n- script is completed
without delays (e.g. doesn't hang on after hook in\r\nTEST phase)\r\n-
telemetry requests are logged with correct counter and all
finished,\r\ne.g. `Waiting for telemetry request #2 to complete` is
followed by\r\n`Telemetry request #2 complete`\r\n- only events started
with `Report event \"performance_metric\"` are in\r\nconsole
output","sha":"8be528efb3169b630f44b33912adaf63bdea2a25","branchLabelMapping":{"^v8.13.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v8.12.1","v8.13.0"],"title":"[kbn/journeys]
fix hanging on telemetry call & improve
logging","number":175194,"url":"https://github.com/elastic/kibana/pull/175194","mergeCommit":{"message":"[kbn/journeys]
fix hanging on telemetry call & improve logging (elastic#175194)\n\n##
Summary\r\n\r\nThis PR fixes the issue causing (mostly)
[login\r\njourney](https://buildkite.com/elastic/kibana-single-user-performance/builds/12398#018d1149-cc2e-4591-a61c-176768081e2c)\r\nstuck
for 14 min waiting for Telemetry call response.\r\n\r\n\r\n<img
width=\"964\" alt=\"Screenshot 2024-01-22 at 11 12
24\"\r\nsrc=\"https://github.com/elastic/kibana/assets/10977896/8cadc2ec-ee84-42f6-8a0c-ad949367429c\">\r\n\r\nI
believe the issue was in how we handle the Observables for
request\r\nevents. I added extra comment in the particular code
change.\r\n\r\nI no longer can reproduce it, all the events are reported
correctly:\r\n<img width=\"964\"
alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/10977896/fa2c4b27-dcf2-480b-a07f-aeb23045149a\">\r\n\r\nLogs
cleaning is to log in console only performance metrics event but\r\nnot
all EBT elements. Also not to report some browser errors that
not\r\nKibana specific.\r\n\r\n\r\nTesting:\r\n\r\nrun the following
script 3-4 times\r\n```\r\nPERFORMANCE_ENABLE_TELEMETRY=1 node
scripts/run_performance.js --journey-path
x-pack/performance/journeys/login.ts\r\n```\r\n\r\n- script is completed
without delays (e.g. doesn't hang on after hook in\r\nTEST phase)\r\n-
telemetry requests are logged with correct counter and all
finished,\r\ne.g. `Waiting for telemetry request #2 to complete` is
followed by\r\n`Telemetry request #2 complete`\r\n- only events started
with `Report event \"performance_metric\"` are in\r\nconsole
output","sha":"8be528efb3169b630f44b33912adaf63bdea2a25"}},"sourceBranch":"main","suggestedTargetBranches":["8.12"],"targetPullRequestStates":[{"branch":"8.12","label":"v8.12.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.13.0","branchLabelMappingKey":"^v8.13.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/175194","number":175194,"mergeCommit":{"message":"[kbn/journeys]
fix hanging on telemetry call & improve logging (elastic#175194)\n\n##
Summary\r\n\r\nThis PR fixes the issue causing (mostly)
[login\r\njourney](https://buildkite.com/elastic/kibana-single-user-performance/builds/12398#018d1149-cc2e-4591-a61c-176768081e2c)\r\nstuck
for 14 min waiting for Telemetry call response.\r\n\r\n\r\n<img
width=\"964\" alt=\"Screenshot 2024-01-22 at 11 12
24\"\r\nsrc=\"https://github.com/elastic/kibana/assets/10977896/8cadc2ec-ee84-42f6-8a0c-ad949367429c\">\r\n\r\nI
believe the issue was in how we handle the Observables for
request\r\nevents. I added extra comment in the particular code
change.\r\n\r\nI no longer can reproduce it, all the events are reported
correctly:\r\n<img width=\"964\"
alt=\"image\"\r\nsrc=\"https://github.com/elastic/kibana/assets/10977896/fa2c4b27-dcf2-480b-a07f-aeb23045149a\">\r\n\r\nLogs
cleaning is to log in console only performance metrics event but\r\nnot
all EBT elements. Also not to report some browser errors that
not\r\nKibana specific.\r\n\r\n\r\nTesting:\r\n\r\nrun the following
script 3-4 times\r\n```\r\nPERFORMANCE_ENABLE_TELEMETRY=1 node
scripts/run_performance.js --journey-path
x-pack/performance/journeys/login.ts\r\n```\r\n\r\n- script is completed
without delays (e.g. doesn't hang on after hook in\r\nTEST phase)\r\n-
telemetry requests are logged with correct counter and all
finished,\r\ne.g. `Waiting for telemetry request #2 to complete` is
followed by\r\n`Telemetry request #2 complete`\r\n- only events started
with `Report event \"performance_metric\"` are in\r\nconsole
output","sha":"8be528efb3169b630f44b33912adaf63bdea2a25"}}]}]
BACKPORT-->

Co-authored-by: Dzmitry Lemechko <dzmitry.lemechko@elastic.co>
banderror pushed a commit that referenced this pull request May 27, 2024
## Summary
Set `security.session.cleanupInterval` to 5h for session concurrency
test.

### **Prerequisites**

- Task for session cleanup with [default schedule set to
1h](https://github.com/elastic/kibana/blob/main/x-pack/plugins/security/server/config.ts#L222).
- Task polling interval is set to
[3000ms](https://github.com/elastic/kibana/blob/main/x-pack/plugins/task_manager/server/config.ts#L13).
- We override `scheduledAt` once we make a request in
[runCleanupTaskSoon](https://github.com/elastic/kibana/blob/main/x-pack/test/security_api_integration/tests/session_concurrent_limit/cleanup.ts#L145).

### **Hypothesis**

Taking into consideration that:

- `session_cleanup` task is not the only one scheduled during test run.
- There is sort of an exponential backoff implemented for task polling
if there are too many retries.
- Clock jitter.

I had a hypothesis that if our whole test run exceeds 1h or polling
interval gets adjusted because of retries we might end up executing the
scheduled cleanup before we trigger `runCleanupTaskSoon` (this is there
we drop 1 session already).

### **FTR runs (x55 each)**

- `cleanupInterval` set to 5h:
[#1](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/5986)
:green_circle:,
[#2](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/5987)
:green_circle:
- `cleanupInterval` set to default 1h:
[#1](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/5983)
:green_circle:,
[#2](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/5982)
:red_circle: (has 2 failures out of 55)


### Checklist

- [x] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed

### For maintainers

- [x] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

__Fixes: https://github.com/elastic/kibana/issues/149091__
banderror pushed a commit that referenced this pull request Aug 14, 2024
## Summary

Resolves elastic#143905. This PR adds support for integration-level outputs.
This means that different integrations within the same agent policy can
now be configured to send data to different locations. This feature is
gated behind `enterprise` level subscription.

For each input, the agent policy will configure sending data to the
following outputs in decreasing order of priority:
1. Output set specifically on the integration policy
2. Output set specifically on the integration's parent agent policy
(including the case where an integration policy belongs to multiple
agent policies)
3. Global default data output set via Fleet Settings

Integration-level outputs will respect the same rules as agent
policy-level outputs:
- Certain integrations are disallowed from using certain output types,
attempting to add them to each other via creation, updating, or
"defaulting", will fail
- `fleet-server`, `synthetics`, and `apm` can only use same-cluster
Elasticsearch output
- When an output is deleted, any integrations that were specifically
using it will "clear" their output configuration and revert back to
either `#2` or `#3` in the above list
- When an output is edited, all agent policies across all spaces that
use it will be bumped to a new revision, this includes:
- Agent policies that have that output specifically set in their
settings (existing behavior)
- Agent policies that contain integrations which specifically has that
output set (new behavior)
- When a proxy is edited, the same new revision bump above will apply
for any outputs using that proxy

The final agent policy YAML that is generated will have:
- `outputs` block that includes:
- Data and monitoring outputs set at the agent policy level (existing
behavior)
- Any additional outputs set at the integration level, if they differ
from the above
- `outputs_permissions` block that includes permissions for each
Elasticsearch output depending on which integrations and/or agent
monitoring are assigned to it

Integration policies table now includes `Output` column. If the output
is defaulting to agent policy-level output, or global setting output, a
tooltip is shown:

<img width="1392" alt="image"
src="https://github.com/user-attachments/assets/5534716b-49b5-402a-aa4a-4ba6533e0ca8">

Configuring an integration-level output is done under Advanced options
in the policy editor. Setting to the blank value will "clear" the output
configuration. The list of available outputs is filtered by what outputs
are available for that integration (see above):

<img width="799" alt="image"
src="https://github.com/user-attachments/assets/617af6f4-e8f8-40b1-b476-848f8ac96e76">

An example of failure: ES output cannot be changed to Kafka while there
is an integration
<img width="1289" alt="image"
src="https://github.com/user-attachments/assets/11847eb5-fd5d-4271-8464-983d7ab39218">


## TODO
- [x] Adjust side effects of editing/deleting output when policies use
it across different spaces
- [x] Add API integration tests
- [x] Update OpenAPI spec
- [x] Create doc issue

### Checklist

Delete any items that are not applicable to this PR.

- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
banderror pushed a commit that referenced this pull request Sep 30, 2024
…193441)

## Summary
More files to be regenerated with a different shape since the js-yaml
update: elastic#190678
banderror pushed a commit that referenced this pull request Jan 6, 2025
Mainly to address timeouts on [Investigations - Security Solution
Cypress Tests
#2](https://buildkite.com/elastic/kibana-on-merge/builds/58405#01942904-03f4-406a-856d-d1f24d6fd533)
but made a pass on all groups.

Timings were based on the on-merge pipeline
https://buildkite.com/elastic/kibana-on-merge.
banderror pushed a commit that referenced this pull request Jun 23, 2025
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [whatwg-fetch](https://github.com/github/fetch) |
dependencies | minor | [`^3.0.0` ->
`^3.6.20`](https://renovatebot.com/diffs/npm/whatwg-fetch/3.0.0/3.6.20)
|

---

### Release Notes

<details>
<summary>github/fetch (whatwg-fetch)</summary>

###
[`v3.6.20`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#3620-2023-12-13)

[Compare
Source](https://github.com/github/fetch/compare/v3.6.19...v3.6.20)

##### Bug Fixes

- Response.error().ok === false
([#&elastic#8203;1412](https://github.com/JakeChampion/fetch/issues/1412))
([27e1c75](https://github.com/JakeChampion/fetch/commit/27e1c75f830f0b70a40b511e03652776951aca75))

###
[`v3.6.19`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#3619-2023-09-11)

[Compare
Source](https://github.com/github/fetch/compare/v3.6.18...v3.6.19)

##### Bug Fixes

- Have unique error messages for xhr timeouts and errors
([#&elastic#8203;1380](https://github.com/JakeChampion/fetch/issues/1380))
([7170f0b](https://github.com/JakeChampion/fetch/commit/7170f0b127d16c5895aba61c9168482834809046))

###
[`v3.6.18`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3618)

[Compare
Source](https://github.com/github/fetch/compare/v3.6.17...v3.6.18)

- Fix - File fetching broken since commit
[`0c1d2b9`](https://github.com/github/fetch/commit/0c1d2b9)
[`elastic#1375`](https://github.com/JakeChampion/fetch/pull/1375)
- Remove broken links
[`1dc07c6`](https://github.com/JakeChampion/fetch/commit/1dc07c6064a32e989306fb2324204c56c93140fe)
- automatically generate a changelog
[`0e7d1dd`](https://github.com/JakeChampion/fetch/commit/0e7d1dd95826b3b76510f0832784207f2609145e)

###
[`v3.6.17`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3617)

[Compare
Source](https://github.com/github/fetch/compare/v3.6.16...v3.6.17)

> 20 July 2023

- Revert "Resolves
[https://github.com/JakeChampion/fetch/issues/928](https://github.com/JakeChampion/fetch/issues/928)"
[`elastic#928`](https://github.com/JakeChampion/fetch/issues/928)

###
[`v3.6.16`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3616)

[Compare
Source](https://github.com/github/fetch/compare/v3.6.15...v3.6.16)

> 18 July 2023

- Resolves
[https://github.com/JakeChampion/fetch/issues/928](https://github.com/JakeChampion/fetch/issues/928)
[`elastic#928`](https://github.com/JakeChampion/fetch/issues/928)

###
[`v3.6.15`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3615)

[Compare
Source](https://github.com/github/fetch/compare/v3.6.14...v3.6.15)

> 18 July 2023

- fix
[https://github.com/JakeChampion/fetch/issues/997](https://github.com/JakeChampion/fetch/issues/997)
[`elastic#997`](https://github.com/JakeChampion/fetch/issues/997)

###
[`v3.6.14`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3614)

[Compare
Source](https://github.com/github/fetch/compare/v3.6.13...v3.6.14)

> 18 July 2023

- Fix
[https://github.com/JakeChampion/fetch/issues/1076](https://github.com/JakeChampion/fetch/issues/1076)
[`elastic#1076`](https://github.com/JakeChampion/fetch/issues/1076)

###
[`v3.6.13`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3613)

[Compare
Source](https://github.com/github/fetch/compare/v3.6.12...v3.6.13)

> 18 July 2023

- respect charset within readBlobAsText
[`elastic#1059`](https://github.com/JakeChampion/fetch/issues/1059)

###
[`v3.6.12`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3612)

[Compare
Source](https://github.com/github/fetch/compare/v3.6.11...v3.6.12)

> 18 July 2023

- fix: Headers only accepts array which have nested array of length 2
[`elastic#1235`](https://github.com/JakeChampion/fetch/issues/1235)

###
[`v3.6.11`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3611)

[Compare
Source](https://github.com/github/fetch/compare/v3.6.10...v3.6.11)

> 18 July 2023

- Define Body.arrayBuffer even if support.blob is false
[`elastic#992`](https://github.com/JakeChampion/fetch/issues/992)

###
[`v3.6.10`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3610)

[Compare
Source](https://github.com/github/fetch/compare/v3.6.9...v3.6.10)

> 18 July 2023

- use globals if they exist
[`dffc542`](https://github.com/JakeChampion/fetch/commit/dffc542fe7140f35ee7fec29e3da67f3bf080910)

###
[`v3.6.9`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v369)

[Compare
Source](https://github.com/github/fetch/compare/v3.6.8...v3.6.9)

> 18 July 2023

- fix: when no body supplied, do not set bodyUsed to true
[`7d92dff`](https://github.com/JakeChampion/fetch/commit/7d92dff12d7c4058b57c7e77adeb0a76ffab639f)

###
[`v3.6.8`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v368)

[Compare
Source](https://github.com/github/fetch/compare/v3.6.7...v3.6.8)

> 18 July 2023

- validate status is in range
[`elastic#1213`](https://github.com/JakeChampion/fetch/issues/1213)

###
[`v3.6.7`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v367)

[Compare
Source](https://github.com/github/fetch/compare/v3.6.6...v3.6.7)

> 18 July 2023

- dont shadow `global`
[`elastic#1026`](https://github.com/JakeChampion/fetch/issues/1026)
- dont use github eslint
[`408d3b6`](https://github.com/JakeChampion/fetch/commit/408d3b60e27abef325dd898d899430c46a0012b2)
- remove invalid-headers test
[`e3f6590`](https://github.com/JakeChampion/fetch/commit/e3f65907924b7692af7c08cd92044456bc92ad8b)
- Update lock.yml permissions
[`e97321b`](https://github.com/JakeChampion/fetch/commit/e97321bc081e80275397fc4c7a990791aa8b3524)

###
[`v3.6.6`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v366)

[Compare
Source](https://github.com/github/fetch/compare/v3.6.5...v3.6.6)

> 18 July 2023

- fix: ignore not throw on invalid response headers
[`elastic#930`](https://github.com/JakeChampion/fetch/issues/930)

###
[`v3.6.5`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v365)

[Compare
Source](https://github.com/github/fetch/compare/v3.6.4...v3.6.5)

> 18 July 2023

- Add some missed methods which should be normalized as uppercase
[`a43b628`](https://github.com/JakeChampion/fetch/commit/a43b6283833c403230bb1a5238e2d7ac435c52da)
- Update caniuse link to use HTTPS and new pattern
[`fb5b0cf`](https://github.com/JakeChampion/fetch/commit/fb5b0cf42b470faf8c5448ab461d561f34380a30)

###
[`v3.6.4`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v364)

[Compare
Source](https://github.com/github/fetch/compare/v3.6.3...v3.6.4)

> 18 July 2023

- always set a signal on Request
[`d1d09fb`](https://github.com/JakeChampion/fetch/commit/d1d09fb8039b4b8c7f2f5d6c844ea72d8a3cefe6)

###
[`v3.6.3`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v363)

[Compare
Source](https://github.com/github/fetch/compare/v3.6.2...v3.6.3)

> 18 July 2023

- Compatible global equals to the false
[`7727e50`](https://github.com/JakeChampion/fetch/commit/7727e50493eafae9a7005f10f18f81e5bbcbfdd3)

###
[`v3.6.2`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#3620-2023-12-13)

[Compare
Source](https://github.com/github/fetch/compare/v3.6.1...v3.6.2)

##### Bug Fixes

- Response.error().ok === false
([#&elastic#8203;1412](https://github.com/JakeChampion/fetch/issues/1412))
([27e1c75](https://github.com/JakeChampion/fetch/commit/27e1c75f830f0b70a40b511e03652776951aca75))

###
[`v3.6.1`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#3619-2023-09-11)

[Compare
Source](https://github.com/github/fetch/compare/v3.6.0...v3.6.1)

##### Bug Fixes

- Have unique error messages for xhr timeouts and errors
([#&elastic#8203;1380](https://github.com/JakeChampion/fetch/issues/1380))
([7170f0b](https://github.com/JakeChampion/fetch/commit/7170f0b127d16c5895aba61c9168482834809046))

###
[`v3.6.0`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v360)

[Compare
Source](https://github.com/github/fetch/compare/v3.5.0...v3.6.0)

> 18 February 2021

- Fix statusText: undefined should give '' and null should give 'null'
[`b5c8bd0`](https://github.com/JakeChampion/fetch/commit/b5c8bd0fee1530f1c204cc5c68b427a3498dbdad)
- Represent non-stringified JSON request body as an \[object Object]
string
[`5c6b055`](https://github.com/JakeChampion/fetch/commit/5c6b055e6ae6f718f416c94bfcdc89693d0abdcb)
- Fix eslint and eslint-plugin-github dependency conflicts
[`190e698`](https://github.com/JakeChampion/fetch/commit/190e698f8e737ad751a11de60f6b8b3301fa557b)

###
[`v3.5.0`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v350)

[Compare
Source](https://github.com/github/fetch/compare/v3.4.1...v3.5.0)

> 6 November 2020

- Fixes
[#&elastic#8203;748](https://github.com/github/fetch/issues/748)
[`elastic#748`](https://github.com/JakeChampion/fetch/issues/748)
- Create lock.yml
[`8767781`](https://github.com/JakeChampion/fetch/commit/87677811d543cfb44b124e026b50f710e95017ec)

###
[`v3.4.1`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v341)

[Compare
Source](https://github.com/github/fetch/compare/v3.4.0...v3.4.1)

> 7 September 2020

- Add npmignore file to ensure we always publish the dist directory
[`7ca02eb`](https://github.com/JakeChampion/fetch/commit/7ca02eb0234b0a61fd711d922b2e69d3c5390516)
- Make the clean task remove the dist directory and the default task
create it
[`fd23745`](https://github.com/JakeChampion/fetch/commit/fd23745f3474cd23d88e5128d8bc74813be1aff0)

###
[`v3.4.0`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v340)

[Compare
Source](https://github.com/github/fetch/compare/v3.3.1...v3.4.0)

> 7 August 2020

- Use globalThis as the global object if it exists
[`96c2651`](https://github.com/JakeChampion/fetch/commit/96c26512608a0081d493df4fc17da4394bd1b410)

###
[`v3.3.1`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v331)

[Compare
Source](https://github.com/github/fetch/compare/v3.3.0...v3.3.1)

> 4 August 2020

- rename variable to no longer shadow over function of same name
[`c5db762`](https://github.com/JakeChampion/fetch/commit/c5db7621c3b1530683b8f706388d4ac210a2db02)
- remove semicolon to pass linting
[`f264aa5`](https://github.com/JakeChampion/fetch/commit/f264aa5704f7431c429ec16e6fdd3c7034c7f2d9)

###
[`v3.3.0`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v330)

[Compare
Source](https://github.com/github/fetch/compare/v3.2.0...v3.3.0)

> 4 August 2020

- Make Response.arrayBuffer() always resolve with a `ArrayBuffer`
[`elastic#801`](https://github.com/github/fetch/issues/801)
- Stop using top-level `this` to stop rollup warning
[`elastic#802`](https://github.com/github/fetch/issues/802)
- Recommend an AbortController polyfill which is fully synchronous
[`elastic#800`](https://github.com/github/fetch/issues/800)
- Add keepalive caveat
[`elastic#780`](https://github.com/github/fetch/issues/780)
- Throw a TypeError if Request or Response functions are called without
`new`
[`5ef028d`](https://github.com/JakeChampion/fetch/commit/5ef028d61f6c1543603cdacbe0f8a0f00d5957c0)
- If headers are passed in via a Record then do not normalise the header
names as part of the request
[`b65ed60`](https://github.com/JakeChampion/fetch/commit/b65ed608604492d605df2d62cd4c5050e2a8d508)
- Update fetch.js
[`37b55c2`](https://github.com/JakeChampion/fetch/commit/37b55c27413b902cef4e629892424ae469fb1ea2)

###
[`v3.2.0`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v320)

[Compare
Source](https://github.com/github/fetch/compare/v3.1.1...v3.2.0)

> 9 July 2020

- Detect if DOMException exists via typeof instead of trying to call it
and catching the exception which may get thrown
[`elastic#724`](https://github.com/github/fetch/issues/724)
- use `this` if `self` is not defined
[`elastic#657`](https://github.com/github/fetch/issues/657)
- create variable called `global` which is either `self` or `this`
[`a0783a5`](https://github.com/JakeChampion/fetch/commit/a0783a5571018191578cc08d5b3bac61a0b64562)
- Add support for no-cache and no-store via a cache-busting querystring
parameter
[`a0dcd85`](https://github.com/JakeChampion/fetch/commit/a0dcd853f8ed29d06a022f92c87c303bd0e1f1bf)
- make global `this` correct when using rollup
[`6e9fc0e`](https://github.com/JakeChampion/fetch/commit/6e9fc0ee026dd89d864c3d176c57789ee5615114)

###
[`v3.1.1`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v311)

[Compare
Source](https://github.com/github/fetch/compare/v3.1.0...v3.1.1)

> 8 July 2020

- check if Content-Type header exists prior to examining the value
[`elastic#792`](https://github.com/JakeChampion/fetch/pull/792)
- Move from Travis to GitHub Actions
[`elastic#793`](https://github.com/JakeChampion/fetch/pull/793)

###
[`v3.1.0`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v310)

[Compare
Source](https://github.com/github/fetch/compare/v3.0.1...v3.1.0)

> 29 June 2020

###
[`v3.0.1`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v301)

[Compare
Source](https://github.com/github/fetch/compare/v3.0.0...v3.0.1)

> 8 July 2020

- check if Content-Type header exists prior to examining the value
[`elastic#792`](https://github.com/JakeChampion/fetch/pull/792)
- Move from Travis to GitHub Actions
[`elastic#793`](https://github.com/JakeChampion/fetch/pull/793)
- Co-authored-by: Jake Champion \<me@jakechampion.name>
[`elastic#575`](https://github.com/JakeChampion/fetch/pull/575)
- work around IE XHR bug with '' URL Fixes
[#&elastic#8203;618](https://github.com/github/fetch/issues/618)
[`elastic#619`](https://github.com/JakeChampion/fetch/pull/619)
- Allow exclamation mark as valid header character
[`elastic#745`](https://github.com/JakeChampion/fetch/pull/745)
- Avoid blob conversion for specific requests
[`elastic#752`](https://github.com/JakeChampion/fetch/pull/752)
- Compatibility for fetch-mock using proxy-pollyfill
[`elastic#736`](https://github.com/JakeChampion/fetch/pull/736)
- Change default statusText for Response
[`elastic#698`](https://github.com/JakeChampion/fetch/pull/698)
- Document more common pitfalls in the README
[`elastic#734`](https://github.com/JakeChampion/fetch/pull/734)
- field name can not by empty
[`elastic#684`](https://github.com/JakeChampion/fetch/pull/684)
- work around IE XHR bug with '' URL Fixes
[#&elastic#8203;618](https://github.com/github/fetch/issues/618)
([#&elastic#8203;619](https://github.com/github/fetch/issues/619))
[`elastic#618`](https://github.com/JakeChampion/fetch/issues/618)
- Clarify what parts of the standard we don't want to implement
[`elastic#661`](https://github.com/JakeChampion/fetch/issues/661)
- Document more caveats
[`9a0bce2`](https://github.com/JakeChampion/fetch/commit/9a0bce23454cdd5beefd9d4c599664003573e581)
- Fix issue
[#&elastic#8203;533](https://github.com/github/fetch/issues/533)
[`7f030fa`](https://github.com/JakeChampion/fetch/commit/7f030fab4d79433204331cefe365f5fbbab9e992)
- Compatibility with newer eslint-plugin-github
[`1821b74`](https://github.com/JakeChampion/fetch/commit/1821b74b808152d4d6e787c21165f2d569c2a7c4)

#####
[v3.0.0](https://github.com/JakeChampion/fetch/compare/v2.0.4...v3.0.0)

> 7 September 2018

- Add flow definitions
[`elastic#654`](https://github.com/JakeChampion/fetch/pull/654)
- Match spec behavior re: unsupported body type
[`elastic#651`](https://github.com/JakeChampion/fetch/pull/651)
- Update Karma and detect available browsers when testing
[`elastic#652`](https://github.com/JakeChampion/fetch/pull/652)
- Adopt Contributor Covenant Code of Conduct
[`elastic#649`](https://github.com/JakeChampion/fetch/pull/649)
- Change `credentials` default value to `same-origin`
[`elastic#640`](https://github.com/JakeChampion/fetch/pull/640)
- Switch test suite from PhantomJS to Karma
[`elastic#626`](https://github.com/JakeChampion/fetch/pull/626)
- Support abort API
[`elastic#592`](https://github.com/JakeChampion/fetch/pull/592)
- build/distribute as UMD
[`elastic#616`](https://github.com/JakeChampion/fetch/pull/616)
- Test signal reuse. Add AbortSignal polyfill.
[`#2`](https://github.com/JakeChampion/fetch/pull/2)
- Clear abort event listener for all xhr completion states.
[`#1`](https://github.com/JakeChampion/fetch/pull/1)
- Expand install & importing documentation
[`elastic#569`](https://github.com/JakeChampion/fetch/issues/569)
- Match spec behavior re: unsupported body type
[`elastic#576`](https://github.com/JakeChampion/fetch/issues/576)
- Run test files through prettier
[`0a57487`](https://github.com/JakeChampion/fetch/commit/0a5748775d99f882172375693f56761383f8faf3)
- Unwrap `fetch.js` to be a clean module file
[`8aec47c`](https://github.com/JakeChampion/fetch/commit/8aec47cb6c67a9a321f1eb07457f70fc46235610)
- Switch from PhantomJS to Karma + Chrome/Firefox for testing
[`b539589`](https://github.com/JakeChampion/fetch/commit/b53958904649bfeb784083b9b7e0b89902c7d30e)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://github.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjUuMSIsInVwZGF0ZWRJblZlciI6IjM5LjEwNy4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJUZWFtOk9wZXJhdGlvbnMiLCJiYWNrcG9ydDphbGwtb3BlbiIsInJlbGVhc2Vfbm90ZTpza2lwIl19-->

Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>
Co-authored-by: Brad White <brad.white@elastic.co>
banderror pushed a commit that referenced this pull request Aug 13, 2025
… (elastic#222644)

# Backport

This will backport the following commits from `main` to `9.0`:
- [Update dependency whatwg-fetch to ^3.6.20 (main)
(#206179)](https://github.com/elastic/kibana/pull/206179)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT
[{"author":{"name":"elastic-renovate-prod[bot]","email":"174716857+elastic-renovate-prod[bot]@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-06-04T19:29:03Z","message":"Update
dependency whatwg-fetch to ^3.6.20 (main) (#206179)\n\nThis PR contains
the following updates:\n\n| Package | Type | Update | Change
|\n|---|---|---|---|\n|
[whatwg-fetch](https://github.com/github/fetch) |\ndependencies
| minor | [`^3.0.0`
->\n`^3.6.20`](https://renovatebot.com/diffs/npm/whatwg-fetch/3.0.0/3.6.20)\n|\n\n---\n\n###
Release Notes\n\n<details>\n<summary>github/fetch
(whatwg-fetch)</summary>\n\n###\n[`v3.6.20`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#3620-2023-12-13)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.19...v3.6.20)\n\n#####
Bug Fixes\n\n- Response.error().ok ===
false\n([#&#8203;1412](https://github.com/JakeChampion/fetch/issues/1412))\n([27e1c75](https://github.com/JakeChampion/fetch/commit/27e1c75f830f0b70a40b511e03652776951aca75))\n\n###\n[`v3.6.19`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#3619-2023-09-11)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.18...v3.6.19)\n\n#####
Bug Fixes\n\n- Have unique error messages for xhr timeouts and
errors\n([#&#8203;1380](https://github.com/JakeChampion/fetch/issues/1380))\n([7170f0b](https://github.com/JakeChampion/fetch/commit/7170f0b127d16c5895aba61c9168482834809046))\n\n###\n[`v3.6.18`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3618)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.17...v3.6.18)\n\n-
Fix - File fetching broken since
commit\n[`0c1d2b9`](https://github.com/github/fetch/commit/0c1d2b9)\n[`#1375`](https://github.com/JakeChampion/fetch/pull/1375)\n-
Remove broken
links\n[`1dc07c6`](https://github.com/JakeChampion/fetch/commit/1dc07c6064a32e989306fb2324204c56c93140fe)\n-
automatically generate a
changelog\n[`0e7d1dd`](https://github.com/JakeChampion/fetch/commit/0e7d1dd95826b3b76510f0832784207f2609145e)\n\n###\n[`v3.6.17`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3617)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.16...v3.6.17)\n\n>
20 July 2023\n\n- Revert
\"Resolves\n[https://github.com/JakeChampion/fetch/issues/928](https://github.com/JakeChampion/fetch/issues/928)\"\n[`#928`](https://github.com/JakeChampion/fetch/issues/928)\n\n###\n[`v3.6.16`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3616)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.15...v3.6.16)\n\n>
18 July 2023\n\n-
Resolves\n[https://github.com/JakeChampion/fetch/issues/928](https://github.com/JakeChampion/fetch/issues/928)\n[`#928`](https://github.com/JakeChampion/fetch/issues/928)\n\n###\n[`v3.6.15`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3615)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.14...v3.6.15)\n\n>
18 July 2023\n\n-
fix\n[https://github.com/JakeChampion/fetch/issues/997](https://github.com/JakeChampion/fetch/issues/997)\n[`#997`](https://github.com/JakeChampion/fetch/issues/997)\n\n###\n[`v3.6.14`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3614)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.13...v3.6.14)\n\n>
18 July 2023\n\n-
Fix\n[https://github.com/JakeChampion/fetch/issues/1076](https://github.com/JakeChampion/fetch/issues/1076)\n[`#1076`](https://github.com/JakeChampion/fetch/issues/1076)\n\n###\n[`v3.6.13`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3613)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.12...v3.6.13)\n\n>
18 July 2023\n\n- respect charset within
readBlobAsText\n[`#1059`](https://github.com/JakeChampion/fetch/issues/1059)\n\n###\n[`v3.6.12`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3612)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.11...v3.6.12)\n\n>
18 July 2023\n\n- fix: Headers only accepts array which have nested
array of length
2\n[`#1235`](https://github.com/JakeChampion/fetch/issues/1235)\n\n###\n[`v3.6.11`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3611)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.10...v3.6.11)\n\n>
18 July 2023\n\n- Define Body.arrayBuffer even if support.blob is
false\n[`#992`](https://github.com/JakeChampion/fetch/issues/992)\n\n###\n[`v3.6.10`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3610)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.9...v3.6.10)\n\n>
18 July 2023\n\n- use globals if they
exist\n[`dffc542`](https://github.com/JakeChampion/fetch/commit/dffc542fe7140f35ee7fec29e3da67f3bf080910)\n\n###\n[`v3.6.9`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v369)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.8...v3.6.9)\n\n>
18 July 2023\n\n- fix: when no body supplied, do not set bodyUsed to
true\n[`7d92dff`](https://github.com/JakeChampion/fetch/commit/7d92dff12d7c4058b57c7e77adeb0a76ffab639f)\n\n###\n[`v3.6.8`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v368)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.7...v3.6.8)\n\n>
18 July 2023\n\n- validate status is in
range\n[`#1213`](https://github.com/JakeChampion/fetch/issues/1213)\n\n###\n[`v3.6.7`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v367)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.6...v3.6.7)\n\n>
18 July 2023\n\n- dont shadow
`global`\n[`#1026`](https://github.com/JakeChampion/fetch/issues/1026)\n-
dont use github
eslint\n[`408d3b6`](https://github.com/JakeChampion/fetch/commit/408d3b60e27abef325dd898d899430c46a0012b2)\n-
remove invalid-headers
test\n[`e3f6590`](https://github.com/JakeChampion/fetch/commit/e3f65907924b7692af7c08cd92044456bc92ad8b)\n-
Update lock.yml
permissions\n[`e97321b`](https://github.com/JakeChampion/fetch/commit/e97321bc081e80275397fc4c7a990791aa8b3524)\n\n###\n[`v3.6.6`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v366)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.5...v3.6.6)\n\n>
18 July 2023\n\n- fix: ignore not throw on invalid response
headers\n[`#930`](https://github.com/JakeChampion/fetch/issues/930)\n\n###\n[`v3.6.5`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v365)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.4...v3.6.5)\n\n>
18 July 2023\n\n- Add some missed methods which should be normalized as
uppercase\n[`a43b628`](https://github.com/JakeChampion/fetch/commit/a43b6283833c403230bb1a5238e2d7ac435c52da)\n-
Update caniuse link to use HTTPS and new
pattern\n[`fb5b0cf`](https://github.com/JakeChampion/fetch/commit/fb5b0cf42b470faf8c5448ab461d561f34380a30)\n\n###\n[`v3.6.4`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v364)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.3...v3.6.4)\n\n>
18 July 2023\n\n- always set a signal on
Request\n[`d1d09fb`](https://github.com/JakeChampion/fetch/commit/d1d09fb8039b4b8c7f2f5d6c844ea72d8a3cefe6)\n\n###\n[`v3.6.3`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v363)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.2...v3.6.3)\n\n>
18 July 2023\n\n- Compatible global equals to the
false\n[`7727e50`](https://github.com/JakeChampion/fetch/commit/7727e50493eafae9a7005f10f18f81e5bbcbfdd3)\n\n###\n[`v3.6.2`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#3620-2023-12-13)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.1...v3.6.2)\n\n#####
Bug Fixes\n\n- Response.error().ok ===
false\n([#&#8203;1412](https://github.com/JakeChampion/fetch/issues/1412))\n([27e1c75](https://github.com/JakeChampion/fetch/commit/27e1c75f830f0b70a40b511e03652776951aca75))\n\n###\n[`v3.6.1`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#3619-2023-09-11)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.0...v3.6.1)\n\n#####
Bug Fixes\n\n- Have unique error messages for xhr timeouts and
errors\n([#&#8203;1380](https://github.com/JakeChampion/fetch/issues/1380))\n([7170f0b](https://github.com/JakeChampion/fetch/commit/7170f0b127d16c5895aba61c9168482834809046))\n\n###\n[`v3.6.0`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v360)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.5.0...v3.6.0)\n\n>
18 February 2021\n\n- Fix statusText: undefined should give '' and null
should give
'null'\n[`b5c8bd0`](https://github.com/JakeChampion/fetch/commit/b5c8bd0fee1530f1c204cc5c68b427a3498dbdad)\n-
Represent non-stringified JSON request body as an \\[object
Object]\nstring\n[`5c6b055`](https://github.com/JakeChampion/fetch/commit/5c6b055e6ae6f718f416c94bfcdc89693d0abdcb)\n-
Fix eslint and eslint-plugin-github dependency
conflicts\n[`190e698`](https://github.com/JakeChampion/fetch/commit/190e698f8e737ad751a11de60f6b8b3301fa557b)\n\n###\n[`v3.5.0`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v350)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.4.1...v3.5.0)\n\n>
6 November 2020\n\n-
Fixes\n[#&#8203;748](https://github.com/github/fetch/issues/748)\n[`#748`](https://github.com/JakeChampion/fetch/issues/748)\n-
Create
lock.yml\n[`8767781`](https://github.com/JakeChampion/fetch/commit/87677811d543cfb44b124e026b50f710e95017ec)\n\n###\n[`v3.4.1`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v341)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.4.0...v3.4.1)\n\n>
7 September 2020\n\n- Add npmignore file to ensure we always publish the
dist
directory\n[`7ca02eb`](https://github.com/JakeChampion/fetch/commit/7ca02eb0234b0a61fd711d922b2e69d3c5390516)\n-
Make the clean task remove the dist directory and the default
task\ncreate
it\n[`fd23745`](https://github.com/JakeChampion/fetch/commit/fd23745f3474cd23d88e5128d8bc74813be1aff0)\n\n###\n[`v3.4.0`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v340)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.3.1...v3.4.0)\n\n>
7 August 2020\n\n- Use globalThis as the global object if it
exists\n[`96c2651`](https://github.com/JakeChampion/fetch/commit/96c26512608a0081d493df4fc17da4394bd1b410)\n\n###\n[`v3.3.1`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v331)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.3.0...v3.3.1)\n\n>
4 August 2020\n\n- rename variable to no longer shadow over function of
same
name\n[`c5db762`](https://github.com/JakeChampion/fetch/commit/c5db7621c3b1530683b8f706388d4ac210a2db02)\n-
remove semicolon to pass
linting\n[`f264aa5`](https://github.com/JakeChampion/fetch/commit/f264aa5704f7431c429ec16e6fdd3c7034c7f2d9)\n\n###\n[`v3.3.0`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v330)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.2.0...v3.3.0)\n\n>
4 August 2020\n\n- Make Response.arrayBuffer() always resolve with a
`ArrayBuffer`\n[`#801`](https://github.com/github/fetch/issues/801)\n-
Stop using top-level `this` to stop rollup
warning\n[`#802`](https://github.com/github/fetch/issues/802)\n-
Recommend an AbortController polyfill which is fully
synchronous\n[`#800`](https://github.com/github/fetch/issues/800)\n-
Add keepalive
caveat\n[`#780`](https://github.com/github/fetch/issues/780)\n-
Throw a TypeError if Request or Response functions are called
without\n`new`\n[`5ef028d`](https://github.com/JakeChampion/fetch/commit/5ef028d61f6c1543603cdacbe0f8a0f00d5957c0)\n-
If headers are passed in via a Record then do not normalise the
header\nnames as part of the
request\n[`b65ed60`](https://github.com/JakeChampion/fetch/commit/b65ed608604492d605df2d62cd4c5050e2a8d508)\n-
Update
fetch.js\n[`37b55c2`](https://github.com/JakeChampion/fetch/commit/37b55c27413b902cef4e629892424ae469fb1ea2)\n\n###\n[`v3.2.0`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v320)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.1.1...v3.2.0)\n\n>
9 July 2020\n\n- Detect if DOMException exists via typeof instead of
trying to call it\nand catching the exception which may get
thrown\n[`#724`](https://github.com/github/fetch/issues/724)\n-
use `this` if `self` is not
defined\n[`#657`](https://github.com/github/fetch/issues/657)\n-
create variable called `global` which is either `self` or
`this`\n[`a0783a5`](https://github.com/JakeChampion/fetch/commit/a0783a5571018191578cc08d5b3bac61a0b64562)\n-
Add support for no-cache and no-store via a cache-busting
querystring\nparameter\n[`a0dcd85`](https://github.com/JakeChampion/fetch/commit/a0dcd853f8ed29d06a022f92c87c303bd0e1f1bf)\n-
make global `this` correct when using
rollup\n[`6e9fc0e`](https://github.com/JakeChampion/fetch/commit/6e9fc0ee026dd89d864c3d176c57789ee5615114)\n\n###\n[`v3.1.1`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v311)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.1.0...v3.1.1)\n\n>
8 July 2020\n\n- check if Content-Type header exists prior to examining
the
value\n[`#792`](https://github.com/JakeChampion/fetch/pull/792)\n-
Move from Travis to GitHub
Actions\n[`#793`](https://github.com/JakeChampion/fetch/pull/793)\n\n###\n[`v3.1.0`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v310)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.0.1...v3.1.0)\n\n>
29 June
2020\n\n###\n[`v3.0.1`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v301)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.0.0...v3.0.1)\n\n>
8 July 2020\n\n- check if Content-Type header exists prior to examining
the
value\n[`#792`](https://github.com/JakeChampion/fetch/pull/792)\n-
Move from Travis to GitHub
Actions\n[`#793`](https://github.com/JakeChampion/fetch/pull/793)\n-
Co-authored-by: Jake Champion
\\<me@jakechampion.name>\n[`#575`](https://github.com/JakeChampion/fetch/pull/575)\n-
work around IE XHR bug with '' URL
Fixes\n[#&#8203;618](https://github.com/github/fetch/issues/618)\n[`#619`](https://github.com/JakeChampion/fetch/pull/619)\n-
Allow exclamation mark as valid header
character\n[`#745`](https://github.com/JakeChampion/fetch/pull/745)\n-
Avoid blob conversion for specific
requests\n[`#752`](https://github.com/JakeChampion/fetch/pull/752)\n-
Compatibility for fetch-mock using
proxy-pollyfill\n[`#736`](https://github.com/JakeChampion/fetch/pull/736)\n-
Change default statusText for
Response\n[`#698`](https://github.com/JakeChampion/fetch/pull/698)\n-
Document more common pitfalls in the
README\n[`#734`](https://github.com/JakeChampion/fetch/pull/734)\n-
field name can not by
empty\n[`#684`](https://github.com/JakeChampion/fetch/pull/684)\n-
work around IE XHR bug with '' URL
Fixes\n[#&#8203;618](https://github.com/github/fetch/issues/618)\n([#&#8203;619](https://github.com/github/fetch/issues/619))\n[`#618`](https://github.com/JakeChampion/fetch/issues/618)\n-
Clarify what parts of the standard we don't want to
implement\n[`#661`](https://github.com/JakeChampion/fetch/issues/661)\n-
Document more
caveats\n[`9a0bce2`](https://github.com/JakeChampion/fetch/commit/9a0bce23454cdd5beefd9d4c599664003573e581)\n-
Fix
issue\n[#&#8203;533](https://github.com/github/fetch/issues/533)\n[`7f030fa`](https://github.com/JakeChampion/fetch/commit/7f030fab4d79433204331cefe365f5fbbab9e992)\n-
Compatibility with newer
eslint-plugin-github\n[`1821b74`](https://github.com/JakeChampion/fetch/commit/1821b74b808152d4d6e787c21165f2d569c2a7c4)\n\n#####\n[v3.0.0](https://github.com/JakeChampion/fetch/compare/v2.0.4...v3.0.0)\n\n>
7 September 2018\n\n- Add flow
definitions\n[`#654`](https://github.com/JakeChampion/fetch/pull/654)\n-
Match spec behavior re: unsupported body
type\n[`#651`](https://github.com/JakeChampion/fetch/pull/651)\n-
Update Karma and detect available browsers when
testing\n[`#652`](https://github.com/JakeChampion/fetch/pull/652)\n-
Adopt Contributor Covenant Code of
Conduct\n[`#649`](https://github.com/JakeChampion/fetch/pull/649)\n-
Change `credentials` default value to
`same-origin`\n[`#640`](https://github.com/JakeChampion/fetch/pull/640)\n-
Switch test suite from PhantomJS to
Karma\n[`#626`](https://github.com/JakeChampion/fetch/pull/626)\n-
Support abort
API\n[`#592`](https://github.com/JakeChampion/fetch/pull/592)\n-
build/distribute as
UMD\n[`#616`](https://github.com/JakeChampion/fetch/pull/616)\n-
Test signal reuse. Add AbortSignal
polyfill.\n[`#2`](https://github.com/JakeChampion/fetch/pull/2)\n-
Clear abort event listener for all xhr completion
states.\n[`#1`](https://github.com/JakeChampion/fetch/pull/1)\n-
Expand install & importing
documentation\n[`#569`](https://github.com/JakeChampion/fetch/issues/569)\n-
Match spec behavior re: unsupported body
type\n[`#576`](https://github.com/JakeChampion/fetch/issues/576)\n-
Run test files through
prettier\n[`0a57487`](https://github.com/JakeChampion/fetch/commit/0a5748775d99f882172375693f56761383f8faf3)\n-
Unwrap `fetch.js` to be a clean module
file\n[`8aec47c`](https://github.com/JakeChampion/fetch/commit/8aec47cb6c67a9a321f1eb07457f70fc46235610)\n-
Switch from PhantomJS to Karma + Chrome/Firefox for
testing\n[`b539589`](https://github.com/JakeChampion/fetch/commit/b53958904649bfeb784083b9b7e0b89902c7d30e)\n\n</details>\n\n---\n\n###
Configuration\n\n📅 **Schedule**: Branch creation - At any time (no
schedule defined),\nAutomerge - At any time (no schedule defined).\n\n🚦
**Automerge**: Disabled by config. Please merge this manually once
you\nare satisfied.\n\n♻ **Rebasing**: Whenever PR becomes conflicted,
or you tick the\nrebase/retry checkbox.\n\n🔕 **Ignore**: Close this PR
and you won't be reminded about this update\nagain.\n\n---\n\n- [ ] If
you want to rebase/retry this PR, check\nthis box\n\n---\n\nThis PR has
been generated by
[Renovate\nBot](https://github.com/renovatebot/renovate).\n\n\n\nCo-authored-by:
elastic-renovate-prod[bot]
<174716857+elastic-renovate-prod[bot]@users.noreply.github.com>\nCo-authored-by:
Brad White
<brad.white@elastic.co>","sha":"e49ec1082a6d7847afc05dbb6e817d7fe225d628","branchLabelMapping":{"^v9.1.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Operations","release_note:skip","backport:all-open","v9.1.0"],"title":"Update
dependency whatwg-fetch to ^3.6.20
(main)","number":206179,"url":"https://github.com/elastic/kibana/pull/206179","mergeCommit":{"message":"Update
dependency whatwg-fetch to ^3.6.20 (main) (#206179)\n\nThis PR contains
the following updates:\n\n| Package | Type | Update | Change
|\n|---|---|---|---|\n|
[whatwg-fetch](https://github.com/github/fetch) |\ndependencies
| minor | [`^3.0.0`
->\n`^3.6.20`](https://renovatebot.com/diffs/npm/whatwg-fetch/3.0.0/3.6.20)\n|\n\n---\n\n###
Release Notes\n\n<details>\n<summary>github/fetch
(whatwg-fetch)</summary>\n\n###\n[`v3.6.20`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#3620-2023-12-13)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.19...v3.6.20)\n\n#####
Bug Fixes\n\n- Response.error().ok ===
false\n([#&#8203;1412](https://github.com/JakeChampion/fetch/issues/1412))\n([27e1c75](https://github.com/JakeChampion/fetch/commit/27e1c75f830f0b70a40b511e03652776951aca75))\n\n###\n[`v3.6.19`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#3619-2023-09-11)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.18...v3.6.19)\n\n#####
Bug Fixes\n\n- Have unique error messages for xhr timeouts and
errors\n([#&#8203;1380](https://github.com/JakeChampion/fetch/issues/1380))\n([7170f0b](https://github.com/JakeChampion/fetch/commit/7170f0b127d16c5895aba61c9168482834809046))\n\n###\n[`v3.6.18`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3618)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.17...v3.6.18)\n\n-
Fix - File fetching broken since
commit\n[`0c1d2b9`](https://github.com/github/fetch/commit/0c1d2b9)\n[`#1375`](https://github.com/JakeChampion/fetch/pull/1375)\n-
Remove broken
links\n[`1dc07c6`](https://github.com/JakeChampion/fetch/commit/1dc07c6064a32e989306fb2324204c56c93140fe)\n-
automatically generate a
changelog\n[`0e7d1dd`](https://github.com/JakeChampion/fetch/commit/0e7d1dd95826b3b76510f0832784207f2609145e)\n\n###\n[`v3.6.17`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3617)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.16...v3.6.17)\n\n>
20 July 2023\n\n- Revert
\"Resolves\n[https://github.com/JakeChampion/fetch/issues/928](https://github.com/JakeChampion/fetch/issues/928)\"\n[`#928`](https://github.com/JakeChampion/fetch/issues/928)\n\n###\n[`v3.6.16`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3616)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.15...v3.6.16)\n\n>
18 July 2023\n\n-
Resolves\n[https://github.com/JakeChampion/fetch/issues/928](https://github.com/JakeChampion/fetch/issues/928)\n[`#928`](https://github.com/JakeChampion/fetch/issues/928)\n\n###\n[`v3.6.15`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3615)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.14...v3.6.15)\n\n>
18 July 2023\n\n-
fix\n[https://github.com/JakeChampion/fetch/issues/997](https://github.com/JakeChampion/fetch/issues/997)\n[`#997`](https://github.com/JakeChampion/fetch/issues/997)\n\n###\n[`v3.6.14`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3614)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.13...v3.6.14)\n\n>
18 July 2023\n\n-
Fix\n[https://github.com/JakeChampion/fetch/issues/1076](https://github.com/JakeChampion/fetch/issues/1076)\n[`#1076`](https://github.com/JakeChampion/fetch/issues/1076)\n\n###\n[`v3.6.13`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3613)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.12...v3.6.13)\n\n>
18 July 2023\n\n- respect charset within
readBlobAsText\n[`#1059`](https://github.com/JakeChampion/fetch/issues/1059)\n\n###\n[`v3.6.12`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3612)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.11...v3.6.12)\n\n>
18 July 2023\n\n- fix: Headers only accepts array which have nested
array of length
2\n[`#1235`](https://github.com/JakeChampion/fetch/issues/1235)\n\n###\n[`v3.6.11`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3611)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.10...v3.6.11)\n\n>
18 July 2023\n\n- Define Body.arrayBuffer even if support.blob is
false\n[`#992`](https://github.com/JakeChampion/fetch/issues/992)\n\n###\n[`v3.6.10`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3610)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.9...v3.6.10)\n\n>
18 July 2023\n\n- use globals if they
exist\n[`dffc542`](https://github.com/JakeChampion/fetch/commit/dffc542fe7140f35ee7fec29e3da67f3bf080910)\n\n###\n[`v3.6.9`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v369)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.8...v3.6.9)\n\n>
18 July 2023\n\n- fix: when no body supplied, do not set bodyUsed to
true\n[`7d92dff`](https://github.com/JakeChampion/fetch/commit/7d92dff12d7c4058b57c7e77adeb0a76ffab639f)\n\n###\n[`v3.6.8`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v368)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.7...v3.6.8)\n\n>
18 July 2023\n\n- validate status is in
range\n[`#1213`](https://github.com/JakeChampion/fetch/issues/1213)\n\n###\n[`v3.6.7`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v367)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.6...v3.6.7)\n\n>
18 July 2023\n\n- dont shadow
`global`\n[`#1026`](https://github.com/JakeChampion/fetch/issues/1026)\n-
dont use github
eslint\n[`408d3b6`](https://github.com/JakeChampion/fetch/commit/408d3b60e27abef325dd898d899430c46a0012b2)\n-
remove invalid-headers
test\n[`e3f6590`](https://github.com/JakeChampion/fetch/commit/e3f65907924b7692af7c08cd92044456bc92ad8b)\n-
Update lock.yml
permissions\n[`e97321b`](https://github.com/JakeChampion/fetch/commit/e97321bc081e80275397fc4c7a990791aa8b3524)\n\n###\n[`v3.6.6`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v366)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.5...v3.6.6)\n\n>
18 July 2023\n\n- fix: ignore not throw on invalid response
headers\n[`#930`](https://github.com/JakeChampion/fetch/issues/930)\n\n###\n[`v3.6.5`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v365)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.4...v3.6.5)\n\n>
18 July 2023\n\n- Add some missed methods which should be normalized as
uppercase\n[`a43b628`](https://github.com/JakeChampion/fetch/commit/a43b6283833c403230bb1a5238e2d7ac435c52da)\n-
Update caniuse link to use HTTPS and new
pattern\n[`fb5b0cf`](https://github.com/JakeChampion/fetch/commit/fb5b0cf42b470faf8c5448ab461d561f34380a30)\n\n###\n[`v3.6.4`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v364)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.3...v3.6.4)\n\n>
18 July 2023\n\n- always set a signal on
Request\n[`d1d09fb`](https://github.com/JakeChampion/fetch/commit/d1d09fb8039b4b8c7f2f5d6c844ea72d8a3cefe6)\n\n###\n[`v3.6.3`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v363)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.2...v3.6.3)\n\n>
18 July 2023\n\n- Compatible global equals to the
false\n[`7727e50`](https://github.com/JakeChampion/fetch/commit/7727e50493eafae9a7005f10f18f81e5bbcbfdd3)\n\n###\n[`v3.6.2`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#3620-2023-12-13)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.1...v3.6.2)\n\n#####
Bug Fixes\n\n- Response.error().ok ===
false\n([#&#8203;1412](https://github.com/JakeChampion/fetch/issues/1412))\n([27e1c75](https://github.com/JakeChampion/fetch/commit/27e1c75f830f0b70a40b511e03652776951aca75))\n\n###\n[`v3.6.1`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#3619-2023-09-11)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.0...v3.6.1)\n\n#####
Bug Fixes\n\n- Have unique error messages for xhr timeouts and
errors\n([#&#8203;1380](https://github.com/JakeChampion/fetch/issues/1380))\n([7170f0b](https://github.com/JakeChampion/fetch/commit/7170f0b127d16c5895aba61c9168482834809046))\n\n###\n[`v3.6.0`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v360)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.5.0...v3.6.0)\n\n>
18 February 2021\n\n- Fix statusText: undefined should give '' and null
should give
'null'\n[`b5c8bd0`](https://github.com/JakeChampion/fetch/commit/b5c8bd0fee1530f1c204cc5c68b427a3498dbdad)\n-
Represent non-stringified JSON request body as an \\[object
Object]\nstring\n[`5c6b055`](https://github.com/JakeChampion/fetch/commit/5c6b055e6ae6f718f416c94bfcdc89693d0abdcb)\n-
Fix eslint and eslint-plugin-github dependency
conflicts\n[`190e698`](https://github.com/JakeChampion/fetch/commit/190e698f8e737ad751a11de60f6b8b3301fa557b)\n\n###\n[`v3.5.0`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v350)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.4.1...v3.5.0)\n\n>
6 November 2020\n\n-
Fixes\n[#&#8203;748](https://github.com/github/fetch/issues/748)\n[`#748`](https://github.com/JakeChampion/fetch/issues/748)\n-
Create
lock.yml\n[`8767781`](https://github.com/JakeChampion/fetch/commit/87677811d543cfb44b124e026b50f710e95017ec)\n\n###\n[`v3.4.1`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v341)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.4.0...v3.4.1)\n\n>
7 September 2020\n\n- Add npmignore file to ensure we always publish the
dist
directory\n[`7ca02eb`](https://github.com/JakeChampion/fetch/commit/7ca02eb0234b0a61fd711d922b2e69d3c5390516)\n-
Make the clean task remove the dist directory and the default
task\ncreate
it\n[`fd23745`](https://github.com/JakeChampion/fetch/commit/fd23745f3474cd23d88e5128d8bc74813be1aff0)\n\n###\n[`v3.4.0`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v340)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.3.1...v3.4.0)\n\n>
7 August 2020\n\n- Use globalThis as the global object if it
exists\n[`96c2651`](https://github.com/JakeChampion/fetch/commit/96c26512608a0081d493df4fc17da4394bd1b410)\n\n###\n[`v3.3.1`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v331)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.3.0...v3.3.1)\n\n>
4 August 2020\n\n- rename variable to no longer shadow over function of
same
name\n[`c5db762`](https://github.com/JakeChampion/fetch/commit/c5db7621c3b1530683b8f706388d4ac210a2db02)\n-
remove semicolon to pass
linting\n[`f264aa5`](https://github.com/JakeChampion/fetch/commit/f264aa5704f7431c429ec16e6fdd3c7034c7f2d9)\n\n###\n[`v3.3.0`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v330)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.2.0...v3.3.0)\n\n>
4 August 2020\n\n- Make Response.arrayBuffer() always resolve with a
`ArrayBuffer`\n[`#801`](https://github.com/github/fetch/issues/801)\n-
Stop using top-level `this` to stop rollup
warning\n[`#802`](https://github.com/github/fetch/issues/802)\n-
Recommend an AbortController polyfill which is fully
synchronous\n[`#800`](https://github.com/github/fetch/issues/800)\n-
Add keepalive
caveat\n[`#780`](https://github.com/github/fetch/issues/780)\n-
Throw a TypeError if Request or Response functions are called
without\n`new`\n[`5ef028d`](https://github.com/JakeChampion/fetch/commit/5ef028d61f6c1543603cdacbe0f8a0f00d5957c0)\n-
If headers are passed in via a Record then do not normalise the
header\nnames as part of the
request\n[`b65ed60`](https://github.com/JakeChampion/fetch/commit/b65ed608604492d605df2d62cd4c5050e2a8d508)\n-
Update
fetch.js\n[`37b55c2`](https://github.com/JakeChampion/fetch/commit/37b55c27413b902cef4e629892424ae469fb1ea2)\n\n###\n[`v3.2.0`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v320)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.1.1...v3.2.0)\n\n>
9 July 2020\n\n- Detect if DOMException exists via typeof instead of
trying to call it\nand catching the exception which may get
thrown\n[`#724`](https://github.com/github/fetch/issues/724)\n-
use `this` if `self` is not
defined\n[`#657`](https://github.com/github/fetch/issues/657)\n-
create variable called `global` which is either `self` or
`this`\n[`a0783a5`](https://github.com/JakeChampion/fetch/commit/a0783a5571018191578cc08d5b3bac61a0b64562)\n-
Add support for no-cache and no-store via a cache-busting
querystring\nparameter\n[`a0dcd85`](https://github.com/JakeChampion/fetch/commit/a0dcd853f8ed29d06a022f92c87c303bd0e1f1bf)\n-
make global `this` correct when using
rollup\n[`6e9fc0e`](https://github.com/JakeChampion/fetch/commit/6e9fc0ee026dd89d864c3d176c57789ee5615114)\n\n###\n[`v3.1.1`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v311)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.1.0...v3.1.1)\n\n>
8 July 2020\n\n- check if Content-Type header exists prior to examining
the
value\n[`#792`](https://github.com/JakeChampion/fetch/pull/792)\n-
Move from Travis to GitHub
Actions\n[`#793`](https://github.com/JakeChampion/fetch/pull/793)\n\n###\n[`v3.1.0`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v310)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.0.1...v3.1.0)\n\n>
29 June
2020\n\n###\n[`v3.0.1`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v301)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.0.0...v3.0.1)\n\n>
8 July 2020\n\n- check if Content-Type header exists prior to examining
the
value\n[`#792`](https://github.com/JakeChampion/fetch/pull/792)\n-
Move from Travis to GitHub
Actions\n[`#793`](https://github.com/JakeChampion/fetch/pull/793)\n-
Co-authored-by: Jake Champion
\\<me@jakechampion.name>\n[`#575`](https://github.com/JakeChampion/fetch/pull/575)\n-
work around IE XHR bug with '' URL
Fixes\n[#&#8203;618](https://github.com/github/fetch/issues/618)\n[`#619`](https://github.com/JakeChampion/fetch/pull/619)\n-
Allow exclamation mark as valid header
character\n[`#745`](https://github.com/JakeChampion/fetch/pull/745)\n-
Avoid blob conversion for specific
requests\n[`#752`](https://github.com/JakeChampion/fetch/pull/752)\n-
Compatibility for fetch-mock using
proxy-pollyfill\n[`#736`](https://github.com/JakeChampion/fetch/pull/736)\n-
Change default statusText for
Response\n[`#698`](https://github.com/JakeChampion/fetch/pull/698)\n-
Document more common pitfalls in the
README\n[`#734`](https://github.com/JakeChampion/fetch/pull/734)\n-
field name can not by
empty\n[`#684`](https://github.com/JakeChampion/fetch/pull/684)\n-
work around IE XHR bug with '' URL
Fixes\n[#&#8203;618](https://github.com/github/fetch/issues/618)\n([#&#8203;619](https://github.com/github/fetch/issues/619))\n[`#618`](https://github.com/JakeChampion/fetch/issues/618)\n-
Clarify what parts of the standard we don't want to
implement\n[`#661`](https://github.com/JakeChampion/fetch/issues/661)\n-
Document more
caveats\n[`9a0bce2`](https://github.com/JakeChampion/fetch/commit/9a0bce23454cdd5beefd9d4c599664003573e581)\n-
Fix
issue\n[#&#8203;533](https://github.com/github/fetch/issues/533)\n[`7f030fa`](https://github.com/JakeChampion/fetch/commit/7f030fab4d79433204331cefe365f5fbbab9e992)\n-
Compatibility with newer
eslint-plugin-github\n[`1821b74`](https://github.com/JakeChampion/fetch/commit/1821b74b808152d4d6e787c21165f2d569c2a7c4)\n\n#####\n[v3.0.0](https://github.com/JakeChampion/fetch/compare/v2.0.4...v3.0.0)\n\n>
7 September 2018\n\n- Add flow
definitions\n[`#654`](https://github.com/JakeChampion/fetch/pull/654)\n-
Match spec behavior re: unsupported body
type\n[`#651`](https://github.com/JakeChampion/fetch/pull/651)\n-
Update Karma and detect available browsers when
testing\n[`#652`](https://github.com/JakeChampion/fetch/pull/652)\n-
Adopt Contributor Covenant Code of
Conduct\n[`#649`](https://github.com/JakeChampion/fetch/pull/649)\n-
Change `credentials` default value to
`same-origin`\n[`#640`](https://github.com/JakeChampion/fetch/pull/640)\n-
Switch test suite from PhantomJS to
Karma\n[`#626`](https://github.com/JakeChampion/fetch/pull/626)\n-
Support abort
API\n[`#592`](https://github.com/JakeChampion/fetch/pull/592)\n-
build/distribute as
UMD\n[`#616`](https://github.com/JakeChampion/fetch/pull/616)\n-
Test signal reuse. Add AbortSignal
polyfill.\n[`#2`](https://github.com/JakeChampion/fetch/pull/2)\n-
Clear abort event listener for all xhr completion
states.\n[`#1`](https://github.com/JakeChampion/fetch/pull/1)\n-
Expand install & importing
documentation\n[`#569`](https://github.com/JakeChampion/fetch/issues/569)\n-
Match spec behavior re: unsupported body
type\n[`#576`](https://github.com/JakeChampion/fetch/issues/576)\n-
Run test files through
prettier\n[`0a57487`](https://github.com/JakeChampion/fetch/commit/0a5748775d99f882172375693f56761383f8faf3)\n-
Unwrap `fetch.js` to be a clean module
file\n[`8aec47c`](https://github.com/JakeChampion/fetch/commit/8aec47cb6c67a9a321f1eb07457f70fc46235610)\n-
Switch from PhantomJS to Karma + Chrome/Firefox for
testing\n[`b539589`](https://github.com/JakeChampion/fetch/commit/b53958904649bfeb784083b9b7e0b89902c7d30e)\n\n</details>\n\n---\n\n###
Configuration\n\n📅 **Schedule**: Branch creation - At any time (no
schedule defined),\nAutomerge - At any time (no schedule defined).\n\n🚦
**Automerge**: Disabled by config. Please merge this manually once
you\nare satisfied.\n\n♻ **Rebasing**: Whenever PR becomes conflicted,
or you tick the\nrebase/retry checkbox.\n\n🔕 **Ignore**: Close this PR
and you won't be reminded about this update\nagain.\n\n---\n\n- [ ] If
you want to rebase/retry this PR, check\nthis box\n\n---\n\nThis PR has
been generated by
[Renovate\nBot](https://github.com/renovatebot/renovate).\n\n\n\nCo-authored-by:
elastic-renovate-prod[bot]
<174716857+elastic-renovate-prod[bot]@users.noreply.github.com>\nCo-authored-by:
Brad White
<brad.white@elastic.co>","sha":"e49ec1082a6d7847afc05dbb6e817d7fe225d628"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/206179","number":206179,"mergeCommit":{"message":"Update
dependency whatwg-fetch to ^3.6.20 (main) (#206179)\n\nThis PR contains
the following updates:\n\n| Package | Type | Update | Change
|\n|---|---|---|---|\n|
[whatwg-fetch](https://github.com/github/fetch) |\ndependencies
| minor | [`^3.0.0`
->\n`^3.6.20`](https://renovatebot.com/diffs/npm/whatwg-fetch/3.0.0/3.6.20)\n|\n\n---\n\n###
Release Notes\n\n<details>\n<summary>github/fetch
(whatwg-fetch)</summary>\n\n###\n[`v3.6.20`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#3620-2023-12-13)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.19...v3.6.20)\n\n#####
Bug Fixes\n\n- Response.error().ok ===
false\n([#&#8203;1412](https://github.com/JakeChampion/fetch/issues/1412))\n([27e1c75](https://github.com/JakeChampion/fetch/commit/27e1c75f830f0b70a40b511e03652776951aca75))\n\n###\n[`v3.6.19`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#3619-2023-09-11)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.18...v3.6.19)\n\n#####
Bug Fixes\n\n- Have unique error messages for xhr timeouts and
errors\n([#&#8203;1380](https://github.com/JakeChampion/fetch/issues/1380))\n([7170f0b](https://github.com/JakeChampion/fetch/commit/7170f0b127d16c5895aba61c9168482834809046))\n\n###\n[`v3.6.18`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3618)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.17...v3.6.18)\n\n-
Fix - File fetching broken since
commit\n[`0c1d2b9`](https://github.com/github/fetch/commit/0c1d2b9)\n[`#1375`](https://github.com/JakeChampion/fetch/pull/1375)\n-
Remove broken
links\n[`1dc07c6`](https://github.com/JakeChampion/fetch/commit/1dc07c6064a32e989306fb2324204c56c93140fe)\n-
automatically generate a
changelog\n[`0e7d1dd`](https://github.com/JakeChampion/fetch/commit/0e7d1dd95826b3b76510f0832784207f2609145e)\n\n###\n[`v3.6.17`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3617)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.16...v3.6.17)\n\n>
20 July 2023\n\n- Revert
\"Resolves\n[https://github.com/JakeChampion/fetch/issues/928](https://github.com/JakeChampion/fetch/issues/928)\"\n[`#928`](https://github.com/JakeChampion/fetch/issues/928)\n\n###\n[`v3.6.16`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3616)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.15...v3.6.16)\n\n>
18 July 2023\n\n-
Resolves\n[https://github.com/JakeChampion/fetch/issues/928](https://github.com/JakeChampion/fetch/issues/928)\n[`#928`](https://github.com/JakeChampion/fetch/issues/928)\n\n###\n[`v3.6.15`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3615)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.14...v3.6.15)\n\n>
18 July 2023\n\n-
fix\n[https://github.com/JakeChampion/fetch/issues/997](https://github.com/JakeChampion/fetch/issues/997)\n[`#997`](https://github.com/JakeChampion/fetch/issues/997)\n\n###\n[`v3.6.14`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3614)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.13...v3.6.14)\n\n>
18 July 2023\n\n-
Fix\n[https://github.com/JakeChampion/fetch/issues/1076](https://github.com/JakeChampion/fetch/issues/1076)\n[`#1076`](https://github.com/JakeChampion/fetch/issues/1076)\n\n###\n[`v3.6.13`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3613)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.12...v3.6.13)\n\n>
18 July 2023\n\n- respect charset within
readBlobAsText\n[`#1059`](https://github.com/JakeChampion/fetch/issues/1059)\n\n###\n[`v3.6.12`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3612)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.11...v3.6.12)\n\n>
18 July 2023\n\n- fix: Headers only accepts array which have nested
array of length
2\n[`#1235`](https://github.com/JakeChampion/fetch/issues/1235)\n\n###\n[`v3.6.11`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3611)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.10...v3.6.11)\n\n>
18 July 2023\n\n- Define Body.arrayBuffer even if support.blob is
false\n[`#992`](https://github.com/JakeChampion/fetch/issues/992)\n\n###\n[`v3.6.10`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3610)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.9...v3.6.10)\n\n>
18 July 2023\n\n- use globals if they
exist\n[`dffc542`](https://github.com/JakeChampion/fetch/commit/dffc542fe7140f35ee7fec29e3da67f3bf080910)\n\n###\n[`v3.6.9`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v369)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.8...v3.6.9)\n\n>
18 July 2023\n\n- fix: when no body supplied, do not set bodyUsed to
true\n[`7d92dff`](https://github.com/JakeChampion/fetch/commit/7d92dff12d7c4058b57c7e77adeb0a76ffab639f)\n\n###\n[`v3.6.8`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v368)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.7...v3.6.8)\n\n>
18 July 2023\n\n- validate status is in
range\n[`#1213`](https://github.com/JakeChampion/fetch/issues/1213)\n\n###\n[`v3.6.7`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v367)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.6...v3.6.7)\n\n>
18 July 2023\n\n- dont shadow
`global`\n[`#1026`](https://github.com/JakeChampion/fetch/issues/1026)\n-
dont use github
eslint\n[`408d3b6`](https://github.com/JakeChampion/fetch/commit/408d3b60e27abef325dd898d899430c46a0012b2)\n-
remove invalid-headers
test\n[`e3f6590`](https://github.com/JakeChampion/fetch/commit/e3f65907924b7692af7c08cd92044456bc92ad8b)\n-
Update lock.yml
permissions\n[`e97321b`](https://github.com/JakeChampion/fetch/commit/e97321bc081e80275397fc4c7a990791aa8b3524)\n\n###\n[`v3.6.6`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v366)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.5...v3.6.6)\n\n>
18 July 2023\n\n- fix: ignore not throw on invalid response
headers\n[`#930`](https://github.com/JakeChampion/fetch/issues/930)\n\n###\n[`v3.6.5`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v365)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.4...v3.6.5)\n\n>
18 July 2023\n\n- Add some missed methods which should be normalized as
uppercase\n[`a43b628`](https://github.com/JakeChampion/fetch/commit/a43b6283833c403230bb1a5238e2d7ac435c52da)\n-
Update caniuse link to use HTTPS and new
pattern\n[`fb5b0cf`](https://github.com/JakeChampion/fetch/commit/fb5b0cf42b470faf8c5448ab461d561f34380a30)\n\n###\n[`v3.6.4`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v364)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.3...v3.6.4)\n\n>
18 July 2023\n\n- always set a signal on
Request\n[`d1d09fb`](https://github.com/JakeChampion/fetch/commit/d1d09fb8039b4b8c7f2f5d6c844ea72d8a3cefe6)\n\n###\n[`v3.6.3`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v363)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.2...v3.6.3)\n\n>
18 July 2023\n\n- Compatible global equals to the
false\n[`7727e50`](https://github.com/JakeChampion/fetch/commit/7727e50493eafae9a7005f10f18f81e5bbcbfdd3)\n\n###\n[`v3.6.2`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#3620-2023-12-13)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.1...v3.6.2)\n\n#####
Bug Fixes\n\n- Response.error().ok ===
false\n([#&#8203;1412](https://github.com/JakeChampion/fetch/issues/1412))\n([27e1c75](https://github.com/JakeChampion/fetch/commit/27e1c75f830f0b70a40b511e03652776951aca75))\n\n###\n[`v3.6.1`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#3619-2023-09-11)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.0...v3.6.1)\n\n#####
Bug Fixes\n\n- Have unique error messages for xhr timeouts and
errors\n([#&#8203;1380](https://github.com/JakeChampion/fetch/issues/1380))\n([7170f0b](https://github.com/JakeChampion/fetch/commit/7170f0b127d16c5895aba61c9168482834809046))\n\n###\n[`v3.6.0`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v360)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.5.0...v3.6.0)\n\n>
18 February 2021\n\n- Fix statusText: undefined should give '' and null
should give
'null'\n[`b5c8bd0`](https://github.com/JakeChampion/fetch/commit/b5c8bd0fee1530f1c204cc5c68b427a3498dbdad)\n-
Represent non-stringified JSON request body as an \\[object
Object]\nstring\n[`5c6b055`](https://github.com/JakeChampion/fetch/commit/5c6b055e6ae6f718f416c94bfcdc89693d0abdcb)\n-
Fix eslint and eslint-plugin-github dependency
conflicts\n[`190e698`](https://github.com/JakeChampion/fetch/commit/190e698f8e737ad751a11de60f6b8b3301fa557b)\n\n###\n[`v3.5.0`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v350)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.4.1...v3.5.0)\n\n>
6 November 2020\n\n-
Fixes\n[#&#8203;748](https://github.com/github/fetch/issues/748)\n[`#748`](https://github.com/JakeChampion/fetch/issues/748)\n-
Create
lock.yml\n[`8767781`](https://github.com/JakeChampion/fetch/commit/87677811d543cfb44b124e026b50f710e95017ec)\n\n###\n[`v3.4.1`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v341)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.4.0...v3.4.1)\n\n>
7 September 2020\n\n- Add npmignore file to ensure we always publish the
dist
directory\n[`7ca02eb`](https://github.com/JakeChampion/fetch/commit/7ca02eb0234b0a61fd711d922b2e69d3c5390516)\n-
Make the clean task remove the dist directory and the default
task\ncreate
it\n[`fd23745`](https://github.com/JakeChampion/fetch/commit/fd23745f3474cd23d88e5128d8bc74813be1aff0)\n\n###\n[`v3.4.0`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v340)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.3.1...v3.4.0)\n\n>
7 August 2020\n\n- Use globalThis as the global object if it
exists\n[`96c2651`](https://github.com/JakeChampion/fetch/commit/96c26512608a0081d493df4fc17da4394bd1b410)\n\n###\n[`v3.3.1`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v331)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.3.0...v3.3.1)\n\n>
4 August 2020\n\n- rename variable to no longer shadow over function of
same
name\n[`c5db762`](https://github.com/JakeChampion/fetch/commit/c5db7621c3b1530683b8f706388d4ac210a2db02)\n-
remove semicolon to pass
linting\n[`f264aa5`](https://github.com/JakeChampion/fetch/commit/f264aa5704f7431c429ec16e6fdd3c7034c7f2d9)\n\n###\n[`v3.3.0`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v330)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.2.0...v3.3.0)\n\n>
4 August 2020\n\n- Make Response.arrayBuffer() always resolve with a
`ArrayBuffer`\n[`#801`](https://github.com/github/fetch/issues/801)\n-
Stop using top-level `this` to stop rollup
warning\n[`#802`](https://github.com/github/fetch/issues/802)\n-
Recommend an AbortController polyfill which is fully
synchronous\n[`#800`](https://github.com/github/fetch/issues/800)\n-
Add keepalive
caveat\n[`#780`](https://github.com/github/fetch/issues/780)\n-
Throw a TypeError if Request or Response functions are called
without\n`new`\n[`5ef028d`](https://github.com/JakeChampion/fetch/commit/5ef028d61f6c1543603cdacbe0f8a0f00d5957c0)\n-
If headers are passed in via a Record then do not normalise the
header\nnames as part of the
request\n[`b65ed60`](https://github.com/JakeChampion/fetch/commit/b65ed608604492d605df2d62cd4c5050e2a8d508)\n-
Update
fetch.js\n[`37b55c2`](https://github.com/JakeChampion/fetch/commit/37b55c27413b902cef4e629892424ae469fb1ea2)\n\n###\n[`v3.2.0`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v320)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.1.1...v3.2.0)\n\n>
9 July 2020\n\n- Detect if DOMException exists via typeof instead of
trying to call it\nand catching the exception which may get
thrown\n[`#724`](https://github.com/github/fetch/issues/724)\n-
use `this` if `self` is not
defined\n[`#657`](https://github.com/github/fetch/issues/657)\n-
create variable called `global` which is either `self` or
`this`\n[`a0783a5`](https://github.com/JakeChampion/fetch/commit/a0783a5571018191578cc08d5b3bac61a0b64562)\n-
Add support for no-cache and no-store via a cache-busting
querystring\nparameter\n[`a0dcd85`](https://github.com/JakeChampion/fetch/commit/a0dcd853f8ed29d06a022f92c87c303bd0e1f1bf)\n-
make global `this` correct when using
rollup\n[`6e9fc0e`](https://github.com/JakeChampion/fetch/commit/6e9fc0ee026dd89d864c3d176c57789ee5615114)\n\n###\n[`v3.1.1`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v311)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.1.0...v3.1.1)\n\n>
8 July 2020\n\n- check if Content-Type header exists prior to examining
the
value\n[`#792`](https://github.com/JakeChampion/fetch/pull/792)\n-
Move from Travis to GitHub
Actions\n[`#793`](https://github.com/JakeChampion/fetch/pull/793)\n\n###\n[`v3.1.0`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v310)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.0.1...v3.1.0)\n\n>
29 June
2020\n\n###\n[`v3.0.1`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v301)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.0.0...v3.0.1)\n\n>
8 July 2020\n\n- check if Content-Type header exists prior to examining
the
value\n[`#792`](https://github.com/JakeChampion/fetch/pull/792)\n-
Move from Travis to GitHub
Actions\n[`#793`](https://github.com/JakeChampion/fetch/pull/793)\n-
Co-authored-by: Jake Champion
\\<me@jakechampion.name>\n[`#575`](https://github.com/JakeChampion/fetch/pull/575)\n-
work around IE XHR bug with '' URL
Fixes\n[#&#8203;618](https://github.com/github/fetch/issues/618)\n[`#619`](https://github.com/JakeChampion/fetch/pull/619)\n-
Allow exclamation mark as valid header
character\n[`#745`](https://github.com/JakeChampion/fetch/pull/745)\n-
Avoid blob conversion for specific
requests\n[`#752`](https://github.com/JakeChampion/fetch/pull/752)\n-
Compatibility for fetch-mock using
proxy-pollyfill\n[`#736`](https://github.com/JakeChampion/fetch/pull/736)\n-
Change default statusText for
Response\n[`#698`](https://github.com/JakeChampion/fetch/pull/698)\n-
Document more common pitfalls in the
README\n[`#734`](https://github.com/JakeChampion/fetch/pull/734)\n-
field name can not by
empty\n[`#684`](https://github.com/JakeChampion/fetch/pull/684)\n-
work around IE XHR bug with '' URL
Fixes\n[#&#8203;618](https://github.com/github/fetch/issues/618)\n([#&#8203;619](https://github.com/github/fetch/issues/619))\n[`#618`](https://github.com/JakeChampion/fetch/issues/618)\n-
Clarify what parts of the standard we don't want to
implement\n[`#661`](https://github.com/JakeChampion/fetch/issues/661)\n-
Document more
caveats\n[`9a0bce2`](https://github.com/JakeChampion/fetch/commit/9a0bce23454cdd5beefd9d4c599664003573e581)\n-
Fix
issue\n[#&#8203;533](https://github.com/github/fetch/issues/533)\n[`7f030fa`](https://github.com/JakeChampion/fetch/commit/7f030fab4d79433204331cefe365f5fbbab9e992)\n-
Compatibility with newer
eslint-plugin-github\n[`1821b74`](https://github.com/JakeChampion/fetch/commit/1821b74b808152d4d6e787c21165f2d569c2a7c4)\n\n#####\n[v3.0.0](https://github.com/JakeChampion/fetch/compare/v2.0.4...v3.0.0)\n\n>
7 September 2018\n\n- Add flow
definitions\n[`#654`](https://github.com/JakeChampion/fetch/pull/654)\n-
Match spec behavior re: unsupported body
type\n[`#651`](https://github.com/JakeChampion/fetch/pull/651)\n-
Update Karma and detect available browsers when
testing\n[`#652`](https://github.com/JakeChampion/fetch/pull/652)\n-
Adopt Contributor Covenant Code of
Conduct\n[`#649`](https://github.com/JakeChampion/fetch/pull/649)\n-
Change `credentials` default value to
`same-origin`\n[`#640`](https://github.com/JakeChampion/fetch/pull/640)\n-
Switch test suite from PhantomJS to
Karma\n[`#626`](https://github.com/JakeChampion/fetch/pull/626)\n-
Support abort
API\n[`#592`](https://github.com/JakeChampion/fetch/pull/592)\n-
build/distribute as
UMD\n[`#616`](https://github.com/JakeChampion/fetch/pull/616)\n-
Test signal reuse. Add AbortSignal
polyfill.\n[`#2`](https://github.com/JakeChampion/fetch/pull/2)\n-
Clear abort event listener for all xhr completion
states.\n[`#1`](https://github.com/JakeChampion/fetch/pull/1)\n-
Expand install & importing
documentation\n[`#569`](https://github.com/JakeChampion/fetch/issues/569)\n-
Match spec behavior re: unsupported body
type\n[`#576`](https://github.com/JakeChampion/fetch/issues/576)\n-
Run test files through
prettier\n[`0a57487`](https://github.com/JakeChampion/fetch/commit/0a5748775d99f882172375693f56761383f8faf3)\n-
Unwrap `fetch.js` to be a clean module
file\n[`8aec47c`](https://github.com/JakeChampion/fetch/commit/8aec47cb6c67a9a321f1eb07457f70fc46235610)\n-
Switch from PhantomJS to Karma + Chrome/Firefox for
testing\n[`b539589`](https://github.com/JakeChampion/fetch/commit/b53958904649bfeb784083b9b7e0b89902c7d30e)\n\n</details>\n\n---\n\n###
Configuration\n\n📅 **Schedule**: Branch creation - At any time (no
schedule defined),\nAutomerge - At any time (no schedule defined).\n\n🚦
**Automerge**: Disabled by config. Please merge this manually once
you\nare satisfied.\n\n♻ **Rebasing**: Whenever PR becomes conflicted,
or you tick the\nrebase/retry checkbox.\n\n🔕 **Ignore**: Close this PR
and you won't be reminded about this update\nagain.\n\n---\n\n- [ ] If
you want to rebase/retry this PR, check\nthis box\n\n---\n\nThis PR has
been generated by
[Renovate\nBot](https://github.com/renovatebot/renovate).\n\n\n\nCo-authored-by:
elastic-renovate-prod[bot]
<174716857+elastic-renovate-prod[bot]@users.noreply.github.com>\nCo-authored-by:
Brad White
<brad.white@elastic.co>","sha":"e49ec1082a6d7847afc05dbb6e817d7fe225d628"}}]}]
BACKPORT-->

Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>
Co-authored-by: Brad White <brad.white@elastic.co>
banderror pushed a commit that referenced this pull request Aug 13, 2025
…) (elastic#222642)

# Backport

This will backport the following commits from `main` to `8.18`:
- [Update dependency whatwg-fetch to ^3.6.20 (main)
(#206179)](https://github.com/elastic/kibana/pull/206179)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT
[{"author":{"name":"elastic-renovate-prod[bot]","email":"174716857+elastic-renovate-prod[bot]@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-06-04T19:29:03Z","message":"Update
dependency whatwg-fetch to ^3.6.20 (main) (#206179)\n\nThis PR contains
the following updates:\n\n| Package | Type | Update | Change
|\n|---|---|---|---|\n|
[whatwg-fetch](https://github.com/github/fetch) |\ndependencies
| minor | [`^3.0.0`
->\n`^3.6.20`](https://renovatebot.com/diffs/npm/whatwg-fetch/3.0.0/3.6.20)\n|\n\n---\n\n###
Release Notes\n\n<details>\n<summary>github/fetch
(whatwg-fetch)</summary>\n\n###\n[`v3.6.20`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#3620-2023-12-13)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.19...v3.6.20)\n\n#####
Bug Fixes\n\n- Response.error().ok ===
false\n([#&#8203;1412](https://github.com/JakeChampion/fetch/issues/1412))\n([27e1c75](https://github.com/JakeChampion/fetch/commit/27e1c75f830f0b70a40b511e03652776951aca75))\n\n###\n[`v3.6.19`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#3619-2023-09-11)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.18...v3.6.19)\n\n#####
Bug Fixes\n\n- Have unique error messages for xhr timeouts and
errors\n([#&#8203;1380](https://github.com/JakeChampion/fetch/issues/1380))\n([7170f0b](https://github.com/JakeChampion/fetch/commit/7170f0b127d16c5895aba61c9168482834809046))\n\n###\n[`v3.6.18`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3618)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.17...v3.6.18)\n\n-
Fix - File fetching broken since
commit\n[`0c1d2b9`](https://github.com/github/fetch/commit/0c1d2b9)\n[`#1375`](https://github.com/JakeChampion/fetch/pull/1375)\n-
Remove broken
links\n[`1dc07c6`](https://github.com/JakeChampion/fetch/commit/1dc07c6064a32e989306fb2324204c56c93140fe)\n-
automatically generate a
changelog\n[`0e7d1dd`](https://github.com/JakeChampion/fetch/commit/0e7d1dd95826b3b76510f0832784207f2609145e)\n\n###\n[`v3.6.17`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3617)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.16...v3.6.17)\n\n>
20 July 2023\n\n- Revert
\"Resolves\n[https://github.com/JakeChampion/fetch/issues/928](https://github.com/JakeChampion/fetch/issues/928)\"\n[`#928`](https://github.com/JakeChampion/fetch/issues/928)\n\n###\n[`v3.6.16`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3616)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.15...v3.6.16)\n\n>
18 July 2023\n\n-
Resolves\n[https://github.com/JakeChampion/fetch/issues/928](https://github.com/JakeChampion/fetch/issues/928)\n[`#928`](https://github.com/JakeChampion/fetch/issues/928)\n\n###\n[`v3.6.15`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3615)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.14...v3.6.15)\n\n>
18 July 2023\n\n-
fix\n[https://github.com/JakeChampion/fetch/issues/997](https://github.com/JakeChampion/fetch/issues/997)\n[`#997`](https://github.com/JakeChampion/fetch/issues/997)\n\n###\n[`v3.6.14`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3614)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.13...v3.6.14)\n\n>
18 July 2023\n\n-
Fix\n[https://github.com/JakeChampion/fetch/issues/1076](https://github.com/JakeChampion/fetch/issues/1076)\n[`#1076`](https://github.com/JakeChampion/fetch/issues/1076)\n\n###\n[`v3.6.13`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3613)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.12...v3.6.13)\n\n>
18 July 2023\n\n- respect charset within
readBlobAsText\n[`#1059`](https://github.com/JakeChampion/fetch/issues/1059)\n\n###\n[`v3.6.12`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3612)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.11...v3.6.12)\n\n>
18 July 2023\n\n- fix: Headers only accepts array which have nested
array of length
2\n[`#1235`](https://github.com/JakeChampion/fetch/issues/1235)\n\n###\n[`v3.6.11`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3611)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.10...v3.6.11)\n\n>
18 July 2023\n\n- Define Body.arrayBuffer even if support.blob is
false\n[`#992`](https://github.com/JakeChampion/fetch/issues/992)\n\n###\n[`v3.6.10`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3610)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.9...v3.6.10)\n\n>
18 July 2023\n\n- use globals if they
exist\n[`dffc542`](https://github.com/JakeChampion/fetch/commit/dffc542fe7140f35ee7fec29e3da67f3bf080910)\n\n###\n[`v3.6.9`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v369)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.8...v3.6.9)\n\n>
18 July 2023\n\n- fix: when no body supplied, do not set bodyUsed to
true\n[`7d92dff`](https://github.com/JakeChampion/fetch/commit/7d92dff12d7c4058b57c7e77adeb0a76ffab639f)\n\n###\n[`v3.6.8`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v368)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.7...v3.6.8)\n\n>
18 July 2023\n\n- validate status is in
range\n[`#1213`](https://github.com/JakeChampion/fetch/issues/1213)\n\n###\n[`v3.6.7`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v367)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.6...v3.6.7)\n\n>
18 July 2023\n\n- dont shadow
`global`\n[`#1026`](https://github.com/JakeChampion/fetch/issues/1026)\n-
dont use github
eslint\n[`408d3b6`](https://github.com/JakeChampion/fetch/commit/408d3b60e27abef325dd898d899430c46a0012b2)\n-
remove invalid-headers
test\n[`e3f6590`](https://github.com/JakeChampion/fetch/commit/e3f65907924b7692af7c08cd92044456bc92ad8b)\n-
Update lock.yml
permissions\n[`e97321b`](https://github.com/JakeChampion/fetch/commit/e97321bc081e80275397fc4c7a990791aa8b3524)\n\n###\n[`v3.6.6`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v366)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.5...v3.6.6)\n\n>
18 July 2023\n\n- fix: ignore not throw on invalid response
headers\n[`#930`](https://github.com/JakeChampion/fetch/issues/930)\n\n###\n[`v3.6.5`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v365)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.4...v3.6.5)\n\n>
18 July 2023\n\n- Add some missed methods which should be normalized as
uppercase\n[`a43b628`](https://github.com/JakeChampion/fetch/commit/a43b6283833c403230bb1a5238e2d7ac435c52da)\n-
Update caniuse link to use HTTPS and new
pattern\n[`fb5b0cf`](https://github.com/JakeChampion/fetch/commit/fb5b0cf42b470faf8c5448ab461d561f34380a30)\n\n###\n[`v3.6.4`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v364)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.3...v3.6.4)\n\n>
18 July 2023\n\n- always set a signal on
Request\n[`d1d09fb`](https://github.com/JakeChampion/fetch/commit/d1d09fb8039b4b8c7f2f5d6c844ea72d8a3cefe6)\n\n###\n[`v3.6.3`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v363)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.2...v3.6.3)\n\n>
18 July 2023\n\n- Compatible global equals to the
false\n[`7727e50`](https://github.com/JakeChampion/fetch/commit/7727e50493eafae9a7005f10f18f81e5bbcbfdd3)\n\n###\n[`v3.6.2`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#3620-2023-12-13)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.1...v3.6.2)\n\n#####
Bug Fixes\n\n- Response.error().ok ===
false\n([#&#8203;1412](https://github.com/JakeChampion/fetch/issues/1412))\n([27e1c75](https://github.com/JakeChampion/fetch/commit/27e1c75f830f0b70a40b511e03652776951aca75))\n\n###\n[`v3.6.1`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#3619-2023-09-11)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.0...v3.6.1)\n\n#####
Bug Fixes\n\n- Have unique error messages for xhr timeouts and
errors\n([#&#8203;1380](https://github.com/JakeChampion/fetch/issues/1380))\n([7170f0b](https://github.com/JakeChampion/fetch/commit/7170f0b127d16c5895aba61c9168482834809046))\n\n###\n[`v3.6.0`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v360)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.5.0...v3.6.0)\n\n>
18 February 2021\n\n- Fix statusText: undefined should give '' and null
should give
'null'\n[`b5c8bd0`](https://github.com/JakeChampion/fetch/commit/b5c8bd0fee1530f1c204cc5c68b427a3498dbdad)\n-
Represent non-stringified JSON request body as an \\[object
Object]\nstring\n[`5c6b055`](https://github.com/JakeChampion/fetch/commit/5c6b055e6ae6f718f416c94bfcdc89693d0abdcb)\n-
Fix eslint and eslint-plugin-github dependency
conflicts\n[`190e698`](https://github.com/JakeChampion/fetch/commit/190e698f8e737ad751a11de60f6b8b3301fa557b)\n\n###\n[`v3.5.0`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v350)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.4.1...v3.5.0)\n\n>
6 November 2020\n\n-
Fixes\n[#&#8203;748](https://github.com/github/fetch/issues/748)\n[`#748`](https://github.com/JakeChampion/fetch/issues/748)\n-
Create
lock.yml\n[`8767781`](https://github.com/JakeChampion/fetch/commit/87677811d543cfb44b124e026b50f710e95017ec)\n\n###\n[`v3.4.1`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v341)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.4.0...v3.4.1)\n\n>
7 September 2020\n\n- Add npmignore file to ensure we always publish the
dist
directory\n[`7ca02eb`](https://github.com/JakeChampion/fetch/commit/7ca02eb0234b0a61fd711d922b2e69d3c5390516)\n-
Make the clean task remove the dist directory and the default
task\ncreate
it\n[`fd23745`](https://github.com/JakeChampion/fetch/commit/fd23745f3474cd23d88e5128d8bc74813be1aff0)\n\n###\n[`v3.4.0`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v340)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.3.1...v3.4.0)\n\n>
7 August 2020\n\n- Use globalThis as the global object if it
exists\n[`96c2651`](https://github.com/JakeChampion/fetch/commit/96c26512608a0081d493df4fc17da4394bd1b410)\n\n###\n[`v3.3.1`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v331)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.3.0...v3.3.1)\n\n>
4 August 2020\n\n- rename variable to no longer shadow over function of
same
name\n[`c5db762`](https://github.com/JakeChampion/fetch/commit/c5db7621c3b1530683b8f706388d4ac210a2db02)\n-
remove semicolon to pass
linting\n[`f264aa5`](https://github.com/JakeChampion/fetch/commit/f264aa5704f7431c429ec16e6fdd3c7034c7f2d9)\n\n###\n[`v3.3.0`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v330)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.2.0...v3.3.0)\n\n>
4 August 2020\n\n- Make Response.arrayBuffer() always resolve with a
`ArrayBuffer`\n[`#801`](https://github.com/github/fetch/issues/801)\n-
Stop using top-level `this` to stop rollup
warning\n[`#802`](https://github.com/github/fetch/issues/802)\n-
Recommend an AbortController polyfill which is fully
synchronous\n[`#800`](https://github.com/github/fetch/issues/800)\n-
Add keepalive
caveat\n[`#780`](https://github.com/github/fetch/issues/780)\n-
Throw a TypeError if Request or Response functions are called
without\n`new`\n[`5ef028d`](https://github.com/JakeChampion/fetch/commit/5ef028d61f6c1543603cdacbe0f8a0f00d5957c0)\n-
If headers are passed in via a Record then do not normalise the
header\nnames as part of the
request\n[`b65ed60`](https://github.com/JakeChampion/fetch/commit/b65ed608604492d605df2d62cd4c5050e2a8d508)\n-
Update
fetch.js\n[`37b55c2`](https://github.com/JakeChampion/fetch/commit/37b55c27413b902cef4e629892424ae469fb1ea2)\n\n###\n[`v3.2.0`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v320)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.1.1...v3.2.0)\n\n>
9 July 2020\n\n- Detect if DOMException exists via typeof instead of
trying to call it\nand catching the exception which may get
thrown\n[`#724`](https://github.com/github/fetch/issues/724)\n-
use `this` if `self` is not
defined\n[`#657`](https://github.com/github/fetch/issues/657)\n-
create variable called `global` which is either `self` or
`this`\n[`a0783a5`](https://github.com/JakeChampion/fetch/commit/a0783a5571018191578cc08d5b3bac61a0b64562)\n-
Add support for no-cache and no-store via a cache-busting
querystring\nparameter\n[`a0dcd85`](https://github.com/JakeChampion/fetch/commit/a0dcd853f8ed29d06a022f92c87c303bd0e1f1bf)\n-
make global `this` correct when using
rollup\n[`6e9fc0e`](https://github.com/JakeChampion/fetch/commit/6e9fc0ee026dd89d864c3d176c57789ee5615114)\n\n###\n[`v3.1.1`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v311)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.1.0...v3.1.1)\n\n>
8 July 2020\n\n- check if Content-Type header exists prior to examining
the
value\n[`#792`](https://github.com/JakeChampion/fetch/pull/792)\n-
Move from Travis to GitHub
Actions\n[`#793`](https://github.com/JakeChampion/fetch/pull/793)\n\n###\n[`v3.1.0`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v310)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.0.1...v3.1.0)\n\n>
29 June
2020\n\n###\n[`v3.0.1`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v301)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.0.0...v3.0.1)\n\n>
8 July 2020\n\n- check if Content-Type header exists prior to examining
the
value\n[`#792`](https://github.com/JakeChampion/fetch/pull/792)\n-
Move from Travis to GitHub
Actions\n[`#793`](https://github.com/JakeChampion/fetch/pull/793)\n-
Co-authored-by: Jake Champion
\\<me@jakechampion.name>\n[`#575`](https://github.com/JakeChampion/fetch/pull/575)\n-
work around IE XHR bug with '' URL
Fixes\n[#&#8203;618](https://github.com/github/fetch/issues/618)\n[`#619`](https://github.com/JakeChampion/fetch/pull/619)\n-
Allow exclamation mark as valid header
character\n[`#745`](https://github.com/JakeChampion/fetch/pull/745)\n-
Avoid blob conversion for specific
requests\n[`#752`](https://github.com/JakeChampion/fetch/pull/752)\n-
Compatibility for fetch-mock using
proxy-pollyfill\n[`#736`](https://github.com/JakeChampion/fetch/pull/736)\n-
Change default statusText for
Response\n[`#698`](https://github.com/JakeChampion/fetch/pull/698)\n-
Document more common pitfalls in the
README\n[`#734`](https://github.com/JakeChampion/fetch/pull/734)\n-
field name can not by
empty\n[`#684`](https://github.com/JakeChampion/fetch/pull/684)\n-
work around IE XHR bug with '' URL
Fixes\n[#&#8203;618](https://github.com/github/fetch/issues/618)\n([#&#8203;619](https://github.com/github/fetch/issues/619))\n[`#618`](https://github.com/JakeChampion/fetch/issues/618)\n-
Clarify what parts of the standard we don't want to
implement\n[`#661`](https://github.com/JakeChampion/fetch/issues/661)\n-
Document more
caveats\n[`9a0bce2`](https://github.com/JakeChampion/fetch/commit/9a0bce23454cdd5beefd9d4c599664003573e581)\n-
Fix
issue\n[#&#8203;533](https://github.com/github/fetch/issues/533)\n[`7f030fa`](https://github.com/JakeChampion/fetch/commit/7f030fab4d79433204331cefe365f5fbbab9e992)\n-
Compatibility with newer
eslint-plugin-github\n[`1821b74`](https://github.com/JakeChampion/fetch/commit/1821b74b808152d4d6e787c21165f2d569c2a7c4)\n\n#####\n[v3.0.0](https://github.com/JakeChampion/fetch/compare/v2.0.4...v3.0.0)\n\n>
7 September 2018\n\n- Add flow
definitions\n[`#654`](https://github.com/JakeChampion/fetch/pull/654)\n-
Match spec behavior re: unsupported body
type\n[`#651`](https://github.com/JakeChampion/fetch/pull/651)\n-
Update Karma and detect available browsers when
testing\n[`#652`](https://github.com/JakeChampion/fetch/pull/652)\n-
Adopt Contributor Covenant Code of
Conduct\n[`#649`](https://github.com/JakeChampion/fetch/pull/649)\n-
Change `credentials` default value to
`same-origin`\n[`#640`](https://github.com/JakeChampion/fetch/pull/640)\n-
Switch test suite from PhantomJS to
Karma\n[`#626`](https://github.com/JakeChampion/fetch/pull/626)\n-
Support abort
API\n[`#592`](https://github.com/JakeChampion/fetch/pull/592)\n-
build/distribute as
UMD\n[`#616`](https://github.com/JakeChampion/fetch/pull/616)\n-
Test signal reuse. Add AbortSignal
polyfill.\n[`#2`](https://github.com/JakeChampion/fetch/pull/2)\n-
Clear abort event listener for all xhr completion
states.\n[`#1`](https://github.com/JakeChampion/fetch/pull/1)\n-
Expand install & importing
documentation\n[`#569`](https://github.com/JakeChampion/fetch/issues/569)\n-
Match spec behavior re: unsupported body
type\n[`#576`](https://github.com/JakeChampion/fetch/issues/576)\n-
Run test files through
prettier\n[`0a57487`](https://github.com/JakeChampion/fetch/commit/0a5748775d99f882172375693f56761383f8faf3)\n-
Unwrap `fetch.js` to be a clean module
file\n[`8aec47c`](https://github.com/JakeChampion/fetch/commit/8aec47cb6c67a9a321f1eb07457f70fc46235610)\n-
Switch from PhantomJS to Karma + Chrome/Firefox for
testing\n[`b539589`](https://github.com/JakeChampion/fetch/commit/b53958904649bfeb784083b9b7e0b89902c7d30e)\n\n</details>\n\n---\n\n###
Configuration\n\n📅 **Schedule**: Branch creation - At any time (no
schedule defined),\nAutomerge - At any time (no schedule defined).\n\n🚦
**Automerge**: Disabled by config. Please merge this manually once
you\nare satisfied.\n\n♻ **Rebasing**: Whenever PR becomes conflicted,
or you tick the\nrebase/retry checkbox.\n\n🔕 **Ignore**: Close this PR
and you won't be reminded about this update\nagain.\n\n---\n\n- [ ] If
you want to rebase/retry this PR, check\nthis box\n\n---\n\nThis PR has
been generated by
[Renovate\nBot](https://github.com/renovatebot/renovate).\n\n\n\nCo-authored-by:
elastic-renovate-prod[bot]
<174716857+elastic-renovate-prod[bot]@users.noreply.github.com>\nCo-authored-by:
Brad White
<brad.white@elastic.co>","sha":"e49ec1082a6d7847afc05dbb6e817d7fe225d628","branchLabelMapping":{"^v9.1.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Operations","release_note:skip","backport:all-open","v9.1.0"],"title":"Update
dependency whatwg-fetch to ^3.6.20
(main)","number":206179,"url":"https://github.com/elastic/kibana/pull/206179","mergeCommit":{"message":"Update
dependency whatwg-fetch to ^3.6.20 (main) (#206179)\n\nThis PR contains
the following updates:\n\n| Package | Type | Update | Change
|\n|---|---|---|---|\n|
[whatwg-fetch](https://github.com/github/fetch) |\ndependencies
| minor | [`^3.0.0`
->\n`^3.6.20`](https://renovatebot.com/diffs/npm/whatwg-fetch/3.0.0/3.6.20)\n|\n\n---\n\n###
Release Notes\n\n<details>\n<summary>github/fetch
(whatwg-fetch)</summary>\n\n###\n[`v3.6.20`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#3620-2023-12-13)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.19...v3.6.20)\n\n#####
Bug Fixes\n\n- Response.error().ok ===
false\n([#&#8203;1412](https://github.com/JakeChampion/fetch/issues/1412))\n([27e1c75](https://github.com/JakeChampion/fetch/commit/27e1c75f830f0b70a40b511e03652776951aca75))\n\n###\n[`v3.6.19`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#3619-2023-09-11)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.18...v3.6.19)\n\n#####
Bug Fixes\n\n- Have unique error messages for xhr timeouts and
errors\n([#&#8203;1380](https://github.com/JakeChampion/fetch/issues/1380))\n([7170f0b](https://github.com/JakeChampion/fetch/commit/7170f0b127d16c5895aba61c9168482834809046))\n\n###\n[`v3.6.18`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3618)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.17...v3.6.18)\n\n-
Fix - File fetching broken since
commit\n[`0c1d2b9`](https://github.com/github/fetch/commit/0c1d2b9)\n[`#1375`](https://github.com/JakeChampion/fetch/pull/1375)\n-
Remove broken
links\n[`1dc07c6`](https://github.com/JakeChampion/fetch/commit/1dc07c6064a32e989306fb2324204c56c93140fe)\n-
automatically generate a
changelog\n[`0e7d1dd`](https://github.com/JakeChampion/fetch/commit/0e7d1dd95826b3b76510f0832784207f2609145e)\n\n###\n[`v3.6.17`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3617)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.16...v3.6.17)\n\n>
20 July 2023\n\n- Revert
\"Resolves\n[https://github.com/JakeChampion/fetch/issues/928](https://github.com/JakeChampion/fetch/issues/928)\"\n[`#928`](https://github.com/JakeChampion/fetch/issues/928)\n\n###\n[`v3.6.16`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3616)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.15...v3.6.16)\n\n>
18 July 2023\n\n-
Resolves\n[https://github.com/JakeChampion/fetch/issues/928](https://github.com/JakeChampion/fetch/issues/928)\n[`#928`](https://github.com/JakeChampion/fetch/issues/928)\n\n###\n[`v3.6.15`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3615)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.14...v3.6.15)\n\n>
18 July 2023\n\n-
fix\n[https://github.com/JakeChampion/fetch/issues/997](https://github.com/JakeChampion/fetch/issues/997)\n[`#997`](https://github.com/JakeChampion/fetch/issues/997)\n\n###\n[`v3.6.14`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3614)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.13...v3.6.14)\n\n>
18 July 2023\n\n-
Fix\n[https://github.com/JakeChampion/fetch/issues/1076](https://github.com/JakeChampion/fetch/issues/1076)\n[`#1076`](https://github.com/JakeChampion/fetch/issues/1076)\n\n###\n[`v3.6.13`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3613)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.12...v3.6.13)\n\n>
18 July 2023\n\n- respect charset within
readBlobAsText\n[`#1059`](https://github.com/JakeChampion/fetch/issues/1059)\n\n###\n[`v3.6.12`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3612)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.11...v3.6.12)\n\n>
18 July 2023\n\n- fix: Headers only accepts array which have nested
array of length
2\n[`#1235`](https://github.com/JakeChampion/fetch/issues/1235)\n\n###\n[`v3.6.11`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3611)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.10...v3.6.11)\n\n>
18 July 2023\n\n- Define Body.arrayBuffer even if support.blob is
false\n[`#992`](https://github.com/JakeChampion/fetch/issues/992)\n\n###\n[`v3.6.10`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3610)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.9...v3.6.10)\n\n>
18 July 2023\n\n- use globals if they
exist\n[`dffc542`](https://github.com/JakeChampion/fetch/commit/dffc542fe7140f35ee7fec29e3da67f3bf080910)\n\n###\n[`v3.6.9`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v369)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.8...v3.6.9)\n\n>
18 July 2023\n\n- fix: when no body supplied, do not set bodyUsed to
true\n[`7d92dff`](https://github.com/JakeChampion/fetch/commit/7d92dff12d7c4058b57c7e77adeb0a76ffab639f)\n\n###\n[`v3.6.8`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v368)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.7...v3.6.8)\n\n>
18 July 2023\n\n- validate status is in
range\n[`#1213`](https://github.com/JakeChampion/fetch/issues/1213)\n\n###\n[`v3.6.7`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v367)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.6...v3.6.7)\n\n>
18 July 2023\n\n- dont shadow
`global`\n[`#1026`](https://github.com/JakeChampion/fetch/issues/1026)\n-
dont use github
eslint\n[`408d3b6`](https://github.com/JakeChampion/fetch/commit/408d3b60e27abef325dd898d899430c46a0012b2)\n-
remove invalid-headers
test\n[`e3f6590`](https://github.com/JakeChampion/fetch/commit/e3f65907924b7692af7c08cd92044456bc92ad8b)\n-
Update lock.yml
permissions\n[`e97321b`](https://github.com/JakeChampion/fetch/commit/e97321bc081e80275397fc4c7a990791aa8b3524)\n\n###\n[`v3.6.6`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v366)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.5...v3.6.6)\n\n>
18 July 2023\n\n- fix: ignore not throw on invalid response
headers\n[`#930`](https://github.com/JakeChampion/fetch/issues/930)\n\n###\n[`v3.6.5`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v365)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.4...v3.6.5)\n\n>
18 July 2023\n\n- Add some missed methods which should be normalized as
uppercase\n[`a43b628`](https://github.com/JakeChampion/fetch/commit/a43b6283833c403230bb1a5238e2d7ac435c52da)\n-
Update caniuse link to use HTTPS and new
pattern\n[`fb5b0cf`](https://github.com/JakeChampion/fetch/commit/fb5b0cf42b470faf8c5448ab461d561f34380a30)\n\n###\n[`v3.6.4`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v364)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.3...v3.6.4)\n\n>
18 July 2023\n\n- always set a signal on
Request\n[`d1d09fb`](https://github.com/JakeChampion/fetch/commit/d1d09fb8039b4b8c7f2f5d6c844ea72d8a3cefe6)\n\n###\n[`v3.6.3`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v363)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.2...v3.6.3)\n\n>
18 July 2023\n\n- Compatible global equals to the
false\n[`7727e50`](https://github.com/JakeChampion/fetch/commit/7727e50493eafae9a7005f10f18f81e5bbcbfdd3)\n\n###\n[`v3.6.2`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#3620-2023-12-13)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.1...v3.6.2)\n\n#####
Bug Fixes\n\n- Response.error().ok ===
false\n([#&#8203;1412](https://github.com/JakeChampion/fetch/issues/1412))\n([27e1c75](https://github.com/JakeChampion/fetch/commit/27e1c75f830f0b70a40b511e03652776951aca75))\n\n###\n[`v3.6.1`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#3619-2023-09-11)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.0...v3.6.1)\n\n#####
Bug Fixes\n\n- Have unique error messages for xhr timeouts and
errors\n([#&#8203;1380](https://github.com/JakeChampion/fetch/issues/1380))\n([7170f0b](https://github.com/JakeChampion/fetch/commit/7170f0b127d16c5895aba61c9168482834809046))\n\n###\n[`v3.6.0`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v360)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.5.0...v3.6.0)\n\n>
18 February 2021\n\n- Fix statusText: undefined should give '' and null
should give
'null'\n[`b5c8bd0`](https://github.com/JakeChampion/fetch/commit/b5c8bd0fee1530f1c204cc5c68b427a3498dbdad)\n-
Represent non-stringified JSON request body as an \\[object
Object]\nstring\n[`5c6b055`](https://github.com/JakeChampion/fetch/commit/5c6b055e6ae6f718f416c94bfcdc89693d0abdcb)\n-
Fix eslint and eslint-plugin-github dependency
conflicts\n[`190e698`](https://github.com/JakeChampion/fetch/commit/190e698f8e737ad751a11de60f6b8b3301fa557b)\n\n###\n[`v3.5.0`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v350)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.4.1...v3.5.0)\n\n>
6 November 2020\n\n-
Fixes\n[#&#8203;748](https://github.com/github/fetch/issues/748)\n[`#748`](https://github.com/JakeChampion/fetch/issues/748)\n-
Create
lock.yml\n[`8767781`](https://github.com/JakeChampion/fetch/commit/87677811d543cfb44b124e026b50f710e95017ec)\n\n###\n[`v3.4.1`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v341)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.4.0...v3.4.1)\n\n>
7 September 2020\n\n- Add npmignore file to ensure we always publish the
dist
directory\n[`7ca02eb`](https://github.com/JakeChampion/fetch/commit/7ca02eb0234b0a61fd711d922b2e69d3c5390516)\n-
Make the clean task remove the dist directory and the default
task\ncreate
it\n[`fd23745`](https://github.com/JakeChampion/fetch/commit/fd23745f3474cd23d88e5128d8bc74813be1aff0)\n\n###\n[`v3.4.0`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v340)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.3.1...v3.4.0)\n\n>
7 August 2020\n\n- Use globalThis as the global object if it
exists\n[`96c2651`](https://github.com/JakeChampion/fetch/commit/96c26512608a0081d493df4fc17da4394bd1b410)\n\n###\n[`v3.3.1`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v331)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.3.0...v3.3.1)\n\n>
4 August 2020\n\n- rename variable to no longer shadow over function of
same
name\n[`c5db762`](https://github.com/JakeChampion/fetch/commit/c5db7621c3b1530683b8f706388d4ac210a2db02)\n-
remove semicolon to pass
linting\n[`f264aa5`](https://github.com/JakeChampion/fetch/commit/f264aa5704f7431c429ec16e6fdd3c7034c7f2d9)\n\n###\n[`v3.3.0`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v330)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.2.0...v3.3.0)\n\n>
4 August 2020\n\n- Make Response.arrayBuffer() always resolve with a
`ArrayBuffer`\n[`#801`](https://github.com/github/fetch/issues/801)\n-
Stop using top-level `this` to stop rollup
warning\n[`#802`](https://github.com/github/fetch/issues/802)\n-
Recommend an AbortController polyfill which is fully
synchronous\n[`#800`](https://github.com/github/fetch/issues/800)\n-
Add keepalive
caveat\n[`#780`](https://github.com/github/fetch/issues/780)\n-
Throw a TypeError if Request or Response functions are called
without\n`new`\n[`5ef028d`](https://github.com/JakeChampion/fetch/commit/5ef028d61f6c1543603cdacbe0f8a0f00d5957c0)\n-
If headers are passed in via a Record then do not normalise the
header\nnames as part of the
request\n[`b65ed60`](https://github.com/JakeChampion/fetch/commit/b65ed608604492d605df2d62cd4c5050e2a8d508)\n-
Update
fetch.js\n[`37b55c2`](https://github.com/JakeChampion/fetch/commit/37b55c27413b902cef4e629892424ae469fb1ea2)\n\n###\n[`v3.2.0`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v320)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.1.1...v3.2.0)\n\n>
9 July 2020\n\n- Detect if DOMException exists via typeof instead of
trying to call it\nand catching the exception which may get
thrown\n[`#724`](https://github.com/github/fetch/issues/724)\n-
use `this` if `self` is not
defined\n[`#657`](https://github.com/github/fetch/issues/657)\n-
create variable called `global` which is either `self` or
`this`\n[`a0783a5`](https://github.com/JakeChampion/fetch/commit/a0783a5571018191578cc08d5b3bac61a0b64562)\n-
Add support for no-cache and no-store via a cache-busting
querystring\nparameter\n[`a0dcd85`](https://github.com/JakeChampion/fetch/commit/a0dcd853f8ed29d06a022f92c87c303bd0e1f1bf)\n-
make global `this` correct when using
rollup\n[`6e9fc0e`](https://github.com/JakeChampion/fetch/commit/6e9fc0ee026dd89d864c3d176c57789ee5615114)\n\n###\n[`v3.1.1`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v311)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.1.0...v3.1.1)\n\n>
8 July 2020\n\n- check if Content-Type header exists prior to examining
the
value\n[`#792`](https://github.com/JakeChampion/fetch/pull/792)\n-
Move from Travis to GitHub
Actions\n[`#793`](https://github.com/JakeChampion/fetch/pull/793)\n\n###\n[`v3.1.0`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v310)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.0.1...v3.1.0)\n\n>
29 June
2020\n\n###\n[`v3.0.1`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v301)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.0.0...v3.0.1)\n\n>
8 July 2020\n\n- check if Content-Type header exists prior to examining
the
value\n[`#792`](https://github.com/JakeChampion/fetch/pull/792)\n-
Move from Travis to GitHub
Actions\n[`#793`](https://github.com/JakeChampion/fetch/pull/793)\n-
Co-authored-by: Jake Champion
\\<me@jakechampion.name>\n[`#575`](https://github.com/JakeChampion/fetch/pull/575)\n-
work around IE XHR bug with '' URL
Fixes\n[#&#8203;618](https://github.com/github/fetch/issues/618)\n[`#619`](https://github.com/JakeChampion/fetch/pull/619)\n-
Allow exclamation mark as valid header
character\n[`#745`](https://github.com/JakeChampion/fetch/pull/745)\n-
Avoid blob conversion for specific
requests\n[`#752`](https://github.com/JakeChampion/fetch/pull/752)\n-
Compatibility for fetch-mock using
proxy-pollyfill\n[`#736`](https://github.com/JakeChampion/fetch/pull/736)\n-
Change default statusText for
Response\n[`#698`](https://github.com/JakeChampion/fetch/pull/698)\n-
Document more common pitfalls in the
README\n[`#734`](https://github.com/JakeChampion/fetch/pull/734)\n-
field name can not by
empty\n[`#684`](https://github.com/JakeChampion/fetch/pull/684)\n-
work around IE XHR bug with '' URL
Fixes\n[#&#8203;618](https://github.com/github/fetch/issues/618)\n([#&#8203;619](https://github.com/github/fetch/issues/619))\n[`#618`](https://github.com/JakeChampion/fetch/issues/618)\n-
Clarify what parts of the standard we don't want to
implement\n[`#661`](https://github.com/JakeChampion/fetch/issues/661)\n-
Document more
caveats\n[`9a0bce2`](https://github.com/JakeChampion/fetch/commit/9a0bce23454cdd5beefd9d4c599664003573e581)\n-
Fix
issue\n[#&#8203;533](https://github.com/github/fetch/issues/533)\n[`7f030fa`](https://github.com/JakeChampion/fetch/commit/7f030fab4d79433204331cefe365f5fbbab9e992)\n-
Compatibility with newer
eslint-plugin-github\n[`1821b74`](https://github.com/JakeChampion/fetch/commit/1821b74b808152d4d6e787c21165f2d569c2a7c4)\n\n#####\n[v3.0.0](https://github.com/JakeChampion/fetch/compare/v2.0.4...v3.0.0)\n\n>
7 September 2018\n\n- Add flow
definitions\n[`#654`](https://github.com/JakeChampion/fetch/pull/654)\n-
Match spec behavior re: unsupported body
type\n[`#651`](https://github.com/JakeChampion/fetch/pull/651)\n-
Update Karma and detect available browsers when
testing\n[`#652`](https://github.com/JakeChampion/fetch/pull/652)\n-
Adopt Contributor Covenant Code of
Conduct\n[`#649`](https://github.com/JakeChampion/fetch/pull/649)\n-
Change `credentials` default value to
`same-origin`\n[`#640`](https://github.com/JakeChampion/fetch/pull/640)\n-
Switch test suite from PhantomJS to
Karma\n[`#626`](https://github.com/JakeChampion/fetch/pull/626)\n-
Support abort
API\n[`#592`](https://github.com/JakeChampion/fetch/pull/592)\n-
build/distribute as
UMD\n[`#616`](https://github.com/JakeChampion/fetch/pull/616)\n-
Test signal reuse. Add AbortSignal
polyfill.\n[`#2`](https://github.com/JakeChampion/fetch/pull/2)\n-
Clear abort event listener for all xhr completion
states.\n[`#1`](https://github.com/JakeChampion/fetch/pull/1)\n-
Expand install & importing
documentation\n[`#569`](https://github.com/JakeChampion/fetch/issues/569)\n-
Match spec behavior re: unsupported body
type\n[`#576`](https://github.com/JakeChampion/fetch/issues/576)\n-
Run test files through
prettier\n[`0a57487`](https://github.com/JakeChampion/fetch/commit/0a5748775d99f882172375693f56761383f8faf3)\n-
Unwrap `fetch.js` to be a clean module
file\n[`8aec47c`](https://github.com/JakeChampion/fetch/commit/8aec47cb6c67a9a321f1eb07457f70fc46235610)\n-
Switch from PhantomJS to Karma + Chrome/Firefox for
testing\n[`b539589`](https://github.com/JakeChampion/fetch/commit/b53958904649bfeb784083b9b7e0b89902c7d30e)\n\n</details>\n\n---\n\n###
Configuration\n\n📅 **Schedule**: Branch creation - At any time (no
schedule defined),\nAutomerge - At any time (no schedule defined).\n\n🚦
**Automerge**: Disabled by config. Please merge this manually once
you\nare satisfied.\n\n♻ **Rebasing**: Whenever PR becomes conflicted,
or you tick the\nrebase/retry checkbox.\n\n🔕 **Ignore**: Close this PR
and you won't be reminded about this update\nagain.\n\n---\n\n- [ ] If
you want to rebase/retry this PR, check\nthis box\n\n---\n\nThis PR has
been generated by
[Renovate\nBot](https://github.com/renovatebot/renovate).\n\n\n\nCo-authored-by:
elastic-renovate-prod[bot]
<174716857+elastic-renovate-prod[bot]@users.noreply.github.com>\nCo-authored-by:
Brad White
<brad.white@elastic.co>","sha":"e49ec1082a6d7847afc05dbb6e817d7fe225d628"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/206179","number":206179,"mergeCommit":{"message":"Update
dependency whatwg-fetch to ^3.6.20 (main) (#206179)\n\nThis PR contains
the following updates:\n\n| Package | Type | Update | Change
|\n|---|---|---|---|\n|
[whatwg-fetch](https://github.com/github/fetch) |\ndependencies
| minor | [`^3.0.0`
->\n`^3.6.20`](https://renovatebot.com/diffs/npm/whatwg-fetch/3.0.0/3.6.20)\n|\n\n---\n\n###
Release Notes\n\n<details>\n<summary>github/fetch
(whatwg-fetch)</summary>\n\n###\n[`v3.6.20`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#3620-2023-12-13)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.19...v3.6.20)\n\n#####
Bug Fixes\n\n- Response.error().ok ===
false\n([#&#8203;1412](https://github.com/JakeChampion/fetch/issues/1412))\n([27e1c75](https://github.com/JakeChampion/fetch/commit/27e1c75f830f0b70a40b511e03652776951aca75))\n\n###\n[`v3.6.19`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#3619-2023-09-11)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.18...v3.6.19)\n\n#####
Bug Fixes\n\n- Have unique error messages for xhr timeouts and
errors\n([#&#8203;1380](https://github.com/JakeChampion/fetch/issues/1380))\n([7170f0b](https://github.com/JakeChampion/fetch/commit/7170f0b127d16c5895aba61c9168482834809046))\n\n###\n[`v3.6.18`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3618)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.17...v3.6.18)\n\n-
Fix - File fetching broken since
commit\n[`0c1d2b9`](https://github.com/github/fetch/commit/0c1d2b9)\n[`#1375`](https://github.com/JakeChampion/fetch/pull/1375)\n-
Remove broken
links\n[`1dc07c6`](https://github.com/JakeChampion/fetch/commit/1dc07c6064a32e989306fb2324204c56c93140fe)\n-
automatically generate a
changelog\n[`0e7d1dd`](https://github.com/JakeChampion/fetch/commit/0e7d1dd95826b3b76510f0832784207f2609145e)\n\n###\n[`v3.6.17`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3617)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.16...v3.6.17)\n\n>
20 July 2023\n\n- Revert
\"Resolves\n[https://github.com/JakeChampion/fetch/issues/928](https://github.com/JakeChampion/fetch/issues/928)\"\n[`#928`](https://github.com/JakeChampion/fetch/issues/928)\n\n###\n[`v3.6.16`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3616)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.15...v3.6.16)\n\n>
18 July 2023\n\n-
Resolves\n[https://github.com/JakeChampion/fetch/issues/928](https://github.com/JakeChampion/fetch/issues/928)\n[`#928`](https://github.com/JakeChampion/fetch/issues/928)\n\n###\n[`v3.6.15`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3615)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.14...v3.6.15)\n\n>
18 July 2023\n\n-
fix\n[https://github.com/JakeChampion/fetch/issues/997](https://github.com/JakeChampion/fetch/issues/997)\n[`#997`](https://github.com/JakeChampion/fetch/issues/997)\n\n###\n[`v3.6.14`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3614)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.13...v3.6.14)\n\n>
18 July 2023\n\n-
Fix\n[https://github.com/JakeChampion/fetch/issues/1076](https://github.com/JakeChampion/fetch/issues/1076)\n[`#1076`](https://github.com/JakeChampion/fetch/issues/1076)\n\n###\n[`v3.6.13`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3613)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.12...v3.6.13)\n\n>
18 July 2023\n\n- respect charset within
readBlobAsText\n[`#1059`](https://github.com/JakeChampion/fetch/issues/1059)\n\n###\n[`v3.6.12`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3612)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.11...v3.6.12)\n\n>
18 July 2023\n\n- fix: Headers only accepts array which have nested
array of length
2\n[`#1235`](https://github.com/JakeChampion/fetch/issues/1235)\n\n###\n[`v3.6.11`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3611)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.10...v3.6.11)\n\n>
18 July 2023\n\n- Define Body.arrayBuffer even if support.blob is
false\n[`#992`](https://github.com/JakeChampion/fetch/issues/992)\n\n###\n[`v3.6.10`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v3610)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.9...v3.6.10)\n\n>
18 July 2023\n\n- use globals if they
exist\n[`dffc542`](https://github.com/JakeChampion/fetch/commit/dffc542fe7140f35ee7fec29e3da67f3bf080910)\n\n###\n[`v3.6.9`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v369)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.8...v3.6.9)\n\n>
18 July 2023\n\n- fix: when no body supplied, do not set bodyUsed to
true\n[`7d92dff`](https://github.com/JakeChampion/fetch/commit/7d92dff12d7c4058b57c7e77adeb0a76ffab639f)\n\n###\n[`v3.6.8`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v368)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.7...v3.6.8)\n\n>
18 July 2023\n\n- validate status is in
range\n[`#1213`](https://github.com/JakeChampion/fetch/issues/1213)\n\n###\n[`v3.6.7`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v367)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.6...v3.6.7)\n\n>
18 July 2023\n\n- dont shadow
`global`\n[`#1026`](https://github.com/JakeChampion/fetch/issues/1026)\n-
dont use github
eslint\n[`408d3b6`](https://github.com/JakeChampion/fetch/commit/408d3b60e27abef325dd898d899430c46a0012b2)\n-
remove invalid-headers
test\n[`e3f6590`](https://github.com/JakeChampion/fetch/commit/e3f65907924b7692af7c08cd92044456bc92ad8b)\n-
Update lock.yml
permissions\n[`e97321b`](https://github.com/JakeChampion/fetch/commit/e97321bc081e80275397fc4c7a990791aa8b3524)\n\n###\n[`v3.6.6`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v366)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.5...v3.6.6)\n\n>
18 July 2023\n\n- fix: ignore not throw on invalid response
headers\n[`#930`](https://github.com/JakeChampion/fetch/issues/930)\n\n###\n[`v3.6.5`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v365)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.4...v3.6.5)\n\n>
18 July 2023\n\n- Add some missed methods which should be normalized as
uppercase\n[`a43b628`](https://github.com/JakeChampion/fetch/commit/a43b6283833c403230bb1a5238e2d7ac435c52da)\n-
Update caniuse link to use HTTPS and new
pattern\n[`fb5b0cf`](https://github.com/JakeChampion/fetch/commit/fb5b0cf42b470faf8c5448ab461d561f34380a30)\n\n###\n[`v3.6.4`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v364)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.3...v3.6.4)\n\n>
18 July 2023\n\n- always set a signal on
Request\n[`d1d09fb`](https://github.com/JakeChampion/fetch/commit/d1d09fb8039b4b8c7f2f5d6c844ea72d8a3cefe6)\n\n###\n[`v3.6.3`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v363)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.2...v3.6.3)\n\n>
18 July 2023\n\n- Compatible global equals to the
false\n[`7727e50`](https://github.com/JakeChampion/fetch/commit/7727e50493eafae9a7005f10f18f81e5bbcbfdd3)\n\n###\n[`v3.6.2`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#3620-2023-12-13)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.1...v3.6.2)\n\n#####
Bug Fixes\n\n- Response.error().ok ===
false\n([#&#8203;1412](https://github.com/JakeChampion/fetch/issues/1412))\n([27e1c75](https://github.com/JakeChampion/fetch/commit/27e1c75f830f0b70a40b511e03652776951aca75))\n\n###\n[`v3.6.1`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#3619-2023-09-11)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.6.0...v3.6.1)\n\n#####
Bug Fixes\n\n- Have unique error messages for xhr timeouts and
errors\n([#&#8203;1380](https://github.com/JakeChampion/fetch/issues/1380))\n([7170f0b](https://github.com/JakeChampion/fetch/commit/7170f0b127d16c5895aba61c9168482834809046))\n\n###\n[`v3.6.0`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v360)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.5.0...v3.6.0)\n\n>
18 February 2021\n\n- Fix statusText: undefined should give '' and null
should give
'null'\n[`b5c8bd0`](https://github.com/JakeChampion/fetch/commit/b5c8bd0fee1530f1c204cc5c68b427a3498dbdad)\n-
Represent non-stringified JSON request body as an \\[object
Object]\nstring\n[`5c6b055`](https://github.com/JakeChampion/fetch/commit/5c6b055e6ae6f718f416c94bfcdc89693d0abdcb)\n-
Fix eslint and eslint-plugin-github dependency
conflicts\n[`190e698`](https://github.com/JakeChampion/fetch/commit/190e698f8e737ad751a11de60f6b8b3301fa557b)\n\n###\n[`v3.5.0`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v350)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.4.1...v3.5.0)\n\n>
6 November 2020\n\n-
Fixes\n[#&#8203;748](https://github.com/github/fetch/issues/748)\n[`#748`](https://github.com/JakeChampion/fetch/issues/748)\n-
Create
lock.yml\n[`8767781`](https://github.com/JakeChampion/fetch/commit/87677811d543cfb44b124e026b50f710e95017ec)\n\n###\n[`v3.4.1`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v341)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.4.0...v3.4.1)\n\n>
7 September 2020\n\n- Add npmignore file to ensure we always publish the
dist
directory\n[`7ca02eb`](https://github.com/JakeChampion/fetch/commit/7ca02eb0234b0a61fd711d922b2e69d3c5390516)\n-
Make the clean task remove the dist directory and the default
task\ncreate
it\n[`fd23745`](https://github.com/JakeChampion/fetch/commit/fd23745f3474cd23d88e5128d8bc74813be1aff0)\n\n###\n[`v3.4.0`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v340)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.3.1...v3.4.0)\n\n>
7 August 2020\n\n- Use globalThis as the global object if it
exists\n[`96c2651`](https://github.com/JakeChampion/fetch/commit/96c26512608a0081d493df4fc17da4394bd1b410)\n\n###\n[`v3.3.1`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v331)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.3.0...v3.3.1)\n\n>
4 August 2020\n\n- rename variable to no longer shadow over function of
same
name\n[`c5db762`](https://github.com/JakeChampion/fetch/commit/c5db7621c3b1530683b8f706388d4ac210a2db02)\n-
remove semicolon to pass
linting\n[`f264aa5`](https://github.com/JakeChampion/fetch/commit/f264aa5704f7431c429ec16e6fdd3c7034c7f2d9)\n\n###\n[`v3.3.0`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v330)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.2.0...v3.3.0)\n\n>
4 August 2020\n\n- Make Response.arrayBuffer() always resolve with a
`ArrayBuffer`\n[`#801`](https://github.com/github/fetch/issues/801)\n-
Stop using top-level `this` to stop rollup
warning\n[`#802`](https://github.com/github/fetch/issues/802)\n-
Recommend an AbortController polyfill which is fully
synchronous\n[`#800`](https://github.com/github/fetch/issues/800)\n-
Add keepalive
caveat\n[`#780`](https://github.com/github/fetch/issues/780)\n-
Throw a TypeError if Request or Response functions are called
without\n`new`\n[`5ef028d`](https://github.com/JakeChampion/fetch/commit/5ef028d61f6c1543603cdacbe0f8a0f00d5957c0)\n-
If headers are passed in via a Record then do not normalise the
header\nnames as part of the
request\n[`b65ed60`](https://github.com/JakeChampion/fetch/commit/b65ed608604492d605df2d62cd4c5050e2a8d508)\n-
Update
fetch.js\n[`37b55c2`](https://github.com/JakeChampion/fetch/commit/37b55c27413b902cef4e629892424ae469fb1ea2)\n\n###\n[`v3.2.0`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v320)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.1.1...v3.2.0)\n\n>
9 July 2020\n\n- Detect if DOMException exists via typeof instead of
trying to call it\nand catching the exception which may get
thrown\n[`#724`](https://github.com/github/fetch/issues/724)\n-
use `this` if `self` is not
defined\n[`#657`](https://github.com/github/fetch/issues/657)\n-
create variable called `global` which is either `self` or
`this`\n[`a0783a5`](https://github.com/JakeChampion/fetch/commit/a0783a5571018191578cc08d5b3bac61a0b64562)\n-
Add support for no-cache and no-store via a cache-busting
querystring\nparameter\n[`a0dcd85`](https://github.com/JakeChampion/fetch/commit/a0dcd853f8ed29d06a022f92c87c303bd0e1f1bf)\n-
make global `this` correct when using
rollup\n[`6e9fc0e`](https://github.com/JakeChampion/fetch/commit/6e9fc0ee026dd89d864c3d176c57789ee5615114)\n\n###\n[`v3.1.1`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v311)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.1.0...v3.1.1)\n\n>
8 July 2020\n\n- check if Content-Type header exists prior to examining
the
value\n[`#792`](https://github.com/JakeChampion/fetch/pull/792)\n-
Move from Travis to GitHub
Actions\n[`#793`](https://github.com/JakeChampion/fetch/pull/793)\n\n###\n[`v3.1.0`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v310)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.0.1...v3.1.0)\n\n>
29 June
2020\n\n###\n[`v3.0.1`](https://github.com/github/fetch/blob/HEAD/CHANGELOG.md#v301)\n\n[Compare\nSource](https://github.com/github/fetch/compare/v3.0.0...v3.0.1)\n\n>
8 July 2020\n\n- check if Content-Type header exists prior to examining
the
value\n[`#792`](https://github.com/JakeChampion/fetch/pull/792)\n-
Move from Travis to GitHub
Actions\n[`#793`](https://github.com/JakeChampion/fetch/pull/793)\n-
Co-authored-by: Jake Champion
\\<me@jakechampion.name>\n[`#575`](https://github.com/JakeChampion/fetch/pull/575)\n-
work around IE XHR bug with '' URL
Fixes\n[#&#8203;618](https://github.com/github/fetch/issues/618)\n[`#619`](https://github.com/JakeChampion/fetch/pull/619)\n-
Allow exclamation mark as valid header
character\n[`#745`](https://github.com/JakeChampion/fetch/pull/745)\n-
Avoid blob conversion for specific
requests\n[`#752`](https://github.com/JakeChampion/fetch/pull/752)\n-
Compatibility for fetch-mock using
proxy-pollyfill\n[`#736`](https://github.com/JakeChampion/fetch/pull/736)\n-
Change default statusText for
Response\n[`#698`](https://github.com/JakeChampion/fetch/pull/698)\n-
Document more common pitfalls in the
README\n[`#734`](https://github.com/JakeChampion/fetch/pull/734)\n-
field name can not by
empty\n[`#684`](https://github.com/JakeChampion/fetch/pull/684)\n-
work around IE XHR bug with '' URL
Fixes\n[#&#8203;618](https://github.com/github/fetch/issues/618)\n([#&#8203;619](https://github.com/github/fetch/issues/619))\n[`#618`](https://github.com/JakeChampion/fetch/issues/618)\n-
Clarify what parts of the standard we don't want to
implement\n[`#661`](https://github.com/JakeChampion/fetch/issues/661)\n-
Document more
caveats\n[`9a0bce2`](https://github.com/JakeChampion/fetch/commit/9a0bce23454cdd5beefd9d4c599664003573e581)\n-
Fix
issue\n[#&#8203;533](https://github.com/github/fetch/issues/533)\n[`7f030fa`](https://github.com/JakeChampion/fetch/commit/7f030fab4d79433204331cefe365f5fbbab9e992)\n-
Compatibility with newer
eslint-plugin-github\n[`1821b74`](https://github.com/JakeChampion/fetch/commit/1821b74b808152d4d6e787c21165f2d569c2a7c4)\n\n#####\n[v3.0.0](https://github.com/JakeChampion/fetch/compare/v2.0.4...v3.0.0)\n\n>
7 September 2018\n\n- Add flow
definitions\n[`#654`](https://github.com/JakeChampion/fetch/pull/654)\n-
Match spec behavior re: unsupported body
type\n[`#651`](https://github.com/JakeChampion/fetch/pull/651)\n-
Update Karma and detect available browsers when
testing\n[`#652`](https://github.com/JakeChampion/fetch/pull/652)\n-
Adopt Contributor Covenant Code of
Conduct\n[`#649`](https://github.com/JakeChampion/fetch/pull/649)\n-
Change `credentials` default value to
`same-origin`\n[`#640`](https://github.com/JakeChampion/fetch/pull/640)\n-
Switch test suite from PhantomJS to
Karma\n[`#626`](https://github.com/JakeChampion/fetch/pull/626)\n-
Support abort
API\n[`#592`](https://github.com/JakeChampion/fetch/pull/592)\n-
build/distribute as
UMD\n[`#616`](https://github.com/JakeChampion/fetch/pull/616)\n-
Test signal reuse. Add AbortSignal
polyfill.\n[`#2`](https://github.com/JakeChampion/fetch/pull/2)\n-
Clear abort event listener for all xhr completion
states.\n[`#1`](https://github.com/JakeChampion/fetch/pull/1)\n-
Expand install & importing
documentation\n[`#569`](https://github.com/JakeChampion/fetch/issues/569)\n-
Match spec behavior re: unsupported body
type\n[`#576`](https://github.com/JakeChampion/fetch/issues/576)\n-
Run test files through
prettier\n[`0a57487`](https://github.com/JakeChampion/fetch/commit/0a5748775d99f882172375693f56761383f8faf3)\n-
Unwrap `fetch.js` to be a clean module
file\n[`8aec47c`](https://github.com/JakeChampion/fetch/commit/8aec47cb6c67a9a321f1eb07457f70fc46235610)\n-
Switch from PhantomJS to Karma + Chrome/Firefox for
testing\n[`b539589`](https://github.com/JakeChampion/fetch/commit/b53958904649bfeb784083b9b7e0b89902c7d30e)\n\n</details>\n\n---\n\n###
Configuration\n\n📅 **Schedule**: Branch creation - At any time (no
schedule defined),\nAutomerge - At any time (no schedule defined).\n\n🚦
**Automerge**: Disabled by config. Please merge this manually once
you\nare satisfied.\n\n♻ **Rebasing**: Whenever PR becomes conflicted,
or you tick the\nrebase/retry checkbox.\n\n🔕 **Ignore**: Close this PR
and you won't be reminded about this update\nagain.\n\n---\n\n- [ ] If
you want to rebase/retry this PR, check\nthis box\n\n---\n\nThis PR has
been generated by
[Renovate\nBot](https://github.com/renovatebot/renovate).\n\n\n\nCo-authored-by:
elastic-renovate-prod[bot]
<174716857+elastic-renovate-prod[bot]@users.noreply.github.com>\nCo-authored-by:
Brad White
<brad.white@elastic.co>","sha":"e49ec1082a6d7847afc05dbb6e817d7fe225d628"}}]}]
BACKPORT-->

Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>
Co-authored-by: Brad White <brad.white@elastic.co>
banderror pushed a commit that referenced this pull request Oct 7, 2025
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [rison-node](https://github.com/w33ble/rison-node) |
dependencies | major | [`1.0.2` ->
`2.1.1`](https://renovatebot.com/diffs/npm/rison-node/1.0.2/2.1.1) |

---

### Release Notes

<details>
<summary>w33ble/rison-node (rison-node)</summary>

###
[`v2.1.1`](https://github.com/w33ble/rison-node/blob/HEAD/CHANGELOG.md#v211-4-June-2020)

[Compare
Source](https://github.com/w33ble/rison-node/compare/v2.1.0...v2.1.1)

- fix: handle keys that start with numbers
[`f0e10e3`](https://github.com/w33ble/rison-node/commit/f0e10e377bc328bfeb82e74c6498394612e6e4e6)

###
[`v2.1.0`](https://github.com/w33ble/rison-node/blob/HEAD/CHANGELOG.md#v210-1-November-2018)

[Compare
Source](https://github.com/w33ble/rison-node/compare/v2.0.0...v2.1.0)

- feat: add decode_uri method
[`#2`](https://github.com/w33ble/rison-node/pull/2)
- feat: add rison.unquote, use in decode_uri
[`41ba487`](https://github.com/w33ble/rison-node/commit/41ba487d05ba623ce8bcde5da96517df61e2e7ff)
- v2.1.0
[`71c9910`](https://github.com/w33ble/rison-node/commit/71c991021497c9ad229b289b6a4bd72672855c50)

###
[`v2.0.0`](https://github.com/w33ble/rison-node/blob/HEAD/CHANGELOG.md#v200-30-April-2018)

[Compare
Source](https://github.com/w33ble/rison-node/compare/v1.0.2...v2.0.0)

- v2.0.0
[`409eede`](https://github.com/w33ble/rison-node/commit/409eedecda2ced49f31c57bfe250ddefd24b5cfe)
- **Breaking:** feat: prevent quoting numeric keys
[`01e2be2`](https://github.com/w33ble/rison-node/commit/01e2be2fb546fdeea9f68cd5fd9087660cc1802c)

#####
[v1.0.2](https://github.com/w33ble/rison-node/compare/v1.0.1...v1.0.2)
(17 April 2018)

- docs: proper fork, update repo, add badges
[`667fc6c`](https://github.com/w33ble/rison-node/commit/667fc6cd6a3ef4022228dd5de6f1d8a28b153eba)
- 1.0.2
[`41f1f52`](https://github.com/w33ble/rison-node/commit/41f1f528c4102553fa55d3a7ee54ba5b1f312eeb)

#####
[v1.0.1](https://github.com/w33ble/rison-node/compare/v1.0.0...v1.0.1)
(17 April 2018)

- 1.0.1
[`df44524`](https://github.com/w33ble/rison-node/commit/df44524cc91690a4f1bd425ae434c6cc7e3fb6e0)
- docs: update readme
[`09bbabf`](https://github.com/w33ble/rison-node/commit/09bbabf3959d77bf26caa84f7221b3625992d27c)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://github.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xMDcuMCIsInVwZGF0ZWRJblZlciI6IjM5LjEwNy4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJUZWFtOlNoYXJlZFVYIiwiYmFja3BvcnQ6YWxsLW9wZW4iLCJyZWxlYXNlX25vdGU6c2tpcCJdfQ==-->

---------

Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>
Co-authored-by: Tim Sullivan <tsullivan@users.noreply.github.com>
Co-authored-by: Timothy Sullivan <tsullivan@elastic.co>
Co-authored-by: Krzysztof Kowalczyk <krzysztof.kowalczyk@elastic.co>
banderror pushed a commit that referenced this pull request Oct 10, 2025
…stic#237866)

# Backport

This will backport the following commits from `main` to `9.2`:
- [Update dependency rison-node to v2 (main)
(elastic#219596)](elastic#219596)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT
[{"author":{"name":"elastic-renovate-prod[bot]","email":"174716857+elastic-renovate-prod[bot]@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-10-07T14:19:06Z","message":"Update
dependency rison-node to v2 (main) (elastic#219596)\n\nThis PR contains the
following updates:\n\n| Package | Type | Update | Change
|\n|---|---|---|---|\n|
[rison-node](https://github.com/w33ble/rison-node)
|\ndependencies | major | [`1.0.2`
->\n`2.1.1`](https://renovatebot.com/diffs/npm/rison-node/1.0.2/2.1.1)
|\n\n---\n\n### Release Notes\n\n<details>\n<summary>w33ble/rison-node
(rison-node)</summary>\n\n###\n[`v2.1.1`](https://github.com/w33ble/rison-node/blob/HEAD/CHANGELOG.md#v211-4-June-2020)\n\n[Compare\nSource](https://github.com/w33ble/rison-node/compare/v2.1.0...v2.1.1)\n\n-
fix: handle keys that start with
numbers\n[`f0e10e3`](https://github.com/w33ble/rison-node/commit/f0e10e377bc328bfeb82e74c6498394612e6e4e6)\n\n###\n[`v2.1.0`](https://github.com/w33ble/rison-node/blob/HEAD/CHANGELOG.md#v210-1-November-2018)\n\n[Compare\nSource](https://github.com/w33ble/rison-node/compare/v2.0.0...v2.1.0)\n\n-
feat: add decode_uri
method\n[`#2`](https://github.com/w33ble/rison-node/pull/2)\n-
feat: add rison.unquote, use in
decode_uri\n[`41ba487`](https://github.com/w33ble/rison-node/commit/41ba487d05ba623ce8bcde5da96517df61e2e7ff)\n-
v2.1.0\n[`71c9910`](https://github.com/w33ble/rison-node/commit/71c991021497c9ad229b289b6a4bd72672855c50)\n\n###\n[`v2.0.0`](https://github.com/w33ble/rison-node/blob/HEAD/CHANGELOG.md#v200-30-April-2018)\n\n[Compare\nSource](https://github.com/w33ble/rison-node/compare/v1.0.2...v2.0.0)\n\n-
v2.0.0\n[`409eede`](https://github.com/w33ble/rison-node/commit/409eedecda2ced49f31c57bfe250ddefd24b5cfe)\n-
**Breaking:** feat: prevent quoting numeric
keys\n[`01e2be2`](https://github.com/w33ble/rison-node/commit/01e2be2fb546fdeea9f68cd5fd9087660cc1802c)\n\n#####\n[v1.0.2](https://github.com/w33ble/rison-node/compare/v1.0.1...v1.0.2)\n(17
April 2018)\n\n- docs: proper fork, update repo, add
badges\n[`667fc6c`](https://github.com/w33ble/rison-node/commit/667fc6cd6a3ef4022228dd5de6f1d8a28b153eba)\n-
1.0.2\n[`41f1f52`](https://github.com/w33ble/rison-node/commit/41f1f528c4102553fa55d3a7ee54ba5b1f312eeb)\n\n#####\n[v1.0.1](https://github.com/w33ble/rison-node/compare/v1.0.0...v1.0.1)\n(17
April 2018)\n\n-
1.0.1\n[`df44524`](https://github.com/w33ble/rison-node/commit/df44524cc91690a4f1bd425ae434c6cc7e3fb6e0)\n-
docs: update
readme\n[`09bbabf`](https://github.com/w33ble/rison-node/commit/09bbabf3959d77bf26caa84f7221b3625992d27c)\n\n</details>\n\n---\n\n###
Configuration\n\n📅 **Schedule**: Branch creation - At any time (no
schedule defined),\nAutomerge - At any time (no schedule defined).\n\n🚦
**Automerge**: Disabled by config. Please merge this manually once
you\nare satisfied.\n\n♻ **Rebasing**: Whenever PR becomes conflicted,
or you tick the\nrebase/retry checkbox.\n\n🔕 **Ignore**: Close this PR
and you won't be reminded about this update\nagain.\n\n---\n\n- [ ] If
you want to rebase/retry this PR, check\nthis box\n\n---\n\nThis PR has
been generated by
[Renovate\nBot](https://github.com/renovatebot/renovate).\n\n\n\n---------\n\nCo-authored-by:
elastic-renovate-prod[bot]
<174716857+elastic-renovate-prod[bot]@users.noreply.github.com>\nCo-authored-by:
Tim Sullivan <tsullivan@users.noreply.github.com>\nCo-authored-by:
Timothy Sullivan <tsullivan@elastic.co>\nCo-authored-by: Krzysztof
Kowalczyk
<krzysztof.kowalczyk@elastic.co>","sha":"e696d007f7d5aebdf8a954b5ed9454222a60030a","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:SharedUX","backport:all-open","v9.3.0"],"title":"Update
dependency rison-node to v2
(main)","number":219596,"url":"https://github.com/elastic/kibana/pull/219596","mergeCommit":{"message":"Update
dependency rison-node to v2 (main) (elastic#219596)\n\nThis PR contains the
following updates:\n\n| Package | Type | Update | Change
|\n|---|---|---|---|\n|
[rison-node](https://github.com/w33ble/rison-node)
|\ndependencies | major | [`1.0.2`
->\n`2.1.1`](https://renovatebot.com/diffs/npm/rison-node/1.0.2/2.1.1)
|\n\n---\n\n### Release Notes\n\n<details>\n<summary>w33ble/rison-node
(rison-node)</summary>\n\n###\n[`v2.1.1`](https://github.com/w33ble/rison-node/blob/HEAD/CHANGELOG.md#v211-4-June-2020)\n\n[Compare\nSource](https://github.com/w33ble/rison-node/compare/v2.1.0...v2.1.1)\n\n-
fix: handle keys that start with
numbers\n[`f0e10e3`](https://github.com/w33ble/rison-node/commit/f0e10e377bc328bfeb82e74c6498394612e6e4e6)\n\n###\n[`v2.1.0`](https://github.com/w33ble/rison-node/blob/HEAD/CHANGELOG.md#v210-1-November-2018)\n\n[Compare\nSource](https://github.com/w33ble/rison-node/compare/v2.0.0...v2.1.0)\n\n-
feat: add decode_uri
method\n[`#2`](https://github.com/w33ble/rison-node/pull/2)\n-
feat: add rison.unquote, use in
decode_uri\n[`41ba487`](https://github.com/w33ble/rison-node/commit/41ba487d05ba623ce8bcde5da96517df61e2e7ff)\n-
v2.1.0\n[`71c9910`](https://github.com/w33ble/rison-node/commit/71c991021497c9ad229b289b6a4bd72672855c50)\n\n###\n[`v2.0.0`](https://github.com/w33ble/rison-node/blob/HEAD/CHANGELOG.md#v200-30-April-2018)\n\n[Compare\nSource](https://github.com/w33ble/rison-node/compare/v1.0.2...v2.0.0)\n\n-
v2.0.0\n[`409eede`](https://github.com/w33ble/rison-node/commit/409eedecda2ced49f31c57bfe250ddefd24b5cfe)\n-
**Breaking:** feat: prevent quoting numeric
keys\n[`01e2be2`](https://github.com/w33ble/rison-node/commit/01e2be2fb546fdeea9f68cd5fd9087660cc1802c)\n\n#####\n[v1.0.2](https://github.com/w33ble/rison-node/compare/v1.0.1...v1.0.2)\n(17
April 2018)\n\n- docs: proper fork, update repo, add
badges\n[`667fc6c`](https://github.com/w33ble/rison-node/commit/667fc6cd6a3ef4022228dd5de6f1d8a28b153eba)\n-
1.0.2\n[`41f1f52`](https://github.com/w33ble/rison-node/commit/41f1f528c4102553fa55d3a7ee54ba5b1f312eeb)\n\n#####\n[v1.0.1](https://github.com/w33ble/rison-node/compare/v1.0.0...v1.0.1)\n(17
April 2018)\n\n-
1.0.1\n[`df44524`](https://github.com/w33ble/rison-node/commit/df44524cc91690a4f1bd425ae434c6cc7e3fb6e0)\n-
docs: update
readme\n[`09bbabf`](https://github.com/w33ble/rison-node/commit/09bbabf3959d77bf26caa84f7221b3625992d27c)\n\n</details>\n\n---\n\n###
Configuration\n\n📅 **Schedule**: Branch creation - At any time (no
schedule defined),\nAutomerge - At any time (no schedule defined).\n\n🚦
**Automerge**: Disabled by config. Please merge this manually once
you\nare satisfied.\n\n♻ **Rebasing**: Whenever PR becomes conflicted,
or you tick the\nrebase/retry checkbox.\n\n🔕 **Ignore**: Close this PR
and you won't be reminded about this update\nagain.\n\n---\n\n- [ ] If
you want to rebase/retry this PR, check\nthis box\n\n---\n\nThis PR has
been generated by
[Renovate\nBot](https://github.com/renovatebot/renovate).\n\n\n\n---------\n\nCo-authored-by:
elastic-renovate-prod[bot]
<174716857+elastic-renovate-prod[bot]@users.noreply.github.com>\nCo-authored-by:
Tim Sullivan <tsullivan@users.noreply.github.com>\nCo-authored-by:
Timothy Sullivan <tsullivan@elastic.co>\nCo-authored-by: Krzysztof
Kowalczyk
<krzysztof.kowalczyk@elastic.co>","sha":"e696d007f7d5aebdf8a954b5ed9454222a60030a"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.3.0","branchLabelMappingKey":"^v9.3.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/219596","number":219596,"mergeCommit":{"message":"Update
dependency rison-node to v2 (main) (elastic#219596)\n\nThis PR contains the
following updates:\n\n| Package | Type | Update | Change
|\n|---|---|---|---|\n|
[rison-node](https://github.com/w33ble/rison-node)
|\ndependencies | major | [`1.0.2`
->\n`2.1.1`](https://renovatebot.com/diffs/npm/rison-node/1.0.2/2.1.1)
|\n\n---\n\n### Release Notes\n\n<details>\n<summary>w33ble/rison-node
(rison-node)</summary>\n\n###\n[`v2.1.1`](https://github.com/w33ble/rison-node/blob/HEAD/CHANGELOG.md#v211-4-June-2020)\n\n[Compare\nSource](https://github.com/w33ble/rison-node/compare/v2.1.0...v2.1.1)\n\n-
fix: handle keys that start with
numbers\n[`f0e10e3`](https://github.com/w33ble/rison-node/commit/f0e10e377bc328bfeb82e74c6498394612e6e4e6)\n\n###\n[`v2.1.0`](https://github.com/w33ble/rison-node/blob/HEAD/CHANGELOG.md#v210-1-November-2018)\n\n[Compare\nSource](https://github.com/w33ble/rison-node/compare/v2.0.0...v2.1.0)\n\n-
feat: add decode_uri
method\n[`#2`](https://github.com/w33ble/rison-node/pull/2)\n-
feat: add rison.unquote, use in
decode_uri\n[`41ba487`](https://github.com/w33ble/rison-node/commit/41ba487d05ba623ce8bcde5da96517df61e2e7ff)\n-
v2.1.0\n[`71c9910`](https://github.com/w33ble/rison-node/commit/71c991021497c9ad229b289b6a4bd72672855c50)\n\n###\n[`v2.0.0`](https://github.com/w33ble/rison-node/blob/HEAD/CHANGELOG.md#v200-30-April-2018)\n\n[Compare\nSource](https://github.com/w33ble/rison-node/compare/v1.0.2...v2.0.0)\n\n-
v2.0.0\n[`409eede`](https://github.com/w33ble/rison-node/commit/409eedecda2ced49f31c57bfe250ddefd24b5cfe)\n-
**Breaking:** feat: prevent quoting numeric
keys\n[`01e2be2`](https://github.com/w33ble/rison-node/commit/01e2be2fb546fdeea9f68cd5fd9087660cc1802c)\n\n#####\n[v1.0.2](https://github.com/w33ble/rison-node/compare/v1.0.1...v1.0.2)\n(17
April 2018)\n\n- docs: proper fork, update repo, add
badges\n[`667fc6c`](https://github.com/w33ble/rison-node/commit/667fc6cd6a3ef4022228dd5de6f1d8a28b153eba)\n-
1.0.2\n[`41f1f52`](https://github.com/w33ble/rison-node/commit/41f1f528c4102553fa55d3a7ee54ba5b1f312eeb)\n\n#####\n[v1.0.1](https://github.com/w33ble/rison-node/compare/v1.0.0...v1.0.1)\n(17
April 2018)\n\n-
1.0.1\n[`df44524`](https://github.com/w33ble/rison-node/commit/df44524cc91690a4f1bd425ae434c6cc7e3fb6e0)\n-
docs: update
readme\n[`09bbabf`](https://github.com/w33ble/rison-node/commit/09bbabf3959d77bf26caa84f7221b3625992d27c)\n\n</details>\n\n---\n\n###
Configuration\n\n📅 **Schedule**: Branch creation - At any time (no
schedule defined),\nAutomerge - At any time (no schedule defined).\n\n🚦
**Automerge**: Disabled by config. Please merge this manually once
you\nare satisfied.\n\n♻ **Rebasing**: Whenever PR becomes conflicted,
or you tick the\nrebase/retry checkbox.\n\n🔕 **Ignore**: Close this PR
and you won't be reminded about this update\nagain.\n\n---\n\n- [ ] If
you want to rebase/retry this PR, check\nthis box\n\n---\n\nThis PR has
been generated by
[Renovate\nBot](https://github.com/renovatebot/renovate).\n\n\n\n---------\n\nCo-authored-by:
elastic-renovate-prod[bot]
<174716857+elastic-renovate-prod[bot]@users.noreply.github.com>\nCo-authored-by:
Tim Sullivan <tsullivan@users.noreply.github.com>\nCo-authored-by:
Timothy Sullivan <tsullivan@elastic.co>\nCo-authored-by: Krzysztof
Kowalczyk
<krzysztof.kowalczyk@elastic.co>","sha":"e696d007f7d5aebdf8a954b5ed9454222a60030a"}}]}]
BACKPORT-->

Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>
Co-authored-by: Tim Sullivan <tsullivan@users.noreply.github.com>
Co-authored-by: Timothy Sullivan <tsullivan@elastic.co>
Co-authored-by: Krzysztof Kowalczyk <krzysztof.kowalczyk@elastic.co>
banderror pushed a commit that referenced this pull request Oct 13, 2025
…gent is lost (elastic#237705)

## Summary

Since we use spot agents for our FTR tests, there are cases that some of
the configs are already run but due to agent lost, we will try all the
config of that group again. In this PR, we use Buildkite metadata config
to keep track of configs that are already executed, so that if the agent
is lost, we first check if there is a metadata for this config, if yes,
we will skip running that config.

For this logic to work, we also need to save the Scout events related to
each config after running each config instead of at the end of each
config group, to ensure if the agent is lost, we will keep the related
execution stats and events.

#### Expected improvement

|Build|Before|After|Improvement|
|---|---|---|---|

|[348415](https://buildkite.com/elastic/kibana-pull-request/builds/348415)|2h
25m (estimate)|1h 37m|saves 48 minutes (~33% faster)|

|[348229](https://buildkite.com/elastic/kibana-pull-request/builds/348229)|1h
39m|1h 10m (estimate)|saves 29 minutes (~30% faster)|

|[348223](https://buildkite.com/elastic/kibana-pull-request/builds/348223/waterfall)|2h
3m|1h 17m (estimate)| saves 46 minutes (~37% faster)|

In the last
[example](https://buildkite.com/elastic/kibana-pull-request/builds/348223/waterfall),
`FTR Configs #2` takes almost double the time because the agent is lost
when executing the last config.

<img width="2588" height="456" alt="image"
src="https://github.com/user-attachments/assets/992ffc6b-4412-47f9-9dd2-ecd5ff607358"
/>

Here is a video that illustrates the issue for this
[build](https://buildkite.com/elastic/kibana-pull-request/builds/348229):


https://github.com/user-attachments/assets/5f499f78-5841-40e7-8582-e761b885ed41



### 🧪 How to test

What I did was run a small portion of the tests in this
[build](https://buildkite.com/elastic/kibana-pull-request/builds/348316),
wait for one config to finish and report its stats, then cancel the
build and retry it to see if the new build would skip the completed
config as expected.

In this
[build](https://buildkite.com/elastic/kibana-pull-request/builds/348415),
it also improved `FTR Config 6`, although the previous failure was
"Exited with status 10" not agent loss.

- **Before**: 2h 25m (estimate)
- **After**: 1h 37m
- **Time saved**: 48 minutes (~33% faster)

<img width="2934" height="146" alt="image"
src="https://github.com/user-attachments/assets/88b7ad5a-46b1-42ad-9321-f33a81d89ee6"
/>
banderror pushed a commit that referenced this pull request Mar 27, 2026
…#258775)

## Summary

Creates the foundation package `@kbn/evals-extensions` for advanced
evaluation capabilities. This package will house features ported from
cursor-plugin-evals and serve as the home for Phases 3-5 of the evals
roadmap.

## Architecture

**One-way dependency:**
- ✅ kbn-evals-extensions depends on kbn-evals
- ❌ kbn-evals has NO dependency on kbn-evals-extensions

Evaluation suites opt-in by importing from extensions directly.

## What's Included

✅ Package structure and build configuration
✅ Comprehensive documentation
✅ 5 passing unit tests
✅ CODEOWNERS entry
✅ No functional changes

## Validation

✅ Bootstrap, type check, tests, eslint, check_changes.ts all passed
✅ No circular dependencies

## Roadmap

This enables PRs #2-10 for cost tracking, dataset management, safety
evaluators, UI components, DX enhancements, analytics, A/B testing,
human-in-the-loop, and IDE integration.

## Related

- Part of elastic#257821 - Enables elastic#257823, elastic#257824, elastic#257825, elastic#257826
- Addresses elastic#255820

Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Garrett Spong <garrett.spong@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant