Skip to content

feat(cli/vscodessh): add support for --wait and scripts that block login #10473

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 2 commits into from
Feb 2, 2024

Conversation

mafredri
Copy link
Member

@mafredri mafredri commented Nov 1, 2023

This PR takes a quick stab at adding support for --wait=auto|yes|no to coder vscodessh. This allows the VS Code extension to block login until the blocking startup scripts are ready.

Implementing it this way has two down-sides, though:

  1. The Remote - SSH extensions Connection Timeout setting needs to be raised (from the default 15s, I set mine to 300s)
  2. The startup logs are not automatically shown (the user needs to click details to see what's going on (this can be seen as a pro, too)

An alternative approach would be to stream the logs directly in the Coder VS Code extension, at the risk of maintining two different code paths in two separate projects.

@mafredri
Copy link
Member Author

mafredri commented Nov 1, 2023

@kylecarbs thoughts? Should we take this approach or implement this in the VS Code extension instead?

Here's a picture after clicking details, but before that the logs are not shown.

image

@github-actions github-actions bot added the stale This issue is like stale bread. label Nov 9, 2023
@github-actions github-actions bot closed this Nov 12, 2023
@mafredri mafredri reopened this Nov 14, 2023
@github-actions github-actions bot removed the stale This issue is like stale bread. label Nov 15, 2023
@github-actions github-actions bot added the stale This issue is like stale bread. label Nov 22, 2023
@github-actions github-actions bot closed this Nov 26, 2023
@mafredri mafredri reopened this Nov 26, 2023
@mafredri mafredri removed the stale This issue is like stale bread. label Nov 26, 2023
@github-actions github-actions bot added the stale This issue is like stale bread. label Dec 4, 2023
@matifali matifali removed the stale This issue is like stale bread. label Dec 4, 2023
@github-actions github-actions bot added the stale This issue is like stale bread. label Dec 12, 2023
@github-actions github-actions bot closed this Dec 15, 2023
@ericpaulsen ericpaulsen reopened this Dec 16, 2023
@github-actions github-actions bot removed the stale This issue is like stale bread. label Dec 17, 2023
@ericpaulsen
Copy link
Member

@mafredri - i'm reopening this, as another customer has inquired about this missing functionality.

@github-actions github-actions bot added the stale This issue is like stale bread. label Jan 2, 2024
@matifali matifali removed the stale This issue is like stale bread. label Jan 2, 2024
@mafredri mafredri force-pushed the mafredri/feat-cli-vscodessh-support-wait branch from 39aec7a to 9080cd9 Compare January 3, 2024 09:48
@mafredri mafredri marked this pull request as ready for review January 3, 2024 09:55
@mafredri mafredri requested review from kylecarbs and johnstcn January 3, 2024 09:55
Copy link
Member

@johnstcn johnstcn left a comment

Choose a reason for hiding this comment

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

I'm OK with this approach as a stop-gap measure, but I would like to see us eventually support this properly in the VSCode extension. We should also try to bump that 15s timeout automatically, but that's a separate PR.

@github-actions github-actions bot added the stale This issue is like stale bread. label Jan 11, 2024
@github-actions github-actions bot closed this Jan 15, 2024
@mafredri mafredri reopened this Jan 26, 2024
@github-actions github-actions bot removed the stale This issue is like stale bread. label Jan 27, 2024
@mafredri
Copy link
Member Author

Once coder/vscode-coder#194 is merged/released, we can merge this as well. Before that there's a high chance enabling this will lead to a worse user experience.

@mafredri mafredri merged commit bddea7b into main Feb 2, 2024
@mafredri mafredri deleted the mafredri/feat-cli-vscodessh-support-wait branch February 2, 2024 11:18
@github-actions github-actions bot locked and limited conversation to collaborators Feb 2, 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.

4 participants