Skip Menu |

This queue is for tickets about the File-Rsync CPAN distribution.

Report information
The Basics
Id: 105945
Status: resolved
Priority: 0/
Queue: File-Rsync

People
Owner: LEAKIN [...] cpan.org
Requestors: corion [...] corion.net
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.46

Attachments
0001-Move-from-using-system-rm-rf-.-to-File-Path.patch
0002-Be-content-if-rsync-version-works-to-find-if-the-rsy.patch
0003-Output-the-command-line-as-diagnostics-while-running.patch
0004-Also-test-files-from-infun-functionality.patch
0005-Move-from-IPC-Open3-to-IPC-Run3.patch
File-Rsync-0.46.tar.gz



Subject: File-Rsync 0.45 fails tests on Windows
Date: Sun, 19 Jul 2015 20:34:57 +0200
To: bugs-File-Rsync [...] rt.cpan.org
From: Max Maischein <corion [...] corion.net>
Hello, many thanks for writing the module - the module fails its test suite on Windows. This is partially due to a broken/misled check in test.pl, and partially due to using IPC::Open3, which adds interactivity at the price of not working on Windows. The misled check tries to find a file "rsync" in the path. This functionality is never used by the module and in fact is misleading the test suite on Windows because there is no file "rsync" but only "rsync.exe". The test suite should check whether the "rsync" command is available by running a no-op command like `rsync --version` to check whether any program responds to "rsync". I've attached a patch to the CPAN version of "test.pl" (0.45) which makes the test suite pass the first step on Windows and Linux (Debian). The test suite also relies on the existence of a "rm" command, which does not exist on Windows. I've replaced its use with File::Path's rmtree() command. I've replaced all functionality provided by IPC::Open3 with functionality from IPC::Run3. This means that the stdout / stderr callbacks won't be called as rsync outputs the text but on the upside, this removes lots of code and complexity from the module, doing the IO::Select dance for reading from whatever filehandle just provides information. On Windows, (process) filehandles don't work with IO::Select, so eliminating this functionality makes the module work on Windows as well as on Linux. If you're not interested in removing the "live" functionality, a good approach to make the module work on both kinds of environment would be to have a subclass, File::Rsync::Win32, which inherits from File::Rsync and replaces the ->exec() method with the one I wrote. If you're interested in going that route, keeping the complexity and featureset of the original while also enabling most of the functionality on Windows, just say so and I'll rewrite the code to delegate to ::Win32 on Windows. These patches are also published on github at https://github.com/Corion/File-Rsync Thanks for maintaining this module, -max

Message body is not shown because sender requested not to inline it.

Message body is not shown because sender requested not to inline it.

Message body is not shown because sender requested not to inline it.

Message body is not shown because sender requested not to inline it.

Message body is not shown because sender requested not to inline it.

CC: <corion [...] corion.net>
Subject: Re: [rt.cpan.org #105945] File-Rsync 0.45 fails tests on Windows
Date: Tue, 21 Jul 2015 07:54:30 -0500
To: Max Maischein via RT <bug-File-Rsync [...] rt.cpan.org>
From: Lee Eakin <leakin [...] ti.com>

Message body is not shown because it is too large.

Subject: Re: [rt.cpan.org #105945] File-Rsync 0.45 fails tests on Windows
Date: Tue, 21 Jul 2015 21:29:28 +0200
To: bug-File-Rsync [...] rt.cpan.org
From: Max Maischein <corion [...] corion.net>
Hello Lee, thanks for your quick reaction! Show quoted text
> As for Windows, I have no experience on that platform so never new how > to make the module work there. Thanks so much for the help in making it > work there. Also thanks for the pointer to IPC::Run3. It looks much > simpler. The interactive function of IPC::Open3 was only a debugging > bonus. The goal was to capture all output without blocking rsync from > completing it's task.
I'm happy to help testing the module on Windows! The interactive functionality is nice, but I'd really like the module to work on Windows, even with a reduced feature set. Show quoted text
> I have a few other back-logged changes to make so I will work on merging > them along with your improvements. I will let you know where you can > pull a pre-release when it's ready in case you would like to give it a > test before I upload to cpan.
That will be great, I'll try to make time for testing the module! -max
Subject: Re: [rt.cpan.org #105945] File-Rsync 0.45 fails tests on Windows
Date: Thu, 30 Jul 2015 10:17:37 -0500
To: Max Maischein via RT <bug-File-Rsync [...] rt.cpan.org>
From: Lee Eakin <leakin [...] ti.com>
Max, Attached is a preliminary for you to test. I still want to add more tests before release, and may have a few other tweaks here and there (hopefully all minor). Note the README and Changelog as well and let me know if you are OK with the wording and credit. Note that I've also included a few other overdue changes that involved touching all but about 100 lines of Rsync.pm. Hopefully it's better in many ways, and I didn't do anything stupid. Thanks for your help and hints (IPC::Run3, File::Path, Test::More, etc). -Lee Show quoted text
> Date: Tue, 21 Jul 2015 15:30:09 -0400 > From: Max Maischein via RT <bug-File-Rsync@rt.cpan.org> > To: undisclosed-recipients: ; > Subject: Re: [rt.cpan.org #105945] File-Rsync 0.45 fails tests on Windows > X-CPAN.org: This message routed through the cpan.org mail forwarding > service. Please use PAUSE to configure your delivery settings. > Reply-To: bug-File-Rsync@rt.cpan.org > X-RT-Loop-Prevention: rt.cpan.org > RT-Ticket: rt.cpan.org #105945 > Managed-BY: RT 4.0.18 (http://www.bestpractical.com/rt/) > RT-Originator: corion@corion.net > X-RT-Original-Encoding: utf-8 > X-PMX-Version: 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: > 2014.6.6.5118 > > Queue: File-Rsync > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=105945 > > > Hello Lee, > > thanks for your quick reaction! >
> > As for Windows, I have no experience on that platform so never new how
> > to make the module work there. Thanks so much for the help in making it > > work there. Also thanks for the pointer to IPC::Run3. It looks much > > simpler. The interactive function of IPC::Open3 was only a debugging > > bonus. The goal was to capture all output without blocking rsync from > > completing it's task.
> I'm happy to help testing the module on Windows! The interactive > functionality is nice, but I'd really like the module to work on > Windows, even with a reduced feature set. >
> > I have a few other back-logged changes to make so I will work on merging > > them along with your improvements. I will let you know where you can > > pull a pre-release when it's ready in case you would like to give it a > > test before I upload to cpan.
> > That will be great, I'll try to make time for testing the module! > > -max > >
Download File-Rsync-0.46.tar.gz
application/x-tar-gz 20.7k

Message body not shown because it is not plain text.

Subject: Re: [rt.cpan.org #105945] File-Rsync 0.45 fails tests on Windows
Date: Thu, 30 Jul 2015 15:28:34 -0500
To: Max Maischein via RT <bug-File-Rsync [...] rt.cpan.org>
From: Lee Eakin <leakin [...] ti.com>
Minor test fixes, latest snapshot: http://www.japh.net/File-Rsync-0.46.tar.gz -Lee Show quoted text
> Date: Thu, 30 Jul 2015 10:17:37 -0500 > From: Lee Eakin <leakin@ti.com> > To: Max Maischein via RT <bug-File-Rsync@rt.cpan.org> > Subject: Re: [rt.cpan.org #105945] File-Rsync 0.45 fails tests on Windows > Mail-Followup-To: Max Maischein via RT <bug-File-Rsync@rt.cpan.org> > Content-Disposition: inline > User-Agent: Mutt/1.5.23 (2014-03-12) > > Max, > Attached is a preliminary for you to test. I still want to add more > tests before release, and may have a few other tweaks here and there > (hopefully all minor). > > Note the README and Changelog as well and let me know if you are OK > with the wording and credit. > > Note that I've also included a few other overdue changes that involved > touching all but about 100 lines of Rsync.pm. Hopefully it's better in > many ways, and I didn't do anything stupid. > > Thanks for your help and hints (IPC::Run3, File::Path, Test::More, etc). > -Lee >
> > Date: Tue, 21 Jul 2015 15:30:09 -0400 > > From: Max Maischein via RT <bug-File-Rsync@rt.cpan.org> > > To: undisclosed-recipients: ; > > Subject: Re: [rt.cpan.org #105945] File-Rsync 0.45 fails tests on Windows > > X-CPAN.org: This message routed through the cpan.org mail forwarding > > service. Please use PAUSE to configure your delivery settings. > > Reply-To: bug-File-Rsync@rt.cpan.org > > X-RT-Loop-Prevention: rt.cpan.org > > RT-Ticket: rt.cpan.org #105945 > > Managed-BY: RT 4.0.18 (http://www.bestpractical.com/rt/) > > RT-Originator: corion@corion.net > > X-RT-Original-Encoding: utf-8 > > X-PMX-Version: 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: > > 2014.6.6.5118 > > > > Queue: File-Rsync > > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=105945 > > > > > Hello Lee, > > > > thanks for your quick reaction! > >
> > > As for Windows, I have no experience on that platform so never new how
> > > to make the module work there. Thanks so much for the help in making it > > > work there. Also thanks for the pointer to IPC::Run3. It looks much > > > simpler. The interactive function of IPC::Open3 was only a debugging > > > bonus. The goal was to capture all output without blocking rsync from > > > completing it's task.
> > I'm happy to help testing the module on Windows! The interactive > > functionality is nice, but I'd really like the module to work on > > Windows, even with a reduced feature set. > >
> > > I have a few other back-logged changes to make so I will work on merging > > > them along with your improvements. I will let you know where you can > > > pull a pre-release when it's ready in case you would like to give it a > > > test before I upload to cpan.
> > > > That will be great, I'll try to make time for testing the module! > > > > -max > > > >
Subject: Re: [rt.cpan.org #105945] File-Rsync 0.45 fails tests on Windows
Date: Tue, 11 Aug 2015 09:33:44 -0500
To: Max Maischein via RT <bug-File-Rsync [...] rt.cpan.org>
From: Lee Eakin <leakin [...] ti.com>
Max, Sorry if you tried to respond and it bounced. My mail was broken for a few days. If everything looks good to you I plan to upload to cpan later this week. -Lee Show quoted text
> Date: Thu, 30 Jul 2015 15:28:34 -0500 > From: Lee Eakin <leakin@ti.com> > To: Max Maischein via RT <bug-File-Rsync@rt.cpan.org> > Subject: Re: [rt.cpan.org #105945] File-Rsync 0.45 fails tests on Windows > Mail-Followup-To: Max Maischein via RT <bug-File-Rsync@rt.cpan.org> > Content-Disposition: inline > User-Agent: Mutt/1.5.23 (2014-03-12) > > Minor test fixes, latest snapshot: > http://www.japh.net/File-Rsync-0.46.tar.gz > -Lee
Subject: Re: [rt.cpan.org #105945] File-Rsync 0.45 fails tests on Windows
Date: Wed, 12 Aug 2015 21:54:08 +0200
To: bug-File-Rsync [...] rt.cpan.org
From: Max Maischein <corion [...] corion.net>
Hello Lee, Show quoted text
>> Date: Thu, 30 Jul 2015 15:28:34 -0500 >> From: Lee Eakin <leakin@ti.com> >> To: Max Maischein via RT <bug-File-Rsync@rt.cpan.org> >> Subject: Re: [rt.cpan.org #105945] File-Rsync 0.45 fails tests on Windows >> Mail-Followup-To: Max Maischein via RT <bug-File-Rsync@rt.cpan.org> >> Content-Disposition: inline >> User-Agent: Mutt/1.5.23 (2014-03-12) >> >> Minor test fixes, latest snapshot: >> http://www.japh.net/File-Rsync-0.46.tar.gz >> -Lee
>
0.46 installs without problems on Windows, great! Thank you, -max
Subject: Re: [rt.cpan.org #105945] File-Rsync 0.45 fails tests on Windows
Date: Wed, 12 Aug 2015 15:13:47 -0500
To: Max Maischein via RT <bug-File-Rsync [...] rt.cpan.org>
From: Lee Eakin <leakin [...] ti.com>
Great news! Thanks! -Lee Show quoted text
> Date: Wed, 12 Aug 2015 15:54:31 -0400 > From: Max Maischein via RT <bug-File-Rsync@rt.cpan.org> > To: undisclosed-recipients: ; > Subject: Re: [rt.cpan.org #105945] File-Rsync 0.45 fails tests on Windows > X-CPAN.org: This message routed through the cpan.org mail forwarding > service. Please use PAUSE to configure your delivery settings. > Reply-To: bug-File-Rsync@rt.cpan.org > X-RT-Loop-Prevention: rt.cpan.org > RT-Ticket: rt.cpan.org #105945 > Managed-BY: RT 4.0.18 (http://www.bestpractical.com/rt/) > RT-Originator: corion@corion.net > X-RT-Original-Encoding: utf-8 > X-PMX-Version: 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: > 2015.8.12.194815 > > Queue: File-Rsync > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=105945 > > > Hello Lee,
> >> Date: Thu, 30 Jul 2015 15:28:34 -0500
> >> From: Lee Eakin <leakin@ti.com> > >> To: Max Maischein via RT <bug-File-Rsync@rt.cpan.org> > >> Subject: Re: [rt.cpan.org #105945] File-Rsync 0.45 fails tests on Windows > >> Mail-Followup-To: Max Maischein via RT <bug-File-Rsync@rt.cpan.org> > >> Content-Disposition: inline > >> User-Agent: Mutt/1.5.23 (2014-03-12) > >> > >> Minor test fixes, latest snapshot: > >> http://www.japh.net/File-Rsync-0.46.tar.gz > >> -Lee
> >
> 0.46 installs without problems on Windows, great! > > Thank you, > -max > >