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] Data Frame Analytic: adds api integration tests for _start and _stop endpoints #92532

Merged

Conversation

alvarezmelissa87
Copy link
Contributor

@alvarezmelissa87 alvarezmelissa87 commented Feb 23, 2021

Summary

Adds api integration tests for _start and _stop endpoints

Checklist

Delete any items that are not applicable to this PR.

@alvarezmelissa87 alvarezmelissa87 added :ml release_note:skip Skip the PR/issue when compiling release notes test-api-integration Feature:Data Frame Analytics ML data frame analytics features v7.12.0 labels Feb 23, 2021
@alvarezmelissa87 alvarezmelissa87 self-assigned this Feb 23, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui (:ml)

Copy link
Member

@pheyos pheyos left a comment

Choose a reason for hiding this comment

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

Thanks for adding these tests! 🎉
I left a few suggestions in the code. Also, I think it might be worth to split the test files, so the file name is a bit more descriptive (e.g. post could also be an update to the job) and more aligned to how we named similar other test files. Maybe something like start, stop, start_spaces and stop_spaces (more on the separation of start and stop tests in my code comments).

@alvarezmelissa87 alvarezmelissa87 requested a review from a team as a code owner February 24, 2021 22:31
@qn895
Copy link
Member

qn895 commented Feb 24, 2021

Code LGTM

Copy link
Member

@pheyos pheyos left a comment

Choose a reason for hiding this comment

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

Changes are looking good. Just a few follow-up comments:

@alvarezmelissa87
Copy link
Contributor Author

alvarezmelissa87 commented Mar 2, 2021

@pheyos - this is updated and ready for a final look. Running it through the flaky test runner was also all green
👍

@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
triggersActionsUi 1.6MB 1.5MB -23.9KB

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
triggersActionsUi 104.0KB 104.1KB +82.0B
Unknown metric groups

async chunk count

id before after diff
triggersActionsUi 41 42 +1

History

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

cc @alvarezmelissa87

@pheyos
Copy link
Member

pheyos commented Mar 3, 2021

Checked test stability in a flaky test runner job: no ML failures in 50 runs (one unrelated search api failure) ✔️

Copy link
Member

@pheyos pheyos left a comment

Choose a reason for hiding this comment

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

LGTM 🎉

@alvarezmelissa87 alvarezmelissa87 merged commit ccc70b4 into elastic:master Mar 3, 2021
@alvarezmelissa87 alvarezmelissa87 deleted the ml-dfa-integration-tests-post branch March 3, 2021 16:18
alvarezmelissa87 added a commit that referenced this pull request Mar 3, 2021
…stop endpoints (#92532) (#93451)

* add start and stop endpoint tests

* add start and stop within spaces endpoint tests

* move start and start_spaces tests to separate files

* wip: move stop and stop_spaces to separate files

* use slow running job config so job is still running when stop request happens

* check started job state is actually started

* check job is stopped after stopping

* add debug logs

* ensure jobs are created/started before stopping attempt

* remove unnecessary debug logs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Data Frame Analytics ML data frame analytics features :ml release_note:skip Skip the PR/issue when compiling release notes test-api-integration v7.13.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants