Skip to content

Fix the Windows tests that fail since #401 - #406

Merged
lambdanature merged 1 commit into
mainfrom
405-windows-ci-after-401
Nov 29, 2026
Merged

lambdanature merged 1 commit into
mainfrom
405-windows-ci-after-401

Conversation

@lambdanature

Copy link
Copy Markdown
Contributor

Fixes the two Windows test failures on main since #401:

  • recv a_directory_swapped_for_a_link_gets_no_part_file: since Open fewer directories per received file #401 the writer keeps its directory open. On Windows, the test's remove_dir then leaves the writer a directory that is being deleted, and the create of the .part fails with error 303 instead of the symlink refusal. Nothing is written outside the tree either way. The test now accepts error 303 on Windows.
  • backpressure a_peer_that_stops_reading_control_fails_the_session: Open fewer directories per received file #401 counts 3 handles per file in flight (4 with a partial dir), and Windows sizes the window from a fixed HANDLE_WINDOW of 8192, so the window there shrank from 3968 to 2645 files. That is too few for the test's plan items to overflow the stream window. Windows has no small handle limit, so HANDLE_WINDOW is now 4 * 4096 + 256: the full MAX_INFLIGHT of 4096, as on Linux, also with a partial dir. A new Windows-only planner test holds it there.

Checked on Linux (the two tests touched, clippy, fmt) and with tools/typecheck-target.sh x86_64-pc-windows-msvc -p irsync --all-targets --all-features. The Windows CI jobs are the real test.

Closes #405

On Windows the writer now holds its directory open, so a test that
removes that directory sees error 303 instead of the symlink refusal.
And counting 3 or 4 handles per file in flight shrank the Windows
window from 3968 to 2645 files, too few for the backpressure test;
the fixed handle window now allows the full 4096, as on Linux.
@lambdanature
lambdanature merged commit 9efb71c into main Nov 29, 2026
17 checks passed
@lambdanature
lambdanature deleted the 405-windows-ci-after-401 branch November 29, 2026 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Windows CI fails on main since #401

1 participant