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

Added a noop workflow step to delete model group #376

Merged

Conversation

owaiskazi19
Copy link
Member

@owaiskazi19 owaiskazi19 commented Jan 5, 2024

Description

Added a noop workflow step to delete model group. The reason of the noop step is that the model group is deleted on its own when there are no model in it. To handle the null case in deprovisioning for register model group step, created this noop workflow step to avoid any conflict with the resources created.

Issues Resolved

Fixes #365

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.

@github-actions github-actions bot added the backport 2.x backport PRs to 2.x branch label Jan 5, 2024
Copy link

codecov bot commented Jan 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (ad3b3ba) 72.30% compared to head (ea8d5db) 72.34%.

Additional details and impacted files
@@             Coverage Diff              @@
##               main     #376      +/-   ##
============================================
+ Coverage     72.30%   72.34%   +0.03%     
- Complexity      578      581       +3     
============================================
  Files            72       73       +1     
  Lines          2986     2990       +4     
  Branches        231      231              
============================================
+ Hits           2159     2163       +4     
  Misses          723      723              
  Partials        104      104              

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

@owaiskazi19 owaiskazi19 force-pushed the add-delete-model-group branch from 2814a22 to f0e7630 Compare January 5, 2024 22:53
Copy link
Member

@ohltyler ohltyler left a comment

Choose a reason for hiding this comment

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

Few minor comments. A high-level question: why is this a noop instead of doing the actual deletion? Could you add some context in the PR description?

@joshpalis
Copy link
Member

Just a heads up, flaky integration tests will be resolved by #377

Signed-off-by: Owais Kazi <[email protected]>
@owaiskazi19 owaiskazi19 force-pushed the add-delete-model-group branch from 0c6177b to 7f76221 Compare January 5, 2024 23:10
@owaiskazi19
Copy link
Member Author

Few minor comments. A high-level question: why is this a noop instead of doing the actual deletion? Could you add some context in the PR description?

Added more details.

Copy link
Member

@ohltyler ohltyler left a comment

Choose a reason for hiding this comment

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

LGTM! I assume failing tests are the flaky ones mentioned.

@owaiskazi19 owaiskazi19 merged commit 324a56a into opensearch-project:main Jan 5, 2024
21 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jan 5, 2024
(cherry picked from commit 324a56a)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Copy link
Member

@dbwiddis dbwiddis left a comment

Choose a reason for hiding this comment

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

So this all works but why do we need a whole class that's a clone of NoopStep?

Why not just do this?

REGISTER_MODEL_GROUP(RegisterModelGroupStep.NAME, WorkflowResources.MODEL_GROUP_ID, NoopStep.NAME),

dbwiddis pushed a commit that referenced this pull request Jan 6, 2024
Added a noop workflow step to delete model group (#376)

(cherry picked from commit 324a56a)
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x backport PRs to 2.x branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE/DOCS] Properly handle model group deletion
5 participants