TEST: FillBadData AllBadData_TerminatesWithoutHang never reaches the no-progress guard
Maintainer thường phản hồi trong vòng 6 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 74/100
Hướng nghiên cứu
Read src/Plugins/SimplnxCore/test/FillBadDataTest.cpp and the BFS/CCL guard paths in src/Plugins/SimplnxCore/src/SimplnxCore/Filters/Algorithms/FillBadDataBFS.cpp and FillBadDataCCL.cpp. Set up the test input so bad-data voxels are marked for filling with no good neighbor, then check the warning and resulting voxel values for both algorithm scenarios. Update the specified rows and coverage totals in src/Plugins/SimplnxCore/vv/FillBadDataFilter.md; done when the test reaches the guard and the report accurately describes its coverage.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
The FillBadData test that is meant to cover the "no progress" guard never reaches it. The guard itself may work, but nothing tests it.
What is requested: change SimplnxCore::FillBadData::AllBadData_TerminatesWithoutHang so that it reaches the guard and checks what the guard does. Then correct the V&V report rows that say this test covers it.
Why it is needed: the guard stops the fill loop when bad-data voxels remain but none of them has a good neighbor. Without it, the loop never ends: the hang that this test was written to prevent. Because the test never reaches the guard, a change that breaks the guard would still pass.
How it works now (develop at 2eb6b878f6ff408d1454754d4c0e63edd676d7e0):
- The test builds a 3 x 3 x 1 image in which every voxel is bad data (Feature Id 0), and sets Minimum Allowed Defect Size to 1 (line 593).
- Both algorithms keep a bad-data region whose size is at least the threshold as a void, and mark only smaller regions (-1) for filling:
FillBadDataBFS.cpplines 204–222 andFillBadDataCCL.cppline 441. - The single 9-voxel region is at least 1, so it is kept as a void. No voxel is marked for filling, and the fill loop has nothing to do. The guard (BFS line 350, CCL line 736) is never reached.
- The test only checks that preflight and execute succeed, so it passes.
- The test comment says "The no-progress guard must return and leave those voxels unchanged." The V&V report says the test covers the guard: path row 16 (
vv/FillBadDataFilter.mdline 88) and the inventory row (line 106).
This analysis comes from reading the code; no instrumented run was made.
Where it applies: src/Plugins/SimplnxCore/test/FillBadDataTest.cpp and src/Plugins/SimplnxCore/vv/FillBadDataFilter.md (path row 16, the inventory row, and the coverage totals that count row 16).
A threshold larger than the region (for example 100) would mark all 9 voxels for filling with no good neighbor, which is the case the guard handles. The test could then check the warning "… bad-data voxel(s) could not be filled because they have no adjacent good-data neighbor …" and that the voxels are left unfilled, for both algorithm scenarios. Still open: what Feature Id value the unfilled voxels should end with.
Found while reviewing #1829.
- Ngôn ngữ chính
- C++
- Star
- 18
- Fork
- 15
- Merge trung bình
- 4 ngày 23 giờ
- Pull request đã merge (30 ngày)
- 42
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của BlueQuartzSoftware/simplnx
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
BlueQuartzSoftware/simplnx#1987 ·
Maintainer thường phản hồi trong vòng 6 ngày
-
documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
BlueQuartzSoftware/simplnx#1980 ·
Maintainer thường phản hồi trong vòng 6 ngày
-
Testing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
BlueQuartzSoftware/simplnx#1979 ·
Maintainer thường phản hồi trong vòng 6 ngày
-
documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
BlueQuartzSoftware/simplnx#1978 ·
Maintainer thường phản hồi trong vòng 6 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
BlueQuartzSoftware/simplnx#1945 ·
Maintainer thường phản hồi trong vòng 6 ngày
Tất cả issue của BlueQuartzSoftware/simplnx
Issue tương tự
-
bug triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
26.04 bug dark-mode Easy Hack impress symptom: visual
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
CollaboraOnline/online#16421 · 1 bình luận ·
-
area/cs bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
ydb-platform/ydb#59881 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation enhancement lua server
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100