Skip to content

Conversation

@pjbgf
Copy link
Member

@pjbgf pjbgf commented May 27, 2022

Some scenarios could lead a goroutine to be running indefinetely within managed ssh.
Previously between the two git operations, the reconciliation could take twice the timeout set for the Flux object.

After the changes were introduced (after 10pm), the reconciliations became more stable:
image

@pjbgf pjbgf added the area/git Git related issues and pull requests label May 27, 2022
@pjbgf pjbgf added this to the GA milestone May 27, 2022
@pjbgf pjbgf requested a review from aryan9600 May 27, 2022 09:41

// When context is nil, creates a new with internal SSH connection timeout.
if ctx == nil {
ctx, cancel = context.WithTimeout(context.TODO(), sshConnectionTimeOut)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
ctx, cancel = context.WithTimeout(context.TODO(), sshConnectionTimeOut)
ctx, cancel = context.WithTimeout(context.Background(), sshConnectionTimeOut)

Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

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

LGTM

Thanks @pjbgf

Copy link
Member

@aryan9600 aryan9600 left a comment

Choose a reason for hiding this comment

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

LGTM!

Some scenarios could lead a goroutine to be running indefinetely within managed ssh.
Previously between the two git operations, the reconciliation
could take twice the timeout set for the Flux object.

Signed-off-by: Paulo Gomes <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/git Git related issues and pull requests

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants