Skip to content

Align version banner web site with upstream - #2042

Merged
oferchen merged 1 commit into
masterfrom
implement-missing-rsync-features-for-parity
Nov 7, 2025
Merged

oferchen merged 1 commit into
masterfrom
implement-missing-rsync-features-for-parity

Conversation

@oferchen

@oferchen oferchen commented Nov 7, 2025 •

Copy link
Copy Markdown
Owner

Summary

  • add a dedicated web_site entry to the workspace metadata and propagate it through the build script
  • expose the new constant via the workspace facade so version metadata can advertise the upstream rsync web site
  • keep the repository source URL for build-info reporting while aligning --version output with upstream banners

Testing

  • cargo test -p oc-rsync-core
  • cargo run --bin oc-rsync -- --version | head -n 6

[Codex Task](

@oferchen
oferchen merged commit 92da3e5 into master Nov 7, 2025
@oferchen
oferchen deleted the implement-missing-rsync-features-for-parity branch November 7, 2025 20:24

@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 34 to +38
/// 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;

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 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 👍 / 👎.

oferchen added a commit that referenced this pull request May 5, 2026
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
oferchen added a commit that referenced this pull request May 18, 2026
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
oferchen added a commit that referenced this pull request Aug 24, 2026
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
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