# Backport
This will backport the following commits from `main` to `7.17`:
- [[ci] More info to test annotation failure logging
(#215515)](https://github.com/elastic/kibana/pull/215515)
<!--- Backport version: 9.6.6 -->
### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)
<!--BACKPORT [{"author":{"name":"Alex
Szabo","email":"alex.szabo@elastic.co"},"sourceCommit":{"committedDate":"2025-03-24T18:01:32Z","message":"[ci]
More info to test annotation failure logging (#215515)\n\n##
Summary\nWhile annotating test failures, we're seeing increased amount
of errors\nlike this:\n```\n2025-03-21 13:52:32 INFO Artifact uploads
completed successfully\n--\n | Annotate test failures error Request
failed with status code 404\n | HTTP Error Response Status 404\n |
HTTP Error Response Body { message: 'Not Found' }\n | user command
error: exit status 10\n```\n\nIt would be nicer to show a bit more from
the error to help
debugging.","sha":"7120074ec32dcf693580244a01475a2af065a33d","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Operations","release_note:skip","skip-ci","backport:all-open","v9.1.0"],"title":"[ci]
More info to test annotation failure
logging","number":215515,"url":"https://github.com/elastic/kibana/pull/215515","mergeCommit":{"message":"[ci]
More info to test annotation failure logging (#215515)\n\n##
Summary\nWhile annotating test failures, we're seeing increased amount
of errors\nlike this:\n```\n2025-03-21 13:52:32 INFO Artifact uploads
completed successfully\n--\n | Annotate test failures error Request
failed with status code 404\n | HTTP Error Response Status 404\n |
HTTP Error Response Body { message: 'Not Found' }\n | user command
error: exit status 10\n```\n\nIt would be nicer to show a bit more from
the error to help
debugging.","sha":"7120074ec32dcf693580244a01475a2af065a33d"}},"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/215515","number":215515,"mergeCommit":{"message":"[ci]
More info to test annotation failure logging (#215515)\n\n##
Summary\nWhile annotating test failures, we're seeing increased amount
of errors\nlike this:\n```\n2025-03-21 13:52:32 INFO Artifact uploads
completed successfully\n--\n | Annotate test failures error Request
failed with status code 404\n | HTTP Error Response Status 404\n |
HTTP Error Response Body { message: 'Not Found' }\n | user command
error: exit status 10\n```\n\nIt would be nicer to show a bit more from
the error to help
debugging.","sha":"7120074ec32dcf693580244a01475a2af065a33d"}}]}]
BACKPORT-->
Co-authored-by: Alex Szabo <alex.szabo@elastic.co>
# Backport
This will backport the following commits from `main` to `7.17`:
- [[ci] Add node scripts/yarn_deduplicate check
(main)(#169165)](https://github.com/elastic/kibana/pull/169165)
---------
Co-authored-by: Jon <jon@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
# Backport
This will backport the following commits from `main` to `7.17`:
- [[CI] Add suggestion from #189316
(#189765)](https://github.com/elastic/kibana/pull/189765)
<!--- Backport version: 8.9.8 -->
### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)
<!--BACKPORT [{"author":{"name":"Brad
White","email":"Ikuni17@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-08-02T16:35:56Z","message":"[CI]
Add suggestion from #189316 (#189765)\n\n## Summary\r\n\r\nThis was just
a suggested change from #189316 which didn't get addressed\r\nbecause of
auto
merge.","sha":"f941ba4d6b60cee41c418140e21b677ca0972c71","branchLabelMapping":{"^v8.16.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Operations","release_note:skip","backport:all-open","v8.16.0"],"number":189765,"url":"https://github.com/elastic/kibana/pull/189765","mergeCommit":{"message":"[CI]
Add suggestion from #189316 (#189765)\n\n## Summary\r\n\r\nThis was just
a suggested change from #189316 which didn't get addressed\r\nbecause of
auto
merge.","sha":"f941ba4d6b60cee41c418140e21b677ca0972c71"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.16.0","labelRegex":"^v8.16.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/189765","number":189765,"mergeCommit":{"message":"[CI]
Add suggestion from #189316 (#189765)\n\n## Summary\r\n\r\nThis was just
a suggested change from #189316 which didn't get addressed\r\nbecause of
auto
merge.","sha":"f941ba4d6b60cee41c418140e21b677ca0972c71"}},{"url":"https://github.com/elastic/kibana/pull/189824","number":189824,"branch":"8.15","state":"OPEN"}]}]
BACKPORT-->
# Backport
This will backport the following commits from `main` to `7.17`:
- [chore(NA): remove usage of re2 and replace it with a non native
module (#188134)](https://github.com/elastic/kibana/pull/188134)
<!--- Backport version: 8.9.8 -->
### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)
<!--BACKPORT [{"author":{"name":"Tiago
Costa","email":"tiago.costa@elastic.co"},"sourceCommit":{"committedDate":"2024-07-15T19:33:28Z","message":"chore(NA):
remove usage of re2 and replace it with a non native module
(#188134)\n\nThis PR removes the usage of the native module version of
`re2` and\r\nreplaces it with a js port called `re2js`.\r\nIt also ends
our usage of native node modules in production and it\r\nremoves the
task from the build as well. Further steps will be taken\r\nalong our
strategy to avoid future usages of native node modules in
prod\r\nenvironments.","sha":"3c338a82c2d6d59c91f0f3b74f725231c69c5b13","branchLabelMapping":{"^v8.16.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["chore","Team:Operations","release_note:skip","backport:all-open","v8.16.0"],"number":188134,"url":"https://github.com/elastic/kibana/pull/188134","mergeCommit":{"message":"chore(NA):
remove usage of re2 and replace it with a non native module
(#188134)\n\nThis PR removes the usage of the native module version of
`re2` and\r\nreplaces it with a js port called `re2js`.\r\nIt also ends
our usage of native node modules in production and it\r\nremoves the
task from the build as well. Further steps will be taken\r\nalong our
strategy to avoid future usages of native node modules in
prod\r\nenvironments.","sha":"3c338a82c2d6d59c91f0f3b74f725231c69c5b13"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.16.0","labelRegex":"^v8.16.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/188134","number":188134,"mergeCommit":{"message":"chore(NA):
remove usage of re2 and replace it with a non native module
(#188134)\n\nThis PR removes the usage of the native module version of
`re2` and\r\nreplaces it with a js port called `re2js`.\r\nIt also ends
our usage of native node modules in production and it\r\nremoves the
task from the build as well. Further steps will be taken\r\nalong our
strategy to avoid future usages of native node modules in
prod\r\nenvironments.","sha":"3c338a82c2d6d59c91f0f3b74f725231c69c5b13"}}]}]
BACKPORT-->
## Summary
The ES forward testing only happens from the direction of 7.17, so this
file only exists on 7.17, thus it's not a backport, but a direct
adjustment of these rules.
Follows up: https://github.com/elastic/kibana/pull/184018
# Backport
This will backport the following commits from `main` to `7.17`:
- [Remove Agent Debug Info
(#187126)](https://github.com/elastic/kibana/pull/187126)
<!--- Backport version: 8.9.8 -->
### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)
<!--BACKPORT [{"author":{"name":"Brad
White","email":"Ikuni17@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-07-08T21:10:14Z","message":"Remove
Agent Debug Info (#187126)\n\n## Summary\r\n\r\n- Removes SSH info to
avoid confusion since we cannot SSH into agents on\r\nthe new infra\r\n-
Removes old agent metrics and logs links because they are in
a\r\ndifferent cluster and the new links are in an
annotation","sha":"dd9d6434cae8b7beb3b730cd42898b8f63dbee91","branchLabelMapping":{"^v8.16.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Operations","release_note:skip","backport:all-open","v8.15.0","v8.16.0"],"number":187126,"url":"https://github.com/elastic/kibana/pull/187126","mergeCommit":{"message":"Remove
Agent Debug Info (#187126)\n\n## Summary\r\n\r\n- Removes SSH info to
avoid confusion since we cannot SSH into agents on\r\nthe new infra\r\n-
Removes old agent metrics and logs links because they are in
a\r\ndifferent cluster and the new links are in an
annotation","sha":"dd9d6434cae8b7beb3b730cd42898b8f63dbee91"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"8.15","label":"v8.15.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/187802","number":187802,"state":"OPEN"},{"branch":"main","label":"v8.16.0","labelRegex":"^v8.16.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/187126","number":187126,"mergeCommit":{"message":"Remove
Agent Debug Info (#187126)\n\n## Summary\r\n\r\n- Removes SSH info to
avoid confusion since we cannot SSH into agents on\r\nthe new infra\r\n-
Removes old agent metrics and logs links because they are in
a\r\ndifferent cluster and the new links are in an
annotation","sha":"dd9d6434cae8b7beb3b730cd42898b8f63dbee91"}}]}]
BACKPORT-->
## Summary
Removes unused pipelines, and their related scripts:
- package_testing.yml
- demo_env.yml
Updates a pipeline to the new buildkite agent targeting format:
- performance/daily.yml (missed backport after migration)
## Summary
Manual backport of: https://github.com/elastic/kibana/pull/180403 with
some extra fixes:
- scripts that generate pipeline steps should care for what's the
environment, and branch on agent targeting rules
- set google account for bazel to access cache
---------
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
## Summary
This is effectively the backport of
https://github.com/elastic/kibana/pull/180078 to 7.17 through the
pipeline-lib.
This is required so that the `pick_test_group_run_order` functionality
will start to respect the new running environment and request agents
with full agent targeting rules instead of queues.
# Backport
This will backport the following commits from `main` to `7.17`:
- [[Ops] Refactor env loading & fix agent-targeting rewrite
(#178320)](https://github.com/elastic/kibana/pull/178320)
<!--- Backport version: 8.9.8 -->
### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)
<!--BACKPORT [{"author":{"name":"Alex
Szabo","email":"alex.szabo@elastic.co"},"sourceCommit":{"committedDate":"2024-03-12T15:31:26Z","message":"[Ops]
Refactor env loading & fix agent-targeting rewrite (#178320)\n\n##
Summary\r\nThis PR refactors a bit of the pre-command env setup,
separating parts,\r\nso they can be individually skipped. Then it
removes the setup-avoidance\r\nbased on agent types, as this won't be
useful after the migration.\r\n\r\nAlso, it fixes a missed bit in the
agent-targeting rewrite used for the\r\nmigration, where the `provider:
'gcp'` was missing, and adds an optional\r\ntargeting for the
script.\r\n\r\n- add gcp as provider to all rewritten agent targeting
rules\r\n- add option to target specific pipelines\r\n- refactor env-var
loading to a separated file\r\n- refactor node installs so it can be
switched by a flag\r\n- skip node installing in (some) jobs that don't
require
it","sha":"a89fb9b2fbb73742808fa419aaf98486c31d921d","branchLabelMapping":{"^v8.14.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Operations","release_note:skip","backport
missing","v8.14.0","v8.13.1"],"number":178320,"url":"https://github.com/elastic/kibana/pull/178320","mergeCommit":{"message":"[Ops]
Refactor env loading & fix agent-targeting rewrite (#178320)\n\n##
Summary\r\nThis PR refactors a bit of the pre-command env setup,
separating parts,\r\nso they can be individually skipped. Then it
removes the setup-avoidance\r\nbased on agent types, as this won't be
useful after the migration.\r\n\r\nAlso, it fixes a missed bit in the
agent-targeting rewrite used for the\r\nmigration, where the `provider:
'gcp'` was missing, and adds an optional\r\ntargeting for the
script.\r\n\r\n- add gcp as provider to all rewritten agent targeting
rules\r\n- add option to target specific pipelines\r\n- refactor env-var
loading to a separated file\r\n- refactor node installs so it can be
switched by a flag\r\n- skip node installing in (some) jobs that don't
require
it","sha":"a89fb9b2fbb73742808fa419aaf98486c31d921d"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.14.0","labelRegex":"^v8.14.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/178320","number":178320,"mergeCommit":{"message":"[Ops]
Refactor env loading & fix agent-targeting rewrite (#178320)\n\n##
Summary\r\nThis PR refactors a bit of the pre-command env setup,
separating parts,\r\nso they can be individually skipped. Then it
removes the setup-avoidance\r\nbased on agent types, as this won't be
useful after the migration.\r\n\r\nAlso, it fixes a missed bit in the
agent-targeting rewrite used for the\r\nmigration, where the `provider:
'gcp'` was missing, and adds an optional\r\ntargeting for the
script.\r\n\r\n- add gcp as provider to all rewritten agent targeting
rules\r\n- add option to target specific pipelines\r\n- refactor env-var
loading to a separated file\r\n- refactor node installs so it can be
switched by a flag\r\n- skip node installing in (some) jobs that don't
require
it","sha":"a89fb9b2fbb73742808fa419aaf98486c31d921d"}},{"branch":"8.13","label":"v8.13.1","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/178533","number":178533,"state":"OPEN"}]}]
BACKPORT-->
It does looks like in some situations (like for example in the external
macos bazel caches machines) `npm` was being executed without node being
yet correctly configured on 7.17 branch. This change will fix the
problem.
# Backport
This will backport the following commits from `main` to `7.17`:
- [Update docs-preview link
(#176468)](https://github.com/elastic/kibana/pull/176468)
<!--- Backport version: 9.4.3 -->
### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)
<!--BACKPORT [{"author":{"name":"Nassim
Kammah","email":"nkammah@gmail.com"},"sourceCommit":{"committedDate":"2024-02-08T07:42:35Z","message":"Update
docs-preview link (#176468)\n\n## Summary\r\n\r\nFollowing the migration
from Jenkins to Buildkite, docs previews are now\r\navailable at
<repo>_bk_<PR>.\r\nMore context in
https://github.com/elastic/docs/pull/2898\r\n\r\n###
Checklist\r\n\r\n\r\n### Risk Matrix\r\n\r\n\r\n### For
maintainers\r\n\r\n- [ ] This was checked for breaking API changes and
was
[labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"096bf5515a34f1158a3bd1c0a259388b337f1f68","branchLabelMapping":{"^v8.13.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:all-open","v8.13.0"],"title":"Update
docs-preview
link","number":176468,"url":"https://github.com/elastic/kibana/pull/176468","mergeCommit":{"message":"Update
docs-preview link (#176468)\n\n## Summary\r\n\r\nFollowing the migration
from Jenkins to Buildkite, docs previews are now\r\navailable at
<repo>_bk_<PR>.\r\nMore context in
https://github.com/elastic/docs/pull/2898\r\n\r\n###
Checklist\r\n\r\n\r\n### Risk Matrix\r\n\r\n\r\n### For
maintainers\r\n\r\n- [ ] This was checked for breaking API changes and
was
[labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"096bf5515a34f1158a3bd1c0a259388b337f1f68"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.13.0","branchLabelMappingKey":"^v8.13.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/176468","number":176468,"mergeCommit":{"message":"Update
docs-preview link (#176468)\n\n## Summary\r\n\r\nFollowing the migration
from Jenkins to Buildkite, docs previews are now\r\navailable at
<repo>_bk_<PR>.\r\nMore context in
https://github.com/elastic/docs/pull/2898\r\n\r\n###
Checklist\r\n\r\n\r\n### Risk Matrix\r\n\r\n\r\n### For
maintainers\r\n\r\n- [ ] This was checked for breaking API changes and
was
[labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"096bf5515a34f1158a3bd1c0a259388b337f1f68"}}]}]
BACKPORT-->
Co-authored-by: Nassim Kammah <nkammah@gmail.com>
# Backport
This will backport the following commits from `main` to `7.17`:
- [[ci] Remove ubi8 step
(#174257)](https://github.com/elastic/kibana/pull/174257)
<!--- Backport version: 9.4.3 -->
### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)
<!--BACKPORT
[{"author":{"name":"Jon","email":"jon@elastic.co"},"sourceCommit":{"committedDate":"2024-01-04T13:34:11Z","message":"[ci]
Remove ubi8 step (#174257)\n\nUBI8 builds were removed
in\r\nhttps://github.com/elastic/kibana/pull/173873, but I missed the CI
step\r\nthat verifies the docker context. This removes the
step.","sha":"d72a5d1f631249b2ed4eb4dd2bbd285e586b0cfe","branchLabelMapping":{"^v8.13.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Operations","release_note:skip","backport:all-open","v8.13.0"],"title":"[ci]
Remove ubi8
step","number":174257,"url":"https://github.com/elastic/kibana/pull/174257","mergeCommit":{"message":"[ci]
Remove ubi8 step (#174257)\n\nUBI8 builds were removed
in\r\nhttps://github.com/elastic/kibana/pull/173873, but I missed the CI
step\r\nthat verifies the docker context. This removes the
step.","sha":"d72a5d1f631249b2ed4eb4dd2bbd285e586b0cfe"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.13.0","branchLabelMappingKey":"^v8.13.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/174257","number":174257,"mergeCommit":{"message":"[ci]
Remove ubi8 step (#174257)\n\nUBI8 builds were removed
in\r\nhttps://github.com/elastic/kibana/pull/173873, but I missed the CI
step\r\nthat verifies the docker context. This removes the
step.","sha":"d72a5d1f631249b2ed4eb4dd2bbd285e586b0cfe"}}]}] BACKPORT-->
Co-authored-by: Jon <jon@elastic.co>