Skip to content

chore: add test for workspace proxy derp meshing #12220

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

Merged
merged 4 commits into from
Mar 5, 2024

Conversation

deansheather
Copy link
Member

  • Reworks the proxy registration loop into a struct (so I can add a RegisterNow method)
  • Changes the proxy registration loop interval to 15s (previously 30s)
  • Adds test which tests bidirectional DERP meshing on all possible paths between 6 workspace proxy replicas

Related to https://github.com/coder/customers/issues/438

Copy link
Contributor

@spikecurtis spikecurtis left a comment

Choose a reason for hiding this comment

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

Couple suggestions inline, but I don't need to review again. LGTM!

select {
case <-l.done:
return RegisterWorkspaceProxyResponse{}, xerrors.New("proxy registration loop closed")
case l.runLoopNow <- respCh:
Copy link
Contributor

Choose a reason for hiding this comment

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

I like this construct of plumbing the request to immediately register thru the same loop!

Copy link
Member Author

deansheather commented Mar 1, 2024

Merge activity

  • Mar 1, 9:14 AM EST: @deansheather started a stack merge that includes this pull request via Graphite.
  • Mar 1, 9:29 AM EST: Graphite couldn't merge this PR because it was not satisfying all requirements.

@deansheather deansheather merged commit 0016b02 into main Mar 5, 2024
@deansheather deansheather deleted the dean/proxy-derp-mesh-test branch March 5, 2024 07:40
@github-actions github-actions bot locked and limited conversation to collaborators Mar 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants