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

fix: Reset TTY on exit #685

Merged
merged 5 commits into from
May 9, 2024
Merged

fix: Reset TTY on exit #685

merged 5 commits into from
May 9, 2024

Conversation

nickevansuk
Copy link
Collaborator

@nickevansuk nickevansuk commented May 3, 2024

Exiting the test suite with Ctrl+C during harvesting previously broke the terminal due to multibar not being allowed to cleanup. This fix ensures that the terminal is properly reset.

This also fixes an issue where the microservice Node.js process was orphaned if the test suite was terminated during authentication, as Puppeteer was not being allowed to shutdown properly.

Previously all three processes were being terminated at the same time, which led to inconsistent behaviour that was difficult to debug and reason about. A clean exit is now achieved as follows:

  • microservice.kill() -> integrationTests.kill() + parentProcess.exit()

@nickevansuk nickevansuk enabled auto-merge (squash) May 3, 2024 19:29
@nickevansuk nickevansuk disabled auto-merge May 3, 2024 20:07
@nickevansuk nickevansuk enabled auto-merge (squash) May 3, 2024 20:15
@nickevansuk nickevansuk disabled auto-merge May 9, 2024 14:26
@nickevansuk nickevansuk merged commit dde7caa into master May 9, 2024
32 checks passed
@nickevansuk nickevansuk deleted the fix/reset-tty-on-exit branch May 9, 2024 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

1 participant