Repository navigation
test: pull wide and deep trees under incremental recursion, reporting hangs - #8264
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
crates/transfer/tests/inc_recurse_pull_scale_shapes.rs: two incremental-recursion pulls through the lsh stub, each asserting that every file arrives and that nothing extra appears.MAX_FILECNT_LOOKAHEADof 10,000 (rsync.h:151-152).generator.c:2691-2712) while newer ones are still being sent (sender.c:525-545).test_support::run_reporting_hangsturns that termination into a failure that says where the transfer hung:SIGTERM.eu-stackis permitted.SIGTERMhook is a new safeplatform::signal::on_sigterm, built onsignal-hook's blocking iterator. It lives inplatformbecause that crate owns signal handling.Test plan
NDX_DONEwrite. That deadlocks the deep pull: both ends sit inunix_stream_read_generic.SIGTERM, as nextest does at its timeout. The test exited 1 with a per-process, per-thread report naming both oc-rsync processes and the lsh stub, and no process survived.on_sigtermruns its handler, and the process survives the signal. The report reads a live process group's command line, thread state and group membership.check_rustfmt_all.py, workspace clippy--all-targets --all-features, no-default clippy forplatform,test-supportandtransfer, windows-gnucargo check --testsfor the same three crates,unsafe_owner_deps.py,dead_code_census.py,xtask no-placeholders, nextest-p platform -p test-support -p transfer.Known differences from upstream, measured but not changed here
opendiron a path pastMAXPATHLENreportsCannot allocate memory (12), so it transfers 1,023 of 2,000 files and exits 23. oc transfers all 2,000 and exits 0. The test stays at 1,000 levels, where both agree.Coordination
--delete-excludedPRs.Conventional commit prefix
test:Pre-merge checklist
cargo fmt --allrun locally.CHANGELOG.mdnot updated: test-only harness, no user-visible change.