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
{{ message }}
Repository navigation
containerd/console is broken for mac consider creack/pty #1449
This should only impact unit tests run on macOS. IMHO since there is no automated CI run on macOS, we can simply exclude macOS from PTY-related tests. Refactoring test infra to creack/pty costs extra effort and most importantly it's managed by individual not CNCF.
Yes, as far as I know only the unit tests are broken, but the way I read this containerd console was not really being supported like it is pretty much a dead project.
Something needs to be done at least to minimize the impact of the broken tests. If one class wrapped the console in a way that could be mocked, we could run cp_test.go on mac.
I read this containerd console was not really being supported like it is pretty much a dead project.
Originally choosing containerd/console since it's a CNCF project and reached 1.0. The bugs related to ORAS (e.g. containerd/console#79 and containerd/console#83) receives no support because they are all provider specific bugs. I guess OS experts from Apple and Microsoft should fix those issues but there isn't any.
Something needs to be done at least to minimize the impact of the broken tests.
Again, to me there is no macOS CI for unit test so it's easier to just exclude Darwin out of unit test. We might do need to switch to creack/pty someday but IMHO there isn't enough motivation.
The problem is there are tests up and down (from console_test to cp_test) that are not run on mac because of this.
No need to change containerd/console, just need to isolate the implementation so it can be mocked and only low level tests like console_test will not run on mac.
As an original reporter of containerd/console#79, I strongly recommend creack/pty (that's what I ended up using in my program). It Just Works. containerd/console is a total SNAFU currently on Darwin + FreeBSD and has a severe Windows issue that might or might not affect you: containerd/console#83
Activity
FeynmanZhou commentedon Jul 23, 2024
@TerryHowe How could a macOS user reproduces this issue? I am a macOS user but seems have not encountered this issue before.
qweeah commentedon Jul 23, 2024
This should only impact unit tests run on macOS. IMHO since there is no automated CI run on macOS, we can simply exclude macOS from PTY-related tests. Refactoring test infra to
creack/ptycosts extra effort and most importantly it's managed by individual not CNCF.TerryHowe commentedon Jul 23, 2024
Yes, as far as I know only the unit tests are broken, but the way I read this containerd console was not really being supported like it is pretty much a dead project.
Something needs to be done at least to minimize the impact of the broken tests. If one class wrapped the console in a way that could be mocked, we could run
cp_test.goon mac.qweeah commentedon Jul 24, 2024
Originally choosing
containerd/consolesince it's a CNCF project and reached 1.0. The bugs related to ORAS (e.g. containerd/console#79 and containerd/console#83) receives no support because they are all provider specific bugs. I guess OS experts from Apple and Microsoft should fix those issues but there isn't any.Again, to me there is no macOS CI for unit test so it's easier to just exclude Darwin out of unit test. We might do need to switch to
creack/ptysomeday but IMHO there isn't enough motivation.TerryHowe commentedon Nov 6, 2024
The problem is there are tests up and down (from console_test to cp_test) that are not run on mac because of this.
No need to change containerd/console, just need to isolate the implementation so it can be mocked and only low level tests like console_test will not run on mac.
slonopotamus commentedon Nov 15, 2024
As an original reporter of containerd/console#79, I strongly recommend
creack/pty(that's what I ended up using in my program). It Just Works.containerd/consoleis a total SNAFU currently on Darwin + FreeBSD and has a severe Windows issue that might or might not affect you: containerd/console#83TerryHowe commentedon Nov 16, 2024
If I can complete #1461 to isolate the separation of concerns, trying out
creak/ptywould probably be easier.shizhMSFT commentedon Sep 11, 2025
Just some data points.
github.com/creack/ptyis used bychore: replace containerd/console with golang.org/x/term
chore: replace containerd/console with golang.org/x/term
chore: replace containerd/console with golang.org/x/term