On 21.08.25 10:59, Emmanuel Lecharny wrote:
Hi,

sorry to bother you, but I have tried to build the project, and it always ends this way after around 30mins:

[INFO] Running org.apache.sshd.server.shell.InvertedShellWrapperTest
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.083 s -- in org.apache.sshd.server.shell.InvertedShellWrapperTest
[INFO] Running org.apache.sshd.spring.SpringConfigTest

[1]+  Stopped                 mvn clean install

on my Linux Debian 12 box.

Env:

$ mvn --version
Apache Maven 3.9.9 (8e8579a9e76f7d015ee5ec7bfcdc97d260186937)
Maven home: /opt/maven
Java version: 17.0.16, vendor: Ubuntu, runtime: /usr/lib/jvm/java-17-openjdk-amd64
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "6.14.0-27-generic", arch: "amd64", family: "unix"

Of course, I can restart the run (command fg), but this is annoying.

Any idea what would cause such an issue?

No concrete idea. I have never seen this on my Mac, and I don't have
a Linux box.

Suspending a running foreground process in a shell is usually Ctrl-Z.
Maybe the shell running the maven process gets a Ctrl-Z somehow?

This SpringConfigTest actually runs an interactive OS shell in the
test SSH server. Looking through the code it appears to run
"/bin/sh -i -l" and then an "ls" on Linux.

The test uses JSch to connect to that server. It writes a command,
but actually never consumes the output. It simply disconnects after
one second.

Perhaps any of this results in the shell running maven getting a
Ctrl-Z... I don't see anything in the code (ours or JSch's) that
could cause this, though.

It's rather strange that this didn't happen last time when we did
the 2.15.0 release. I'm not aware of any code changes that might be
related, and while we did bump the JSch version used in tests, I'm
also not aware of any changes in JSch that might be related.

In the 2.15.0 release, you hit a (completely different) build problem
because of the French name for the downloads directory. In what
directory are you running maven this time?

Also, half an hour until these tests get run sounds excessivley long.
The tests are run in sshd-core, twice even, and that happens fairly
early in the whole build. 30 minutes is about the time my old Intel-
based Mac takes for the whole build.

Cheers,

  Thomas


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org
For additional commands, e-mail: dev-h...@mina.apache.org

Reply via email to