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

pytest xdist abruptly exits with exit code 0 when running on Github Actions #1106

Closed
genesis-jamin opened this issue Jul 9, 2024 · 2 comments

Comments

@genesis-jamin
Copy link

genesis-jamin commented Jul 9, 2024

We're seeing this strange issue where pytest xdist will abruptly exit with code 0 on Github Actions (self-hosted on k8s), which causes the CI run to be marked as success even though not all the tests ran.

I've tried enabling a variety of debug / logging flags but I nothing ever gets printed before the exit. The lack of any output is making this difficult to debug. Has anyone seen this before?

We've seen it exit at multiple points in the test run:

  • Before test collection
  • During test collection
  • During pytest_sessionstart
  • During test execution

The behavior is always the same -- nothing gets printed, and it returns with exit code 0.

@RonnyPfannschmidt
Copy link
Member

Does you executors handle all k8s signals

I observed this on gitlab runners on k8s before

@genesis-jamin
Copy link
Author

I'm going to close this issue because we've been able to show that pytest is not the problem here. We're almost certain it's because of Github's actions runners controller, and those are tracked in separate issues here:

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

No branches or pull requests

2 participants