Skip to content

Parallel fixes#6156

Merged
sbesson merged 4 commits intoome:developfrom
joshmoore:parallel-fixes
Nov 21, 2019
Merged

Parallel fixes#6156
sbesson merged 4 commits intoome:developfrom
joshmoore:parallel-fixes

Conversation

@joshmoore
Copy link
Copy Markdown
Member

These changes are intended to reduce the number of spurious errors and warnings that occur when running the python tests with pytest-xdist (e.g. -n16). The most common issue seen so far is that a test assumes the state in the database is not changed by any other thread.

@joshmoore
Copy link
Copy Markdown
Member Author

Note: this PR is ready to go as is, but one shouldn't assume that parallel integration tests are currently safe.

Copy link
Copy Markdown
Member

@sbesson sbesson left a comment

Choose a reason for hiding this comment

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

This PR has been included for many days and tests have been reliably green with it included - see https://py3-ci.openmicroscopy.org/jenkins/job/OMERO-test-integration/61/testReport/ and https://merge-ci.openmicroscopy.org/jenkins/job/OMERO-test-integration/242/testReport/ as examples.

Reviewed changes inline and most of them still maintain preserve the coverage of the tests while reducing assumptions on single-threaded test running against the server.

As this starts to conflict with other PRs, merging immediately as a first step towards Python integration test parallelization.

@sbesson sbesson merged commit 96c89b2 into ome:develop Nov 21, 2019
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