8000 feat: Allow buildkit timeout to be configurable by terrytangyuan · Pull Request #1482 · tensorchord/envd · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: Allow buildkit timeout to be configurable #1482

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

Merged
merged 2 commits into from
Feb 18, 2023

Conversation

terrytangyuan
Copy link
Member

This was needed for me to get everything to run. I'd imagine other users might benefit from this as well.

@terrytangyuan
Copy link
Member Author

@hezhizhen Great suggestions! Updated.

Signed-off-by: Yuan Tang <terrytangyuan@gmail.com>
assert.Equal(t, time.Second, GetDurationWithDefault("", time.Second), "default value")
t.Setenv("FOO", "bar")
assert.Panics(t, func() { GetDurationWithDefault("FOO", time.Second) }, "bad value")
t.Setenv("FOO", "1h")
Copy link
Contributor

Choose a reason for hiding this comment

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

How about using the actual environment variable name?

Copy link
Member Author

Choose a reason for hiding this comment

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

This is intentional. This is a generic util so I prefer to use something more generic.

if err == nil {
return d
}
log.WithField(key, v).WithError(err).Panic("failed to parse")
Copy link
Contributor
@hezhizhen hezhizhen Feb 17, 2023

Choose a reason for hiding this comment

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

Will Panic() panic here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes it's intentional since we don't want users to assume that the incorrect config is applied when actually not.

Signed-off-by: Yuan Tang <terrytangyuan@gmail.com>
@gaocegege
Copy link
Member

PTAL @hezhizhen

@hezhizhen
Copy link
Contributor

LGTM

@gaocegege gaocegege merged commit b0143c3 into tensorchord:main Feb 18, 2023
@gaocegege
Copy link
Member

Thanks for your contribution! 🎉 👍

And Thank @hezhizhen for the review.

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.

3 participants
0