Skip to content
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

modify the log level of some errors #898

Merged
merged 1 commit into from
Oct 17, 2024
Merged

Conversation

googs1025
Copy link
Contributor

  • modify the log level of some errors
  • fix method comment

@googs1025 googs1025 force-pushed the fix_log branch 2 times, most recently from 3e1497d to b3e3678 Compare August 11, 2024 12:14
@@ -157,7 +157,7 @@ func (plugin *NvidiaDevicePlugin) Start() error {
// TODO: add MPS health check
err := plugin.rm.CheckHealth(plugin.stop, plugin.health)
if err != nil {
klog.Infof("Failed to start health check: %v; continuing with health checks disabled", err)
klog.Errorf("Failed to start health check: %v; continuing with health checks disabled", err)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could also be a warning instead, but I don't think it's a blocker.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your reply :)

@googs1025
Copy link
Contributor Author

do we have to fix this ci error?

Error: internal/resource/cuda-lib.go:60:15: G115: integer overflow conversion int -> uint (gosec)
  	major := uint(version) / 1000
  	             ^
  Error: internal/resource/cuda-lib.go:61:15: G115: integer overflow conversion int -> uint (gosec)
  	minor := uint(version) % 100 / 10
  	             ^
  Error: internal/resource/nvml-lib.go:44:15: G115: integer overflow conversion int -> uint (gosec)
  	major := uint(v / 1000)
  	             ^
  Error: internal/resource/nvml-mig-device.go:1[31](https://github.com/NVIDIA/k8s-device-plugin/actions/runs/10904087630/job/30259653352?pr=898#step:5:33):16: G115: integer overflow conversion int -> uint64 (gosec)
  		return uint64(totalMemory.(int)), nil

@googs1025
Copy link
Contributor Author

friendly ping @elezar

fix method comment

Signed-off-by: googs1025 <[email protected]>
@elezar elezar merged commit 33394bf into NVIDIA:main Oct 17, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants