Skip to content

test(common): kill the test server when it prints no address - #177

Open
PiquelChips wants to merge 1 commit into
fix/load-the-node-key-only-whenfrom
fix/kill-the-test-server-when-it
Open

PiquelChips wants to merge 1 commit into
fix/load-the-node-key-only-whenfrom
fix/kill-the-test-server-when-it

Conversation

@PiquelChips

Copy link
Copy Markdown
Member

Server::serve, the test helper that starts origin serve, unwrapped the server's first line before anything owned the child process. If the server failed to start, or printed something other than its address, the test panicked and left the server running, never reaped.

Now the helper kills and waits for the child before it panics, and the panic message says what the server printed.

Part of #166.

Note

Written by Claude Opus 5.5 in Claude Code (via T3 Code)

@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: fd0e2ef5-0051-432c-9808-eb44d815fe01

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@PiquelChips
PiquelChips added this pull request to stack #185 November 22, 2026 20:21
@PiquelChips
PiquelChips removed this pull request from stack #185 November 22, 2026 20:22
`Server::serve` unwrapped the first line of `origin serve` before anything
owned the child, so a server that failed to start, or printed something
else, was left running, unreaped, when the test panicked. Now the child is
killed and waited for before the panic, which says what the server printed.
@PiquelChips
PiquelChips force-pushed the fix/kill-the-test-server-when-it branch from 03fa2cf to ca7bcb0 Compare November 22, 2026 20:22
@PiquelChips
PiquelChips force-pushed the fix/load-the-node-key-only-when branch from 34c8d51 to 6c79dc9 Compare November 22, 2026 20:22
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.

1 participant