Skip to content

Feature Request: Integration with Git #257

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

Open
ligurio opened this issue Apr 6, 2025 · 3 comments
Open

Feature Request: Integration with Git #257

ligurio opened this issue Apr 6, 2025 · 3 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@ligurio
Copy link

ligurio commented Apr 6, 2025

CASR already supports stacktraces produced by different programming languages.
I propose to integrate CASR with Git to easily figure out which git commit caused a given stacktrace.
Similar to git-stacktrace 1, but it supports only three languages (Python, Java, JavaScript).

$ git stacktrace --since=1.day < trace
Traceback (most recent call last):
 File "webapp/framework/resource.py", line 72, in _call
   result = getattr(self, method_name)()
 File "webapp/resources/interests_resource.py", line 232, in get
   if self.options['from_navigate'] == "true":
KeyError


commit da39a3ee5e6b4b0d3255bfef95601890afd80709
Commit Date: Tue, 19 Jul 2016 14:18:08 -0700
Author:      John Doe <[email protected]>
Subject:     break interest resource
Link:        https://example.com/D1000
Files Modified:
   - webapp/resources/interests_resource.py:232
Lines Added:
   - "if self.options['from_navigate'] == "true":"

Footnotes

  1. https://github.com/pinterest/git-stacktrace

@SweetVishnya
Copy link
Collaborator

That's a great idea!

I suppose it could be even implemented in a more simple way. We can just call git blame (or even use some Rust-native git library) on crash line. And store the corresponding commit and author into Casr report.

@SweetVishnya
Copy link
Collaborator

This issue is open for contribution! If someone is willing to help, don't hesitate and drop us with a PR!

@SweetVishnya SweetVishnya added enhancement New feature or request help wanted Extra attention is needed labels Apr 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants