Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added to fixtures an extra study-specific iRODS group #293

Merged
merged 2 commits into from
Dec 5, 2023

Conversation

mgcam
Copy link
Member

@mgcam mgcam commented Dec 4, 2023

Tesing whether adding ss_<id_run>_study iRODS group makes any existing tests to fail.

@mgcam mgcam requested a review from kjsanger December 4, 2023 18:15
/testZone/trash/home
/testZone/trash/home/irods
/testZone/trash/home/public ) ) {
ok ((any { $_ =~ /\A$c\Z/ } @colls), "$c is listed");
Copy link
Member

Choose a reason for hiding this comment

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

What was the reason for changing this test? It seems unrelated to the rest of the changes.

Copy link
Member

Choose a reason for hiding this comment

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

(From the commit message: it's to work around the tests failing if there's state left from previous rounds of testing.)

The tests should start with iRODS in a known state. The cleanest way to do that is to start a new server, or to make a more effective clean-up method (or script) to remove everything and ensure that it is run before the suite. (The suite already tries to clean up anything it creates).

I don't agree that changing individual tests is a good thing; it addresses only that test and there are many others which haven't been hardened to work around unexpected state on the server.

Copy link
Member Author

Choose a reason for hiding this comment

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

Most likely other unit tests are not as sensitive as this one because they look at collections and objects which are created at a particular location for the purpose of the particular test.

Copy link
Member

Choose a reason for hiding this comment

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

Anything involving metadata is sensitive to global state (within the same zone).

Copy link
Member

Choose a reason for hiding this comment

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

I'm not going to block this, please feel free to merge.

Copy link
Member Author

Choose a reason for hiding this comment

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

Dropped the commit

@kjsanger kjsanger merged commit 9946efa into wtsi-npg:devel Dec 5, 2023
6 checks passed
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.

2 participants