python-neo icon indicating copy to clipboard operation
python-neo copied to clipboard

Plexon2 tests failing again with greater than 25 attempts to open files

Open zm711 opened this issue 7 months ago • 15 comments

Describe the bug

FAILED neo/test/iotest/test_plexon2io.py::TestPlexon2RawIO::test_read_all - OSError: Opening /home/runner/ephy_testing_data/plexon/NC16FPSPKEVT_1m.pl2 failed after 25 attempts.
FAILED neo/test/iotest/test_plexon2io.py::TestPlexon2IO::test_assert_read_neo_object_is_compliant - OSError: Opening /home/runner/ephy_testing_data/plexon/NC16FPSPKEVT_1m.pl2 failed after 25 attempts.
FAILED neo/test/iotest/test_plexon2io.py::TestPlexon2IO::test_create_group_across_segment - OSError: Opening /home/runner/ephy_testing_data/plexon/NC16FPSPKEVT_1m.pl2 failed after 25 attempts.
FAILED neo/test/iotest/test_plexon2io.py::TestPlexon2IO::test_read_with_lazy_is_compliant - OSError: Opening /home/runner/ephy_testing_data/plexon/NC16FPSPKEVT_1m.pl2 failed after 25 attempts.

copied since the action log will be deleted eventually. https://github.com/NeuralEnsemble/python-neo/actions/runs/15005917152/job/42207865879 log link for now.

Expected behaviour For our CI to pass :P

Environment:

  • OS: Linux + Wine
  • Python version 3.9 and 3.12
  • Neo version: main
  • NumPy version: 1.26 and 2.0

Additional context

This is a know flakiness of running plexon2 through wine on linux. We don't know why but the file fails to open. Normally it works within 25 tries, but suddenly 25 tries is not enough. We can wait a little bit of time and then try increasing the attempts to see if 35 is better, but we don't want the test suite to run forever since the longest part of our suite is installing wine anyway.

@h-mayorquin any thoughts?

zm711 avatar May 14 '25 12:05 zm711