Commit Graph

106 Commits

Author SHA1 Message Date
z4yx 8b0ef2bb53 fix the test 2020-03-14 11:11:10 +08:00
z4yx b25be80670 extra options should only be applied to the second stage 2020-03-14 11:01:34 +08:00
z4yx a517a4bb64 remove docker_test.go 2020-03-13 17:08:39 +08:00
z4yx b816803eaf Revert "disable docker_test"
This reverts commit 6d17d6b4ca.
2020-03-13 17:08:19 +08:00
z4yx 6d17d6b4ca disable docker_test 2020-03-13 17:04:36 +08:00
z4yx 51e7f1d573 add TestRsyncProviderWithOverriddenOptions 2020-03-13 17:02:38 +08:00
z4yx c99095267e [docker test] Wait for docker running 2020-03-13 16:57:07 +08:00
z4yx 5c140035ec [worker teset] Wait for http server starting 2020-03-13 16:41:30 +08:00
z4yx 80ad3247a0 fix build 2020-03-13 15:16:39 +08:00
z4yx 02468e21c0 add an option "rsync_override" 2020-03-13 15:12:52 +08:00
z4yx 908f098c72 [mirror config] job fails on pattern match in log 2020-03-09 21:48:06 +08:00
Yuxiang Zhang 22cfdfc9c2
[mirror config] extra rsync options (#107)
* support "rsync_options" array in config

* add test for new options

* fix tests
2020-03-09 20:48:09 +08:00
z4yx 36010dc33e Merge branch 'master' of github.com:tuna/tunasync 2019-11-30 00:08:59 +08:00
z4yx bc416a6088 add tests for post-hooks 2019-11-30 00:08:46 +08:00
z4yx a065a11b38 change timeout in tests 2019-11-07 12:29:57 +08:00
z4yx b4fe4db82a Merge remote-tracking branch 'origin/dev' 2019-11-04 23:11:34 +08:00
z4yx 839363aaaa reschedule the job if any hook fails 2019-11-04 22:52:03 +08:00
Jeeken Wang 501f77ee41 Merge branch 'master' into feature/btrfs-snapshot 2019-08-15 01:26:28 +08:00
z4yx 9e91fd706e Merge branch 'dev' 2019-08-13 23:10:43 +08:00
z4yx 94cf0b4bdb fix possible null dereferencing, reported by #96 2019-08-13 23:07:01 +08:00
WANG Ziqin 6b56c4254c feat(btrfs_snapshot_hook): reimplemented Btrfs snapshots
TODO: test coverage
2019-08-02 13:31:33 +08:00
WANG Ziqin 30259da0f0 fix nil pointer dereference: check err first 2019-08-02 02:15:22 +08:00
WANG Ziqin 4854d9b981 Fix test: initialize dockerHook with embedded provider 2019-07-31 17:29:28 +08:00
WANG Ziqin 06fce98c00 Eliminate duplicate mirrorProvider in Hooks 2019-07-31 16:11:56 +08:00
z4yx a6fc97889d [bug fix] stalled scheduler if post-sync hook runs for a time which is longer than the sync interval 2019-07-05 16:29:00 +08:00
zyx 9f91d90fc5 check Retry configuration in providers 2019-04-13 11:01:56 +08:00
zyx 1aa4ae9cc1 Merge remote-tracking branch 'kinosang/master' into wip-test-pr 2019-04-13 02:07:41 +08:00
zyx d0deeb19a9 extract mirror size from rsync provider automatically 2019-04-13 01:27:35 +08:00
zyx a283328dc4 increase test converage of worker 2019-04-12 09:43:57 +08:00
zyx 1890bbed3c add tests for last commit 2019-04-11 12:36:43 +08:00
zyx ddc9efd155 report next scheduled sync time 2019-04-11 12:36:18 +08:00
zyx 7eb119b892 singleton of worker is not used, so remove it 2019-04-11 10:07:42 +08:00
zyx 90d419ca66 add tests for last commit 2019-03-31 12:16:45 +08:00
zyx 96cb975412 Let user create ZFS dataset manually due to security considerations 2019-03-31 12:09:42 +08:00
王邈 ff3e690497
Revert "change owner of folder to current user after creating zfs dataset (close #89)"
This reverts commit a58e6d37ae and
re-opens #89.

Signed-off-by: 王邈 <shankerwangmiao@gmail.com>
2019-03-26 00:30:06 +08:00
zyx a58e6d37ae change owner of folder to current user after creating zfs dataset (close #89) 2019-03-25 23:40:04 +08:00
z4yx c750aa1871 new feature: run "tunasynctl start" with "-f" to override concurrent job limit 2018-05-30 18:59:24 +08:00
Yuxiang Zhang 6cbe91b4f1 new command: jobForceStart 2018-05-30 16:07:07 +08:00
Yuxiang Zhang 89a792986d increase test coverage rate of job & provider 2018-05-30 14:00:10 +08:00
Yuxiang Zhang 0fdb07d061 bug fix: log over-written in twoStageRsyncProvider
solve more DATA RACE problem
2018-05-30 12:28:09 +08:00
Yuxiang Zhang c5bb172f99 increase test coverage rate of job.go 2018-05-30 11:45:05 +08:00
Yuxiang Zhang 79e6167028 fix race condition on logFile of baseProvider 2018-05-30 01:46:16 +08:00
bigeagle a475b044c6 feat(worker): add 'use_ipv4' option for rsync provider 2017-09-08 00:15:48 +08:00
bigeagle a50a360a91 Revert "feat(worker): add '-4' option to rsync when 'use_ipv6' is false"
This reverts commit d536aca2ac.
2017-09-08 00:12:40 +08:00
bigeagle d536aca2ac feat(worker): add '-4' option to rsync when 'use_ipv6' is false 2017-09-06 23:22:55 +08:00
7IN0SAN9 563860d424
fix #63 2017-03-27 13:09:56 +08:00
bigeagle 939abaef9b
feat(worker): TUNASYNC_LOG_DIR environment variable 2016-12-18 20:41:26 +08:00
bigeagle d5a438462f
feat(worker): map current uid and gid to docker 2016-12-18 14:28:48 +08:00
bigeagle d4e07a7b29
fix(worker): keep the same working dir inside and outside of docker 2016-12-18 14:28:32 +08:00
bigeagle fd277388d5
fix(worker): fixed multi-manager configuration
the worker must be registerred on the manager

`extra_status_manager` option is replaced by `api_base_list`, which overrides the `api_base` option
2016-12-12 23:17:50 +08:00