-
Notifications
You must be signed in to change notification settings - Fork 48
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
Hotspot analysis doesn't work after merging two Git repositories. #5
Comments
The symptom seems to indicate that your analysis results do not contain any complexity and/or lines of code metrics (depending on what diagram you're trying to visualise). It could be just a matter of configuring code-forensics the right way. If your code is in an open repo and you let me know which one I can give it a quick try and let you know |
The symptom described by @mhenrichsen seems to match my experience with
Executing Unfortunately Ie. it seems the number of commits are equal across the repo, how can that be... A visual representation gives a clue. Hmm, further probing provide the following clue for a file with 100+ commits in the original repository. I've tried to research the underlying issue, ie. retrieving the full history via Conclusion; this seems to be a |
Hotspot analysis works as expected for a single git-repository, in this example grails-quartz. |
I couldn't let this issue go, as additional digging revealed there's several approaches for merging git repositories into a single git repository in separate sub-directories without loosing file history. And as described below I'm suspecting there's an issue here and perhaps it's possible to tease out a fix I've tried several approaches, they all seem to produce full history for Common for the above approaches is that When executing
When executing
Regardless, the full file history seems to be present as far as Utilizing I've tried digging around in the source for
Unfortunately my limited experience with node.js has blocked attempts to determine why this line is only executed for single git repository. |
In-order to support reproducability, the
The resulting merged repository can be found in |
thank you @dlehammer for the extensive report on your attempts to dig into this. code-forensics needs to produce a git log in a particular format in order to be parseable by code-maat. the code in the module
Have you tried to manually run this command in your merged git repo? Is the output of this command different from when it's executed on a normal repository? |
As far as I can tell, the output format is identical between repositories and both produce output. My main suspect is still that the command isn't executed because some error blocks the flow at an earlier stage, as described in above comment.
|
@dlehammer I cloned your example repo and I had no problem running the hotspot-analysis This is an extract of the output
I also checked the vcs log file produced and they look ok. Maybe you're missing something in your setup? |
Well, this is a bit unsettling, but I'm able to run the analysis successfully for the example repo - just like you now. I suspect something's changed in my environment since last time the symptom manifested itself, but I haven't taken any active steps in this regard myself - hence I'm unable to tell what's affected the outcome. This is my current setup, as best as I can gather:
Thank you for your patience 👍 |
No worries, I'll close the issue for now |
Hi @smontanari,
I've tried this method to merge two repositories without messing with the history.
It seems to work fine, but when I run the hotspot analysis, there is no hotspots - all dots have the same color.
Here is a picture.
Any ideas?
The text was updated successfully, but these errors were encountered: