-
Notifications
You must be signed in to change notification settings - Fork 894
feat: Add connection_timeout and troubleshooting_url to agent #4937
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
mafredri
merged 11 commits into
main
from
mafredri/agent-connection-timeout-troubleshooting
Nov 9, 2022
Merged
Changes from 1 commit
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
2bf20be
feat: Add connection_timeout and troubleshooting_url to agent
mafredri b567c55
Add testcase for cliui.Agent troubleshooting message
mafredri ecee858
Only enable connection timeouts when set to non-zero
mafredri 673e331
Improve testutil.Eventually autocomplete signature and add message
mafredri 788c1f4
Add coderd testcase for coder agent timeout
mafredri 0e395e2
Make gen
mafredri a6a095b
Rename to ConnectionTimeoutSeconds and TroubleshootingURL initialism
mafredri 0cfc7b8
What goes up must also come down
mafredri 15ef5ae
Update site mocks
mafredri e8a8311
Assign values from terraform resources
mafredri 7a7315a
chore: Update terraform resource testdata
mafredri File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add coderd testcase for coder agent timeout
- Loading branch information
commit 788c1f4c4ece9b4a8a85f5d9d00ff992f7772b46
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: question about the naming conversion, it seems that
ConnectionTimeout
is reserved only for seconds, should we name thisConnectionTimeoutSec
? I hope that we won't need a 500ms timeout in the future :)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a bad suggestion at all. I'm a bit vary of doing it though since this value is propagated through
terraform-provider-coder
, I was following the previous convention for how an int/second is represented in the code (e.g.codersdk.Healthcheck.Interval
).We do have other places in the code that utilizes
*Millis
/_ms
, however. So there is precedent for both.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good for me, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be worth opening an issue to standardize these fields @mafredri... it makes me significantly more nervous about working with code with unspecified durations. The change of course doesn't need to happen in this PR though!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll create the issue for standardization tomorrow, I did however push the change for this PR in
a182cdf
already, turned out much better. Thanks for pushing for this change both of you. 👍🏻