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

[Grok Debugger] Changed test to wait for grok debugger container to exist to fix test flakiness #90543

Merged

Conversation

cuff-links
Copy link
Contributor

Closes #84440

Summary

This test is to fix one of the tests from intermittent failures.

Changes made

  • Changed a retry.try call to retry.waitFor to explicitly wait 20 seconds for the grok debugger container to show up.
  • Changed the grok debugger container data test subject from grokDebugger to grokDebuggerContainer because there is another element with the data test subject grokdebugger and though there is a difference in the capitalization of the D, there could be issues with ambiguity when it comes to WebDriver.

…20 seconds to see the container. Also changed the data test subject as there was another grokDebugger test subject just in case there was a clash.
@cuff-links cuff-links added Feature:Dev Tools test_ui_functional test_xpack_functional v8.0.0 Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more Feature:Grok Debugger Dev Tools Grok Debugger feature v7.12.0 labels Feb 6, 2021
@cuff-links cuff-links requested a review from a team as a code owner February 6, 2021 04:05
@elasticmachine
Copy link
Contributor

Pinging @elastic/es-ui (Team:Elasticsearch UI)

@cuff-links cuff-links added the release_note:skip Skip the PR/issue when compiling release notes label Feb 6, 2021
@cuff-links cuff-links requested a review from jloleysens February 6, 2021 06:33
@cuff-links
Copy link
Contributor Author

cuff-links commented Feb 6, 2021

@jloleysens Once you review, I will remove the .only and revert back to CI Group 13. Ran through the flaky test runner. https://kibana-ci.elastic.co/job/kibana+flaky-test-suite-runner/1250/

@jloleysens
Copy link
Contributor

@elasticmachine merge upstream

Copy link
Contributor

@jloleysens jloleysens left a comment

Choose a reason for hiding this comment

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

Happy with these changes @cuff-links ! How many successful non-flaky CI runs do we need of the unskipped suite of tests to be confident the flakiness is gone.

Just asking to better understand how this is determined :)

@cuff-links
Copy link
Contributor Author

Happy with these changes @cuff-links ! How many successful non-flaky CI runs do we need of the unskipped suite of tests to be confident the flakiness is gone.

Just asking to better understand how this is determined :)

@jloleysens Great question. From what I have been told, 50 seems to be the most consistent number that I have heard. This could also be applied to new tests as well.

@cuff-links
Copy link
Contributor Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

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
grokdebugger 555.0KB 555.0KB +9.0B

History

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

@cuff-links cuff-links merged commit a62a229 into elastic:master Feb 9, 2021
@cuff-links cuff-links deleted the Fixed_Grok_Debugger_Flaky_Test branch February 9, 2021 08:24
cuff-links pushed a commit to cuff-links/kibana that referenced this pull request Feb 9, 2021
…xist to fix test flakiness (elastic#90543)

* Changed the retry to a wait for condition which will keep trying for 20 seconds to see the container. Also changed the data test subject as there was another grokDebugger test subject just in  case there was a clash.

* Added .only to be able to run the test repeatedly because group 13 is not in the flaky test runner.

* Added to group 11 because 13 is not in flaky test runner. Will revert after passing.

* Reverted change back to group 13 and removed the comment for the flaky test being skipped.

Co-authored-by: Kibana Machine <[email protected]>
jloleysens added a commit to jloleysens/kibana that referenced this pull request Feb 9, 2021
…timeline-and-rollover-info

* 'master' of github.com:elastic/kibana: (47 commits)
  [Fleet] Use TS project references (elastic#87574)
  before/beforeEach clean up (elastic#90663)
  [Vega] user should be able to set a specific tilemap service using the mapStyle property (elastic#88440)
  [Security Solution][Case] ServiceNow SIR Connector (elastic#88655)
  [Search Sessions] Enable extend from management (elastic#90558)
  [ILM] Delete phase redesign (rework) (elastic#90291)
  [APM-UI][E2E] use withGithubStatus step (elastic#90651)
  Add folding in kb-monaco and update some viewers (elastic#90152)
  [Grok Debugger] Changed test to wait for grok debugger container to exist to fix test flakiness (elastic#90543)
  Strongly typed EUI theme for styled-components (elastic#90106)
  Fix vega renovate label (elastic#90591)
  [Uptime] Migrate to TypeScript project references (elastic#90510)
  [Monitoring] Migrate data source for legacy alerts to monitoring data directly (elastic#87377)
  [Upgrade Assistant] Add A11y Tests (elastic#90265)
  [Time to Visualize] Adds functional tests for linking/unlinking panel from embeddable library (elastic#89612)
  [dev-utils/ship-ci-stats] fail when CI stats is down (elastic#90678)
  chore(NA): remove write permissions on Bazel remote cache for PRs (elastic#90652)
  chore(NA): move bazel workspace status from bash script into nodejs executable (elastic#90560)
  Use default ES distribution for functional tests (elastic#88737)
  [Alerts] Jira: Disallow labels with spaces (elastic#90548)
  ...

# Conflicts:
#	x-pack/plugins/index_lifecycle_management/public/application/sections/edit_policy/components/timeline/timeline.tsx
#	x-pack/plugins/index_lifecycle_management/public/application/sections/edit_policy/lib/absolute_timing_to_relative_timing.test.ts
#	x-pack/plugins/index_lifecycle_management/public/application/sections/edit_policy/lib/absolute_timing_to_relative_timing.ts
cuff-links pushed a commit that referenced this pull request Feb 9, 2021
…xist to fix test flakiness (#90543) (#90729)

* Changed the retry to a wait for condition which will keep trying for 20 seconds to see the container. Also changed the data test subject as there was another grokDebugger test subject just in  case there was a clash.

* Added .only to be able to run the test repeatedly because group 13 is not in the flaky test runner.

* Added to group 11 because 13 is not in flaky test runner. Will revert after passing.

* Reverted change back to group 13 and removed the comment for the flaky test being skipped.

Co-authored-by: Kibana Machine <[email protected]>

Co-authored-by: Kibana Machine <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Dev Tools Feature:Grok Debugger Dev Tools Grok Debugger feature release_note:skip Skip the PR/issue when compiling release notes Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more test_ui_functional test_xpack_functional v7.12.0 v8.0.0
Projects
None yet
5 participants