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] Assert that a no-op job creates no results nor state #43681

Merged
merged 3 commits into from
Jun 29, 2019

Conversation

droberts195
Copy link
Contributor

If a job is opened and then closed and does nothing in
between then it should not persist any results or state
documents. This change adapts the no-op job test to
assert no results in addition to no state, and to log
any documents that cause this assertion to fail.

Relates elastic/ml-cpp#512
Relates #43680

If a job is opened and then closed and does nothing in
between then it should not persist any results or state
documents. This change adapts the no-op job test to
assert no results in addition to no state, and to log
any documents that cause this assertion to fail.

Relates elastic/ml-cpp#512
Relates elastic#43680
@droberts195 droberts195 added >test Issues or PRs that are addressing/adding tests :ml Machine learning v8.0.0 v7.3.0 v6.8.2 v7.2.1 labels Jun 27, 2019
@droberts195 droberts195 requested a review from edsavage June 27, 2019 09:07
@elasticmachine
Copy link
Collaborator

Pinging @elastic/ml-core

@droberts195
Copy link
Contributor Author

Note that the PR CI will fail until both elastic/ml-cpp#512 and #43680 are merged. I will update this PR when those are merged, but wanted to raise this one now so that I can reference it.

@droberts195
Copy link
Contributor Author

Jenkins run elasticsearch-ci/default-distro

@benwtrent
Copy link
Member

run elasticsearch-ci/2

@droberts195
Copy link
Contributor Author

Jenkins run elasticsearch-ci/2

Copy link
Contributor

@edsavage edsavage left a comment

Choose a reason for hiding this comment

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

LGTM

@droberts195
Copy link
Contributor Author

Jenkins run elasticsearch-ci/bwc

@droberts195 droberts195 merged commit c108b09 into elastic:master Jun 29, 2019
@droberts195 droberts195 deleted the assert_no_results_on_noop_job branch June 29, 2019 06:51
droberts195 added a commit that referenced this pull request Jun 29, 2019
If a job is opened and then closed and does nothing in
between then it should not persist any results or state
documents. This change adapts the no-op job test to
assert no results in addition to no state, and to log
any documents that cause this assertion to fail.

Relates elastic/ml-cpp#512
Relates #43680
droberts195 added a commit that referenced this pull request Jun 29, 2019
If a job is opened and then closed and does nothing in
between then it should not persist any results or state
documents. This change adapts the no-op job test to
assert no results in addition to no state, and to log
any documents that cause this assertion to fail.

Relates elastic/ml-cpp#512
Relates #43680
droberts195 added a commit that referenced this pull request Jun 29, 2019
If a job is opened and then closed and does nothing in
between then it should not persist any results or state
documents. This change adapts the no-op job test to
assert no results in addition to no state, and to log
any documents that cause this assertion to fail.

Relates elastic/ml-cpp#512
Relates #43680
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:ml Machine learning >test Issues or PRs that are addressing/adding tests v6.8.2 v7.2.1 v7.3.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants