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

Fix #2415: add live build logs in status dashboard #2455

Merged
merged 1 commit into from Nov 12, 2021

Conversation

Andrewnt219
Copy link
Contributor

@Andrewnt219 Andrewnt219 commented Nov 9, 2021

Issue This PR Addresses

Closes #2415

Type of Change

  • Bugfix: Change which fixes an issue
  • New Feature: Change which adds functionality
  • Documentation Update: Change which improves documentation
  • UI: Change which improves UI

Description

On /build.html, periodically fetches build status and shows build logs (if any) using xterm.

image

image

Test plan

To test locally, change to <base href="/" /> inside build.html and run start script. The site is on localhost:1111/pages/build.html.

Xterm UI should show up. In the dev console, /status is requested periodically.

Checklist

  • Quality: This PR builds and passes our npm test and works locally
  • Tests: This PR includes thorough tests or an explanation of why it does not
  • Screenshots: This PR includes screenshots or GIFs of the changes made or an explanation of why it does not (if applicable)
  • Documentation: This PR includes updated/added documentation to user exposed functionality or configuration variables are added/changed or an explanation of why it does not(if applicable)

@gitpod-io
Copy link

gitpod-io bot commented Nov 9, 2021

@Andrewnt219 Andrewnt219 marked this pull request as draft November 9, 2021 06:59
@Andrewnt219 Andrewnt219 changed the title feat: add live build logs in status dashboard Fix #2415: add live build logs in status dashboard Nov 9, 2021
Copy link
Contributor

@humphd humphd left a comment

Choose a reason for hiding this comment

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

We need to fix #2454 for the dev setup.

Also, let's get a link from the main dashboard index.html to build.html.

src/api/status/public/build.html Outdated Show resolved Hide resolved
src/api/status/public/buildLog/api.js Outdated Show resolved Hide resolved
src/api/status/public/buildLog/api.js Outdated Show resolved Hide resolved
src/api/status/public/buildLog/terminal.js Outdated Show resolved Hide resolved
src/api/status/public/pages/build.html Outdated Show resolved Hide resolved
src/api/status/public/js/build-log/api.js Outdated Show resolved Hide resolved
Copy link
Contributor

@humphd humphd left a comment

Choose a reason for hiding this comment

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

Looking close to me

src/api/status/public/js/build-log/api.js Outdated Show resolved Hide resolved
humphd
humphd previously approved these changes Nov 11, 2021
src/api/status/public/pages/build.html Show resolved Hide resolved
@humphd
Copy link
Contributor

humphd commented Nov 11, 2021

@Andrewnt219 can you squash/rebase this for me? I think it's basically ready. I just want one more review on it.

cc @manekenpix, in case you want to read it before it goes in.

port build log from React version

move scripts down

remove protocol

refactor autodeploymentUrl

remove class from body
Copy link
Contributor

@humphd humphd left a comment

Choose a reason for hiding this comment

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

Can't wait for this to finally happen! I've been wanting to do it for over a year, and never had time to finish it. Thanks for taking it on.

@Andrewnt219
Copy link
Contributor Author

This's just the first step. Let's deploy it to see if it's everything's working and I'll continue to iterate over this feature until it's finished 👍.

@humphd humphd merged commit 37af66c into Seneca-CDOT:master Nov 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add live build logs in status dashboard
3 participants