Skip to content

test: drop uid/gid from the v61d_2 daemon config - #8255

Merged
oferchen merged 2 commits into
masterfrom
fix/v61d2-nonroot-gid
Oct 29, 2026
Merged

oferchen merged 2 commits into
masterfrom
fix/v61d2-nonroot-gid

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

v61d_2_daemon_push_increcurse_perf_regression failed for any non-root runner once an upstream rsync was installed. Its module config set uid = nobody and gid = nobody. The comment claimed upstream ignores them when not root, but it does not:

  • clientserver.c:844 parses any configured gid.
  • clientserver.c:1100 calls setgid() unconditionally and refuses the session with @ERROR: setgid failed (exit 5).

This PR drops both lines and replaces the wrong comment. With them unset, a root daemon still drops to nobody (clientserver.c:833, 872-873), and a non-root daemon keeps the runner's identity. A root CI job therefore runs the same configuration as before.

Test plan

  • As a non-root user, against an upstream daemon (/usr/bin/rsync 3.5.1 linked into the 3.4.1 install path): the test passes. With the previous config it fails with @ERROR: setgid failed (code 5).
  • cargo fmt --all -- --check; cargo clippy -p transfer --all-targets --all-features -D warnings
  • CI

Conventional commit prefix

  • test:

Pre-merge checklist

  • Conventional commit prefix on PR title matches the change category.
  • No references to internal tooling or non-human authoring aids; hyphens, not em-dashes.

Upstream calls setgid() for any configured module gid even when the
daemon is not root (clientserver.c:844, 1100), so a non-root runner got
"@error: setgid failed" and the comment claiming upstream ignores
uid/gid without root was wrong. With both unset a root daemon still
drops to nobody (clientserver.c:833, 872-873).
@github-actions github-actions Bot added the test label Oct 28, 2026
Carries the session_fork.rs fix from #8253 so this branch's macOS jobs stop
failing on the master test-harness race: on EPERM for our own child, SIGKILL
the leader before a blocking WNOWAIT wait, and accept a setpgid refusal when the
child already leads its own group. The content is identical to #8253, so the
two merge without conflict.
@oferchen
oferchen merged commit 49e4879 into master Oct 29, 2026
84 of 86 checks passed
@oferchen
oferchen deleted the fix/v61d2-nonroot-gid branch October 29, 2026 07:30
oferchen added a commit that referenced this pull request Nov 4, 2026
The required Windows (stable) job ran core, engine and cli, then metadata,
fast_io and transfer; daemon, protocol, rsync_io and the root package only
ran in non-gating jobs or not at all on Windows. Run the whole workspace
with every feature, as the Linux test job does, and drop the windows-daemon
job and the per-crate QUIC steps it subsumes.

Give the ACL/xattr metadata step its own 5-minute timeout and upload its
nextest log, so a hang like the 30-minute stall on #8255 names its test.
oferchen added a commit that referenced this pull request Nov 4, 2026
The required Windows (stable) job ran core, engine and cli, then metadata,
fast_io and transfer; daemon, protocol, rsync_io and the root package only
ran in non-gating jobs or not at all on Windows. Run the whole workspace
with every feature, as the Linux test job does, and drop the windows-daemon
job and the per-crate QUIC steps it subsumes.

Give the ACL/xattr metadata step its own 5-minute timeout and upload its
nextest log, so a hang like the 30-minute stall on #8255 names its test.
oferchen added a commit that referenced this pull request Nov 10, 2026
The required Windows (stable) job ran core, engine and cli, then metadata,
fast_io and transfer; daemon, protocol, rsync_io and the root package only
ran in non-gating jobs or not at all on Windows. Run the whole workspace
with every feature, as the Linux test job does, and drop the windows-daemon
job and the per-crate QUIC steps it subsumes.

Give the ACL/xattr metadata step its own 5-minute timeout and upload its
nextest log, so a hang like the 30-minute stall on #8255 names its test.
oferchen added a commit that referenced this pull request Nov 10, 2026
…8316)

* ci: run the full workspace test surface in the required Windows cell

The required Windows (stable) job ran core, engine and cli, then metadata,
fast_io and transfer; daemon, protocol, rsync_io and the root package only
ran in non-gating jobs or not at all on Windows. Run the whole workspace
with every feature, as the Linux test job does, and drop the windows-daemon
job and the per-crate QUIC steps it subsumes.

Give the ACL/xattr metadata step its own 5-minute timeout and upload its
nextest log, so a hang like the 30-minute stall on #8255 names its test.

* test: run each Windows test process in a private temp directory

* ci: wrap each Windows test process in the per-process temp-dir runner

* ci: build vendored OpenSSL with Strawberry Perl in the Windows cell

* test: gate the trailing-space filter fixture off Windows; diagnose daemon start

Win32 path normalisation (CreateFileW on a path without the \\?\ prefix)
strips trailing spaces from each component, so the `a ` fixture in
filter_file_record_ends_at_a_carriage_return cannot exist on Windows. Gate
the file off Windows; the filter-file reader is platform independent and
stays covered on every Unix cell.

client_empty_flist_skips_recv_loop's daemon never listened on Windows. This
is a diagnostic, not a fix: the harness keeps the daemon's stderr and, when
the daemon exits or never listens, fails with its exit status and stderr so
the next run names the cause.

* ci: run the Windows test step with --no-fail-fast

* test: make the full Windows test run pass or skip for a stated reason

Daemon-backed client tests gate on unix: Windows refuses --daemon
(cli frontend/server/daemon.rs:181-219; task 601 makes it run).
QUIC config chunks that need a directive to parse gate on unix: a
Windows daemon refuses every QUIC directive, and the existing
quic_windows_refusal chunk covers that side.
Literal-backslash filter tests and the trailing-space fixtures gate off
Windows, where those names cannot exist.

link_stat builds its expected path from the tempdir on Windows, since
canonicalize returns a verbatim path the child never reports. The
ssh -G differential skips an MSYS2 or Cygwin ssh, identified by the
runtime DLL beside it: that build reads C:\ paths as relative. xtask
branding requires daemon paths to start at /, the fake rpmbuild uses
EXE_SUFFIX as the lookup does, and the fake-gh upload test gates on
unix.

* ci: run feature-combination tests on Windows under the per-process temp-dir runner
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