Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Synthetics] Fix ping heatmap payload #195107

Merged
merged 2 commits into from
Oct 8, 2024

Conversation

justinkambic
Copy link
Contributor

@justinkambic justinkambic commented Oct 4, 2024

Summary

We addressed #180076 recently with these two PRs:

We were seeing a strange error that was difficult to repro, so we put in a best-effort patch that was still ineffective. The reason this issue happens is because in the code it's possible to divide by 0, which yields a value of Infinity, which at some point causes our interval value supplied to the server route to be an empty string.

This patch will make it so that we never pass a value of 0 to be used in the calculation of bucket sizes in this hook.

@justinkambic justinkambic added bug Fixes for quality problems that affect the customer experience release_note:fix backport:prev-major Backport to (8.x, 8.16, 8.15) the previous major branch and all later branches still in development Team:obs-ux-management Observability Management User Experience Team v8.16.0 v8.15.3 labels Oct 4, 2024
@justinkambic justinkambic self-assigned this Oct 4, 2024
@justinkambic justinkambic requested a review from a team as a code owner October 4, 2024 15:27
@elasticmachine
Copy link
Contributor

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

@botelastic botelastic bot added the ci:project-deploy-observability Create an Observability project label Oct 4, 2024
@kibana-ci
Copy link
Collaborator

kibana-ci commented Oct 7, 2024

💛 Build succeeded, but was flaky

  • Buildkite Build
  • Commit: 8e97aec
  • Kibana Serverless Image: docker.elastic.co/kibana-ci/kibana-serverless:pr-195107-8e97aec412bb

Failed CI Steps

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
synthetics 1.2MB 1.2MB +11.0B

History

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

cc @justinkambic

@justinkambic justinkambic enabled auto-merge (squash) October 8, 2024 12:21
@elasticmachine
Copy link
Contributor

elasticmachine commented Oct 8, 2024

💛 Build succeeded, but was flaky

  • Buildkite Build
  • Commit: 5a1ab08
  • Kibana Serverless Image: docker.elastic.co/kibana-ci/kibana-serverless:pr-195107-5a1ab086425a

Failed CI Steps

Test Failures

  • [job] [logs] Jest Tests #7 / EditableMarkdown Save button click calls onSaveContent and onChangeEditable when text area value changed

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
synthetics 1.2MB 1.2MB +11.0B

History

cc @justinkambic

@justinkambic justinkambic merged commit 560d561 into elastic:main Oct 8, 2024
27 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.15, 8.x

https://github.com/elastic/kibana/actions/runs/11237971580

@justinkambic justinkambic deleted the fix-heatmap-again-again branch October 8, 2024 14:51
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 8, 2024
## Summary

We addressed elastic#180076 recently
with these two PRs:

- elastic#184177
- elastic#192508

We were seeing a strange error that was difficult to repro, so we put in
a best-effort patch that was still ineffective. The reason this issue
happens is because in the code it's possible to divide by 0, which
yields a value of `Infinity`, which at some point causes our interval
value supplied to the server route to be an empty string.

This patch will make it so that we never pass a value of 0 to be used in
the calculation of bucket sizes in this hook.

(cherry picked from commit 560d561)
@kibanamachine
Copy link
Contributor

💔 Some backports could not be created

Status Branch Result
8.15 Backport failed because of merge conflicts
8.x

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

Manual backport

To create the backport manually run:

node scripts/backport --pr 195107

Questions ?

Please refer to the Backport tool documentation

@justinkambic justinkambic added backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) and removed backport:prev-major Backport to (8.x, 8.16, 8.15) the previous major branch and all later branches still in development v8.15.3 labels Oct 8, 2024
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

https://github.com/elastic/kibana/actions/runs/11238927793

@justinkambic
Copy link
Contributor Author

Initially this was labeled to backport to 8.15.x but the original fix only targeted 8.16, so we will switch that target.

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 8, 2024
## Summary

We addressed elastic#180076 recently
with these two PRs:

- elastic#184177
- elastic#192508

We were seeing a strange error that was difficult to repro, so we put in
a best-effort patch that was still ineffective. The reason this issue
happens is because in the code it's possible to divide by 0, which
yields a value of `Infinity`, which at some point causes our interval
value supplied to the server route to be an empty string.

This patch will make it so that we never pass a value of 0 to be used in
the calculation of bucket sizes in this hook.

(cherry picked from commit 560d561)
@kibanamachine
Copy link
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 Oct 8, 2024
# Backport

This will backport the following commits from `main` to `8.x`:
- [[Synthetics] Fix ping heatmap payload
(#195107)](#195107)

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

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

<!--BACKPORT [{"author":{"name":"Justin
Kambic","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-08T14:46:30Z","message":"[Synthetics]
Fix ping heatmap payload (#195107)\n\n## Summary\r\n\r\nWe addressed
#180076 recently\r\nwith these
two PRs:\r\n\r\n- https://github.com/elastic/kibana/pull/184177\r\n-
https://github.com/elastic/kibana/pull/192508\r\n\r\nWe were seeing a
strange error that was difficult to repro, so we put in\r\na best-effort
patch that was still ineffective. The reason this issue\r\nhappens is
because in the code it's possible to divide by 0, which\r\nyields a
value of `Infinity`, which at some point causes our interval\r\nvalue
supplied to the server route to be an empty string.\r\n\r\nThis patch
will make it so that we never pass a value of 0 to be used in\r\nthe
calculation of bucket sizes in this
hook.","sha":"560d561e21fe51020954bd9e3246f238ffa026ba","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","v9.0.0","backport:prev-major","ci:project-deploy-observability","Team:obs-ux-management","v8.16.0","v8.15.3"],"title":"[Synthetics]
Fix ping heatmap
payload","number":195107,"url":"https://github.com/elastic/kibana/pull/195107","mergeCommit":{"message":"[Synthetics]
Fix ping heatmap payload (#195107)\n\n## Summary\r\n\r\nWe addressed
#180076 recently\r\nwith these
two PRs:\r\n\r\n- https://github.com/elastic/kibana/pull/184177\r\n-
https://github.com/elastic/kibana/pull/192508\r\n\r\nWe were seeing a
strange error that was difficult to repro, so we put in\r\na best-effort
patch that was still ineffective. The reason this issue\r\nhappens is
because in the code it's possible to divide by 0, which\r\nyields a
value of `Infinity`, which at some point causes our interval\r\nvalue
supplied to the server route to be an empty string.\r\n\r\nThis patch
will make it so that we never pass a value of 0 to be used in\r\nthe
calculation of bucket sizes in this
hook.","sha":"560d561e21fe51020954bd9e3246f238ffa026ba"}},"sourceBranch":"main","suggestedTargetBranches":["8.x","8.15"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/195107","number":195107,"mergeCommit":{"message":"[Synthetics]
Fix ping heatmap payload (#195107)\n\n## Summary\r\n\r\nWe addressed
#180076 recently\r\nwith these
two PRs:\r\n\r\n- https://github.com/elastic/kibana/pull/184177\r\n-
https://github.com/elastic/kibana/pull/192508\r\n\r\nWe were seeing a
strange error that was difficult to repro, so we put in\r\na best-effort
patch that was still ineffective. The reason this issue\r\nhappens is
because in the code it's possible to divide by 0, which\r\nyields a
value of `Infinity`, which at some point causes our interval\r\nvalue
supplied to the server route to be an empty string.\r\n\r\nThis patch
will make it so that we never pass a value of 0 to be used in\r\nthe
calculation of bucket sizes in this
hook.","sha":"560d561e21fe51020954bd9e3246f238ffa026ba"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.15","label":"v8.15.3","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Justin Kambic <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) bug Fixes for quality problems that affect the customer experience ci:project-deploy-observability Create an Observability project release_note:fix Team:obs-ux-management Observability Management User Experience Team v8.16.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants