Skip to content

[Fleet] Synthetics installMissingPackage during monitor cruds #191486

Merged
shahzad31 merged 2 commits intoelastic:mainfrom
shahzad31:fleet-retries
Sep 24, 2024
Merged

[Fleet] Synthetics installMissingPackage during monitor cruds #191486
shahzad31 merged 2 commits intoelastic:mainfrom
shahzad31:fleet-retries

Conversation

@shahzad31
Copy link
Copy Markdown
Contributor

@shahzad31 shahzad31 commented Aug 27, 2024

Summary

Reuse package infos for synthetics bulk ops !!

We are just trying to debug Project monitor push API which interacts with fleet code and trying to see what excessive calls are being made, which can be reduced.

@shahzad31
Copy link
Copy Markdown
Contributor Author

/ci

@obltmachine
Copy link
Copy Markdown

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@shahzad31
Copy link
Copy Markdown
Contributor Author

/ci

@shahzad31 shahzad31 added the release_note:skip Skip the PR/issue when compiling release notes label Aug 27, 2024
@shahzad31 shahzad31 marked this pull request as ready for review August 27, 2024 15:42
@shahzad31 shahzad31 requested review from a team as code owners August 27, 2024 15:42
Copy link
Copy Markdown
Contributor

@juliaElastic juliaElastic left a comment

Choose a reason for hiding this comment

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

LGTM

@botelastic botelastic bot added ci:project-deploy-observability Create an Observability project Team:Fleet Team label for Observability Data Collection Fleet team Team:actionable-obs Formerly "obs-ux-management", responsible for SLO, o11y alerting, significant events, & synthetics. labels Aug 28, 2024
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/fleet (Team:Fleet)

@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/obs-ux-management-team (Team:obs-ux-management)

@kpollich
Copy link
Copy Markdown
Member

@shahzad31 - Please try to include more content in PR descriptions. A relevant issue to reference, steps to reproduce, and a summary of the changes would be great to help with productive code review. The PR template for Kibana should have some helpful starting points for this.

@shahzad31
Copy link
Copy Markdown
Contributor Author

@kpollich

We are trying to invetigate all the code paths our project monitor API was interacting and after checking APM trace, found multiple API calls which seems excessive while interacting with fleet. I think this is mostly code refactoring category i would say. it's related to this SDH https://github.com/elastic/sdh-synthetics/issues/120

Copy link
Copy Markdown
Contributor

@dominiqueclarke dominiqueclarke left a comment

Choose a reason for hiding this comment

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

LGTM, but think a variable naming change might be good.

@jasonrhodes
Copy link
Copy Markdown
Member

@shahzad31 what is the status of this PR?

@kibana-ci
Copy link
Copy Markdown

kibana-ci commented Sep 24, 2024

💛 Build succeeded, but was flaky

  • Buildkite Build
  • Commit: 5e778a5
  • Kibana Serverless Image: docker.elastic.co/kibana-ci/kibana-serverless:pr-191486-5e778a5b8bda

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #14 / Saved Objects Management saved objects management with hidden types Delete modal should not delete the hidden objects when performing the operation

Metrics [docs]

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
fleet 1241 1243 +2
Unknown metric groups

API count

id before after diff
fleet 1364 1366 +2

History

  • 💛 Build #230611 was flaky 74c2219e27376b4add4de0de9d28fcbbfe03d4b6
  • 💔 Build #230481 failed a93d03b5becc288d227381f9d47fc0c220953975
  • 💔 Build #230427 failed 00d01a24930f993975701d453296ca7d8b471ba1
  • 💛 Build #230169 was flaky daa33080208a4d2c7aa78a13b92b623dd44d55cb
  • 💚 Build #230112 succeeded daa33080208a4d2c7aa78a13b92b623dd44d55cb

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

@shahzad31 shahzad31 merged commit 6d584d4 into elastic:main Sep 24, 2024
@shahzad31 shahzad31 deleted the fleet-retries branch September 24, 2024 10:33
@shahzad31 shahzad31 changed the title [Fleet] Reuse package infos for synthetics bulk ops [Fleet] Synthetics installMissingPackage during monitor cruds Sep 24, 2024
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Sep 24, 2024
## Summary

 Reuse package infos for synthetics bulk ops !!

We are just trying to debug Project monitor push API which interacts
with fleet code and trying to see what excessive calls are being made,
which can be reduced.

(cherry picked from commit 6d584d4)
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 All backports created successfully

Status Branch Result
8.x

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

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Sep 24, 2024
…193846)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Fleet] Reuse package infos for synthetics bulk ops
(#191486)](#191486)

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

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

<!--BACKPORT
[{"author":{"name":"Shahzad","email":"shahzad31comp@gmail.com"},"sourceCommit":{"committedDate":"2024-09-24T10:33:22Z","message":"[Fleet]
Reuse package infos for synthetics bulk ops (#191486)\n\n##
Summary\r\n\r\n Reuse package infos for synthetics bulk ops !!\r\n\r\nWe
are just trying to debug Project monitor push API which
interacts\r\nwith fleet code and trying to see what excessive calls are
being made,\r\nwhich can be
reduced.","sha":"6d584d49a73284077d5331c9c5398593f9edd5ea","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Fleet","v9.0.0","backport:prev-minor","ci:project-deploy-observability","Team:obs-ux-management"],"title":"[Fleet]
Reuse package infos for synthetics bulk
ops","number":191486,"url":"https://github.com/elastic/kibana/pull/191486","mergeCommit":{"message":"[Fleet]
Reuse package infos for synthetics bulk ops (#191486)\n\n##
Summary\r\n\r\n Reuse package infos for synthetics bulk ops !!\r\n\r\nWe
are just trying to debug Project monitor push API which
interacts\r\nwith fleet code and trying to see what excessive calls are
being made,\r\nwhich can be
reduced.","sha":"6d584d49a73284077d5331c9c5398593f9edd5ea"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/191486","number":191486,"mergeCommit":{"message":"[Fleet]
Reuse package infos for synthetics bulk ops (#191486)\n\n##
Summary\r\n\r\n Reuse package infos for synthetics bulk ops !!\r\n\r\nWe
are just trying to debug Project monitor push API which
interacts\r\nwith fleet code and trying to see what excessive calls are
being made,\r\nwhich can be
reduced.","sha":"6d584d49a73284077d5331c9c5398593f9edd5ea"}}]}]
BACKPORT-->

Co-authored-by: Shahzad <shahzad31comp@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:project-deploy-observability Create an Observability project release_note:skip Skip the PR/issue when compiling release notes Team:actionable-obs Formerly "obs-ux-management", responsible for SLO, o11y alerting, significant events, & synthetics. Team:Fleet Team label for Observability Data Collection Fleet team v8.16.0 v9.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants