unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Tramp test suite and network access
@ 2014-04-21  0:57 Daniel Colascione
  2014-04-21  7:12 ` Eli Zaretskii
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Daniel Colascione @ 2014-04-21  0:57 UTC (permalink / raw)
  To: Emacs developers; +Cc: Michael Albinus

[-- Attachment #1: Type: text/plain, Size: 569 bytes --]

Can we change the tramp test suite so that, by default, it doesn't try
to access the network? If a host isn't connected to the network, tests
can hang for a long time with no user-visible explanation, and even if
network connectivity is available, ssh to the local system isn't
guaranteed to work, or work without asking for input. (The tramp tests
constantly ask me whether I want to connect.)

It'd also be nice to give Emacs /dev/null as its stdin when it's running
the test suite. Is there any reason we want tests to be able to interact
with the user?


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 884 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Tramp test suite and network access
  2014-04-21  0:57 Tramp test suite and network access Daniel Colascione
@ 2014-04-21  7:12 ` Eli Zaretskii
  2014-04-21  8:09 ` Michael Albinus
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 10+ messages in thread
From: Eli Zaretskii @ 2014-04-21  7:12 UTC (permalink / raw)
  To: Daniel Colascione; +Cc: michael.albinus, emacs-devel

> Date: Sun, 20 Apr 2014 17:57:47 -0700
> From: Daniel Colascione <dancol@dancol.org>
> Cc: Michael Albinus <michael.albinus@gmx.de>
> 
> It'd also be nice to give Emacs /dev/null as its stdin when it's running
> the test suite. Is there any reason we want tests to be able to interact
> with the user?

Some tests ask for input.  E.g., I believe you can run tests
selectively using this facility.



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Tramp test suite and network access
  2014-04-21  0:57 Tramp test suite and network access Daniel Colascione
  2014-04-21  7:12 ` Eli Zaretskii
@ 2014-04-21  8:09 ` Michael Albinus
  2014-04-21  8:10   ` Daniel Colascione
  2014-04-21 16:25 ` Michael Albinus
  2014-04-24  8:27 ` Michael Albinus
  3 siblings, 1 reply; 10+ messages in thread
From: Michael Albinus @ 2014-04-21  8:09 UTC (permalink / raw)
  To: Daniel Colascione; +Cc: Emacs developers

Daniel Colascione <dancol@dancol.org> writes:

Hi Daniel,

> Can we change the tramp test suite so that, by default, it doesn't try
> to access the network? If a host isn't connected to the network, tests
> can hang for a long time with no user-visible explanation, and even if
> network connectivity is available, ssh to the local system isn't
> guaranteed to work, or work without asking for input. (The tramp tests
> constantly ask me whether I want to connect.)

You can always set $REMOTE_TEMPORARY_FILE_DIRECTORY to /dev/null, prior
to running the test suite. See the Commentary section of tramp-tests.el.

Furthermore, there is `tramp--test-enabled'. It is intended to check,
whether the Tramp test suite shall run, or whether the tests shall be
skipped. If it doesn't work for you reliably, we shall improve the
checks.

> It'd also be nice to give Emacs /dev/null as its stdin when it's running
> the test suite. Is there any reason we want tests to be able to interact
> with the user?

Yes. IFF you want to run Tramp's tests, you might want to give them a
proper password.

Best regards, Michael.



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Tramp test suite and network access
  2014-04-21  8:09 ` Michael Albinus
@ 2014-04-21  8:10   ` Daniel Colascione
  2014-04-21  8:32     ` Michael Albinus
  2014-04-21  8:40     ` Eli Zaretskii
  0 siblings, 2 replies; 10+ messages in thread
From: Daniel Colascione @ 2014-04-21  8:10 UTC (permalink / raw)
  To: Michael Albinus; +Cc: Emacs developers

[-- Attachment #1: Type: text/plain, Size: 905 bytes --]

On 04/21/2014 01:09 AM, Michael Albinus wrote:
> Daniel Colascione <dancol@dancol.org> writes:
> 
> Hi Daniel,
> 
>> Can we change the tramp test suite so that, by default, it doesn't try
>> to access the network? If a host isn't connected to the network, tests
>> can hang for a long time with no user-visible explanation, and even if
>> network connectivity is available, ssh to the local system isn't
>> guaranteed to work, or work without asking for input. (The tramp tests
>> constantly ask me whether I want to connect.)
> 
> You can always set $REMOTE_TEMPORARY_FILE_DIRECTORY to /dev/null, prior
> to running the test suite. See the Commentary section of tramp-tests.el.

Or we can set it to /dev/null and let users who want to run network
tests override it. And you can always mock the network side of the tramp
tests, which today are pretty slow even when they run properly.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 884 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Tramp test suite and network access
  2014-04-21  8:10   ` Daniel Colascione
@ 2014-04-21  8:32     ` Michael Albinus
  2014-04-21  8:34       ` Daniel Colascione
  2014-04-21  8:40     ` Eli Zaretskii
  1 sibling, 1 reply; 10+ messages in thread
From: Michael Albinus @ 2014-04-21  8:32 UTC (permalink / raw)
  To: Daniel Colascione; +Cc: Emacs developers

Daniel Colascione <dancol@dancol.org> writes:

> Or we can set it to /dev/null and let users who want to run network
> tests override it. And you can always mock the network side of the tramp
> tests, which today are pretty slow even when they run properly.

I really appreciate that the tests run on hydra permanently. It is a
different environment, and I see Tramp problems there which do not
happen in my local environment.

Best regards, Michael.



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Tramp test suite and network access
  2014-04-21  8:32     ` Michael Albinus
@ 2014-04-21  8:34       ` Daniel Colascione
  2014-04-21  8:40         ` Michael Albinus
  0 siblings, 1 reply; 10+ messages in thread
From: Daniel Colascione @ 2014-04-21  8:34 UTC (permalink / raw)
  To: Michael Albinus; +Cc: Emacs developers

[-- Attachment #1: Type: text/plain, Size: 710 bytes --]

On 04/21/2014 01:32 AM, Michael Albinus wrote:
> Daniel Colascione <dancol@dancol.org> writes:
> 
>> Or we can set it to /dev/null and let users who want to run network
>> tests override it. And you can always mock the network side of the tramp
>> tests, which today are pretty slow even when they run properly.
> 
> I really appreciate that the tests run on hydra permanently. It is a
> different environment, and I see Tramp problems there which do not
> happen in my local environment.

Then configure *those* tests to talk to the network. You shouldn't
inconvenience ever person who runs "make check" (some of whom won't even
have an ssh daemon) because you want to get results from Hydra.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 884 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Tramp test suite and network access
  2014-04-21  8:10   ` Daniel Colascione
  2014-04-21  8:32     ` Michael Albinus
@ 2014-04-21  8:40     ` Eli Zaretskii
  1 sibling, 0 replies; 10+ messages in thread
From: Eli Zaretskii @ 2014-04-21  8:40 UTC (permalink / raw)
  To: Daniel Colascione; +Cc: michael.albinus, emacs-devel

> Date: Mon, 21 Apr 2014 01:10:29 -0700
> From: Daniel Colascione <dancol@dancol.org>
> Cc: Emacs developers <emacs-devel@gnu.org>
> 
> > You can always set $REMOTE_TEMPORARY_FILE_DIRECTORY to /dev/null, prior
> > to running the test suite. See the Commentary section of tramp-tests.el.
> 
> Or we can set it to /dev/null and let users who want to run network
> tests override it.

I think these days machines that have network access are much more
common than the other kind.



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Tramp test suite and network access
  2014-04-21  8:34       ` Daniel Colascione
@ 2014-04-21  8:40         ` Michael Albinus
  0 siblings, 0 replies; 10+ messages in thread
From: Michael Albinus @ 2014-04-21  8:40 UTC (permalink / raw)
  To: Daniel Colascione; +Cc: Emacs developers

Daniel Colascione <dancol@dancol.org> writes:

> On 04/21/2014 01:32 AM, Michael Albinus wrote:
>> Daniel Colascione <dancol@dancol.org> writes:
>> 
>>> Or we can set it to /dev/null and let users who want to run network
>>> tests override it. And you can always mock the network side of the tramp
>>> tests, which today are pretty slow even when they run properly.
>> 
>> I really appreciate that the tests run on hydra permanently. It is a
>> different environment, and I see Tramp problems there which do not
>> happen in my local environment.
>
> Then configure *those* tests to talk to the network. You shouldn't
> inconvenience ever person who runs "make check" (some of whom won't even
> have an ssh daemon) because you want to get results from Hydra.

Again: if `tramp--test-enabled' is improved, nobody shall be bothered.

Best regards, Michael.



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Tramp test suite and network access
  2014-04-21  0:57 Tramp test suite and network access Daniel Colascione
  2014-04-21  7:12 ` Eli Zaretskii
  2014-04-21  8:09 ` Michael Albinus
@ 2014-04-21 16:25 ` Michael Albinus
  2014-04-24  8:27 ` Michael Albinus
  3 siblings, 0 replies; 10+ messages in thread
From: Michael Albinus @ 2014-04-21 16:25 UTC (permalink / raw)
  To: Daniel Colascione; +Cc: Emacs developers

Daniel Colascione <dancol@dancol.org> writes:

> If a host isn't connected to the network, tests
> can hang for a long time with no user-visible explanation,

Default Tramp timeout is 60 seconds. We could shorten it for the tests
if desired.

OTOH, often I use fencepost.gnu.org as remote counterpart for the tests,
which is useful *because* I have a slow connection to that host. It's
useful to see how Tramp behaves on slow lines.

> and even if network connectivity is available, ssh to the local system
> isn't guaranteed to work, or work without asking for input.

Well, that's the default. But Tramp can run without ssh at all.

> (The tramp tests constantly ask me whether I want to connect.)

Tramp shouldn't ask you; it's the task of `tramp--test-enabled' to check
silently, whether the tests must be skipped.

What does it ask you? A password? It shouldn't. A passphrase? This we
might want to suppress. Something else?

Best regards, Michael.



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Tramp test suite and network access
  2014-04-21  0:57 Tramp test suite and network access Daniel Colascione
                   ` (2 preceding siblings ...)
  2014-04-21 16:25 ` Michael Albinus
@ 2014-04-24  8:27 ` Michael Albinus
  3 siblings, 0 replies; 10+ messages in thread
From: Michael Albinus @ 2014-04-24  8:27 UTC (permalink / raw)
  To: Daniel Colascione; +Cc: Emacs developers

Daniel Colascione <dancol@dancol.org> writes:

Hi Daniel,

> Can we change the tramp test suite so that, by default, it doesn't try
> to access the network?

I've modified tramp-tests.el (and file-notify-tests.el) such a way, that
they use "sh -i" as default (fake) connection for remote files. This
should give you less pain.

Best regards, Michael.



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-04-24  8:27 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-21  0:57 Tramp test suite and network access Daniel Colascione
2014-04-21  7:12 ` Eli Zaretskii
2014-04-21  8:09 ` Michael Albinus
2014-04-21  8:10   ` Daniel Colascione
2014-04-21  8:32     ` Michael Albinus
2014-04-21  8:34       ` Daniel Colascione
2014-04-21  8:40         ` Michael Albinus
2014-04-21  8:40     ` Eli Zaretskii
2014-04-21 16:25 ` Michael Albinus
2014-04-24  8:27 ` Michael Albinus

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).