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

vscsyncer: introduce syncer wrapper which calculates latencies for all operations#61708

Merged
ggilmore merged 2 commits intomainfrom
04-08-vscsyncer_introduce_syncer_wrapper_which_calculates_latencies_for_all_operations
Apr 11, 2024
Merged

vscsyncer: introduce syncer wrapper which calculates latencies for all operations#61708
ggilmore merged 2 commits intomainfrom
04-08-vscsyncer_introduce_syncer_wrapper_which_calculates_latencies_for_all_operations

Conversation

@ggilmore
Copy link
Contributor

@ggilmore ggilmore commented Apr 8, 2024

Closes #61692

Test plan

Created the following Grafana screenshot using sg start monitoring:

screencapture-sourcegraph-test-3443-debug-grafana-d-gitserver-git-server-2024-04-11-13_46_51

@cla-bot cla-bot bot added the cla-signed label Apr 8, 2024
Copy link
Contributor Author

ggilmore commented Apr 8, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @ggilmore and the rest of your teammates on Graphite Graphite

@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 Apr 8, 2024
@ggilmore ggilmore force-pushed the 04-08-vscsyncer_introduce_syncer_wrapper_which_calculates_latencies_for_all_operations branch 4 times, most recently from 50fe66e to d6a6ea6 Compare April 11, 2024 07:44
Copy link
Contributor Author

@ggilmore ggilmore Apr 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fun fact! If this value is set to git, this completely breaks our templating in non-intuitve ways (starts complaining about illegal characters like $ in metrics like disk_size_remaining where that was never a problem before). I will file an issue about this.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very fun indeed 🙃

@ggilmore ggilmore marked this pull request as ready for review April 11, 2024 07:46
@ggilmore ggilmore requested a review from a team April 11, 2024 07:46
Copy link
Member

@eseliger eseliger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super nit: This reads to me as if this wasn't actually clones, do we need the quotes?

Screenshot 2024-04-11 at 19 57 10@2x

Question: What is "Value" here?

Screenshot 2024-04-11 at 19 58 26@2x

Good stuff! added a few non-blocking comments

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

idea: if you embed VCSSyncer directly, you don't have to do things like

func (i *instrumentedSyncer) Type() string {
	return i.base.Type()
}

.. but you would lose the certainty that you correctly overwrote all methods. So no strong opinion here, just something I noticed while reading the diff.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very fun indeed 🙃

@ggilmore ggilmore force-pushed the 04-08-vscsyncer_introduce_syncer_wrapper_which_calculates_latencies_for_all_operations branch 7 times, most recently from f0d70cb to b6bc8b0 Compare April 11, 2024 20:45
@ggilmore ggilmore force-pushed the 04-08-vscsyncer_introduce_syncer_wrapper_which_calculates_latencies_for_all_operations branch from b6bc8b0 to fa1584d Compare April 11, 2024 21:05
@ggilmore ggilmore merged commit bee764a into main Apr 11, 2024
@ggilmore ggilmore deleted the 04-08-vscsyncer_introduce_syncer_wrapper_which_calculates_latencies_for_all_operations branch April 11, 2024 21:21
@sentry
Copy link

sentry bot commented Apr 14, 2024

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ *[gitserver] performing background repo update: exit status 128: exec.ExitError: failed to fetch repo ×: failed to set local HEAD to remote HEAD: failed to fetch... github.com/sourcegraph/sourcegraph/cmd/gitserve... View Issue
  • ‼️ *[gitserver] performing background repo update: exit status 128: exec.ExitError: failed to fetch repo ×: exit code: 128, failed to fetch from remote: ×: command ... github.com/sourcegraph/sourcegraph/cmd/gitserve... View Issue

Did you find this useful? React with a 👍 or 👎

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.

Instrument VCSSyncers for call count and latency

2 participants