Skip to content

use --wait-timeout for max starting time - #290

Merged
scott-cotton merged 3 commits into
mainfrom
ci-config-plumb-connect-wait-timeout
Dec 16, 2025
Merged

scott-cotton merged 3 commits into
mainfrom
ci-config-plumb-connect-wait-timeout

Conversation

@scott-cotton

Copy link
Copy Markdown
Member

No description provided.

@scott-cotton
scott-cotton requested a review from foxish December 15, 2025 16:54
func NewTunnelProxyMonitor(ctx context.Context, root *rootManager, ipMap *ipmap.IPMap) *tpMonitor {
dur, err := time.ParseDuration(root.ciConfig.ConnectTimeout)
if err != nil {
dur = 10 * time.Second

@foxish foxish Dec 15, 2025 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why not keep it at 30s? IMO, that's a safer default

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The CLI defaults to 10 seconds and that error will never trigger anyway. I think folks are used to the CLI default and would hesitate to change it.

@foxish foxish Dec 16, 2025 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What do you mean it defaults to 10s? Previously on line 21, we had:

// maxStartingTime needs to be large enough for worst case startup time
	maxStartingTime = 30 * time.Second
)

Isn't this the same parameter? I see our default having changed from 30s -> 10s from reading that. Am I missing something?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I added a comment trying to clarify.

Overall, before this change, it was an independent parameter set as a constant in this file to 30s. Following the request to make it configurable, I linked it in this PR to the value of --wait-timeout as passed to signadot local connect. That value defaults to 10s.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ah, got it. I see now that there was already a default value for that flag and it exists already. sgtm.

@foxish foxish left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@scott-cotton
scott-cotton merged commit 516c3e6 into main Dec 16, 2025
@scott-cotton
scott-cotton deleted the ci-config-plumb-connect-wait-timeout branch December 16, 2025 18:50
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