-
Notifications
You must be signed in to change notification settings - Fork 76
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: improve error handling of CustomizedImageList
#2792
Conversation
Your org requires the Graphite merge queue for merging into mainAdd the label “flow:merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “flow:hotfix” to add to the merge queue as a hot fix. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @agatha197 and the rest of your teammates on |
Coverage report for
|
St.❔ |
Category | Percentage | Covered / Total |
---|---|---|---|
🔴 | Statements | 4.82% | 349/7244 |
🔴 | Branches | 4.41% | 220/4991 |
🔴 | Functions | 2.8% | 67/2389 |
🔴 | Lines | 4.71% | 334/7085 |
Test suite run success
96 tests passing in 12 suites.
Report generated by 🧪jest coverage report action from 4c04c85
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a way to cause a failure for forget_image_by_id
or untag_image_from_registry
?
it was possible before lablup/backend.ai#3004 is merged 😅 |
bcec629
to
def93d2
Compare
MyEnvironment
CustomizedImageList
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Merge activity
|
**Changes:** Improves error handling when deleting customized images by: - Adding specific error checks for `forget_image_by_id` and `untag_image_from_registry` operations - Displaying individual error messages from the error array with 2.5s duration - Only showing success message and refreshing the environment when all operations complete successfully **Checklist:** - [ ] Mention to the original issue - [ ] Documentation - [ ] Minium required manager version - [ ] Specific setting for review - [ ] Minimum requirements to check during review - [ ] Test case(s) to demonstrate the difference of before/after **Test Cases:** 1. Delete an image with `forget_image_by_id` failure 2. Delete an image with `untag_image_from_registry` failure 3. Delete an image with multiple GraphQL errors 4. Delete an image successfully
def93d2
to
4c04c85
Compare
Changes:
Improves error handling when deleting customized images by:
forget_image_by_id
anduntag_image_from_registry
operationsChecklist:
Test Cases:
forget_image_by_id
failureuntag_image_from_registry
failure