Skip to content

Pytest: add forked marker to PC tests #31335

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

Closed
wants to merge 7 commits into from
Closed

Pytest: add forked marker to PC tests #31335

wants to merge 7 commits into from

Conversation

jnewb1
Copy link
Contributor

@jnewb1 jnewb1 commented Feb 6, 2024

we had random segfaults in CI that kills the whole pytest run without giving the output, forking will allow the run to continue and output the tests where the segfault occurs

@jnewb1 jnewb1 marked this pull request as draft February 7, 2024 01:31
@@ -144,6 +144,7 @@ pyprof2calltree = "*"
pytest = "*"
pytest-cov = "*"
pytest-cpp = "*"
pytest-forked = "*"
Copy link
Contributor

Choose a reason for hiding this comment

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

i'm building a new agnos. want to get this in?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we probably won't use it for any of the tici tests, but it will be nice to have it in case

Copy link
Contributor

Choose a reason for hiding this comment

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

and pytest-randomly for test randomization?

Copy link
Contributor

Choose a reason for hiding this comment

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

@@ -45,6 +46,7 @@ def get_fuzzy_car_interface_args(draw: DrawType) -> dict:
return params


@pytest.mark.forked
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
@pytest.mark.forked

this isn't needed after commaai/opendbc#1007

Copy link
Contributor

Choose a reason for hiding this comment

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

We should also be conservative using it as it would have masked this

also found this, relevant? pytest-dev/pytest-forked#87

Copy link
Contributor Author

@jnewb1 jnewb1 Feb 7, 2024

Choose a reason for hiding this comment

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

We should also be conservative using it

I feel like we want it everywhere so we don't get segfaults in the unittests without any idea of which test they came from

Copy link
Contributor

github-actions bot commented Mar 9, 2024

This PR has had no activity for 30 days. It will be automatically closed in 7 days if there is no activity.

@github-actions github-actions bot added the stale label Mar 9, 2024
Copy link
Contributor

This PR has been automatically closed due to inactivity. Feel free to re-open once activity resumes.

@github-actions github-actions bot closed this Mar 16, 2024
@sshane sshane deleted the add-forked branch March 22, 2024 02:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants