Skip to content

fix(batch): align batch file format with upstream protocol stream tee - #2532

Merged
oferchen merged 1 commit into
masterfrom
fix/batch-format-upstream
Feb 27, 2026
Merged

oferchen merged 1 commit into
masterfrom
fix/batch-format-upstream

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • Add BatchStats struct matching upstream main.c:374-383 trailing statistics with varlong30 encoding
  • Remove shebang from generated batch scripts matching upstream write_batch_shell_file()
  • Set script permissions to exact 0o700 matching upstream S_IRUSR | S_IWUSR | S_IXUSR
  • Document 3-section batch file format: header, protocol stream body, trailing statistics

Test plan

  • 136 batch crate tests pass
  • cargo clippy clean
  • cargo fmt clean
  • Interop test: write batch file, replay with upstream rsync

@github-actions github-actions Bot added the bug Something isn't working label Feb 27, 2026
Add BatchStats struct matching upstream main.c:374-383 trailing
statistics. Remove shebang from generated scripts and set 0o700
permissions matching upstream write_batch_shell_file(). Update docs
to document the 3-section format: header, protocol stream body, and
trailing statistics.
@oferchen
oferchen force-pushed the fix/batch-format-upstream branch from f53dd20 to 58b9527 Compare February 27, 2026 19:01
@oferchen
oferchen merged commit 97d8b3f into master Feb 27, 2026
9 checks passed
@oferchen
oferchen deleted the fix/batch-format-upstream branch February 27, 2026 19:02
oferchen added a commit that referenced this pull request May 1, 2026
…#2532)

Add BatchStats struct matching upstream main.c:374-383 trailing
statistics. Remove shebang from generated scripts and set 0o700
permissions matching upstream write_batch_shell_file(). Update docs
to document the 3-section format: header, protocol stream body, and
trailing statistics.
oferchen added a commit that referenced this pull request May 5, 2026
…#2532)

Add BatchStats struct matching upstream main.c:374-383 trailing
statistics. Remove shebang from generated scripts and set 0o700
permissions matching upstream write_batch_shell_file(). Update docs
to document the 3-section format: header, protocol stream body, and
trailing statistics.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant