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

[Lens] fix flaky long running test #196725

Merged
merged 1 commit into from
Oct 18, 2024

Conversation

mbondyra
Copy link
Contributor

@mbondyra mbondyra commented Oct 17, 2024

Summary

Fixes #192476
Due the the fact type function is quite slow but irreplaceable here + the DOM tree we're rendering here is very big, I think the best option is to up the timeout limit. On average this test is around 1s long though. (We're setting the limit to 10s)

@mbondyra mbondyra added Team:Visualizations Visualization editors, elastic-charts and infrastructure release_note:skip Skip the PR/issue when compiling release notes Feature:Lens backport:prev-major Backport to (8.x, 8.18, 8.17, 8.16) the previous major branch and other branches in development labels Oct 17, 2024
@mbondyra mbondyra requested a review from a team as a code owner October 17, 2024 15:20
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-visualizations (Team:Visualizations)

@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] Jest Tests #5 / When on the package policy create page And Route state is provided via Fleet HashRouter and the cancel Link or Button is clicked should use custom "cancel" URL
  • [job] [logs] Jest Tests #5 / When on the package policy create page Submit page On save navigate should navigate to agent policy if no route state is set
  • [job] [logs] Jest Tests #5 / When on the package policy create page Submit page On save navigate should navigate to save navigate app if set
  • [job] [logs] Jest Tests #5 / When on the package policy create page Submit page On save navigate should navigate to save navigate path if set
  • [job] [logs] Jest Tests #5 / When on the package policy create page Submit page On save navigate should navigate to save navigate path with query param if set
  • [job] [logs] Jest Tests #5 / When on the package policy create page Submit page Without query param should create agent policy before creating package policy on submit when new hosts is selected
  • [job] [logs] Jest Tests #5 / When on the package policy create page Submit page Without query param should show modal if agent policy has agents

Metrics [docs]

✅ unchanged

Copy link
Contributor

@nickofthyme nickofthyme left a comment

Choose a reason for hiding this comment

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

LGTM

@mbondyra mbondyra merged commit ce41bf1 into elastic:main Oct 18, 2024
43 checks passed
@mbondyra mbondyra deleted the lens/long-running-test branch October 18, 2024 07:42
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.15, 8.16, 8.x

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

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

Fixes elastic#192476
Due the the fact type function is quite slow but irreplaceable here +
the DOM tree we're rendering here is very big, I think the best option
is to up the timeout limit. On average this test is around 1s long
though. (We're setting the limit to 10s)

(cherry picked from commit ce41bf1)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 18, 2024
## Summary

Fixes elastic#192476
Due the the fact type function is quite slow but irreplaceable here +
the DOM tree we're rendering here is very big, I think the best option
is to up the timeout limit. On average this test is around 1s long
though. (We're setting the limit to 10s)

(cherry picked from commit ce41bf1)
@kibanamachine
Copy link
Contributor

💔 Some backports could not be created

Status Branch Result
8.15 Backport failed because of merge conflicts
8.16
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 196725

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Oct 18, 2024
# Backport

This will backport the following commits from `main` to `8.16`:
- [[Lens] fix flaky long running test
(#196725)](#196725)

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

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

<!--BACKPORT [{"author":{"name":"Marta
Bondyra","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-18T07:42:11Z","message":"[Lens]
fix flaky long running test (#196725)\n\n## Summary\r\n\r\nFixes
https://github.com/elastic/kibana/issues/192476\r\nDue the the fact type
function is quite slow but irreplaceable here +\r\nthe DOM tree we're
rendering here is very big, I think the best option\r\nis to up the
timeout limit. On average this test is around 1s long\r\nthough. (We're
setting the limit to
10s)","sha":"ce41bf1fafca416826f1864c3bf8dc0ffb02afc5","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Visualizations","release_note:skip","Feature:Lens","v9.0.0","backport:prev-major"],"title":"[Lens]
fix flaky long running
test","number":196725,"url":"https://github.com/elastic/kibana/pull/196725","mergeCommit":{"message":"[Lens]
fix flaky long running test (#196725)\n\n## Summary\r\n\r\nFixes
https://github.com/elastic/kibana/issues/192476\r\nDue the the fact type
function is quite slow but irreplaceable here +\r\nthe DOM tree we're
rendering here is very big, I think the best option\r\nis to up the
timeout limit. On average this test is around 1s long\r\nthough. (We're
setting the limit to
10s)","sha":"ce41bf1fafca416826f1864c3bf8dc0ffb02afc5"}},"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/196725","number":196725,"mergeCommit":{"message":"[Lens]
fix flaky long running test (#196725)\n\n## Summary\r\n\r\nFixes
https://github.com/elastic/kibana/issues/192476\r\nDue the the fact type
function is quite slow but irreplaceable here +\r\nthe DOM tree we're
rendering here is very big, I think the best option\r\nis to up the
timeout limit. On average this test is around 1s long\r\nthough. (We're
setting the limit to
10s)","sha":"ce41bf1fafca416826f1864c3bf8dc0ffb02afc5"}}]}] BACKPORT-->

Co-authored-by: Marta Bondyra <[email protected]>
kibanamachine added a commit that referenced this pull request Oct 18, 2024
# Backport

This will backport the following commits from `main` to `8.x`:
- [[Lens] fix flaky long running test
(#196725)](#196725)

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

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

<!--BACKPORT [{"author":{"name":"Marta
Bondyra","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-18T07:42:11Z","message":"[Lens]
fix flaky long running test (#196725)\n\n## Summary\r\n\r\nFixes
https://github.com/elastic/kibana/issues/192476\r\nDue the the fact type
function is quite slow but irreplaceable here +\r\nthe DOM tree we're
rendering here is very big, I think the best option\r\nis to up the
timeout limit. On average this test is around 1s long\r\nthough. (We're
setting the limit to
10s)","sha":"ce41bf1fafca416826f1864c3bf8dc0ffb02afc5","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Visualizations","release_note:skip","Feature:Lens","v9.0.0","backport:prev-major"],"title":"[Lens]
fix flaky long running
test","number":196725,"url":"https://github.com/elastic/kibana/pull/196725","mergeCommit":{"message":"[Lens]
fix flaky long running test (#196725)\n\n## Summary\r\n\r\nFixes
https://github.com/elastic/kibana/issues/192476\r\nDue the the fact type
function is quite slow but irreplaceable here +\r\nthe DOM tree we're
rendering here is very big, I think the best option\r\nis to up the
timeout limit. On average this test is around 1s long\r\nthough. (We're
setting the limit to
10s)","sha":"ce41bf1fafca416826f1864c3bf8dc0ffb02afc5"}},"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/196725","number":196725,"mergeCommit":{"message":"[Lens]
fix flaky long running test (#196725)\n\n## Summary\r\n\r\nFixes
https://github.com/elastic/kibana/issues/192476\r\nDue the the fact type
function is quite slow but irreplaceable here +\r\nthe DOM tree we're
rendering here is very big, I think the best option\r\nis to up the
timeout limit. On average this test is around 1s long\r\nthough. (We're
setting the limit to
10s)","sha":"ce41bf1fafca416826f1864c3bf8dc0ffb02afc5"}}]}] BACKPORT-->

Co-authored-by: Marta Bondyra <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-major Backport to (8.x, 8.18, 8.17, 8.16) the previous major branch and other branches in development Feature:Lens release_note:skip Skip the PR/issue when compiling release notes Team:Visualizations Visualization editors, elastic-charts and infrastructure v8.16.0 v8.17.0 v9.0.0
Projects
None yet
4 participants