You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calls to bash, rsync, pip via komodo.shell are hard to debug. STDOUT is swallowed, and it is non-trivial to spit this out again. The assumption here is that all useful info goes over STDERR, which is not always true.
These calls also represents a very turbulent boundary between textual interfaces and Python. You send in strings and get strings back. It in most cases this prevents Komodo from doing any thing intelligent to—or reasoning about why—something failing. Exceptions > error codes.
And it has value that it is easy to run komodo on non-Redhat machines. In the cloud you might use Alpine which ships busybox (subset of normal linux utils). If you run on Debian (and derivatives), the default renamer will crash.
Testing should be easy
At what level should you mock? There's only one available, and that's komodo. And most often komodo is a thin layer on top of a bunch of binaries. Does komodo need testing? Yes.
The text was updated successfully, but these errors were encountered:
Calls to
bash
,rsync
,pip
viakomodo.shell
are hard to debug. STDOUT is swallowed, and it is non-trivial to spit this out again. The assumption here is that all useful info goes over STDERR, which is not always true.These calls also represents a very turbulent boundary between textual interfaces and Python. You send in strings and get strings back. It in most cases this prevents Komodo from doing any thing intelligent to—or reasoning about why—something failing. Exceptions > error codes.
And it has value that it is easy to run komodo on non-Redhat machines. In the cloud you might use Alpine which ships busybox (subset of normal linux utils). If you run on Debian (and derivatives), the default
renamer
will crash.Testing should be easy
At what level should you mock? There's only one available, and that's komodo. And most often komodo is a thin layer on top of a bunch of binaries. Does komodo need testing? Yes.
The text was updated successfully, but these errors were encountered: