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

[#2196] Use git blame line info for aggregate blame author modified and date info #2232

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

logical-1985516
Copy link

@logical-1985516 logical-1985516 commented Jul 3, 2024

Fixes #2196

Proposed commit message

Uses blameLine to abstract away the string wrangling and improve
understandability. Magic numbers are also replaced to improve code
quality.

In order to use blameLine however, it is also changed to use 
author-time instead of commit-time, as there is a discrepancy
between the two, causing some test cases to fail.

The naming of the timestamp field in GitBlameLineInfo is changed
to reflect that it is in seconds, as author-time is in seconds.

Other information

Surrounding code which states milliseconds is also changed to state seconds correctly, as this PR is meant to resolve a code quality issue anyways. If this is not ok, I can revert the last commit.

@github-actions github-actions bot requested a deployment to dashboard-2232 July 3, 2024 16:29 Abandoned
@github-actions github-actions bot requested a deployment to docs-2232 July 3, 2024 16:29 Abandoned
@ckcherry23 ckcherry23 requested a review from a team July 3, 2024 16:54
@logical-1985516 logical-1985516 changed the title 2196 use git blame line info for aggregate blame author modified and date info [#2196] Use git blame line info for aggregate blame author modified and date info Jul 4, 2024
@github-actions github-actions bot requested a deployment to dashboard-2232 July 6, 2024 08:05 Abandoned
@github-actions github-actions bot requested a deployment to docs-2232 July 6, 2024 08:05 Abandoned
@github-actions github-actions bot requested a deployment to dashboard-2232 July 6, 2024 15:34 Abandoned
@github-actions github-actions bot requested a deployment to docs-2232 July 6, 2024 15:34 Abandoned
@github-actions github-actions bot requested a deployment to dashboard-2232 July 6, 2024 15:40 Abandoned
@github-actions github-actions bot requested a deployment to docs-2232 July 6, 2024 15:40 Abandoned
@github-actions github-actions bot requested a deployment to dashboard-2232 July 6, 2024 15:54 Abandoned
@github-actions github-actions bot requested a deployment to docs-2232 July 6, 2024 15:54 Abandoned
@logical-1985516
Copy link
Author

logical-1985516 commented Jul 7, 2024

Hi, I have noticed that some test cases take a very long time to finish. Could this be due to the additional overhead incurred from running git blame command in blameLine?

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.

Use GitBlameLineInfo for processing git blame output in aggregateBlameAuthorModifiedAndDateInfo
1 participant