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

🐛 Bubbletea initialization error handling #164

Merged
merged 2 commits into from Mar 26, 2024

Conversation

cardil
Copy link
Contributor

@cardil cardil commented Mar 25, 2024

Changes

/kind bug

Fixes #165
Walkaround charmbracelet/bubbletea#964

Release Note

UI initialization errors are not silenced

Copy link

knative-prow bot commented Mar 25, 2024

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@knative-prow knative-prow bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. kind/bug Categorizes issue or PR as related to a bug. labels Mar 25, 2024
@knative-prow knative-prow bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Mar 25, 2024
cardil added a commit to wavesoftware/go-magetasks that referenced this pull request Mar 25, 2024
Copy link

codecov bot commented Mar 25, 2024

Codecov Report

Attention: Patch coverage is 54.76190% with 19 lines in your changes are missing coverage. Please review.

Project coverage is 57.56%. Comparing base (cf1573f) to head (ce1a548).

Files Patch % Lines
pkg/output/tui/progress.go 0.00% 10 Missing ⚠️
pkg/output/tui/spinner.go 60.00% 2 Missing and 2 partials ⚠️
pkg/output/tui/bubbletea964.go 81.25% 1 Missing and 2 partials ⚠️
pkg/output/logging/context.go 0.00% 0 Missing and 1 partial ⚠️
pkg/output/term/io.go 80.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #164      +/-   ##
==========================================
- Coverage   57.56%   57.56%   -0.01%     
==========================================
  Files         112      113       +1     
  Lines        8387     8415      +28     
==========================================
+ Hits         4828     4844      +16     
- Misses       3298     3307       +9     
- Partials      261      264       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@cardil
Copy link
Contributor Author

cardil commented Mar 25, 2024

/test unit-tests

@knative-prow knative-prow bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Mar 25, 2024
cardil added a commit to wavesoftware/go-magetasks that referenced this pull request Mar 25, 2024
@cardil cardil force-pushed the bugfix/noterm-init-errors branch 2 times, most recently from 0bea26a to 3ccca71 Compare March 26, 2024 10:03
cardil added a commit to wavesoftware/go-magetasks that referenced this pull request Mar 26, 2024
cardil added a commit to wavesoftware/go-magetasks that referenced this pull request Mar 26, 2024
@cardil cardil force-pushed the bugfix/noterm-init-errors branch 3 times, most recently from 6f43f24 to f9af927 Compare March 26, 2024 10:34
@cardil cardil marked this pull request as ready for review March 26, 2024 10:48
@knative-prow knative-prow bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 26, 2024
@knative-prow knative-prow bot requested review from Leo6Leo and ReToCode March 26, 2024 10:48
@cardil
Copy link
Contributor Author

cardil commented Mar 26, 2024

/cc @dsimansk

@knative-prow knative-prow bot requested a review from dsimansk March 26, 2024 10:56
cardil added a commit to wavesoftware/go-magetasks that referenced this pull request Mar 26, 2024
@cardil
Copy link
Contributor Author

cardil commented Mar 26, 2024

With those changes, the CI build for magetasks passes, see: https://github.com/wavesoftware/go-magetasks/actions/runs/8434810274/job/23098848334?pr=44#step:5:211

Copy link
Contributor

@dsimansk dsimansk left a comment

Choose a reason for hiding this comment

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

/approve
/lgtm

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Mar 26, 2024
Copy link

knative-prow bot commented Mar 26, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cardil, dsimansk

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow knative-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 26, 2024
@knative-prow knative-prow bot merged commit ca64d2d into knative:main Mar 26, 2024
21 checks passed
@cardil cardil deleted the bugfix/noterm-init-errors branch March 26, 2024 13:36
cardil added a commit to wavesoftware/go-magetasks that referenced this pull request Mar 26, 2024
cardil added a commit to wavesoftware/go-magetasks that referenced this pull request Mar 26, 2024
cardil added a commit to wavesoftware/go-magetasks that referenced this pull request Mar 26, 2024
cardil added a commit to wavesoftware/go-magetasks that referenced this pull request Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tui pkg might SIGSEGV in some CI scenarios
2 participants