Skip to content

feat(site): warn on provisioner health during builds #15589

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 18 commits into from
Nov 28, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add loader back in to build logs drawer
  • Loading branch information
SasSwart committed Nov 28, 2024
commit aec9cba559ebf7b3f3384b1f5372b581cc5b19ab
15 changes: 8 additions & 7 deletions site/src/pages/CreateTemplatePage/BuildLogsDrawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,18 +84,19 @@ export const BuildLogsDrawer: FC<BuildLogsDrawerProps> = ({
drawerProps.onClose();
}}
/>
) : !logs ? (
<ProvisionerStatusAlert
matchingProvisioners={matchingProvisioners}
availableProvisioners={availableProvisioners}
tags={templateVersion?.job.tags ?? {}}
/>
) : logs ? (
<section ref={logsContainer} css={styles.logs}>
<WorkspaceBuildLogs logs={logs} css={{ border: 0 }} />
</section>
) : (
<Loader />
<>
<ProvisionerStatusAlert
matchingProvisioners={matchingProvisioners}
availableProvisioners={availableProvisioners}
tags={templateVersion?.job.tags ?? {}}
/>
<Loader />
</>
)}
</div>
</Drawer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -586,14 +586,15 @@ export const TemplateVersionEditor: FC<TemplateVersionEditorProps> = ({
css={[styles.logs, styles.tabContent]}
ref={logsContentRef}
>
<div>
{templateVersion.job.error ? (
<div>
<ProvisionerAlert
title="Error during the build"
detail={templateVersion.job.error}
severity="error"
tags={templateVersion.job.tags}
/>
</div>
) : (
!gotBuildLogs && (
<ProvisionerStatusAlert
Expand All @@ -603,9 +604,8 @@ export const TemplateVersionEditor: FC<TemplateVersionEditorProps> = ({
/>
)
)}
</div>

{buildLogs && buildLogs.length > 0 ? (
{gotBuildLogs ? (
<WorkspaceBuildLogs
css={styles.buildLogs}
hideTimestamps
Expand Down
Loading