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

need a non-curses textmode for ci #1210

Closed
duanev opened this issue Dec 3, 2021 · 5 comments
Closed

need a non-curses textmode for ci #1210

duanev opened this issue Dec 3, 2021 · 5 comments

Comments

@duanev
Copy link

duanev commented Dec 3, 2021

Concourse ci log output doesn't play well with cursor-positioning (it works, but the output gets pasted over the lines at the start of the logs). I saw linemode=1 and hoped that yast would skip curses ... but it doesn't. Tried TERM=dumb too but nothing is emitted then at all. Is this work in progress?

@shundhammer
Copy link
Contributor

Sorry, clearly no. This would be yet another mode that would need constant maintaining. If this is only for some arcane CI system, then that CI system needs to overcome its limitations.

We do have some tests for NCurses mode, though; I'll look them up so you can check if they are suitable for your purposes as well. But be advised that such tests are very time-consuming to write and to maintain, and that by their very nature they tend to be fragile (i.e. break a lot for very minor reasons).

@shundhammer
Copy link
Contributor

shundhammer commented Dec 7, 2021

For our NCurses UI tests, see
https://github.com/yast/yast-ruby-bindings/tree/master/tests/libyui.

Example test:
https://github.com/yast/yast-ruby-bindings/blob/master/tests/libyui/multi_selection_box_spec.rb

On the downside, this needs quite some infrastructure; that is one reason why we had to move it to that yast-ruby-bindings source code repository. That is less than optimal, of course; it was one compromise that we had to take to get any NCurses UI tests at all.

Build-time requirements:
https://github.com/yast/yast-ruby-bindings/blob/master/package/yast2-ruby-bindings.spec#L48-L53

How to run the test suite:
https://github.com/yast/yast-ruby-bindings/blob/master/package/yast2-ruby-bindings.spec#L94-L100

@duanev
Copy link
Author

duanev commented Dec 8, 2021 via email

@shundhammer
Copy link
Contributor

That would open another neverending source of trouble. Rather than pretending that we also support that scenario, we chose the honest solution: We clearly say that it's not supported.

And for unattended installations, we have AutoYaST.

@duanev
Copy link
Author

duanev commented Dec 9, 2021 via email

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

No branches or pull requests

2 participants