Repository navigation
Document parity artifacts and automation - #2132
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".
| pattern = re.compile( | ||
| r'^\{\s*(?:"([^"]*)"|0)\s*,\s*(?:\'([^\']*)\'|0)\s*,\s*([A-Z0-9_]+)\s*,\s*([^,]+)\s*,\s*([^,]+)\s*,' | ||
| ) | ||
| match = pattern.match(entry) | ||
| if not match: | ||
| raise ValueError(f"Unable to parse entry: {entry}") |
There was a problem hiding this comment.
Allow popt flag bitmasks in parser
The generator currently assumes the arg_info field in each poptOption is a single all-caps identifier ([A-Z0-9_]+). In options.c this field frequently contains bitmasks such as POPT_ARG_NONE|POPT_ARGFLAG_DOC_HIDDEN or POPT_ARG_STRING | POPT_ARGFLAG_DOC_HIDDEN. When the regex at parse_entry hits one of those legitimate entries, it fails to match and the script raises ValueError("Unable to parse entry: …"), so the tool cannot be run against real rsync sources and the YAML you added cannot be regenerated. Please make the parser accept expressions with | (and optional spaces) instead of only a bare identifier.
Useful? React with 👍 / 👎.
…3924) Plans an NTFS sparse hole-punching backend so the Windows path matches Linux fallocate(PUNCH_HOLE) and macOS F_PUNCHHOLE instead of writing physical zeros. Defines PlatformSparse trait shape (set_sparse_attr + punch_hole), volume/alignment risks, and ties into the sparse-writer Decorator tracked in #2132.
…tion (#2132) (#4000) * refactor(engine): add SparseWriter decorator for zero-region interception (#2132) Replace the concrete `SparseWriter` (wrapping `fs::File` with region-based API) with a generic `SparseWriter<W: Write + Seek>` decorator that transparently intercepts write calls to detect and skip zero regions. Key changes: - SparseWriter<W> implements Write + Seek, scanning for zero runs in each write call and accumulating them as pending seeks - Configurable ZeroScanStrategy: SIMD-accelerated (default) or byte-level - SparseWriteStats tracks bytes written, bytes seeked, zero runs detected - Single-seek-per-zero-run invariant maintained across write boundaries - Whole-file copy path wired through SparseWriter decorator - Delta transfer path retains write_sparse_chunk for interleaved I/O * fix: update SparseWriter tests to match refactored decorator API Remove boolean arg from SparseWriter::new(), replace write_region() with write_all(), remove integer arg from finish(), and rename file()/file_mut() to inner()/inner_mut().
…3924) Plans an NTFS sparse hole-punching backend so the Windows path matches Linux fallocate(PUNCH_HOLE) and macOS F_PUNCHHOLE instead of writing physical zeros. Defines PlatformSparse trait shape (set_sparse_attr + punch_hole), volume/alignment risks, and ties into the sparse-writer Decorator tracked in #2132.
…tion (#2132) (#4000) * refactor(engine): add SparseWriter decorator for zero-region interception (#2132) Replace the concrete `SparseWriter` (wrapping `fs::File` with region-based API) with a generic `SparseWriter<W: Write + Seek>` decorator that transparently intercepts write calls to detect and skip zero regions. Key changes: - SparseWriter<W> implements Write + Seek, scanning for zero runs in each write call and accumulating them as pending seeks - Configurable ZeroScanStrategy: SIMD-accelerated (default) or byte-level - SparseWriteStats tracks bytes written, bytes seeked, zero runs detected - Single-seek-per-zero-run invariant maintained across write boundaries - Whole-file copy path wired through SparseWriter decorator - Delta transfer path retains write_sparse_chunk for interleaved I/O * fix: update SparseWriter tests to match refactored decorator API Remove boolean arg from SparseWriter::new(), replace write_region() with write_all(), remove integer arg from finish(), and rename file()/file_mut() to inner()/inner_mut().
…tion (#2132) (#4000) * refactor(engine): add SparseWriter decorator for zero-region interception (#2132) Replace the concrete `SparseWriter` (wrapping `fs::File` with region-based API) with a generic `SparseWriter<W: Write + Seek>` decorator that transparently intercepts write calls to detect and skip zero regions. Key changes: - SparseWriter<W> implements Write + Seek, scanning for zero runs in each write call and accumulating them as pending seeks - Configurable ZeroScanStrategy: SIMD-accelerated (default) or byte-level - SparseWriteStats tracks bytes written, bytes seeked, zero runs detected - Single-seek-per-zero-run invariant maintained across write boundaries - Whole-file copy path wired through SparseWriter decorator - Delta transfer path retains write_sparse_chunk for interleaved I/O * fix: update SparseWriter tests to match refactored decorator API Remove boolean arg from SparseWriter::new(), replace write_region() with write_all(), remove integer arg from finish(), and rename file()/file_mut() to inner()/inner_mut().
…3924) Plans an NTFS sparse hole-punching backend so the Windows path matches Linux fallocate(PUNCH_HOLE) and macOS F_PUNCHHOLE instead of writing physical zeros. Defines PlatformSparse trait shape (set_sparse_attr + punch_hole), volume/alignment risks, and ties into the sparse-writer Decorator tracked in #2132.
…tion (#2132) (#4000) * refactor(engine): add SparseWriter decorator for zero-region interception (#2132) Replace the concrete `SparseWriter` (wrapping `fs::File` with region-based API) with a generic `SparseWriter<W: Write + Seek>` decorator that transparently intercepts write calls to detect and skip zero regions. Key changes: - SparseWriter<W> implements Write + Seek, scanning for zero runs in each write call and accumulating them as pending seeks - Configurable ZeroScanStrategy: SIMD-accelerated (default) or byte-level - SparseWriteStats tracks bytes written, bytes seeked, zero runs detected - Single-seek-per-zero-run invariant maintained across write boundaries - Whole-file copy path wired through SparseWriter decorator - Delta transfer path retains write_sparse_chunk for interleaved I/O * fix: update SparseWriter tests to match refactored decorator API Remove boolean arg from SparseWriter::new(), replace write_region() with write_all(), remove integer arg from finish(), and rename file()/file_mut() to inner()/inner_mut().
Summary
Testing
[Codex Task](