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

Add go profiling flag, and enable on integration tests #1382

Merged
merged 5 commits into from
Apr 27, 2023

Conversation

kradalby
Copy link
Collaborator

Signed-off-by: Kristoffer Dalby kristoffer@tailscale.com

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
@kradalby kradalby force-pushed the pprof-integration-tests branch 3 times, most recently from 561e880 to aad870f Compare April 27, 2023 09:37
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
@kradalby kradalby marked this pull request as ready for review April 27, 2023 13:52
@kradalby kradalby requested a review from juanfont as a code owner April 27, 2023 13:52
@kradalby kradalby merged commit 56dd734 into juanfont:main Apr 27, 2023
@kradalby kradalby deleted the pprof-integration-tests branch April 27, 2023 14:57
armooo added a commit to armooo/headscale that referenced this pull request May 27, 2023
This fixes juanfont#1469, where three bugs pervent main from existing on
SIGTERM.

The first two are blocking receiving from cancel chanels which never
have values sent to them, cancelStateUpdateChan and
cancelPolicyUpdateChan. It seems closing the chanels should be all the
is needed to signal the watching goroutines to exit.

The other is the signal hander never exiting an infinite for loop. The
sigFunc is called in an errorGroup which blocks exiting Serve and thus
main. It looks like a refactor in juanfont#1382 removed an os.Exit(0),
replacing it with a return breaks out of the loop.
@armooo armooo mentioned this pull request May 27, 2023
6 tasks
armooo added a commit to armooo/headscale that referenced this pull request Jun 10, 2023
This fixes juanfont#1469, where three bugs pervent main from existing on
SIGTERM.

The first two are blocking receiving from cancel chanels which never
have values sent to them, cancelStateUpdateChan and
cancelPolicyUpdateChan. It seems closing the chanels should be all the
is needed to signal the watching goroutines to exit.

The other is the signal hander never exiting an infinite for loop. The
sigFunc is called in an errorGroup which blocks exiting Serve and thus
main. It looks like a refactor in juanfont#1382 removed an os.Exit(0),
replacing it with a return breaks out of the loop.
kradalby pushed a commit to armooo/headscale that referenced this pull request Jul 7, 2023
This fixes juanfont#1469, where three bugs pervent main from existing on
SIGTERM.

The first two are blocking receiving from cancel chanels which never
have values sent to them, cancelStateUpdateChan and
cancelPolicyUpdateChan. It seems closing the chanels should be all the
is needed to signal the watching goroutines to exit.

The other is the signal hander never exiting an infinite for loop. The
sigFunc is called in an errorGroup which blocks exiting Serve and thus
main. It looks like a refactor in juanfont#1382 removed an os.Exit(0),
replacing it with a return breaks out of the loop.
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.

2 participants