Skip to content

Bump up buildg to v0.5.2 and extend startup timeout - #4162

Merged
AkihiroSuda merged 2 commits into
containerd:mainfrom
ktock:buildg-v0.5
Apr 27, 2025
Merged

AkihiroSuda merged 2 commits into
containerd:mainfrom
ktock:buildg-v0.5

Conversation

@ktock

@ktock ktock commented Apr 25, 2025 •

Copy link
Copy Markdown
Member

@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

ktock commented Apr 25, 2025

Copy link
Copy Markdown
Member Author

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

@apostasie

Copy link
Copy Markdown
Contributor

Failures are #4143 and #4142

Comment thread cmd/nerdctl/builder/builder.go Outdated
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
Copy Markdown
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?

Comment thread cmd/nerdctl/builder/builder.go Outdated
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
Copy Markdown
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")

Comment thread cmd/nerdctl/builder/builder.go Outdated
buildgArgs = append([]string{"--debug"}, buildgArgs...)
}

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

Copy link
Copy Markdown
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]>
Comment thread cmd/nerdctl/builder/builder.go Resolved

@djdongjin djdongjin left a comment

Copy link
Copy Markdown
Member

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

@AkihiroSuda AkihiroSuda left a comment

Copy link
Copy Markdown
Member

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
@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