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

Test orthanc-raw behaves correctly when storage limit reached #278

Merged
merged 20 commits into from
Feb 7, 2024

Conversation

jstutters
Copy link
Contributor

Add utility code to generate fake MRI DICOMs and upload these to orthanc-raw for testing that older instances are cycled out. Addresses a requirement of #205.

Set maximum storage to 40MB which is enough to contain the starting test
instances.
Image headers are derived from a real 3D-T1 from a Philips scanner.  The site
and patient specific information has been anonymised and the pixel data replaced
with random noise.
@jstutters jstutters added this to the VOXL milestone Feb 5, 2024
@jstutters jstutters self-assigned this Feb 5, 2024
@jstutters jstutters marked this pull request as ready for review February 6, 2024 10:39
Copy link
Member

@milanmlft milanmlft left a comment

Choose a reason for hiding this comment

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

Nice! 🚀 Maybe just add a brief summary of this test and the logic to test/README.md? 🙂

Copy link
Contributor

@stefpiatek stefpiatek left a comment

Choose a reason for hiding this comment

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

Looks good, will leave final approval to haroon

We need pydicom to run the orthanc-raw capacity test.  For now installing it
while other pip installs are happening is ok but a package of test utils and
dependencies might be better.
Copy link

@HChughtai HChughtai left a comment

Choose a reason for hiding this comment

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

Broadly looks good! Still familiarising myself with the overall codebase, but my main comments are around general test structure and packages so leaving them as out of scope here. Otherwise some suggested changes around readibility and clarity.

@jstutters jstutters requested a review from HChughtai February 7, 2024 13:09
Copy link

@HChughtai HChughtai left a comment

Choose a reason for hiding this comment

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

Thanks for the changes @jstutters, happy to approve this now.

I agree around your comment that we need to flesh out our testing strategy, and then can reevaulate how some of this is best done.

@jstutters jstutters merged commit 88e81b4 into main Feb 7, 2024
8 checks passed
@jstutters jstutters deleted the jstutters/205-test-orthanc-raw-size-limit branch February 7, 2024 13:38
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.

4 participants