Perf(test): shrink synthetic volumes in image loading and dataset tests - #9034
Open
aymuos15 wants to merge 2 commits into
Open
Perf(test): shrink synthetic volumes in image loading and dataset tests#9034aymuos15 wants to merge 2 commits into
aymuos15 wants to merge 2 commits into
Conversation
…ts (Project-MONAI#9034) Signed-off-by: Soumya Snigdha Kundu <soumya_snigdha.kundu@kcl.ac.uk>
aymuos15
force-pushed
the
perf/test-shrink-volumes
branch
from
July 31, 2026 16:49
22d45da to
6cb74f7
Compare
Contributor
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (6)
📝 WalkthroughWalkthroughThe test suite now generates smaller 32³ image volumes for dataset and image-loading tests. Expected shapes and metadata fixtures were updated accordingly. The mapping-file test uses 16³ volumes. Coverage for transforms, labels, metadata, readers, channel dimensions, caching, and DataLoader batching remains unchanged. Estimated code review effort: 2 (Simple) | ~8 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Shrinks the synthetic volumes these six test files generate, so each test still exercises the same code paths in a fraction of the runtime. Pure test-fixture change: no production code touched, no test logic altered:
tests/transforms/test_load_image.py,tests/transforms/test_load_imaged.py: 128³ volumes → 32³; multi-image cases 3×128³ → 3×32³; the 384×128³ channel-dim case scales to 96×32³.tests/data/test_arraydataset.py,test_cachedataset.py,test_dataset.py: 128³ → 32³; the Spacing case 64×64×33 → 16×16×9.tests/data/test_mapping_file.py: 128³ → 16³.The 128³ sizes were an unexamined default; nothing depends on the magnitude, only that shapes round-trip through
.nii.gzI/O. Expected shapes were updated in lockstep, so the assertions still verify the same behaviour.Types of changes
./runtests.sh -f -u --net --coverage../runtests.sh --quick --unittests --disttests.make htmlcommand in thedocs/folder.