[WIP] test: Update the tolerance to match other 3d comparisons#6084
[WIP] test: Update the tolerance to match other 3d comparisons#6084wayfarer3130 wants to merge 1 commit into
Conversation
❌ Deploy Preview for ohif-dev failed. Why did it fail? →
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe Changes3D Primary screenshot assertion
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 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 |
Viewers
|
||||||||||||||||||||||||||||
| Project |
Viewers
|
| Branch Review |
test/annotation-fixes
|
| Run status |
|
| Run duration | 01m 41s |
| Commit |
|
| Committer | Bill Wallace |
| View all properties for this run ↗︎ | |
| Test results | |
|---|---|
|
|
0
|
|
|
0
|
|
|
0
|
|
|
0
|
|
|
28
|
| View all changes introduced in this branch ↗︎ | |
| locator: viewportPageObject.grid, | ||
| // Volume-3D ray-cast output is GPU/driver-noisy run-to-run; match the | ||
| // tolerance already used by the sibling 3DOnly test. | ||
| maxDiffPixelRatio: 0.04, |
There was a problem hiding this comment.
@wayfarer3130 I have incorporated this into PR #6067
Context
Changes & Results
Testing
Checklist
PR
semantic-release format and guidelines.
Code
etc.)
Public Documentation Updates
additions or removals.
Tested Environment
Summary by CodeRabbit
Greptile Summary
This PR updates the screenshot comparison in
tests/3DPrimary.spec.tsto use the object-basedcheckForScreenshotAPI and raises the pixel-diff tolerance from the default 2% to 4%, matching the approach already used by the3DOnlysibling test to account for GPU/driver noise in 3D ray-cast output.page, locator, screenshotPath) to theCheckForScreenshotPropsobject form, which is consistent with3DOnly.spec.ts.maxDiffPixelRatio: 0.04to reduce flakiness caused by per-run variation in volumetric rendering without widening tolerance beyond what the existing 3D tests already accept.Confidence Score: 5/5
This is a one-line test-file change that adjusts a screenshot tolerance; it has no effect on production code.
The change correctly uses the object-based
checkForScreenshotoverload supported by the existing utility, and the chosenmaxDiffPixelRatioof 0.04 is exactly the value already in use for the nearly identical3DOnlytest. No logic, types, or imports are affected beyond this single call site.No files require special attention.
Important Files Changed
checkForScreenshotcall from the positional API to the object-based API and setsmaxDiffPixelRatio: 0.04to match the sibling3DOnlytest's toleranceReviews (1): Last reviewed commit: "Update the tolerance to match other 3d c..." | Re-trigger Greptile