Skip to content
Snippets Groups Projects

pytest_plugin: Improve cassandra fixtures to speedup and cleanup tests

Modify swh_storage_cassandra_cluster to ensure a single instance of cassandra is spawned when running tests in parallel with pytest-xdist.

Explicitly shutdown clusters create by CqlRunner instances to avoid the display of traceback related to Python threads when cassandra related fixtures are tear downed.

These changes significantly reduce the time to execute a tox session (more than a x2 speedup).

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading