Skip to content

Comments

Run tests of test_fork_ctx as subprocesses#2181

Merged
kounelisagis merged 1 commit intomainfrom
agis/tests-fork-ctx-subprocess
Apr 2, 2025
Merged

Run tests of test_fork_ctx as subprocesses#2181
kounelisagis merged 1 commit intomainfrom
agis/tests-fork-ctx-subprocess

Conversation

@kounelisagis
Copy link
Member

@kounelisagis kounelisagis commented Apr 2, 2025

This PR modifies the tests in test_fork_ctx.py to run as subprocesses, fixing #2175. This has been verified by running the "Build and test wheels" workflow against the current branch: run. The failure rate was previously 100% for macos.


[sc-64149][sc-57975]

Copy link
Contributor

@sgillies sgillies left a comment

Choose a reason for hiding this comment

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

@kounelisagis I don't understand why crashes were happening in the builds and not locally or in our CI tests, but this seems like a pragmatic solution.

@kounelisagis kounelisagis merged commit 40edcbe into main Apr 2, 2025
94 of 95 checks passed
@kounelisagis kounelisagis deleted the agis/tests-fork-ctx-subprocess branch April 2, 2025 23:14
_ = tiledb.Ctx()
mp = multiprocessing.get_context("fork")
p = mp.Process()
with pytest.warns(UserWarning, match="TileDB is a multithreading library"):
Copy link
Member

Choose a reason for hiding this comment

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

We want to assert that this warning is raised...

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.

3 participants