Skip to content

feat: local -vvv role traces and the oc-only PIPELINE debug word - #8364

Merged
oferchen merged 13 commits into
masterfrom
feat/local-vvv-pipeline
Nov 14, 2026
Merged

oferchen merged 13 commits into
masterfrom
feat/local-vvv-pipeline

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Stacked on #8363 (live diagnostic sink); review that first.

With a role trace requested, a local copy prints rsync 3.5.1's per-role trace lines, and oc's pipeline internals no longer appear in any -v row.

  • A local copy runs over a server child when a role trace is requested (GENR/RECV/SEND/EXIT >= 1, FLIST >= 2, or PIPELINE >= 1), as upstream's local_child (pipe.c) forks one. Otherwise the copy stays in process.
  • Sender DELTASUM2/SEND1 traces on the whole-file path, with F_PATHNAME names. Receiver get_local_name trace. The client logs a transferred name before its data. The summary leaves the banner and -vv notices to the server child. The oc-only "created destination root" line is dropped.
  • New oc-only debug word PIPELINE, in no -v row and not forwarded. Level 1 prints phase timings, call totals, the partitioned file list, the seeded lazy producer and receiver config. Level 2 prints segment reclaim, inc_recurse producer and remote-shell wire detail. It is listed under "oc-rsync extensions" in --debug=help (hand-added until task 446 generates that text).
  • seccomp/landlock lines stay in the -vvv/-vvvv rows.

Tests

  • pipeline_debug_word: no_verbosity_prints_a_pipeline_line (-vvvvv), the_pipeline_word_prints_its_lines_by_level.
  • Oracle local_vvv_prints_no_oc_only_line_but_the_sandbox_ones: -vvv and -vvvv against 3.5.1, line shapes compared with the root and numbers masked. The only allowed oc-only lines start with landlock: or seccomp: .
  • a_role_trace_selects_the_server_child.
  • output_parity role-trace cells now run the real binary.
  • Full targeted set: 417/417 with OC_RSYNC_UPSTREAM_COMPAT=1 and the 3.5.1 oracle, in a clean target.

Mutations (all killed)

  • PIPELINE removed from the role-trace predicate: 2 tests.
  • PhaseTimer back on TIME: all 3 pipeline_debug_word tests, including the oracle.

Known open item

In an earlier gate run that shared one target directory between two worktrees, local_vvv_prints_no_oc_only_line_but_the_sandbox_ones failed once (416/417, 7.08 s). The same run also produced a stale-artifact clippy error, so a stale build is the likely cause, but that run's output was not captured and the failure is not root-caused. It passed 3/3 alone and in the full 417 in a clean target. If it fails in CI, it gets investigated from the full output, not retried.

Follow-ups

Tasks 587 (rate grouping), 579, 580. Next: the remaining upstream -vvv lines, one role at a time, each with a 3.5.1 cell.

@github-actions github-actions Bot added the enhancement New feature or request label Nov 11, 2026
oferchen added a commit that referenced this pull request Nov 11, 2026
One pull request run keeps about 5 of the 20 runners busy on average
(peak 10 Linux, 4 Windows, 2 macOS on #8364's 58-job run), so the single
FIFO queue left most of the pool idle. Pull requests now wait in two FIFO
lanes chosen by PR number parity in every workflow that queued them.

The disk cleanup cost 44.5 runner-minutes per run (35 Linux jobs at 2-3
minutes each) on runners that now have 107 GB free after it. A shared
free-disk-space action checks free space first: at 40 GB or more it
removes the unused toolchain directories in the background and the job
continues; below that it runs the full cleanup before the build.
@oferchen
oferchen force-pushed the feat/live-diag-sink branch 2 times, most recently from 8ee51f5 to 2f5c559 Compare November 11, 2026 10:31
oferchen added a commit that referenced this pull request Nov 11, 2026
One pull request run keeps about 5 of the 20 runners busy on average
(peak 10 Linux, 4 Windows, 2 macOS on #8364's 58-job run), so the single
FIFO queue left most of the pool idle. Pull requests now wait in two FIFO
lanes chosen by PR number parity in every workflow that queued them.

The disk cleanup cost 44.5 runner-minutes per run (35 Linux jobs at 2-3
minutes each) on runners that now have 107 GB free after it. A shared
free-disk-space action checks free space first: at 40 GB or more it
removes the unused toolchain directories in the background and the job
continues; below that it runs the full cleanup before the build.
@oferchen
oferchen force-pushed the feat/live-diag-sink branch 2 times, most recently from e69422c to b9d7234 Compare November 13, 2026 10:15
Base automatically changed from feat/live-diag-sink to master November 13, 2026 11:58
@oferchen
oferchen force-pushed the feat/local-vvv-pipeline branch 2 times, most recently from f6adb2a to 8bd1301 Compare November 13, 2026 16:17
@oferchen
oferchen force-pushed the feat/local-vvv-pipeline branch from 8bd1301 to 727aee2 Compare November 14, 2026 07:02
@oferchen
oferchen merged commit 645f642 into master Nov 14, 2026
86 checks passed
@oferchen
oferchen deleted the feat/local-vvv-pipeline branch November 14, 2026 09:10
oferchen added a commit that referenced this pull request Nov 14, 2026
…odebase (#8381)

Updates and cleans up root documentation against the current codebase
and upstream rsync 3.5.1 reference:\n\n- **README.md**: Update required
status check count from 15 to 16 and include `rustdoc links` to match
the repository ruleset.\n- **SECURITY.md**: Remove stale claim that
`--fake-super` is unimplemented (implemented in PR #8348;
`daemon-namecvt-empty-response` passes on Linux non-root legs), and
update cargo-fuzz target counts to 36 total / 26 in `fuzz/` (adding
`connection_handoff`) / 31 daily sweep targets.\n- **CHANGELOG.md**: Add
recent `[Unreleased]` entries (#8354, #8364, #8372, #8375) and remove
stray blank lines inside `### Changed`.
oferchen added a commit that referenced this pull request Nov 17, 2026
One pull request run keeps about 5 of the 20 runners busy on average
(peak 10 Linux, 4 Windows, 2 macOS on #8364's 58-job run), so the single
FIFO queue left most of the pool idle. Pull requests now wait in two FIFO
lanes chosen by PR number parity in every workflow that queued them.

The disk cleanup cost 44.5 runner-minutes per run (35 Linux jobs at 2-3
minutes each) on runners that now have 107 GB free after it. A shared
free-disk-space action checks free space first: at 40 GB or more it
removes the unused toolchain directories in the background and the job
continues; below that it runs the full cleanup before the build.
oferchen added a commit that referenced this pull request Nov 18, 2026
A local copy created the destination root before it read the operand
directories' per-directory merge files, so a refused rule there left an
empty destination behind. Upstream's sender reads those files while it
builds the first file list (flist.c:2117 push_local_filters()), and the
receiver creates the destination only once that list has arrived
(main.c:808-822): the refusal exits RERR_SYNTAX with nothing created.

The copy now reads, before any destination mkdir, the merge files of the
operand directories upstream's first file list expands: a contents
operand ("src/"), a directory that is the list's sole entry
(flist.c:3096 send_extra_file_list()), and, without INC_RECURSE, every
expanded operand. A named directory among several operands keeps its
later read under INC_RECURSE, where upstream too creates the destination
first. The local copy options gain inc_recurse, set from the client's
negotiated INC_RECURSE choice.

A refused rule in a merge file below an operand directory still fails
after the copy has started. Upstream's sender reads those while the
transfer runs and races its generator, so matching that placement waits
for the sender/receiver split of the local copy (#8364).
oferchen added a commit that referenced this pull request Nov 18, 2026
A local copy created the destination root before it read the operand
directories' per-directory merge files, so a refused rule there left an
empty destination behind. Upstream's sender reads those files while it
builds the first file list (flist.c:2117 push_local_filters()), and the
receiver creates the destination only once that list has arrived
(main.c:808-822): the refusal exits RERR_SYNTAX with nothing created.

The copy now reads, before any destination mkdir, the merge files of the
operand directories upstream's first file list expands: a contents
operand ("src/"), a directory that is the list's sole entry
(flist.c:3096 send_extra_file_list()), and, without INC_RECURSE, every
expanded operand. A named directory among several operands keeps its
later read under INC_RECURSE, where upstream too creates the destination
first. The local copy options gain inc_recurse, set from the client's
negotiated INC_RECURSE choice.

A refused rule in a merge file below an operand directory still fails
after the copy has started. Upstream's sender reads those while the
transfer runs and races its generator, so matching that placement waits
for the sender/receiver split of the local copy (#8364).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant