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

1582 error handling for package deployment #1828

Merged
merged 27 commits into from
Jun 22, 2023

Conversation

mike-winberry
Copy link
Contributor

@mike-winberry mike-winberry commented Jun 16, 2023

Description

#1582
#1606

Type of change

  • New feature (non-breaking change which adds functionality)

Checklist before merging

  • Test, docs, adr added or updated as needed

… creating a multi-stream that sends to logfile, stderr, and stream and allows for resetting the default after the stream closes (probably could be in the config). Updated the deploy stream withh a multiwriter and resets to default, fix deployment stream to handle larger buffer using Reader and readline. Update the deployment page to use all colors from stream, update the xterm frame styling.
…ploy stream using ansi-to-html as it is a much smaller dependency and still meets the needs for the deploystream in addition to allowing much simpler custom styling
… the ansi color palette from figma to the ansi-display. Update font size, padding, scrolling behavior.
…tle and set to the warning or error variant depending on the output.
@mike-winberry mike-winberry linked an issue Jun 16, 2023 that may be closed by this pull request
4 tasks
@netlify
Copy link

netlify bot commented Jun 16, 2023

Deploy Preview for zarf-docs canceled.

Name Link
🔨 Latest commit ac9176d
🔍 Latest deploy log https://app.netlify.com/sites/zarf-docs/deploys/6494c32d865e8400088e4d1a

…page. Create yaml-drawer component. Create zarf-prism-theme. Moved the ansi-display to lib. Updated get deployed packages to log an error instead of bailing
…while deploying, fixed the expanded search to ensure the button is connected prior to clicking in the deploy tests.
@mike-winberry mike-winberry marked this pull request as ready for review June 21, 2023 18:03
…errors and a slice of types.DeployedPackage to allow for better error handling when some packages are unmarshaled and others are not. Update packages list.go and cmd package.go to reflect the changes. Update lang english.go with CmdPackageListUnmarshalErr for use when one or more unmarshaling errors occur when getting deployed zarf packages.
…order to properly send all the output in the stream. Fix ui deploy page to properly close the stream when navigating away from the route.
src/internal/cluster/zarf.go Show resolved Hide resolved
src/config/lang/english.go Outdated Show resolved Hide resolved
src/internal/api/packages/list.go Show resolved Hide resolved
src/pkg/message/message.go Outdated Show resolved Hide resolved
src/ui/package.json Outdated Show resolved Hide resolved
@mike-winberry mike-winberry requested a review from YrrepNoj June 22, 2023 20:39
@Racer159 Racer159 enabled auto-merge (squash) June 22, 2023 21:11
@Racer159 Racer159 disabled auto-merge June 22, 2023 21:21
Copy link
Contributor

@Racer159 Racer159 left a comment

Choose a reason for hiding this comment

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

Approving for now since this is a step forward though after playing with it a bit some of the design pieces are missing (particularly red error handling).

image
Top Left - Design File
Top Right - As Implemented in WebUI
Bottom Left - The Web UI log output
Bottom Right - The CLI log output for that failing package

@Racer159 Racer159 merged commit a6cf75f into main Jun 22, 2023
@Racer159 Racer159 deleted the 1582-error-handling-for-package-deployment branch June 22, 2023 22:30
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 Package commands to deployed package context menu Error handling - for package deployment
3 participants