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

Support cpp stack traces #60

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Support cpp stack traces #60

wants to merge 8 commits into from

Conversation

jhaigh0
Copy link
Contributor

@jhaigh0 jhaigh0 commented Dec 10, 2024

Add new field cppCompressedTraces to the db model to support workbench sending a compressed representation of the output from pystack when run on a workbench coredump file.

The raw pystack output is compressed with zlib when encoded with base64.standard_encode so the opposite is done when recovering the raw output.

There can be a lot of output from pystack, so I wrote a small module which filters out the traces involving mantid code (a lot of traces are memory threads). This is used when sending the message to slack, and when making a github issue.

C++ traces are not supported by the github issue handler system, whereby reports with the same stack traces (irrespective of the computer they're installed on) are collated into one github issue.

cppCompressedTRaces will be stoed as a base64 compressed string to avoid complications I was having with sending compressed bytes to django.
Had to up the max length on mantidVersion, my dev build with '+uncommited' was reaching 36 characters.
@jhaigh0 jhaigh0 added the enhancement New feature or request label Dec 10, 2024
@jhaigh0 jhaigh0 force-pushed the support_cpp_stack_traces branch from 47d8d78 to 7a30848 Compare December 10, 2024 15:57
@jhaigh0 jhaigh0 force-pushed the support_cpp_stack_traces branch from 7a30848 to 4086aad Compare December 10, 2024 15:59
@jhaigh0 jhaigh0 force-pushed the support_cpp_stack_traces branch 3 times, most recently from 7b2cc85 to 9813cc2 Compare January 9, 2025 15:33
@jhaigh0 jhaigh0 force-pushed the support_cpp_stack_traces branch from 9813cc2 to d800f85 Compare January 9, 2025 15:35
@jhaigh0 jhaigh0 marked this pull request as ready for review January 10, 2025 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant