Repository navigation
Test that a terminating Rust builtin module stays a termination - #8708
Conversation
There was a problem hiding this comment.
Superseded by the review of
1131c79a.
This review, of b6318cca
✅ Approved — This pull request only adds tests, they are written correctly, and I found no issues.
The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.
✅ All checks passed
📋 Code Quality: ✅ LGTM
The new Rust test module and the two C++ tests follow the pattern of the existing failing-module tests. The terminates helper cancels the termination when it exits, so later tests start with a clean isolate.
📝 Documentation: ✅ LGTM
The comments on the new test helper and module describe what the code does now, as the repository's comment guidelines ask.
Reviewed commit: b6318cca
#8581 and #8597 fixed how the new module registry reports a failing Rust builtin module callback, and the commit messages cover a termination as well as a thrown error. Only the thrown error was tested for Rust modules. In this patch a Rust test module's callback terminates execution, and a test for each registry checks that resolving it throws with the termination still in place. With both fixes reverted, the new registry's test fails because an internal error replaces the termination.
b6318cc to
1131c79
Compare
There was a problem hiding this comment.
✅ Approved — This pull request only adds tests, they follow the existing failing-module tests, and I found no issues at this commit.
The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.
✅ All checks passed
📋 Code Quality: ✅ LGTM
The new terminating Rust test module and the C++ tests for each registry follow the pattern of the existing failing-module tests. No issues found.
📝 Documentation: ✅ LGTM
The comments describe what the code does now, as the repository's comment guidelines ask.
Reviewed commit: 1131c79a
#8581 and #8597 fixed how the new module registry reports a failing Rust builtin module callback, and their commit messages cover a termination as well as a thrown error. Only the thrown error was tested for Rust modules.
In this patch a Rust test module's callback terminates execution, and a test for each registry checks that resolving it throws with the termination still in place. With both fixes reverted, the new registry's test fails because an internal error replaces the termination.