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

Add failure handling for set processors in ML inference pipelines #144654

Merged
merged 5 commits into from
Nov 16, 2022

Conversation

brianmcgue
Copy link
Contributor

@brianmcgue brianmcgue commented Nov 4, 2022

Summary

Also, add a remove processor and text_classification and text_embedding types.

Checklist

Delete any items that are not applicable to this PR.

Also add a remove processor and text_classification and text_embedding types.
@brianmcgue brianmcgue requested review from TattdCodeMonkey and a team November 4, 2022 23:21
@brianmcgue brianmcgue added release_note:skip Skip the PR/issue when compiling release notes backport:skip This commit does not require backporting Team:EnterpriseSearch v8.6.0 labels Nov 4, 2022
Copy link
Contributor

@TattdCodeMonkey TattdCodeMonkey left a comment

Choose a reason for hiding this comment

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

I tried testing this and I get an error when trying to create the inference pipeline now. Not sure if it's something with my local setup or not though. Here is the error I am seeing:

[2022-11-14T08:56:43.494-06:00][ERROR][plugins.enterpriseSearch] An error occurred while resolving request to http://localhost:5602/internal/enterprise_search/indices/search-test-001/ml_inference/pipeline_processors: Enterprise Search encountered an error.
[2022-11-14T08:56:43.494-06:00][ERROR][plugins.enterpriseSearch] ResponseError: script_exception: [script_exception] Reason: compile error
    at KibanaTransport.request (/Users/rodney/Code/elastic/kibana-code-reviews/node_modules/@elastic/transport/lib/Transport.js:476:27)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

@brianmcgue
Copy link
Contributor Author

I tried testing this and I get an error when trying to create the inference pipeline now. Not sure if it's something with my local setup or not though. Here is the error I am seeing:

[2022-11-14T08:56:43.494-06:00][ERROR][plugins.enterpriseSearch] An error occurred while resolving request to http://localhost:5602/internal/enterprise_search/indices/search-test-001/ml_inference/pipeline_processors: Enterprise Search encountered an error.
[2022-11-14T08:56:43.494-06:00][ERROR][plugins.enterpriseSearch] ResponseError: script_exception: [script_exception] Reason: compile error
    at KibanaTransport.request (/Users/rodney/Code/elastic/kibana-code-reviews/node_modules/@elastic/transport/lib/Transport.js:476:27)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

@TattdCodeMonkey I was able to reproduce this error if the destination field had a hyphen/dash in the name, but it was fine if the field had an underscore or no hyphen/dash. I reproduced this on main as well, so I don't think it has to do with the changes here.

@brianmcgue
Copy link
Contributor Author

@TattdCodeMonkey I was able to reproduce this error if the destination field had a hyphen/dash in the name, but it was fine if the field had an underscore or no hyphen/dash. I reproduced this on main as well, so I don't think it has to do with the changes here.

Should be fixed with the newest commit.

@kibana-ci
Copy link
Collaborator

💚 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
enterpriseSearch 2.0MB 2.0MB +280.0B
Unknown metric groups

ESLint disabled in files

id before after diff
osquery 1 2 +1

ESLint disabled line counts

id before after diff
enterpriseSearch 19 21 +2
fleet 59 65 +6
osquery 108 113 +5
securitySolution 441 447 +6
total +19

Total ESLint disabled count

id before after diff
enterpriseSearch 20 22 +2
fleet 67 73 +6
osquery 109 115 +6
securitySolution 518 524 +6
total +20

History

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

@brianmcgue brianmcgue removed the backport:skip This commit does not require backporting label Nov 16, 2022
@brianmcgue brianmcgue requested a review from efegurkan November 16, 2022 19:01
@brianmcgue
Copy link
Contributor Author

FF was yesterday, so I added the backport label.

This was approved by @efegurkan, but enough has changed since there that I'm looking for another review 👍

Copy link
Contributor

@TattdCodeMonkey TattdCodeMonkey left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for resolving the bug with hyphens too.

@brianmcgue brianmcgue merged commit 8e81a7d into elastic:main Nov 16, 2022
@brianmcgue brianmcgue deleted the bmcgue/on_failure_scenarios branch November 16, 2022 22:22
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Nov 16, 2022
…astic#144654)

## Summary

Also, add a `remove` processor and `text_classification` and
`text_embedding` types.

### Checklist

Delete any items that are not applicable to this PR.

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

(cherry picked from commit 8e81a7d)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.6

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 Nov 16, 2022
…es (#144654) (#145472)

# Backport

This will backport the following commits from `main` to `8.6`:
- [Add failure handling for set processors in ML inference pipelines
(#144654)](#144654)

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

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

<!--BACKPORT [{"author":{"name":"Brian
McGue","email":"[email protected]"},"sourceCommit":{"committedDate":"2022-11-16T22:22:14Z","message":"Add
failure handling for set processors in ML inference pipelines
(#144654)\n\n## Summary\r\n\r\nAlso, add a `remove` processor and
`text_classification` and\r\n`text_embedding` types.\r\n\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios","sha":"8e81a7d03eb62f116f836460ed8a3eaacfa04cbe","branchLabelMapping":{"^v8.7.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:EnterpriseSearch","v8.6.0","v8.7.0"],"number":144654,"url":"https://github.com/elastic/kibana/pull/144654","mergeCommit":{"message":"Add
failure handling for set processors in ML inference pipelines
(#144654)\n\n## Summary\r\n\r\nAlso, add a `remove` processor and
`text_classification` and\r\n`text_embedding` types.\r\n\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios","sha":"8e81a7d03eb62f116f836460ed8a3eaacfa04cbe"}},"sourceBranch":"main","suggestedTargetBranches":["8.6"],"targetPullRequestStates":[{"branch":"8.6","label":"v8.6.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.7.0","labelRegex":"^v8.7.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/144654","number":144654,"mergeCommit":{"message":"Add
failure handling for set processors in ML inference pipelines
(#144654)\n\n## Summary\r\n\r\nAlso, add a `remove` processor and
`text_classification` and\r\n`text_embedding` types.\r\n\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios","sha":"8e81a7d03eb62f116f836460ed8a3eaacfa04cbe"}}]}]
BACKPORT-->

Co-authored-by: Brian McGue <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes Team:EnterpriseSearch v8.6.0 v8.7.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants