Skip to content

Conversation

@fiam
Copy link
Collaborator

@fiam fiam commented Oct 2, 2025

Fixes the in-flight trace recorder getting stuck when exporting a trace
when buildkit is compiled with go 1.24.

Fixes the in-flight trace recorder getting stuck when exporting a trace
when buildkit is compiled with go 1.24.

Signed-off-by: Alberto Garcia Hierro <[email protected]>
@github-actions github-actions bot added the area/dependencies Pull requests that update a dependency file label Oct 2, 2025

// This file implements conversion from old (Go 1.11–Go 1.21) traces to the Go
// 1.22 format.
// This file implements conversion from v1 (Go 1.11–Go 1.21) traces to the v2
Copy link
Member

@thaJeztah thaJeztah Oct 2, 2025

Choose a reason for hiding this comment

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

This is something I noticed last week; there's a v2 now, and v1 is implemented using v2; I wondered; should we be switching to v2?

But I'm not familiar at all with how it's used, so wanted to ask you 😅

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

v1 implements support for Go runtime traces up until Go 1.21. For Go 1.22 they redid the internals of runtime tracing and started using a new format to store them, which is supported by the v2 package.

AFAIK, v1 and v2 packages are internal. The public API continues to be the same, and the format of the trace is determined by the Go version used to build the program.

What changed recently is that they renamed the internal packages (v1 as called oldtrace, v2 was called go122).

Copy link
Member

Choose a reason for hiding this comment

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

Oh! You are SO right! I completely missed the .. rather relevant .. internal/ in the path!

I recall I was about to vendor an update, then noticed the v1 / v2, and knowing that golang.org/x/exp is known for being experimental and breaking changes can happen, made a mental note "check if we should update our uses, because for this module we should keep up with changes made".

But nothing to do then, thanks!!

@crazy-max crazy-max added this to the v0.25.1 milestone Oct 3, 2025
Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

"LGTM"

@AkihiroSuda AkihiroSuda merged commit bea1291 into moby:master Oct 6, 2025
162 of 163 checks passed
@crazy-max crazy-max removed this from the v0.25.1 milestone Oct 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants