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] Test useMonitorStatusData hook #195438

Merged
merged 2 commits into from
Oct 16, 2024

Conversation

justinkambic
Copy link
Contributor

@justinkambic justinkambic commented Oct 8, 2024

Summary

Recently we had some issues related to module-level logic errors in a fairly complicated hook.

This PR adds a new jest suite for the hook in question that covers some baseline usage. It could be improved in the future with additional test cases.

@justinkambic justinkambic requested a review from a team as a code owner October 8, 2024 14:51
@botelastic botelastic bot added ci:project-deploy-observability Create an Observability project Team:obs-ux-management Observability Management User Experience Team labels Oct 8, 2024
@elasticmachine
Copy link
Contributor

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

@justinkambic justinkambic added release_note:skip Skip the PR/issue when compiling release notes v9.0.0 backport:prev-major Backport to (8.x, 8.17, 8.16) the previous major branch and other branches in development v8.16.0 v8.15.3 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.17, 8.16) the previous major branch and other branches in development v8.15.3 labels Oct 8, 2024
Copy link
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 🚢

@justinkambic justinkambic force-pushed the test-use-monitor-status-data branch from 7b47cb7 to 386d2d9 Compare October 16, 2024 14:10
@elasticmachine
Copy link
Contributor

elasticmachine commented Oct 16, 2024

💛 Build succeeded, but was flaky

  • Buildkite Build
  • Commit: 386d2d9
  • Kibana Serverless Image: docker.elastic.co/kibana-ci/kibana-serverless:pr-195438-386d2d9974d1

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #98 / Actions and Triggers app create alert should add filter

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.1MB 1.1MB +116.0B

History

  • 💔 Build #242720 failed 7b47cb763e69f64ef466230def8292d2ae100b08
  • 💔 Build #241213 failed ec636c73c17df73573f5122c5f8fa46582a73400
  • 💛 Build #240328 was flaky cb5a564e643c3e06694ee02f62ef9ba1074ca4b0

@justinkambic justinkambic merged commit 4605cc0 into elastic:main Oct 16, 2024
26 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

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

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

Recently we had some issues related to module-level logic errors in a
fairly complicated hook.

This PR adds a new jest suite for the hook in question that covers some
baseline usage. It could be improved in the future with additional test
cases.

(cherry picked from commit 4605cc0)
@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 16, 2024
… (#196575)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Synthetics] Test `useMonitorStatusData` hook
(#195438)](#195438)

<!--- 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-16T16:21:48Z","message":"[Synthetics]
Test `useMonitorStatusData` hook (#195438)\n\n## Summary\r\n\r\nRecently
we had some issues related to module-level logic errors in a\r\nfairly
complicated hook.\r\n\r\nThis PR adds a new jest suite for the hook in
question that covers some\r\nbaseline usage. It could be improved in the
future with additional
test\r\ncases.","sha":"4605cc03074aad77dba7b7ceadd691fc80f9cc58","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor","ci:project-deploy-observability","Team:obs-ux-management","v8.17.0"],"title":"[Synthetics]
Test `useMonitorStatusData`
hook","number":195438,"url":"https://github.com/elastic/kibana/pull/195438","mergeCommit":{"message":"[Synthetics]
Test `useMonitorStatusData` hook (#195438)\n\n## Summary\r\n\r\nRecently
we had some issues related to module-level logic errors in a\r\nfairly
complicated hook.\r\n\r\nThis PR adds a new jest suite for the hook in
question that covers some\r\nbaseline usage. It could be improved in the
future with additional
test\r\ncases.","sha":"4605cc03074aad77dba7b7ceadd691fc80f9cc58"}},"sourceBranch":"main","suggestedTargetBranches":["8.17"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/195438","number":195438,"mergeCommit":{"message":"[Synthetics]
Test `useMonitorStatusData` hook (#195438)\n\n## Summary\r\n\r\nRecently
we had some issues related to module-level logic errors in a\r\nfairly
complicated hook.\r\n\r\nThis PR adds a new jest suite for the hook in
question that covers some\r\nbaseline usage. It could be improved in the
future with additional
test\r\ncases.","sha":"4605cc03074aad77dba7b7ceadd691fc80f9cc58"}},{"branch":"8.17","label":"v8.17.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Justin Kambic <[email protected]>
hop-dev pushed a commit to hop-dev/kibana that referenced this pull request Oct 17, 2024
## Summary

Recently we had some issues related to module-level logic errors in a
fairly complicated hook.

This PR adds a new jest suite for the hook in question that covers some
baseline usage. It could be improved in the future with additional test
cases.
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) ci:project-deploy-observability Create an Observability project release_note:skip Skip the PR/issue when compiling release notes Team:obs-ux-management Observability Management User Experience Team v8.16.0 v8.17.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants