-
Notifications
You must be signed in to change notification settings - Fork 896
feat(cli): show queue position during workspace builds #12606
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
Conversation
Signed-off-by: Danny Kopping <danny@coder.com>
Signed-off-by: Danny Kopping <danny@coder.com>
Signed-off-by: Danny Kopping <danny@coder.com>
Signed-off-by: Danny Kopping <danny@coder.com>
e.t.Helper() | ||
|
||
timeout, cancel := context.WithTimeout(context.Background(), testutil.WaitMedium) | ||
defer cancel() | ||
|
||
return e.ExpectMatchContext(timeout, str) | ||
return impl(timeout, str) | ||
} | ||
|
||
// TODO(mafredri): Rename this to ExpectMatch when refactoring. |
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.
@mafredri not really sure what this TODO is about since both this and the ExpectMatch
functions have lots of usage. Could you elaborate please?
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.
Essentially the non-context variant should be marked deprecated. All usage switched to context. Then delete the non-context one and rename this to not have context in the name.
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.
OK, is it because we need to be able to control the deadline?
I think I'll do that in a separate PR.
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.
LGTM 👍 Some suggestions below.
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.
Nice! Feel free to ignore these nit picks. Happy weekend!
Signed-off-by: Danny Kopping <danny@coder.com>
We are now showing queue position in the workspace list page, and also on the CI. A nice to have would be to add an expandable table that lists the jobs/workspaces currently in queue for each of them. |
Should be doable, but is out of scope for this issue. |
Fixes #9434
Note for the reviewer:
stop
andstart
Each time the position in the queue changes, an update will be printed