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

Use empty string for default runtime-config-override #659

Merged
merged 2 commits into from
Aug 22, 2024

Conversation

elezar
Copy link
Member

@elezar elezar commented Aug 19, 2024

Cherry picks #658

Fixes #631

elezar added 2 commits August 19, 2024 11:35
This change ensures that we unnecessarily print warnings for
runtimes where these configs are not applicable.

This removes the following warnings:
WARN[0000] Ignoring runtime-config-override flag for docker

Signed-off-by: Evan Lezar <elezar@nvidia.com>
Signed-off-by: Evan Lezar <elezar@nvidia.com>
@elezar elezar self-assigned this Aug 19, 2024
@elezar elezar changed the base branch from main to release-1.16 August 21, 2024 09:32
@@ -100,7 +100,7 @@ func TestMounts(t *testing.T) {
lookup: &lookup.LocatorMock{
LocateFunc: func(s string) ([]string, error) {
if s == "error" {
return nil, fmt.Errorf(s)
return nil, fmt.Errorf("error")
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: (Optional) If we are using constant strings, we can use the stdlib errors.New instead. Also we need a better error message than just error as it doesn't say much. I understand that it's a test case, but expressive error messages also help us better debug and trace unit test failures

Suggested change
return nil, fmt.Errorf("error")
return nil, fmt.Errorf("error")

Copy link
Member Author

Choose a reason for hiding this comment

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

Those are all valid points. Since this is a cherry-pick, I'm not going to address these here and would prefer to keep the functionality the same.

@elezar elezar merged commit 4324aee into NVIDIA:release-1.16 Aug 22, 2024
8 checks passed
@elezar elezar deleted the cherry-pick-89c12c1 branch August 27, 2024 08:05
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.

NVIDIA Runtime Configuration Warning in Docker
4 participants