Repository navigation
Align version banner web site with upstream - #2042
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".
| /// Web site advertised by `rsync` in `--version` output. | ||
| pub const WEB_SITE: &str = workspace::SOURCE_URL; | ||
| pub const WEB_SITE: &str = workspace::WEB_SITE; | ||
|
|
||
| /// Repository URL advertised by version banners and documentation. | ||
| pub const SOURCE_URL: &str = WEB_SITE; | ||
| pub const SOURCE_URL: &str = workspace::SOURCE_URL; |
There was a problem hiding this comment.
Update version golden for new web site banner
Changing WEB_SITE to workspace::WEB_SITE makes the --version banner emit https://rsync.samba.org/, but the tests/goldens/upstream/cli_version/stdout.txt fixture still asserts the previous GitHub URL. The golden scenario in tests/golden_cli.rs will now fail because the normalized stdout no longer matches its expected text. The golden file needs to be updated to the new banner so the integration tests pass.
Useful? React with 👍 / 👎.
The previous `debug_assert!` on `buf_id < ring_size` in `BufferRing::recycle_buffer` was a no-op in release builds, so a caller passing a stray ID could advance the ring tail past the configured range and write a bogus `IoUringBuf` into kernel-shared memory, corrupting subsequent buffer selection. Replace the debug assertion with a runtime bounds check that returns a new `BufferRingError::BufferIdOutOfRange` (mapped to `io::ErrorKind::InvalidInput`) before any state mutation, so a bad `buf_id` is refused without touching the ring tail. Update the non-Linux stub to match the new `Result` signature and cover the new behaviour with tests. Refs #2042
The previous `debug_assert!` on `buf_id < ring_size` in `BufferRing::recycle_buffer` was a no-op in release builds, so a caller passing a stray ID could advance the ring tail past the configured range and write a bogus `IoUringBuf` into kernel-shared memory, corrupting subsequent buffer selection. Replace the debug assertion with a runtime bounds check that returns a new `BufferRingError::BufferIdOutOfRange` (mapped to `io::ErrorKind::InvalidInput`) before any state mutation, so a bad `buf_id` is refused without touching the ring tail. Update the non-Linux stub to match the new `Result` signature and cover the new behaviour with tests. Refs #2042
The previous `debug_assert!` on `buf_id < ring_size` in `BufferRing::recycle_buffer` was a no-op in release builds, so a caller passing a stray ID could advance the ring tail past the configured range and write a bogus `IoUringBuf` into kernel-shared memory, corrupting subsequent buffer selection. Replace the debug assertion with a runtime bounds check that returns a new `BufferRingError::BufferIdOutOfRange` (mapped to `io::ErrorKind::InvalidInput`) before any state mutation, so a bad `buf_id` is refused without touching the ring tail. Update the non-Linux stub to match the new `Result` signature and cover the new behaviour with tests. Refs #2042
Summary
--versionoutput with upstream bannersTesting
[Codex Task](