Skip to content

✨ standardize gp CLI timeout cmds output #16091

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

Closed

Conversation

Siddhant-K-code
Copy link
Member

@Siddhant-K-code Siddhant-K-code commented Jan 30, 2023

Description

Standardize the Gitpod CLI output in timeout commands. Also changes the JetBrains Plugin Message popup 😄

Related Issue(s)

Fixes #16084, #15945

How to test

  • Open Preview

  • Open any Workspace

  • Run the following commands:

    gp timeout set 30m
    gp timeout extend
    gp timeout show

& Read through the outputs 👀

Release Notes

NONE

Documentation

Build Options:

  • /werft with-github-actions
    Experimental feature to run the build with GitHub Actions (and not in Werft).
  • leeway-no-cache
    leeway-target=components:all
  • /werft no-test
    Run Leeway with --dont-test

Preview Environment Options:

  • /werft with-local-preview
    If enabled this will build install/preview
  • /werft with-preview
  • /werft with-large-vm
  • /werft with-gce-vm
    If enabled this will create the environment on GCE infra
  • /werft with-integration-tests=all
    Valid options are all, workspace, webapp, ide, jetbrains, vscode, ssh

@Siddhant-K-code Siddhant-K-code requested a review from a team January 30, 2023 10:23
@werft-gitpod-dev-com
Copy link

started the job as gitpod-build-siddhant-k-code-gitpod-cli-flexible-15945.1 because the annotations in the pull request description changed
(with .werft/ from main)

@@ -31,10 +31,10 @@ class ExtendWorkspaceTimeoutAction : AnAction() {
thisLogger().error("gitpod: failed to extend workspace timeout", e)
Copy link
Member

Choose a reason for hiding this comment

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

Thought: Interesting, I didn't realise this logic was copied into our JetBrains codebase, I assumed it was running the gp command under the hood.

@@ -31,10 +31,10 @@ class ExtendWorkspaceTimeoutAction : AnAction() {
thisLogger().error("gitpod: failed to extend workspace timeout", e)
} else {
if (result.resetTimeoutOnWorkspaces.isNotEmpty()) {
message = "Workspace timeout has been extended to three hours. This reset the workspace timeout for other workspaces."
message = "Workspace timeout is extended to 180 minutes. This reset the workspace timeout for other workspaces."
Copy link
Member

@loujaybee loujaybee Jan 30, 2023

Choose a reason for hiding this comment

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

This reset the workspace timeout for other workspaces.

Is this still true? I assume workspace timeouts do not still apply just to one workspace still, do they?

This output also differs from the gp CLI output, we should keep them inline (even if it's a different codebase).

This will need documenting in the timeouts documentation update.

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

I will keep this wording change as it is. And regarding the Reset workspace timeout message. We can followup on this issue: #16107

@loujaybee loujaybee requested review from svenefftinge, loujaybee and a team January 30, 2023 14:04
@loujaybee
Copy link
Member

loujaybee commented Jan 30, 2023

Thanks for the update @Siddhant-K-code ! :) I've requested Sven's approval, as a courtesy as he was involved in the original change, and might have thoughts. I won't personally approve as I don't think that's my place, will leave for other engineers.

However, I've left my thoughts and comments 🙏

@Siddhant-K-code
Copy link
Member Author

Thanks, @loujaybee. I've updated the PR with the suggested changes & a comment (#16091 (comment)).

It's ready for review & :shipit:

@akosyakov
Copy link
Member

akosyakov commented Feb 8, 2023

@loujaybee code wise looks alright, if messaging works for you please approve 🙏

@stale
Copy link

stale bot commented Feb 19, 2023

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the meta: stale This issue/PR is stale and will be closed soon label Feb 19, 2023
@Siddhant-K-code Siddhant-K-code deleted the siddhant-k-code/gitpod-cli-flexible-15945 branch February 28, 2023 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meta: stale This issue/PR is stale and will be closed soon release-note-none size/S team: IDE
Projects
None yet
Development

Successfully merging this pull request may close these issues.

gp timeout commands have inconsistent output UX [gitpod-cli] Flexible Workspace Timeout - <n>days is not working
4 participants