-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[ML] Data Frame Analytic: adds api integration tests for _start and _stop endpoints #92532
Conversation
Pinging @elastic/ml-ui (:ml) |
There was a problem hiding this 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).
x-pack/test/api_integration/apis/ml/data_frame_analytics/post.ts
Outdated
Show resolved
Hide resolved
x-pack/test/api_integration/apis/ml/data_frame_analytics/post.ts
Outdated
Show resolved
Hide resolved
x-pack/test/api_integration/apis/ml/data_frame_analytics/post.ts
Outdated
Show resolved
Hide resolved
x-pack/test/api_integration/apis/ml/data_frame_analytics/post.ts
Outdated
Show resolved
Hide resolved
x-pack/test/api_integration/apis/ml/data_frame_analytics/post.ts
Outdated
Show resolved
Hide resolved
x-pack/test/api_integration/apis/ml/data_frame_analytics/post_spaces.ts
Outdated
Show resolved
Hide resolved
x-pack/test/api_integration/apis/ml/data_frame_analytics/post_spaces.ts
Outdated
Show resolved
Hide resolved
x-pack/test/api_integration/apis/ml/data_frame_analytics/post_spaces.ts
Outdated
Show resolved
Hide resolved
x-pack/test/api_integration/apis/ml/data_frame_analytics/post_spaces.ts
Outdated
Show resolved
Hide resolved
Code LGTM |
e295e8d
to
f97c81c
Compare
There was a problem hiding this 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:
x-pack/test/api_integration/apis/ml/data_frame_analytics/stop_spaces.ts
Outdated
Show resolved
Hide resolved
x-pack/test/api_integration/apis/ml/data_frame_analytics/stop.ts
Outdated
Show resolved
Hide resolved
x-pack/test/api_integration/apis/ml/data_frame_analytics/stop_spaces.ts
Outdated
Show resolved
Hide resolved
86fc1d2
to
9361c38
Compare
@pheyos - this is updated and ready for a final look. Running it through the flaky test runner was also all green |
💚 Build SucceededMetrics [docs]Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |
Checked test stability in a flaky test runner job: no ML failures in 50 runs (one unrelated search api failure) ✔️ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🎉
…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
Summary
Adds api integration tests for _start and _stop endpoints
Checklist
Delete any items that are not applicable to this PR.