-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
fix: emissary detects tty and wraps command in pseudo terminal. Fixes #9179 #10039
Conversation
c3b27e2
to
58d28a1
Compare
I'd also want to backport these changes to v3.3 so we can migrate our workflows that use |
8315a07
to
a2bd54d
Compare
I'm gonna mark this ready for review. I think the e2e failures are unrelated to my changes (they didn't start until I rebased onto master). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hi @danajp , could you push an empty commit to retrigger the tests
4590bfc
to
83e108f
Compare
@tczhao All green now. Pushed a couple fixes for e2e tests that were sometimes failing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
cfbbb76
to
3e0c1f0
Compare
@@ -116,6 +116,7 @@ require ( | |||
github.com/cespare/xxhash/v2 v2.1.2 // indirect | |||
github.com/chrismellard/docker-credential-acr-env v0.0.0-20220119192733-fe33c00cee21 // indirect | |||
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect | |||
github.com/creack/pty v1.1.18 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MIT=OK
test/e2e/testdata/output-artifact-with-s3-bucket-creation-enabled.yaml
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test by trying to compile with “GOS=windows” (or whatever it is)
OK yeah, this does not compile for windows
And digging a little further, create/pty does not support windows at all. I'm gonna do some refactoring such that the tty support only applies to linux. @alexec should we raise an error on unsupported platforms or should we just run the process without a tty? I think my preference is for the latter. |
3e0c1f0
to
9c63e61
Compare
Just run without tty and print a warning |
3501b30
to
64a3930
Compare
I think this is ready |
test/e2e/testdata/output-artifact-with-s3-bucket-creation-enabled.yaml
Outdated
Show resolved
Hide resolved
73a08c6
to
ac10e6a
Compare
This PR is nearly ready to merge, you should sync with master and revert the e2e test that was broken. |
ac10e6a
to
ddca9cb
Compare
15a0d9c
to
ad6b2fa
Compare
e81e85b
to
0834903
Compare
Signed-off-by: Dana Pieluszczak <[email protected]>
Signed-off-by: Dana Pieluszczak <[email protected]>
Signed-off-by: Dana Pieluszczak <[email protected]>
Signed-off-by: Dana Pieluszczak <[email protected]>
Signed-off-by: Dana Pieluszczak <[email protected]>
Signed-off-by: Dana Pieluszczak <[email protected]>
Signed-off-by: Dana Pieluszczak <[email protected]>
Signed-off-by: Dana Pieluszczak <[email protected]>
Signed-off-by: Dana Pieluszczak <[email protected]>
9a4c638
to
fd49065
Compare
Signed-off-by: Dana Pieluszczak <[email protected]>
LGTM! |
Fixes #9179
Please do not open a pull request until you have checked ALL of these:
make pre-commit -B
to fix codegen and lint problems.If changes were requested, and you've made them, dismiss the review to get it reviewed again.