Skip to content

Reduce pyvista viz test time - #8246

Merged
larsoner merged 4 commits into
mne-tools:masterfrom
GuillaumeFavelier:viz_testing
Sep 12, 2020
Merged

Reduce pyvista viz test time#8246
larsoner merged 4 commits into
mne-tools:masterfrom
GuillaumeFavelier:viz_testing

Conversation

@GuillaumeFavelier

@GuillaumeFavelier GuillaumeFavelier commented Sep 11, 2020

Copy link
Copy Markdown
Contributor

This PR aims at reducing the time used by PyVista 3d viz tests. This is still a work in progress.

Try:

  • Returning an "unmapped" actor
  • actor.SetVisibility(False)

Closes #8242

@GuillaumeFavelier GuillaumeFavelier self-assigned this Sep 11, 2020
@larsoner

Copy link
Copy Markdown
Member

Looks like that shaved off 5 minutes, on this PR we get:

=========================== slowest 20 test modules ============================
448.15s total  mne/viz/tests/
 73.16s total  mne/viz/_brain/
  1.08s total  mne/viz/backends/

compared to master where it's:

=========================== slowest 20 test modules ============================
605.34s total  mne/viz/tests/
231.41s total  mne/viz/_brain/

@GuillaumeFavelier

GuillaumeFavelier commented Sep 11, 2020

Copy link
Copy Markdown
Contributor Author

Very similar result with actor.SetVisibility(False):

=========================== slowest 20 test modules ============================
464.76s total  mne/viz/tests/
 79.87s total  mne/viz/_brain/
  1.42s total  mne/viz/backends/

@larsoner larsoner left a comment

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.

LGTM, feel free to merge @GuillaumeFavelier of travis reports reduced time and circle is okay

@larsoner larsoner added this to the 0.21 milestone Sep 12, 2020
@larsoner

Copy link
Copy Markdown
Member

It died because of #8241 so I'll go ahead and merge. Perhaps we should allow the viz tests to have more granularity in the reporting, since those are all sub-sub-module tests essentially...

@larsoner
larsoner merged commit ca3e787 into mne-tools:master Sep 12, 2020
@GuillaumeFavelier
GuillaumeFavelier deleted the viz_testing branch September 12, 2020 06:55
marsipu pushed a commit to marsipu/mne-python that referenced this pull request Oct 14, 2020
* Specialize Travis

* TST: Use no-op _add_mesh during testing

* TST: Use SetVisibility(False)

* Revert "Specialize Travis" [circle full]

This reverts commit b1be32d.
@larsoner larsoner mentioned this pull request Jun 10, 2021
86 tasks
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.

MAINT: Tests taking too long

2 participants