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

Refactor PTTY handling in compose commands #1924

Merged
merged 5 commits into from
Jun 26, 2024

Conversation

jsoriano
Copy link
Member

@jsoriano jsoriano commented Jun 20, 2024

Use the helper pty.Start() instead of handling ourselves the tty and associated ptty. Wait for the finalization of the command just with the copy, to avoid a separate goroutine in an attempt to avoid the hangs we are seeing in CI.

Downgrade to pty 1.1.19, that seems to solve some kind of race condition creack/pty#196

@jsoriano jsoriano self-assigned this Jun 20, 2024
@jsoriano jsoriano requested a review from a team June 20, 2024 11:12
@jsoriano
Copy link
Member Author

test integrations

@elasticmachine
Copy link
Collaborator

Created or updated PR in integrations repository to test this version. Check elastic/integrations#10202

@jsoriano
Copy link
Member Author

/test

2 similar comments
@jsoriano
Copy link
Member Author

/test

@jsoriano
Copy link
Member Author

/test

@jsoriano
Copy link
Member Author

test integrations

@elasticmachine
Copy link
Collaborator

Created or updated PR in integrations repository to test this version. Check elastic/integrations#10202

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

cc @jsoriano

@mrodm
Copy link
Contributor

mrodm commented Jun 25, 2024

test integrations

@elasticmachine
Copy link
Collaborator

Created or updated PR in integrations repository to test this version. Check elastic/integrations#10202

Copy link
Contributor

@mrodm mrodm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice !!

Just one question , will dependabot try to update this version again to the version that has those issues?

@jsoriano jsoriano merged commit d5641d1 into elastic:main Jun 26, 2024
3 checks passed
@jsoriano jsoriano deleted the refactor-ptty-compose branch June 26, 2024 09:04
@jsoriano
Copy link
Member Author

will dependabot try to update this version again to the version that has those issues?

Yes, I think so. We will have to close the PR so the version is ignored, and in future versions review if the issue has been fixed.

@jsoriano
Copy link
Member Author

This should be enough: #1931 (comment)

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

Successfully merging this pull request may close these issues.

3 participants