Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

gitserver: Implement RefHash in backend#62612

Merged
eseliger merged 1 commit into
mainfrom
es/05-13-gitserverimplementrefhashinbackend
May 13, 2024
Merged

gitserver: Implement RefHash in backend#62612
eseliger merged 1 commit into
mainfrom
es/05-13-gitserverimplementrefhashinbackend

Conversation

@eseliger

Copy link
Copy Markdown
Member

This PR moves the implementation of ComputeRefHash to the GitBackend interface and reduces the amount of memory needed by it. We get proper tracking of the command by that, including error logs, resource usage, invocation count etc.

Since there is no 1000% guarantee that this didn't change the hash, I opted for resetting the last changed value and recomputing from scratch, by changing the path of the file to _v2.

Test plan:

Tests are still passing.

@github-actions github-actions Bot added team/product-platform team/source Tickets under the purview of Source - the one Source to graph it all labels May 13, 2024
@eseliger eseliger force-pushed the es/05-13-gitserverimplementlatestcommittimestampinbackend branch from 8b57b06 to 5011142 Compare May 13, 2024 03:13
@eseliger eseliger force-pushed the es/05-13-gitserverimplementrefhashinbackend branch from 5f7b386 to d2f4ebf Compare May 13, 2024 03:13
@eseliger eseliger marked this pull request as ready for review May 13, 2024 03:31
@eseliger eseliger requested a review from a team May 13, 2024 03:31
@eseliger eseliger force-pushed the es/05-13-gitserverimplementlatestcommittimestampinbackend branch from 5011142 to fa2bead Compare May 13, 2024 13:15
@eseliger eseliger force-pushed the es/05-13-gitserverimplementrefhashinbackend branch from d2f4ebf to bac718c Compare May 13, 2024 13:15
Base automatically changed from es/05-13-gitserverimplementlatestcommittimestampinbackend to main May 13, 2024 13:37
This PR moves the implementation of ComputeRefHash to the GitBackend interface and reduces the amount of memory needed by it. We get proper tracking of the command by that, including error logs, resource usage, invocation count etc.

Since there is no 1000% guarantee that this didn't change the hash, I opted for resetting the last changed value and recomputing from scratch, by changing the path of the file to _v2.

Test plan:

Tests are still passing.
@eseliger eseliger force-pushed the es/05-13-gitserverimplementrefhashinbackend branch from bac718c to b743fc5 Compare May 13, 2024 13:38

eseliger commented May 13, 2024

Copy link
Copy Markdown
Member Author

Merge activity

  • May 13, 9:38 AM EDT: Graphite rebased this pull request after merging its parent, because this pull request is set to merge when ready.
  • May 13, 10:05 AM EDT: @eseliger merged this pull request with Graphite.

@eseliger eseliger merged commit 255dad8 into main May 13, 2024
@eseliger eseliger deleted the es/05-13-gitserverimplementrefhashinbackend branch May 13, 2024 14:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla-signed team/product-platform team/source Tickets under the purview of Source - the one Source to graph it all

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants