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

[Refactor] Remove bloat due to unnecessary setup in test and add retry for potential flaky behavior due to timeout #3259

Merged

Conversation

pyek-bot
Copy link
Contributor

@pyek-bot pyek-bot commented Dec 6, 2024

Description

  • Removed unnecessary setup of index and model
  • Removed use of deprecated method ExpectedException::except
  • Add retry for potential failures due to timeouts

I was not able to determine a failing workflow due to this test. However, I believe the cause of this might be due to the timeout. We can monitor future workflows and check if this particular test fails again.

Additionally, I have unignored a previously ignored test. Please let me know if that is okay. @b4sjoo

It was ignored in this PR: #928

Related Issues

Resolves #3256

Check List

  • New functionality includes testing.
  • 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.

Signed-off-by: Pavan Yekbote <mail2pavanyekbote@gmail.com>
@pyek-bot pyek-bot temporarily deployed to ml-commons-cicd-env-require-approval December 6, 2024 01:45 — with GitHub Actions Inactive
@pyek-bot pyek-bot temporarily deployed to ml-commons-cicd-env-require-approval December 6, 2024 01:45 — with GitHub Actions Inactive
@pyek-bot pyek-bot temporarily deployed to ml-commons-cicd-env-require-approval December 6, 2024 02:53 — with GitHub Actions Inactive
Signed-off-by: Pavan Yekbote <mail2pavanyekbote@gmail.com>
@pyek-bot pyek-bot temporarily deployed to ml-commons-cicd-env-require-approval December 6, 2024 22:22 — with GitHub Actions Inactive
@pyek-bot pyek-bot temporarily deployed to ml-commons-cicd-env-require-approval December 6, 2024 22:22 — with GitHub Actions Inactive
@pyek-bot pyek-bot temporarily deployed to ml-commons-cicd-env-require-approval December 6, 2024 23:21 — with GitHub Actions Inactive
@dhrubo-os dhrubo-os merged commit 8eea6dc into opensearch-project:main Dec 9, 2024
7 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Dec 9, 2024
…y for potential flaky behavior due to timeout (#3259)

* refactor: add retries and remove bloat

Signed-off-by: Pavan Yekbote <mail2pavanyekbote@gmail.com>

* fix: adding return for valid inputs to prevent multiple runs

Signed-off-by: Pavan Yekbote <mail2pavanyekbote@gmail.com>

---------

Signed-off-by: Pavan Yekbote <mail2pavanyekbote@gmail.com>
(cherry picked from commit 8eea6dc)
tkykenmt pushed a commit to tkykenmt/ml-commons that referenced this pull request Dec 15, 2024
…y for potential flaky behavior due to timeout (opensearch-project#3259)

* refactor: add retries and remove bloat

Signed-off-by: Pavan Yekbote <mail2pavanyekbote@gmail.com>

* fix: adding return for valid inputs to prevent multiple runs

Signed-off-by: Pavan Yekbote <mail2pavanyekbote@gmail.com>

---------

Signed-off-by: Pavan Yekbote <mail2pavanyekbote@gmail.com>
tkykenmt pushed a commit to tkykenmt/ml-commons that referenced this pull request Dec 15, 2024
…y for potential flaky behavior due to timeout (opensearch-project#3259)

* refactor: add retries and remove bloat

Signed-off-by: Pavan Yekbote <mail2pavanyekbote@gmail.com>

* fix: adding return for valid inputs to prevent multiple runs

Signed-off-by: Pavan Yekbote <mail2pavanyekbote@gmail.com>

---------

Signed-off-by: Pavan Yekbote <mail2pavanyekbote@gmail.com>
Signed-off-by: tkykenmt <tkykenmto+github.com@gmail.com>
ylwu-amzn pushed a commit that referenced this pull request Jan 3, 2025
…y for potential flaky behavior due to timeout (#3259) (#3265)

* refactor: add retries and remove bloat

Signed-off-by: Pavan Yekbote <mail2pavanyekbote@gmail.com>

* fix: adding return for valid inputs to prevent multiple runs

Signed-off-by: Pavan Yekbote <mail2pavanyekbote@gmail.com>

---------

Signed-off-by: Pavan Yekbote <mail2pavanyekbote@gmail.com>
(cherry picked from commit 8eea6dc)

Co-authored-by: Pavan Yekbote <mail2pavanyekbote@gmail.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.

[Refactor] Reduce bloat and remove deprecated methods for tests: GetModelITTests
3 participants