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

[ML] Functional tests - stabilize and re-enable export jobs tests #152334

Merged
merged 10 commits into from
May 3, 2023

Conversation

pheyos
Copy link
Member

@pheyos pheyos commented Feb 28, 2023

Summary

This PR re-enables the export job tests and the reporting download tests after the underlying issues has been fixed by switching to the new headless browser mode.

Closes #150756
Closes #150558
Closes #150557
Closes #150561
Closes #150562
Closes #148314
Closes #150563
Closes #150561

@pheyos pheyos self-assigned this Feb 28, 2023
@pheyos
Copy link
Member Author

pheyos commented Feb 28, 2023

Checking test stability in a flaky test runner job ... still failed ❌
Will investigate more.

@pheyos
Copy link
Member Author

pheyos commented Feb 28, 2023

Local tests showed that this was an issue with the way how we invoked Chrome's headless mode.
Pushed a suggestion for a fix that worked locally.

@pheyos
Copy link
Member Author

pheyos commented Feb 28, 2023

Checking test stability again (including the unskipped CSV download tests) in a flaky test runner job ... download tests passed, but other tests started failing ❌

@pheyos
Copy link
Member Author

pheyos commented Mar 1, 2023

It turned out to be an issue on the Chromedriver side, which is already fixed for version 111. With that, we decided to wait a few more days for version 111 of Chrome and Chromedriver to be out rather than rushing the new headless mode in (which seems to slightly change some behavior and needs more investigation).

@pheyos
Copy link
Member Author

pheyos commented Mar 28, 2023

It looks like Chrome version 111 didn't actually fix the issue for us.

@pheyos
Copy link
Member Author

pheyos commented Apr 28, 2023

The new browser headless mode has been introduced with #153828, which should hopefully unblock this PR.

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Unknown metric groups

ESLint disabled line counts

id before after diff
enterpriseSearch 19 21 +2
securitySolution 399 402 +3
total +5

Total ESLint disabled count

id before after diff
enterpriseSearch 20 22 +2
securitySolution 479 482 +3
total +5

History

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

cc @pheyos

@pheyos
Copy link
Member Author

pheyos commented Apr 28, 2023

Checking test stability in a flaky test runner job ... no failure in 50 runs ✔️

@pheyos pheyos added :ml release_note:skip Skip the PR/issue when compiling release notes backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) v8.8.0 v8.9.0 labels Apr 28, 2023
@pheyos pheyos marked this pull request as ready for review April 28, 2023 15:21
@pheyos pheyos requested a review from a team as a code owner April 28, 2023 15:21
@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui (:ml)

Copy link
Contributor

@peteharverson peteharverson left a comment

Choose a reason for hiding this comment

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

ML changes LGTM.

Does the PR description need editing, as you refer to increasing the wait time for the exported file to exist, but doesn't look like that change was needed after all?

@pheyos
Copy link
Member Author

pheyos commented May 2, 2023

Does the PR description need editing, as you refer to increasing the wait time for the exported file to exist, but doesn't look like that change was needed after all?

Good point @peteharverson. That was a left-over from the first iteration. But it turned out that we didn't need any further code changes after switching to the new headless browser mode which was done in a separate PR. I've updated the description.

@pheyos pheyos merged commit a90f4c2 into elastic:main May 3, 2023
@pheyos pheyos deleted the reenable_export_jobs_tests branch May 3, 2023 08:19
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request May 3, 2023
…astic#152334)

This PR re-enables the export job tests and the reporting download tests
after the underlying issues has been fixed by switching to the new
headless browser mode.

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

💚 All backports created successfully

Status Branch Result
8.8

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 May 3, 2023
…ts (#152334) (#156480)

# Backport

This will backport the following commits from `main` to `8.8`:
- [[ML] Functional tests - stabilize and re-enable export jobs tests
(#152334)](#152334)

<!--- Backport version: 8.9.7 -->

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

<!--BACKPORT [{"author":{"name":"Robert
Oskamp","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-05-03T08:19:44Z","message":"[ML]
Functional tests - stabilize and re-enable export jobs tests
(#152334)\n\nThis PR re-enables the export job tests and the reporting
download tests\r\nafter the underlying issues has been fixed by
switching to the new\r\nheadless browser
mode.","sha":"a90f4c24dac8d6d23105e1a5119c36634aa27f42","branchLabelMapping":{"^v8.9.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":[":ml","release_note:skip","backport:prev-minor","v8.8.0","v8.9.0"],"number":152334,"url":"https://github.com/elastic/kibana/pull/152334","mergeCommit":{"message":"[ML]
Functional tests - stabilize and re-enable export jobs tests
(#152334)\n\nThis PR re-enables the export job tests and the reporting
download tests\r\nafter the underlying issues has been fixed by
switching to the new\r\nheadless browser
mode.","sha":"a90f4c24dac8d6d23105e1a5119c36634aa27f42"}},"sourceBranch":"main","suggestedTargetBranches":["8.8"],"targetPullRequestStates":[{"branch":"8.8","label":"v8.8.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.9.0","labelRegex":"^v8.9.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/152334","number":152334,"mergeCommit":{"message":"[ML]
Functional tests - stabilize and re-enable export jobs tests
(#152334)\n\nThis PR re-enables the export job tests and the reporting
download tests\r\nafter the underlying issues has been fixed by
switching to the new\r\nheadless browser
mode.","sha":"a90f4c24dac8d6d23105e1a5119c36634aa27f42"}}]}] BACKPORT-->

Co-authored-by: Robert Oskamp <[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) :ml release_note:skip Skip the PR/issue when compiling release notes v8.8.0 v8.9.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failing test: Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/dashboard/group3/reporting/download_csv·ts - dashboard Reporting Download CSV Default Saved Search Data Downloads a filtered CSV export of a saved search panel Failing test: Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/dashboard/group3/reporting/download_csv·ts - dashboard Reporting Download CSV Default Saved Search Data Download CSV export of a saved search panel Failing test: Chrome X-Pack UI Functional Tests - ML stack_management_jobs.x-pack/test/functional/apps/ml/stack_management_jobs/export_jobs·ts - machine learning - stack management jobs export jobs opens export flyout and exports data frame analytics jobs Failing test: Chrome X-Pack UI Functional Tests - ML stack_management_jobs.x-pack/test/functional/apps/ml/stack_management_jobs/export_jobs·ts - machine learning - stack management jobs export jobs opens export flyout and exports anomaly detector jobs Failing test: Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/dashboard/group3/reporting/download_csv·ts - dashboard Reporting Download CSV Field Formatters and Scripted Fields Download CSV export of a saved search panel
6 participants