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

V1: Use sigterm instead of interrupt to stop a process #683

Merged
merged 2 commits into from
Nov 20, 2023
Merged

Conversation

jhump
Copy link
Member

@jhump jhump commented Nov 20, 2023

@srikrsna-buf, pointed out an issue that trying to use go run ... as the server under test caused the test runner to hang. It turns out that this is because go run ... ignores SIGINT, which is how the runner was previously trying to stop a test process.

Now it uses SIGTERM. Also, it now cancels the process's context.

This also improves the output when using -v. Previously, it would log information about all server instances up-front. Now it logs as it goes, so it's possible to see its progress (if it makes any). This also tweaks some of the messages, so it also shows when it's using the normal reference client or server vs. the gRPC version.

@jhump jhump requested a review from smaye81 November 20, 2023 21:04
@jhump jhump enabled auto-merge (squash) November 20, 2023 23:00
@jhump jhump merged commit ecde37c into v1 Nov 20, 2023
@jhump jhump deleted the jh/use-sigterm branch November 20, 2023 23:07
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.

2 participants