Skip to content

[Synthetics] Fix ping heatmap payload#195107

Merged
justinkambic merged 2 commits intoelastic:mainfrom
justinkambic:fix-heatmap-again-again
Oct 8, 2024
Merged

[Synthetics] Fix ping heatmap payload#195107
justinkambic merged 2 commits intoelastic:mainfrom
justinkambic:fix-heatmap-again-again

Conversation

@justinkambic
Copy link
Copy Markdown
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 Team:actionable-obs Formerly "obs-ux-management", responsible for SLO, o11y alerting, significant events, & synthetics. 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
Copy Markdown
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
@justinkambic justinkambic force-pushed the fix-heatmap-again-again branch from 46cc49f to 8e97aec Compare October 7, 2024 13:43
@kibana-ci
Copy link
Copy Markdown

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

  • 💔 Build #239521 failed 46cc49f5570a3a16242e9347f3a6cfb1517b733f

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
Copy Markdown
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
@kibanamachine
Copy link
Copy Markdown
Contributor

Starting backport for target branches: 8.15, 8.x

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

@kibanamachine
Copy link
Copy Markdown
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

@kibanamachine
Copy link
Copy Markdown
Contributor

Starting backport for target branches: 8.x

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

@justinkambic
Copy link
Copy Markdown
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
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 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":"jk@elastic.co"},"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 <jk@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Fixes for quality problems that affect the customer experience ci:project-deploy-observability Create an Observability project release_note:fix Team:actionable-obs Formerly "obs-ux-management", responsible for SLO, o11y alerting, significant events, & synthetics. v8.16.0 v9.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants