feat(triangulation): restore optional parallel insertion and removal - #121
Conversation
- add an opt-in CGAL/TBB production configuration - preserve lock-grid ownership across copies, moves, swaps, and snapshots - align Codecov line accounting with LCOV coverage
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (4)
WalkthroughThe PR adds opt-in CGAL TBB support for parallel triangulation, introduces lock-grid-owning triangulation state, updates foliated triangulation operations and snapshots, adds dedicated tests, and aligns CTest, README, and Codecov configuration. ChangesParallel triangulation support
Estimated code review effort: 4 (Complex) | ~45 minutes Sequence Diagram(s)sequenceDiagram
participant ASAN
participant CMake
participant DelaunayState
participant FoliatedTriangulation
participant ParallelTest
ASAN->>CMake: enable ENABLE_PARALLEL_TRIANGULATION
CMake->>DelaunayState: configure CGAL::TBB_support
ParallelTest->>DelaunayState: construct and transfer lock-owned state
DelaunayState->>FoliatedTriangulation: provide wrapped triangulation
FoliatedTriangulation->>DelaunayState: create detached snapshot
ParallelTest->>FoliatedTriangulation: validate ownership and snapshot state
Possibly related issues
Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 Checkov (3.3.8)CMakePresets.jsonTraceback (most recent call last): Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@CMakeLists.txt`:
- Around line 138-144: Make the CGAL TBB dependency conditional on
ENABLE_PARALLEL_TRIANGULATION: move the CGAL::TBB_support availability guard and
any TBB discovery or parallel-test wiring into that option’s branch, while
allowing configuration to proceed without TBB when parallel triangulation is
disabled. Preserve the existing fatal error when parallel triangulation is
explicitly enabled but CGAL::TBB_support is unavailable.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro
Run ID: ee19c531-5c80-4b47-9a22-68486c7094c4
📒 Files selected for processing (8)
.codecov.ymlCMakeLists.txtREADME.mdinclude/Foliated_triangulation.hppsrc/CMakeLists.txttests/CMakeLists.txttests/Parallel_triangulation_test.cpptests/Public_api_consumer.cpp
💤 Files with no reviewable changes (1)
- src/CMakeLists.txt
- discover and register CGAL/TBB support only for parallel configurations - retain parallel coverage under AddressSanitizer while TSAN covers the sequential path
Summary by CodeRabbit
New Features
Documentation
Tests
Chores