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

vendor: bump panicparse version to v2.2.0 #71690

Merged
merged 1 commit into from
Oct 19, 2021

Conversation

nvanbenschoten
Copy link
Member

Related to #69603.

This commit bumps our dependency on github.com/maruel/panicparse to version v2.2.0. Doing so has two effects.

First, doing so unblocks support for go1.17 in cockroachdb. We upstreamed go1.17 support to panicparse in maruel/panicparse@5825e8f, and this upgrade picks this change up. This change was needed because go1.17 changed the format of stack traces, see https://tip.golang.org/doc/go1.17#compiler. Pulling in this change fixes unit tests and introspection endpoints (/debug/pprof/goroutineui/) that depend on panicparse.

Second, doing so pulls in an improved goroutine UI. Since our initial integration of panicparse, the library has improved the UI significantly. It has also exported the HTML generation code path, so we can delete some code that we lifted from the library. This leads to a /debug/pprof/goroutineui/ that looks like:

Screen Shot 2021-10-19 at 2 14 45 AM

Release notes (ui change): the /debug/pprof/goroutineui/ page has a new and improved look.

This commit bumps our dependency on `github.com/maruel/panicparse` to version
v2.2.0. Doing so has two effects.

First, doing so unblocks support for go1.17 in cockroachdb. We upstreamed go1.17
support to panicparse in github.com/maruel/panicparse/commit/5825e8fb04831f02e915425d173c580e83fd3f8c,
and this upgrade picks this change up. This change was needed because go1.17 changed
the format of stack traces, see https://tip.golang.org/doc/go1.17#compiler. Pulling
in this change fixes unit tests and introspection endpoints (`/debug/pprof/goroutineui/`)
that depend on panicparse.

Second, doing so pulls in an improved goroutine UI. Since our initial integration
of panicparse, the library has improved the UI significantly. It has also exported
the HTML generation code path, so we can delete some code that we lifted from the
library. This leads to a `/debug/pprof/goroutineui/` that looks like:

<image>

Release notes (ui change): the /debug/pprof/goroutineui/ page has a new and
improved look.
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@nvanbenschoten nvanbenschoten mentioned this pull request Oct 19, 2021
13 tasks
@nvanbenschoten
Copy link
Member Author

I confirmed that with this change, TestConcurrencyManagerBasic passes when running with go1.17.

Copy link
Member

@tbg tbg left a comment

Choose a reason for hiding this comment

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

Nice! Does this show labels or would it have to be based on the ?debug=1 format (which it isn't)?

Reviewed 11 of 11 files at r1, all commit messages.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @rickystewart)

@nvanbenschoten
Copy link
Member Author

Does this show labels or would it have to be based on the ?debug=1 format (which it isn't)?

Unfortunately, it does not. That information is not included in ?debug=2 or in runtime.Stack().

bors r+

@craig
Copy link
Contributor

craig bot commented Oct 19, 2021

Build succeeded:

@craig craig bot merged commit 8b49956 into cockroachdb:master Oct 19, 2021
@nvanbenschoten nvanbenschoten deleted the nvanbenschoten/panicparse branch October 26, 2021 01:48
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

3 participants