Conversation
|
Claude finished @canercidam's task in 2m 12s —— View job PR #373 Review: Tests for validating recipes
SummaryThis PR makes four changes:
The changes are well-structured. A few observations below. Issues1.
2.
for _, e := range result.Errors {
if strings.Contains(e, "host_path does not exist") {
t.Logf("filtered environment-specific error: %s", e)
} else {
errs = append(errs, e)
}
}3. Pre-existing: Duplicate mount validation in
Minor notes
|
| // Filter host_path errors (environment-specific) | ||
| var errs []string | ||
| for _, e := range result.Errors { | ||
| if !strings.Contains(e, "host_path does not exist") { | ||
| errs = append(errs, e) | ||
| } | ||
| } |
There was a problem hiding this comment.
The host_path error filter silently hides these errors. Consider adding t.Logf for filtered errors so they're visible in verbose test output (go test -v), making it easier to notice when a recipe has environment-specific issues:
| // Filter host_path errors (environment-specific) | |
| var errs []string | |
| for _, e := range result.Errors { | |
| if !strings.Contains(e, "host_path does not exist") { | |
| errs = append(errs, e) | |
| } | |
| } | |
| var errs []string | |
| for _, e := range result.Errors { | |
| if strings.Contains(e, "host_path does not exist") { | |
| t.Logf("filtered environment-specific error: %s", e) | |
| } else { | |
| errs = append(errs, e) | |
| } | |
| } |
No description provided.