Skip to content

feat: reset worker after file#1254

Draft
JuroOravec wants to merge 1 commit intopytest-dev:masterfrom
JuroOravec:jo-feat-reset-worker-after-file
Draft

feat: reset worker after file#1254
JuroOravec wants to merge 1 commit intopytest-dev:masterfrom
JuroOravec:jo-feat-reset-worker-after-file

Conversation

@JuroOravec
Copy link
Copy Markdown

This is a proof of concept for #363

Copy link
Copy Markdown
Member

@RonnyPfannschmidt RonnyPfannschmidt left a comment

Choose a reason for hiding this comment

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

the key parts of making this work sane is - interaction with worker restart limits, limiting collection on subsequent test processes and correct shutdown of the nodes (no os._exit)

if session.shouldfail or session.shouldstop:
break
if self.shutdown_on_finish:
os._exit(1)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

os.exit is always the wrong thing to do there

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