Skip to content
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

[prebuilds] prebuild detail view in create workspace #10696

Merged
merged 3 commits into from
Jun 29, 2022

Conversation

laushinka
Copy link
Contributor

@laushinka laushinka commented Jun 16, 2022

Description

This PR gives a perceived consistency between the create workspace page and the prebuild detail view.

Screenshot 2022-06-22 at 00 36 13

Related Issue(s)

Fixes #9132

How to test

  1. Make a commit to a project with a prebuild.
  2. Go to the project page's Branches tab. Once the prebuild is shown as "Running", start a new workspace.
  3. See the logs running and the prebuild status showing below.

Release Notes

Prebuild status is shown under the logs when starting a workspace.

Documentation

  • /werft with-preview
  • /werft with-clean-slate-deployment

@laushinka
Copy link
Contributor Author

laushinka commented Jun 21, 2022

/werft run

👍 started the job as gitpod-build-laushinka-prebuild-view-9132.12
(with .werft/ from main)

@werft-gitpod-dev-com
Copy link

started the job as gitpod-build-laushinka-prebuild-view-9132.11 because the annotations in the pull request description changed
(with .werft/ from main)

@laushinka laushinka force-pushed the laushinka/prebuild-view-9132 branch 5 times, most recently from eb1689a to 26b43b6 Compare June 21, 2022 22:00
@laushinka laushinka force-pushed the laushinka/prebuild-view-9132 branch from 26b43b6 to 68eeca1 Compare June 21, 2022 22:38
@laushinka laushinka marked this pull request as ready for review June 21, 2022 22:40
@laushinka laushinka requested a review from a team June 21, 2022 22:40
@github-actions github-actions bot added the team: webapp Issue belongs to the WebApp team label Jun 21, 2022
@laushinka laushinka marked this pull request as draft June 22, 2022 08:50
@laushinka laushinka force-pushed the laushinka/prebuild-view-9132 branch 2 times, most recently from 9921c71 to 2fac644 Compare June 22, 2022 21:33
@laushinka laushinka force-pushed the laushinka/prebuild-view-9132 branch from dd3199e to d2c08f3 Compare June 24, 2022 16:49
@geropl
Copy link
Member

geropl commented Jun 27, 2022

This is basically done, and I'd love to approve. But as we found out above, we're missing proper resourceguards for prebuilds. So I'm going to hold this PR, and try to get it in before we land this.

/hold

@geropl
Copy link
Member

geropl commented Jun 27, 2022

Now waiting for #10940 to get merged...

@gtsiolis
Copy link
Contributor

gtsiolis commented Jun 27, 2022

/werft run

👍 started the job as gitpod-build-laushinka-prebuild-view-9132.48
(with .werft/ from main)

@gtsiolis
Copy link
Contributor

gtsiolis commented Jun 27, 2022

Looking at this now! 👀

@geropl geropl force-pushed the laushinka/prebuild-view-9132 branch from d2c08f3 to 8f2b6c8 Compare June 29, 2022 09:23
Copy link
Contributor

@gtsiolis gtsiolis left a comment

Choose a reason for hiding this comment

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

I never clicked submit but here's what I had in draft since yesterday. 🙈

Since we do not have yet the capability to expand the logs into a full page component, going with the current logs width sounds ok. Any thoughts on #9132 (comment)?

Two issues that pop up:

  1. The scrollbar position mentioned in [prebuilds] prebuild detail view in create workspace #10696 (comment). Moving forward with the current scrollbar styles sounds ok but the positioning the scrollbar in the middle of the element feels like something is broken.
  2. The width of the element wrapping the bottom parts of the prebuilds logs differ per case. Could we adjust the width of the bottom elements to match the prebuilds logs element above? See screenshots below.
Prebuild (Running) Prebuild (Preparing)
in-progress-running in-progress-preparing

@geropl
Copy link
Member

geropl commented Jun 29, 2022

/werft run

👍 started the job as gitpod-build-laushinka-prebuild-view-9132.50
(with .werft/ from main)

@werft-gitpod-dev-com
Copy link

started the job as gitpod-build-laushinka-prebuild-view-9132.51 because the annotations in the pull request description changed
(with .werft/ from main)

@geropl geropl force-pushed the laushinka/prebuild-view-9132 branch from 72e292b to 5f80c29 Compare June 29, 2022 16:09
@geropl
Copy link
Member

geropl commented Jun 29, 2022

@gtsiolis I think I fixed it (by re-using the same horizontal spacing we had in WorkspaceLogs before). Once the build is through, do you want to re-test? 🧡

Thx @jankeromnes for the help! 🙏

Prebuild Details Prebuild on Start-/CreateWorkspace
image image

@geropl geropl marked this pull request as ready for review June 29, 2022 16:13
Copy link
Member

@geropl geropl left a comment

Choose a reason for hiding this comment

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

Tested and works! 👍

/hold in cases someone else wants to review

Copy link
Contributor

@gtsiolis gtsiolis left a comment

Choose a reason for hiding this comment

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

Perfection achieved. ✨

Thanks, @geropl, @laushinka, @jldec, and @jankeromnes! 🏀

While I still think using a narrower width as described in #9132 (comment) could be interesting to explore, 🅰️ the changes here already significantly improve the current state of the prebuild-in-progress page and 🅱️ we'd still need to add a function to expand the view to a full page component which would significantly increase the scope of this PR.

Looking forward for #10041 or whatever comes next.

import CodeText from "../components/CodeText";
import FeedbackComponent from "../feedback-form/FeedbackComponent";
import { isGitpodIo } from "../utils";

const WorkspaceLogs = React.lazy(() => import("../components/WorkspaceLogs"));
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if PrebuildLogs should also be lazy-loaded here?

E.g. no need to load all of xTermjs if you're creating a workspace that doesn't show any logs.

Copy link
Member

Choose a reason for hiding this comment

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

Ah, good idea! But my workspace has timed out, so: let's do as a follow-up 😉

@geropl
Copy link
Member

geropl commented Jun 29, 2022

/unhold

@roboquat roboquat merged commit 3133297 into main Jun 29, 2022
@roboquat roboquat deleted the laushinka/prebuild-view-9132 branch June 29, 2022 18:17
@roboquat roboquat added deployed: webapp Meta team change is running in production deployed Change is completely running in production labels Jun 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployed: webapp Meta team change is running in production deployed Change is completely running in production release-note size/L team: webapp Issue belongs to the WebApp team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use the same prebuild view for Workspace start as for Prebuild Details
6 participants