Skip to content

update Go version; add websocket / correct endpoints to 'src gateway benchmark' - #1125

Merged
emidoots merged 4 commits into
mainfrom
sg/wss-ping
Dec 4, 2024
Merged

update Go version; add websocket / correct endpoints to 'src gateway benchmark'#1125
emidoots merged 4 commits into
mainfrom
sg/wss-ping

Conversation

@emidoots

Copy link
Copy Markdown
Member

Continues development of #1124

  • Updates Go version used in this repository (I had to do this to develop, see https://sourcegraph.slack.com/archives/C07KZF47K/p1731627487087909)
  • Checks the status code returned by HTTP endpoints.
  • Updates Sourcegraph HTTP endpoints to /.api/gateway and /.api/gateway/websocket.
  • Updates gateway HTTP endpoints to /v2 and /v2/websocket
  • Adds websocket client.
  • Respects -gateway parameter and SRC_ENDPOINT/SRC_ACCESS_TOKEN

This should be sufficient for testing against the actual production endpoints once they are added / working / live in prod.

Test plan

Not tested yet since endpoints are not live yet. Command not in use yet, so no risk.

@emidoots
emidoots requested review from a team and vdavid November 15, 2024 04:49

@vdavid vdavid left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approved to unblock and because it's generally 👌. Also left a few suggestions to improve it further before merging.

Comment thread cmd/src/gateway_benchmark.go Outdated
Comment thread cmd/src/gateway_benchmark.go
Comment thread cmd/src/gateway_benchmark.go Outdated
Comment thread go.sum
Comment thread cmd/src/gateway_benchmark.go
Comment thread cmd/src/gateway_benchmark.go
Comment thread cmd/src/gateway_benchmark.go
Comment thread cmd/src/gateway_benchmark.go

@camdencheek camdencheek left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Didn't review the changes to src gateway benchmark closely, but stamping on behalf of the code search team for the version bumps. Thanks!

Stephen Gutekanst added 4 commits December 3, 2024 16:19
Signed-off-by: Stephen Gutekanst <stephen@sourcegraph.com>
Signed-off-by: Stephen Gutekanst <stephen@sourcegraph.com>
Signed-off-by: Stephen Gutekanst <stephen@sourcegraph.com>
Signed-off-by: Stephen Gutekanst <stephen@sourcegraph.com>
@emidoots
emidoots merged commit ae7a9c0 into main Dec 4, 2024
@emidoots
emidoots deleted the sg/wss-ping branch December 4, 2024 01:53
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.

3 participants