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

Fix the flaky test due to m_l_limit_exceeded_exception #150

Merged
merged 5 commits into from
Jan 31, 2024

Conversation

zhichao-aws
Copy link
Member

@zhichao-aws zhichao-aws commented Jan 26, 2024

Description

In recent PRs there are flaky test due to m_l_limit_exceeded_exception.
error log: "error":{"root_cause":[{"type":"m_l_limit_exceeded_exception","reason":"Memory Circuit Breaker is open, please check your resources!"}],"type":"m_l_limit_exceeded_exception","reason":"Memory Circuit Breaker is open, please check your resources!"},"status":500} ref
This PR fix the flaky test by incrase the threshold of jvm_heap_memory_threshold. Add delete model for integ tests if they have deployed one.

Fix the node20 dependency issue by changing codecov to version 1.

Issues Resolved

[List any issues this PR will resolve]

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Copy link

codecov bot commented Jan 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (1626af1) 81.73% compared to head (86c6593) 81.73%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main     #150   +/-   ##
=========================================
  Coverage     81.73%   81.73%           
  Complexity      196      196           
=========================================
  Files            13       13           
  Lines          1002     1002           
  Branches        132      132           
=========================================
  Hits            819      819           
  Misses          133      133           
  Partials         50       50           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: zhichao-aws <zhichaog@amazon.com>
Signed-off-by: zhichao-aws <zhichaog@amazon.com>
Signed-off-by: zhichao-aws <zhichaog@amazon.com>
…ponse logic

Signed-off-by: zhichao-aws <zhichaog@amazon.com>
Signed-off-by: zhichao-aws <zhichaog@amazon.com>
@zhichao-aws
Copy link
Member Author

associate PR: opensearch-project/ml-commons#1943

@zhichao-aws zhichao-aws changed the title Try fix the flaky test due to m_l_limit_exceeded_exception Fix the flaky test due to m_l_limit_exceeded_exception Jan 30, 2024
@zhichao-aws
Copy link
Member Author

The CI workflows run 3 times and success all 3 times.

@zhichao-aws zhichao-aws marked this pull request as ready for review January 30, 2024 06:41
Copy link

@chishui chishui left a comment

Choose a reason for hiding this comment

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

nit: better to use git rebase -i to reduce commits number and make main branch's commit compact

@zhichao-aws
Copy link
Member Author

nit: better to use git rebase -i to reduce commits number and make main branch's commit compact

We will use squash and merge to compact the PR to 1 commit then merge to main

@chishui
Copy link

chishui commented Jan 31, 2024

We will use squash and merge to compact the PR to 1 commit then merge to main

Got it, just feel it's better to reflect the change from the PR and get it reviewed.

@zane-neo zane-neo merged commit 0791c34 into opensearch-project:main Jan 31, 2024
14 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jan 31, 2024
* increase the CB threshold, delete model after test

Signed-off-by: zhichao-aws <zhichaog@amazon.com>

* add log

Signed-off-by: zhichao-aws <zhichaog@amazon.com>

* add wait time

Signed-off-by: zhichao-aws <zhichaog@amazon.com>

* enhancement: wait model undeploy before delete; refactor the wait response logic

Signed-off-by: zhichao-aws <zhichaog@amazon.com>

* modify ci yml

Signed-off-by: zhichao-aws <zhichaog@amazon.com>

---------

Signed-off-by: zhichao-aws <zhichaog@amazon.com>
(cherry picked from commit 0791c34)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
zhichao-aws pushed a commit that referenced this pull request Jan 31, 2024
* increase the CB threshold, delete model after test



* add log



* add wait time



* enhancement: wait model undeploy before delete; refactor the wait response logic



* modify ci yml



---------


(cherry picked from commit 0791c34)

Signed-off-by: zhichao-aws <zhichaog@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
yuye-aws pushed a commit to yuye-aws/skills that referenced this pull request Apr 26, 2024
…oject#150) (opensearch-project#164)

* increase the CB threshold, delete model after test

* add log

* add wait time

* enhancement: wait model undeploy before delete; refactor the wait response logic

* modify ci yml

---------

(cherry picked from commit 0791c34)

Signed-off-by: zhichao-aws <zhichaog@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Signed-off-by: yuye-aws <yuyezhu@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants