-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[ws-daemon] Improve cache error handling #8366
Conversation
@utam0k can you review this change, please? (you added the tests). The current behavior returns an error, but that pollutes the logs. Is this change acceptable? |
/werft run 👍 started the job as gitpod-build-aledbf-cache.2 |
Thanks for your PR. I think we can investigate this a little more carefully. This is because this update is performed when the pod is updated, so it's unnatural that these file doesn't exist. I think we can accept this PR as it stands, but I think we need to create an issue to resolve or research this problem. |
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.
Sorry for the hasty approval - I had not seen the prior discussion, but just gone through the code.
/hold |
// TODO(toru): find out why the file does not exists | ||
if errors.Is(err, fs.ErrNotExist) { |
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.
Most likely the file doesn't exist anymore because our "dispatch" mechanism takes too long to cancel the context. I.e. the container is already removed before the dispatch mechanism shuts down this mechanism.
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.
Should we have todos in the code? If we have them we should at least create an issue and reference them in the comment.
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.
The issue has already been created.
#8368
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.
I saw it 👍 , but was asking more generally if we should have todos in the code.
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.
Thanks for your comment 🙏 It seems quite unnatural to ignore only this error. So I'd like to write something about the reason.
Codecov Report
@@ Coverage Diff @@
## main #8366 +/- ##
==========================================
+ Coverage 12.31% 14.42% +2.10%
==========================================
Files 20 49 +29
Lines 1161 4701 +3540
==========================================
+ Hits 143 678 +535
- Misses 1014 3963 +2949
- Partials 4 60 +56
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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
/lgtm |
Description
A non-existing file is not an error (in these cases)
Check logging events https://cloudlogging.app.goo.gl/FPPVKf8QeobE9PYq6
Release Notes