You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
docs: correct batch run option and manual service binary path - #274
Two README instructions do not match the shipped scripts:
The batch example uses --max-retries=3. osync-batch.sh recognizes --max-runs, so the documented option is forwarded to osync.sh, rejected as unknown, and the configuration fails instead of syncing.
The manual service setup places osync.sh in /usr/bin/local, but the shipped systemd unit and InitV script look in /usr/local/bin (also the installer destination).
Change
Use --max-runs=3, describe it as up to three total runs per configuration rather than three retries, and correct the manual binary destination. README only; no generated program files changed.
Validation
Ran the real batch script with a small local configuration: the documented --max-retries=3 invocation failed with the unknown-option error; --max-runs=3 completed successfully.
Ran local quick/config sync with tiny text fixtures: bidirectional transfer, spaces, dry run, overwrite backups, soft deletion, exclusion, and symlink preservation/following.
Confirmed the corrected binary destination against dev/common_install.sh, osync-srv, and osync-srv@.service.
git diff --check passed.
All execution used isolated synthetic local trees. Did not run privileged full suite, SSH/remote sync, monitor services, or the OS matrix; no installer/service changes are involved.
Thanks for flagging this. I checked the merged-head implementation: MAX_RUNS=3 is documented in osync-batch.sh as the number of total runs, Batch starts with runs=1, loops while runs <= MAX_RUNS, and increments after each pass. Failed configurations alone enter the next pass, so this permits up to three runs total (the initial run plus at most two retries), subject to the time limit. The README wording is intended to describe that current behavior. If you meant the option should instead permit N retries after the initial attempt, that would be a behavior change rather than a documentation correction.
Indeed, only failed runs are retried
When I read "allowing up to 3 runs per configuration if the whole sequential run took less than 2 hours", I understand that it would run 3 sucessful runs of the same config in 2 hours, which is not the case.
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
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.
Problem
Two README instructions do not match the shipped scripts:
--max-retries=3.osync-batch.shrecognizes--max-runs, so the documented option is forwarded toosync.sh, rejected as unknown, and the configuration fails instead of syncing.osync.shin/usr/bin/local, but the shipped systemd unit and InitV script look in/usr/local/bin(also the installer destination).Change
Use
--max-runs=3, describe it as up to three total runs per configuration rather than three retries, and correct the manual binary destination. README only; no generated program files changed.Validation
--max-retries=3invocation failed with the unknown-option error;--max-runs=3completed successfully.dev/common_install.sh,osync-srv, andosync-srv@.service.git diff --checkpassed.All execution used isolated synthetic local trees. Did not run privileged full suite, SSH/remote sync, monitor services, or the OS matrix; no installer/service changes are involved.