Repository navigation
Fix the Windows tests that fail since #401 - #406
Merged
Merged
Conversation
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.
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.
Fixes the two Windows test failures on
mainsince #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'sremove_dirthen leaves the writer a directory that is being deleted, and the create of the.partfails 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 fixedHANDLE_WINDOWof 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, soHANDLE_WINDOWis now4 * 4096 + 256: the fullMAX_INFLIGHTof 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