Skip to content
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

profiler: upgrade gostackparse to support Go 1.21 tracebacks #2150

Merged
merged 1 commit into from
Sep 5, 2023

Conversation

nsrip-dd
Copy link
Contributor

@nsrip-dd nsrip-dd commented Jul 25, 2023

What does this PR do?

Upgrades our gostackparse dependency to pick up commit 3d65ba9.

Motivation

Go 1.21 will change stack traces to include the ID of the parent
goroutine in a goroutine's stack trace, e.g.

	goroutine 18 [running]:
	< ... stack frames ... >
	created by main.main in goroutine 1

(see go.dev/cl/435337). Unless we upgrade, we'll see
"in goroutine 1" in the root frames in the goroutines wait
profile.

Describe how to test/QA your changes

This is picking up a change which is already tested in the upstream library.

Reviewer's Checklist

  • Changed code has unit tests for its functionality.
  • If this interacts with the agent in a new way, a system test has been added.

@pr-commenter
Copy link

pr-commenter bot commented Jul 25, 2023

Benchmarks

Benchmark execution time: 2023-09-05 14:42:40

Comparing candidate commit 63a44e8 in PR branch nick.ripley/upgrade-gostackparse with baseline commit b7a1753 in branch main.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 40 metrics, 1 unstable metrics.

@nsrip-dd
Copy link
Contributor Author

This wasn't actually fixed by #2171. v0.6.0 doesn't include the needed changes

Go 1.21 will change stack traces to include the ID of the parent
goroutine in a goroutine's stack trace, e.g.

	goroutine 18 [running]:
	< ... stack frames ... >
	created by main.main in goroutine 1

(see go.dev/cl/435337). Upgrade gostackparse, used by the goroutines
wait profile, to handle this change so that "in goroutine N" doesn't
appear in the profile.
@nsrip-dd nsrip-dd force-pushed the nick.ripley/upgrade-gostackparse branch from 9fd5f9c to 63a44e8 Compare September 5, 2023 14:28
@nsrip-dd nsrip-dd marked this pull request as ready for review September 5, 2023 14:48
@nsrip-dd nsrip-dd requested a review from a team as a code owner September 5, 2023 14:48
@nsrip-dd nsrip-dd merged commit c66772b into main Sep 5, 2023
52 checks passed
@nsrip-dd nsrip-dd deleted the nick.ripley/upgrade-gostackparse branch September 5, 2023 14:54
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.

None yet

2 participants