Repository navigation
test(id-directory): cover the SmtpSink continuation-line cap (#10365) - #10789
Conversation
Codex Review Summary: ❌ FailedThis 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. |
|
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 24 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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
state: merge_ready (task 17498, lane code-d) Codex gate check: the Codex code review on this PR failed to run — "You have reached your Codex usage limits for code reviews" (review status: Failed, no findings posted; zero inline review comments). There are no Codex findings to disposition. Merging on local verification instead: |
What
Test-module only: covers the previously untestable
MAX_REPLY_CONTINUATION_LINES(100) cap inSmtpSink::expect(pkgs/id/crates/id-directory/src/directory_mail.rs), the PR #4267 residual tracked as #10365.ehlo_reply_with_continuation_lines(count)— builds a prompt EHLO reply with a chosen number of250-continuation lines (the existing fake-relay replies are static and cannot reach the cap).a_reply_with_too_many_continuation_lines_is_refused_at_the_cap— 101 continuation lines sent promptly: the send fails with "more than 100 continuation lines", well inside the deadline (not a deadline failure). Oracle: thecontinuations <= MAX_REPLY_CONTINUATION_LINESensure inexpect.a_reply_at_the_continuation_line_cap_succeeds— control at exactly 100 continuation lines: the send completes end to end (DATA seen by the relay).Verification
cargo test -p id-directory directory_mail— 24 passed, 0 failed (both new tests pass).usize::MAX, the over-cap test fails; restored, it passes. Diff after restore is test-only (+56 lines, one file).cargo fmt -p id-directory -- --check— clean.Closes #10365. Queue task 17498.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.