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

[Backport 2.x] Add timeout for node execution #69

Merged
merged 1 commit into from
Oct 4, 2023

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport 28326bd from #66.

* Add timeout for node execution

Signed-off-by: Daniel Widdis <[email protected]>

* Properly implement delays using OpenSearch ThreadPool

Signed-off-by: Daniel Widdis <[email protected]>

* Add coverage for plugin class, make test threshold dynamic

Signed-off-by: Daniel Widdis <[email protected]>

* Tests don't like singletons

Signed-off-by: Daniel Widdis <[email protected]>

* More thorough ProcessNode testing

Signed-off-by: Daniel Widdis <[email protected]>

* Util method for timeout parsing

Signed-off-by: Daniel Widdis <[email protected]>

---------

Signed-off-by: Daniel Widdis <[email protected]>
(cherry picked from commit 28326bd)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@codecov
Copy link

codecov bot commented Oct 3, 2023

Codecov Report

Merging #69 (54763ba) into 2.x (ddb4c2a) will increase coverage by 4.74%.
Report is 1 commits behind head on 2.x.
The diff coverage is 87.80%.

@@             Coverage Diff              @@
##                2.x      #69      +/-   ##
============================================
+ Coverage     86.93%   91.68%   +4.74%     
- Complexity      163      167       +4     
============================================
  Files            13       13              
  Lines           574      565       -9     
  Branches         75       78       +3     
============================================
+ Hits            499      518      +19     
+ Misses           52       24      -28     
  Partials         23       23              
Files Coverage Δ
.../opensearch/flowframework/FlowFrameworkPlugin.java 100.00% <100.00%> (+100.00%) ⬆️
...g/opensearch/flowframework/model/WorkflowNode.java 90.54% <ø> (ø)
...ch/flowframework/workflow/WorkflowStepFactory.java 64.70% <100.00%> (+8.70%) ⬆️
.../flowframework/workflow/WorkflowProcessSorter.java 97.10% <80.00%> (+4.24%) ⬆️
...opensearch/flowframework/workflow/ProcessNode.java 93.47% <88.46%> (+34.78%) ⬆️

@joshpalis
Copy link
Member

> Task :integTest


REPRODUCE WITH: gradlew ':integTest' --tests "org.opensearch.flowframework.FlowFrameworkPluginIT.testPluginInstalled" -Dtests.seed=F832E32AB58EE3C9 -Dtests.security.manager=false -Dtests.locale=id -Dtests.timezone=Pacific/Pitcairn -Druntime.java=17

org.opensearch.flowframework.FlowFrameworkPluginIT > testPluginInstalled FAILED
    org.opensearch.client.ResponseException: method [GET], host [http://0.0.0.0:0/], URI [/_cat/plugins], status line [HTTP/1.1 404 Not Found]

@dbwiddis dbwiddis merged commit 882af17 into 2.x Oct 4, 2023
16 checks passed
@dbwiddis dbwiddis deleted the backport/backport-66-to-2.x branch October 4, 2023 06:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants