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

🐞 Pass hacked stdin, and don't pass stdout to bubbletea #174

Merged
merged 3 commits into from Mar 28, 2024

Conversation

cardil
Copy link
Contributor

@cardil cardil commented Mar 27, 2024

Changes

  • 🐞 Don't pass stdin/stdout to bubbletea
  • 🐛 Don't release terminal manually

/kind bug

Fixes #173

Copy link

knative-prow bot commented Mar 27, 2024

@cardil: The label(s) kind/<kind> cannot be applied, because the repository doesn't have them.

In response to this:

Changes

/kind

Fixes #

Release Note


Docs


Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Copy link

knative-prow bot commented Mar 27, 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 the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 27, 2024
@knative-prow knative-prow bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Mar 27, 2024
@cardil cardil changed the title :bugDon't pass stdin/stdout to bubbletea 🐞 Don't pass stdin/stdout to bubbletea Mar 27, 2024
@cardil cardil force-pushed the bugfix/dont-pass-stdio-to-bubbletea branch from 6be0936 to 09acb26 Compare March 27, 2024 17:41
@knative-prow-robot knative-prow-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 27, 2024
Copy link

codecov bot commented Mar 27, 2024

Codecov Report

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

Project coverage is 57.62%. Comparing base (6984d81) to head (cf59659).

Files Patch % Lines
pkg/output/tui/progress.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #174      +/-   ##
==========================================
+ Coverage   57.56%   57.62%   +0.06%     
==========================================
  Files         113      114       +1     
  Lines        8413     8418       +5     
==========================================
+ Hits         4843     4851       +8     
+ Misses       3306     3303       -3     
  Partials      264      264              

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

@knative-prow-robot knative-prow-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 27, 2024
@cardil cardil marked this pull request as ready for review March 27, 2024 17:51
@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 27, 2024
@knative-prow knative-prow bot requested review from creydr and ReToCode March 27, 2024 17:51
@cardil
Copy link
Contributor Author

cardil commented Mar 27, 2024

/cc @dsimansk

@knative-prow knative-prow bot requested a review from dsimansk March 27, 2024 17:52
cardil added a commit to cardil/kn-plugin-event that referenced this pull request Mar 27, 2024
@dprotaso dprotaso removed their request for review March 27, 2024 17:56
@cardil cardil marked this pull request as draft March 27, 2024 18:02
@knative-prow knative-prow bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 27, 2024
@cardil
Copy link
Contributor Author

cardil commented Mar 27, 2024

Hmm, it fails now on GH Actions (see failure):

could not open a new TTY: open /dev/tty: no such device or address

@dsimansk
Copy link
Contributor

There's a failed unit test. The same appeared in deps update PR. Strangely it wasn't failing in the previous PRs.

https://prow.knative.dev/view/gs/knative-prow/pr-logs/pull/knative_client-pkg/174/unit-tests_client-pkg_main/1773045237422231552#1:build-log.txt%3A783-784

cardil added a commit to cardil/kn-plugin-event that referenced this pull request Mar 28, 2024
@cardil cardil marked this pull request as ready for review March 28, 2024 13:19
@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 28, 2024
@cardil
Copy link
Contributor Author

cardil commented Mar 28, 2024

I have confirmed cf59659 working on ghet tool. Let's wait on the knative-extensions/kn-plugin-event#339 tests as well.

/hold

@knative-prow knative-prow bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Mar 28, 2024
@cardil cardil changed the title 🐞 Don't pass stdin/stdout to bubbletea 🐞 Pass hacked stdin, and don't pass stdout to bubbletea Mar 28, 2024
@cardil
Copy link
Contributor Author

cardil commented Mar 28, 2024

@knative-prow knative-prow bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Mar 28, 2024
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 28, 2024
Copy link

knative-prow bot commented Mar 28, 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 28, 2024
@knative-prow knative-prow bot merged commit 2dec068 into knative:main Mar 28, 2024
21 checks passed
@cardil cardil deleted the bugfix/dont-pass-stdio-to-bubbletea branch March 28, 2024 14:09
cardil added a commit to cardil/kn-plugin-event that referenced this pull request Mar 28, 2024
knative-prow bot pushed a commit to knative-extensions/kn-plugin-event that referenced this pull request Mar 28, 2024
* upgrade to latest dependencies

Signed-off-by: Knative Automation <automation@knative.team>

* Use magetasks v0.9

* Adjusting code to pass the updated golangci-linter

* Use magetasks v0.9.1

* Use latest knative.dev/hack and remove the LICENSE files

* Use knative/client-pkg#174

---------

Signed-off-by: Knative Automation <automation@knative.team>
Co-authored-by: Knative Automation <automation@knative.team>
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. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fixing #168 once again uncovered the charmbracelet/bubbletea#964 bug
3 participants