Repository navigation
fix(id): bound directory mail command runtime (#1788) - #4031
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 51 minutes. View limit details
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. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1e47e202c3
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…est-compile fix)
…wins (#1788) Codex P2 (PR #4031): child.kill() terminated only a wrapper script, leaving descendants such as the shipped cloudflare-mail.sh curl running after a reported timeout. The command now spawns as a process-group leader (unix) and the timeout path SIGKILLs the whole group via kill_child_tree, falling back to child.kill(). New regression test: a wrapper that backgrounds sleep 30 and waits - after the timeout error the descendant is gone. Codex P2 (PR #4031): the poll loop replaced an observed successful exit with a timeout when the finish was first seen after the deadline. The elapsed check on an observed status is deleted: try_wait success now always breaks with the real status, and the deadline applies only while the child is still running. Also merges current main, which brings the #4044 idset test-compile fix - directory_mail tests now run: 11 passed, 0 failed on the laptop.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: db70193b23
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
) Codex P2 (PR #4031 re-review): signal 0 succeeds for a zombie, so in a container whose PID 1 does not reap orphans the descendant check would fail after 2s even though the group kill worked. The probe now treats a Linux /proc state of Z as terminated.
|
Codex Review: Didn't find any major issues. Keep it up! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Summary
The production deadline matches the existing SMTP timeout budget. A private deadline seam lets tests exercise timeout and finite-success paths quickly.
Evidence
CommandSink::sendused an unboundedchild.wait(); id(directory_mail): CommandSink has no timeout — a mail program that never exits hangs the directory request forever #1788's/bin/sh -c 'sleep 30'probe remained blocked after 3 seconds.cargo check --manifest-path pkgs/id/Cargo.toml --libpasses;rustfmt --edition 2024 --check pkgs/id/src/directory_mail.rsandgit diff --checkpass. Adds timeout/kill/reap and slow-finite tests; keeps the existing non-zero exit test.cargo test --manifest-path pkgs/id/Cargo.toml --lib directory_mail::testscannot reach test execution because compilation fails at unmodifiedpkgs/id/src/idset.rs:755(ChainExtmissingnote). The same E0063 reproduces on clean main2f8ab7850. Workspace-widecargo fmt --checkalso reports unrelated existing formatting drift; the changed file passes focused rustfmt.Merge Danger
Door: two-way
Blast Radius: directory-mail
Only
CommandSinkchanges; SMTP and outbox behavior are untouched.Fixes #1788
Need help on this PR? Tag
@codesmith-botwith what you need.