Repository navigation
Expose internal client helpers for testing - #1663
Conversation
There was a problem hiding this comment.
💡 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".
| /// 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, |
There was a problem hiding this comment.
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 👍 / 👎.
…#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.
…#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.
…#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.
Summary
Testing