Skip to content

Test that a terminating Rust builtin module stays a termination - #8708

Merged
littledivy merged 1 commit into
mainfrom
littledivy/2026-11-20-modules-terminate-test
Nov 20, 2026
Merged

littledivy merged 1 commit into
mainfrom
littledivy/2026-11-20-modules-terminate-test

Conversation

@littledivy

Copy link
Copy Markdown
Member

#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.

@littledivy
littledivy requested review from a team as code owners November 20, 2026 04:40

@clanky-the-clanker clanky-the-clanker Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.
@littledivy
littledivy force-pushed the littledivy/2026-11-20-modules-terminate-test branch from b6318cc to 1131c79 Compare November 20, 2026 04:45

@clanky-the-clanker clanky-the-clanker Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ 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

@littledivy
littledivy merged commit 26d929b into main Nov 20, 2026
23 of 24 checks passed
@littledivy
littledivy deleted the littledivy/2026-11-20-modules-terminate-test branch November 20, 2026 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants