-
Notifications
You must be signed in to change notification settings - Fork 169
chore(lint): enable the usestdlibvars linter #17129
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
Conversation
|
Hi @Juneezee. Thanks for your PR. I'm waiting for a stackrox member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
I'm sorry I accidentally closed this PR. I'm working on #17160 to make CI 🟢 Stay tuned 😅 |
Part of #7729. Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
3c1b58b to
0eeccbd
Compare
|
/ok-to-test |
|
Caution There are some errors in your PipelineRun template.
|
|
/ok-to-test |
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.
Hey there - I've reviewed your changes and they look great!
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location> `scanner/enricher/nvd/nvd.go:424` </location>
<code_context>
Str("nvd_message", req.Header.Get("message")).
Msg("NVD response")
- if resp.StatusCode != 200 {
+ if resp.StatusCode != http.StatusOK {
_ = resp.Body.Close
return nil, fmt.Errorf("unexpected status code when querying %s: %d", req.URL.String(), resp.StatusCode)
</code_context>
<issue_to_address>
**issue (bug_risk):** The response body is not being closed properly on error.
'_ = resp.Body.Close' does not close the body; use 'resp.Body.Close()' to properly release resources.
</issue_to_address>Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
|
@janisz Should I retest? |
|
/retest |
|
@Juneezee: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #17129 +/- ##
=======================================
Coverage 48.83% 48.83%
=======================================
Files 2716 2716
Lines 203240 203240
=======================================
+ Hits 99252 99254 +2
+ Misses 96169 96168 -1
+ Partials 7819 7818 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
/ok-to-test |
|
/retest |
|
@Juneezee Thank You! I'm sorry for the delayed merge 😅 |
Description
Part of #7729.
User-facing documentation
Testing and quality
Automated testing
How I validated my change
CI jobs