Skip to content

silx view: Added test of hdf5 file locking behavior#4599

Merged
t20100 merged 2 commits into
mainfrom
add-silx-view-file-locking-test
May 26, 2026
Merged

silx view: Added test of hdf5 file locking behavior#4599
t20100 merged 2 commits into
mainfrom
add-silx-view-file-locking-test

Conversation

@t20100

@t20100 t20100 commented May 18, 2026

Copy link
Copy Markdown
Member

PR summary

This PR adds a non-regression test of silx view's hdf5 file locking behavior.

Follow-up of #4595
Closes #4594

AI Disclosure

  • No AI used

@t20100 t20100 added this to the Next release milestone May 18, 2026
@t20100 t20100 requested a review from loichuder May 18, 2026 13:31
Comment thread src/silx/app/view/test/test_view.py Outdated
def isViewerReady():
for w in app.topLevelWidgets():
if isinstance(w, qt.QMainWindow) and w.isVisible():
print("ready", flush=True)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

flush=True needed to flush stdout, otherwise it is buffered



def testSilxViewHdf5FileLockingEnabled(data_h5, silxViewSubprocess):
"""Test that silx view --hdf5-file-locking locks hdf5 files when opening them"""

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Also test with locking to make sure that the tests are effectively covering the locking issue ;)

@t20100 t20100 force-pushed the add-silx-view-file-locking-test branch from e56d01e to efd8cd0 Compare May 18, 2026 13:39

@loichuder loichuder 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.

Well done 👍

Thanks!

@t20100 t20100 merged commit 1f25a70 into main May 26, 2026
4 checks passed
@t20100 t20100 deleted the add-silx-view-file-locking-test branch May 26, 2026 09:59
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.

silx view: No longer disable hdf5 file locking

2 participants