-
Notifications
You must be signed in to change notification settings - Fork 654
Bump up buildg to v0.5.2 and extend startup timeout #4162
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
aaeca3a
to
2b582a3
Compare
Signed-off-by: Kohei Tokunaga <[email protected]>
Failed tests don't seem to be related to buildg changes. |
cmd/nerdctl/builder/builder.go
Outdated
@@ -146,6 +147,7 @@ func debugCommand() *cobra.Command { | |||
cmd.Flags().String("image", "", "Image to use for debugging stage") | |||
cmd.Flags().StringArray("ssh", nil, "Allow forwarding SSH agent to the build. Format: default|<id>[=<socket>|<key>[,<key>]]") | |||
cmd.Flags().StringArray("secret", nil, "Expose secret value to the build. Format: id=secretname,src=filepath") | |||
helpers.AddDurationFlag(cmd, "startup-timeout", nil, 1*time.Minute, "", "Timeout for starting up buildg") |
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.
Thanks a lot for this @ktock
Hopefully will resolve our issue here.
Wondering if we need to surface the flag to the nerdctl end-user though?
cmd/nerdctl/builder/builder.go
Outdated
@@ -146,6 +147,7 @@ func debugCommand() *cobra.Command { | |||
cmd.Flags().String("image", "", "Image to use for debugging stage") | |||
cmd.Flags().StringArray("ssh", nil, "Allow forwarding SSH agent to the build. Format: default|<id>[=<socket>|<key>[,<key>]]") | |||
cmd.Flags().StringArray("secret", nil, "Expose secret value to the build. Format: id=secretname,src=filepath") | |||
helpers.AddDurationFlag(cmd, "startup-timeout", nil, 1*time.Minute, "", "Timeout for starting up buildg") |
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.
helpers.AddDurationFlag(cmd, "startup-timeout", nil, 1*time.Minute, "", "Timeout for starting up buildg") | |
helpers.AddDurationFlag(cmd, "buildg-startup-timeout", nil, 1*time.Minute, "", "Timeout for starting up buildg") |
cmd/nerdctl/builder/builder.go
Outdated
@@ -167,6 +169,12 @@ func debugAction(cmd *cobra.Command, args []string) error { | |||
buildgArgs = append([]string{"--debug"}, buildgArgs...) | |||
} | |||
|
|||
startupTimeout, err := cmd.Flags().GetDuration("startup-timeout") |
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.
Out of the sync with the flag definition
This also extends buildg's default timeout value to 1m Signed-off-by: Kohei Tokunaga <[email protected]>
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.
LGTM,thanks
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.
Thanks
Related to ktock/buildg#242 and #4046