Repository navigation
Conversation
There was a problem hiding this comment.
Thank you for contributing a pull request! 🙏
Welcome to the ITK community! 🤗👋☀️
We are glad you are here and appreciate your contribution. Please keep in mind our community participation guidelines. 📜
More support and guidance on the contribution process can be found in our contributing guide. 📖
This is an automatic message. Allow for time for the ITK community to be able to read the pull request and comment
on it.
44fe0cf to
ec88f55
Compare
[Low impact] The PR appears safe to merge; no actionable issues were found.
|
Update VariationalRegistration tests to ITK conventions and retain failures while continuing independent checks. Guard pixel comparisons behind successful image updates. Fixes #6355.
Implementation
Rename both tests and their CMake registrations with the itk prefix. Replace manual exception checks and Print calls with ITK testing macros. Immediately invoked lambdas confine macro early returns to individual checks; an integer testStatus accumulates their results. Reset the registration pipeline between update scenarios.
Remove unused helpers, use explicit constants and casts, and apply the repository's formatting. Registration settings and the ten-pixel comparison tolerance are unchanged.
Local validation
macOS arm64, Apple clang 17.0.0, Release build with Module_VariationalRegistration enabled:
cmake --build build --target VariationalRegistrationTestDriver --parallel 4 ctest --test-dir build --output-on-failure -R '^itkVariationalRegistration(Filter|MultiResolutionFilter)Test$'CTest output after restoring the temporary fault injections:
Fault-harness output (each check asserts exit code 1 and the expected later output; update failures must skip pixel access):
The complete ITK suite and external-data image-baseline tests were not run. Cross-platform CI remains pending.
AI assistance
OpenAI Codex assisted with code inspection, implementation, style cleanup, and local validation, including temporary failure injection. Contributor review remains in progress; this PR stays in Draft until that review and CI are complete.
PR Checklist
Failure-continuation reproduction
Temporarily force the pixel comparison to fail in each 128-by-128 synthetic
image test and add a marker immediately before its later independent object
check. At baseline 84ce566, both return exit 1 without reaching the marker.
With this patch, both return exit 1 and reach the marker. For this experiment,
baseline entry points were renamed only to reuse the test driver. All mutations
were restored before the final build and normal test run.