Skip to content

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

Merged
merged 2 commits into from
Apr 27, 2025

Conversation

ktock
Copy link
Member

@ktock ktock commented Apr 25, 2025

@ktock ktock force-pushed the buildg-v0.5 branch 2 times, most recently from aaeca3a to 2b582a3 Compare April 25, 2025 12:56
Signed-off-by: Kohei Tokunaga <[email protected]>
@ktock ktock changed the title Bump up buildg to v0.5.1 and extend startup timeout Bump up buildg to v0.5.2 and extend startup timeout Apr 25, 2025
@ktock
Copy link
Member Author

ktock commented Apr 25, 2025

Failed tests don't seem to be related to buildg changes.

@apostasie
Copy link
Contributor

Failures are #4143 and #4142

@@ -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")
Copy link
Contributor

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?

@@ -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")
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
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")

@@ -167,6 +169,12 @@ func debugAction(cmd *cobra.Command, args []string) error {
buildgArgs = append([]string{"--debug"}, buildgArgs...)
}

startupTimeout, err := cmd.Flags().GetDuration("startup-timeout")
Copy link
Member

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]>
Copy link
Member

@djdongjin djdongjin left a comment

Choose a reason for hiding this comment

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

LGTM,thanks

@AkihiroSuda AkihiroSuda added this to the v2.0.5 milestone Apr 27, 2025
Copy link
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

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

Thanks

@AkihiroSuda AkihiroSuda merged commit e062365 into containerd:main Apr 27, 2025
32 checks passed
@ktock ktock deleted the buildg-v0.5 branch April 28, 2025 15:01
@apostasie apostasie mentioned this pull request May 2, 2025
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.

4 participants