Skip to content

Fix the failure of the test_cleanse.py - #6462

Open
pwalczysko wants to merge 2 commits into
ome:developfrom
pwalczysko:nfs-test-fix
Open

Fix the failure of the test_cleanse.py#6462
pwalczysko wants to merge 2 commits into
ome:developfrom
pwalczysko:nfs-test-fix

Conversation

@pwalczysko

@pwalczysko pwalczysko commented Jul 14, 2026

Copy link
Copy Markdown
Member

What this PR does

The failing test is https://merge-ci.openmicroscopy.org/jenkins/job/OMERO-test-integration/11/testReport/junit/OmeroPy.test.integration.clitest.test_cleanse/TestCleanseFullAdmin/testCleanseNonsenseName/
This PR is removing a line in the test_cleanse.py.

The assertion in that line which checks the existence of a path to a logfile which should have been deleted is not possible on NFS, because:

As the Blitz process is still holding the logfile open, on NFS this file cannot be deleted by NFS although the cleanse script deletes it - it leaves a hidden file behind which the NFS renames to ...nfs.

Testing this PR

Check that the Jenkins build testintegration job is green.

Related reading

See #6461

cc @joshmoore @jburel @sbesson

@pwalczysko
pwalczysko requested review from jburel and sbesson July 14, 2026 18:24
@joshmoore

Copy link
Copy Markdown
Member

Thanks, @pwalczysko. No immediate objections from my side.

assert not os.path.isfile(orig_file_path_and_name)
assert not os.path.exists(logfile_path)
# The log file itself must be removed.
# On NFS, if another process still

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.

Do you have any idea on what keeps a reference to the file? In a standard import workflow, I would expect all file handles to be released on completion. Is this another example of latency due to the migration of the infrastructure (i.e. would a delay also allow the test to pass.

@pwalczysko pwalczysko Jul 27, 2026

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.

Do you have any idea on what keeps a reference to the file?

Blitz, I know that. More precisely dont know, did not go deeper.

(i.e. would a delay also allow the test to pass.

Delay did not work. I did not try polling though, just a plain wait. It was longer than 30 sec afai can remember and the process still did not release the file.

@pwalczysko

Copy link
Copy Markdown
Member Author

As discussed with @sbesson , the jury is out on this one. It stably passes with the fix in this PR, but not optimal and possibly underresearched. Will leave open for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants