Skip to content

Expose internal client helpers for testing - #1663

Merged
oferchen merged 1 commit into
masterfrom
fix-missing-crate-for-std-errors
Oct 30, 2025
Merged

oferchen merged 1 commit into
masterfrom
fix-missing-crate-for-std-errors

Conversation

@oferchen

@oferchen oferchen commented Oct 30, 2025 •

Copy link
Copy Markdown
Owner

Summary

  • expose the client helper that constructs LocalCopyOptions so tests can validate configuration mapping without invoking the engine
  • make ClientEvent::resolve_destination_path visible for tests and document its intent while keeping it hidden from public docs

Testing

  • cargo test -p rsync-core --lib --tests --no-fail-fast

@oferchen
oferchen merged commit cf16594 into master Oct 30, 2025
@oferchen
oferchen deleted the fix-missing-crate-for-std-errors branch October 30, 2025 11:21

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ 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".

Comment on lines +146 to 153
/// Builds [`LocalCopyOptions`] reflecting the provided client configuration and optional filter
/// program.
///
/// This helper mirrors the internal wiring used by [`run_client`](super::run_client) so that unit
/// tests can validate the translation layer without re-invoking the entire transfer engine.
#[doc(hidden)]
pub fn build_local_copy_options(
config: &ClientConfig,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Helper still inaccessible outside crate

build_local_copy_options is marked pub so tests in other crates can call it, but the enclosing client::run module is not re-exported from client, so external crates still cannot reach it (client::run is private). Any integration test that depends on this helper will fail to compile. Consider re-exporting the function or making the run module public so the visibility change actually exposes the helper.

Useful? React with 👍 / 👎.

oferchen added a commit that referenced this pull request May 5, 2026
…#3695)

Long-form follow-up to the SQPOLL page-fault hazard audit (#1661):
walks the mmap and io_uring submission sites, explains the kthread
fault behaviour against kernel sources, and records the layered
mitigations (MAP_POPULATE rejected per #1663, MADV_WILLNEED kept per
#1662, registered-buffer prefault per #1665, BufferedMap-when-io_uring
policy per #1666). Lists residual gaps (THP NUMA migration, MMU
notifier teardown, parallel-checksum truncate race, O_DIRECT
alignment) and proposes targeted tests beyond #1664.
oferchen added a commit that referenced this pull request May 18, 2026
…#3695)

Long-form follow-up to the SQPOLL page-fault hazard audit (#1661):
walks the mmap and io_uring submission sites, explains the kthread
fault behaviour against kernel sources, and records the layered
mitigations (MAP_POPULATE rejected per #1663, MADV_WILLNEED kept per
#1662, registered-buffer prefault per #1665, BufferedMap-when-io_uring
policy per #1666). Lists residual gaps (THP NUMA migration, MMU
notifier teardown, parallel-checksum truncate race, O_DIRECT
alignment) and proposes targeted tests beyond #1664.
oferchen added a commit that referenced this pull request Aug 24, 2026
…#3695)

Long-form follow-up to the SQPOLL page-fault hazard audit (#1661):
walks the mmap and io_uring submission sites, explains the kthread
fault behaviour against kernel sources, and records the layered
mitigations (MAP_POPULATE rejected per #1663, MADV_WILLNEED kept per
#1662, registered-buffer prefault per #1665, BufferedMap-when-io_uring
policy per #1666). Lists residual gaps (THP NUMA migration, MMU
notifier teardown, parallel-checksum truncate race, O_DIRECT
alignment) and proposes targeted tests beyond #1664.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant