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

test instability: test_terminate might detect SIGKILL instead of SIGTERM #119

Open
jgehrcke opened this issue Jan 13, 2022 · 2 comments
Open
Labels
flaky test Unstable test

Comments

@jgehrcke
Copy link
Owner

jgehrcke commented Jan 13, 2022

seen in CI on posix (3.10, macos-10.15, default):

=================================== FAILURES ===================================
__________________________ TestProcess.test_terminate __________________________

self = <test_gipc.TestProcess object at 0x1086d4820>

    def test_terminate(self):
        # 1s is too long, and the process is killed on python 3.8.6
        p = start_process(gevent.sleep, args=(0.5,))
        # Test __repr__ and __str__
        p.__repr__()
        p.terminate()
        p.join()
        p.__repr__()
>       assert p.exitcode == -signal.SIGTERM
E       assert -9 == -15
E         +-9
E         --15

-9 means that the child process terminated as of SIGKILL, not SIGTERM.

Resolved itself by repeating test: instability.

@jgehrcke jgehrcke added the flaky test Unstable test label Jan 13, 2022
@jgehrcke
Copy link
Owner Author

jgehrcke commented Feb 9, 2023

@jgehrcke
Copy link
Owner Author

jgehrcke commented Feb 27, 2023

happened here again: https://github.com/jgehrcke/gipc/actions/runs/4282701770/jobs/7457307302#step:6:116
posix (3.9, macos-10.15, default)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flaky test Unstable test
Projects
None yet
Development

No branches or pull requests

1 participant