-
Notifications
You must be signed in to change notification settings - Fork 78
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 to create index_path when it does not exists #2060
Conversation
[CHATOPS:HELP] ChatOps commands.
|
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #2060 +/- ##
==========================================
- Coverage 29.93% 29.90% -0.03%
==========================================
Files 369 369
Lines 35090 35092 +2
==========================================
- Hits 10504 10495 -9
- Misses 24104 24115 +11
Partials 482 482
☔ View full report in Codecov by Sentry. |
Deploying with Cloudflare Pages
|
pkg/agent/core/ngt/service/ngt.go
Outdated
files, err := file.ListInDir(path) | ||
if err != nil { | ||
return err | ||
return fmt.Errorf("failed to list in %v: %w", path, err) |
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.
In vald it would be better to define new error at internal/errors and use it.
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.
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
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
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
Description:
This PR fixes the regression that introduced in #2034.
When
index_path
does not exist, it used to create the directory and #2034 made it an error. This PR reverts it.Related Issue:
Versions:
Checklist:
Special notes for your reviewer: