omegat icon indicating copy to clipboard operation
omegat copied to clipboard

Integration-test: support subversion test with docker

Open miurahr opened this issue 2 years ago • 1 comments

Pull request type

Please check the type of change your PR introduces:

  • [ ] Bug fix
  • [x] Feature
  • [ ] Documentation
  • [ ] Build and release changes
  • [ ] Other (describe below)

Which ticket is resolved?

  • Link:
  • Title:

What does this PR change?

  • Update integration test to accept username password for subversion URL
  • Accept TYPE environment variable for docker-compose test
  • Fix and update document

Other information

Currently not finished when running svn test I got error

client_1  | start test-integration
server_1  | ssh-keygen: generating new host keys: DSA 
server_1  | start servers
client_1  | Downloading https://services.gradle.org/distributions/gradle-6.9-bin.zip
server_1  | /usr/lib/python3/dist-packages/supervisor/options.py:474: UserWarning: Supervisord is running as root and it is searching for its configuration file in default locations (including its current working directory); you probably want to specify a "-c" argument specifying an absolute path to a configuration file for improved security.
server_1  |   self.warnings.warn(
server_1  | 2022-09-03 08:38:16,220 CRIT Supervisor is running as root.  Privileges were not dropped because no user is specified in the config file.  If you intend to run as root, you can set user=root in the config file to avoid this message.
server_1  | 2022-09-03 08:38:16,220 INFO Included extra file "/etc/supervisor/conf.d/supervisord.conf" during parsing
server_1  | 2022-09-03 08:38:16,224 INFO RPC interface 'supervisor' initialized
server_1  | 2022-09-03 08:38:16,224 CRIT Server 'unix_http_server' running without any HTTP authentication checking
server_1  | 2022-09-03 08:38:16,224 INFO supervisord started with pid 1
server_1  | 2022-09-03 08:38:17,226 INFO spawned: 'apache2' with pid 11
server_1  | 2022-09-03 08:38:17,227 INFO spawned: 'sshd' with pid 12
server_1  | 2022-09-03 08:38:18,256 INFO success: apache2 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
server_1  | 2022-09-03 08:38:18,256 INFO success: sshd entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
client_1  | ..........10%..........20%..........30%...........40%..........50%..........60%...........70%..........80%..........90%...........100%
client_1  | 
client_1  | Welcome to Gradle 6.9!
client_1  | 
client_1  | Here are the highlights of this release:
client_1  |  - This is a small backport release.
client_1  |  - Java 16 can be used to compile when used with Java toolchains
client_1  |  - Dynamic versions can be used within plugin declarations
client_1  |  - Native support for Apple Silicon processors
client_1  | 
client_1  | For more details see https://docs.gradle.org/6.9/release-notes.html
client_1  | 
client_1  | Starting a Gradle Daemon (subsequent builds will be faster)
client_1  | > Task :compileJava UP-TO-DATE
client_1  | 
client_1  | > Task :processResources
client_1  | Detected revision 51a01a1c5
client_1  | 
client_1  | > Task :classes
client_1  | > Task :compileTestJava UP-TO-DATE
client_1  | > Task :processTestResources UP-TO-DATE
client_1  | > Task :testClasses UP-TO-DATE
client_1  | > Task :compileTestIntegrationJava
client_1  | > Task :processTestIntegrationResources NO-SOURCE
client_1  | > Task :testIntegrationClasses
server_1  | 2022-09-03 08:39:13,049 INFO reaped unknown pid 71 (exit status 255)
client_1  | 
client_1  | > Task :testIntegration FAILED
client_1  | 06703: Info: SVN 'checkout to null' execution start (SVN_START)
client_1  | 06703: Error: SVN 'checkout' error: svn: E210002: There was a problem while connecting to server:22 (SVN_ERROR)
client_1  | Exception in thread "main" org.omegat.core.team2.IRemoteRepository2$NetworkException: org.tmatesoft.svn.core.SVNException: svn: E210002: There was a problem while connecting to server:22
client_1  |     at org.omegat.core.team2.impl.SVNRemoteRepository2.checkNetworkException(SVNRemoteRepository2.java:246)
client_1  |     at org.omegat.core.team2.impl.SVNRemoteRepository2.switchToVersion(SVNRemoteRepository2.java:120)
client_1  |     at org.omegat.core.team2.RemoteRepositoryProvider.switchAllToLatest(RemoteRepositoryProvider.java:200)
client_1  |     at org.omegat.core.data.TestTeamIntegration.prepareRepo(TestTeamIntegration.java:282)
client_1  |     at org.omegat.core.data.TestTeamIntegration.main(TestTeamIntegration.java:153)
client_1  | Caused by: org.tmatesoft.svn.core.SVNException: svn: E210002: There was a problem while connecting to server:22
client_1  |     at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:70)
client_1  |     at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:57)
client_1  |     at org.tmatesoft.svn.core.internal.io.svn.SVNSSHConnector.open(SVNSSHConnector.java:145)
client_1  |     at org.tmatesoft.svn.core.internal.io.svn.SVNConnection.open(SVNConnection.java:77)
client_1  |     at org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.openConnection(SVNRepositoryImpl.java:1273)
client_1  |     at org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.getLatestRevision(SVNRepositoryImpl.java:172)
client_1  |     at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgRepositoryAccess.getRevisionNumber(SvnNgRepositoryAccess.java:119)
client_1  |     at org.tmatesoft.svn.core.internal.wc2.SvnRepositoryAccess.getLocations(SvnRepositoryAccess.java:195)
client_1  |     at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgRepositoryAccess.createRepositoryFor(SvnNgRepositoryAccess.java:46)
client_1  |     at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgAbstractUpdate.checkout(SvnNgAbstractUpdate.java:815)
client_1  |     at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgCheckout.run(SvnNgCheckout.java:26)
client_1  |     at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgCheckout.run(SvnNgCheckout.java:11)
client_1  |     at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgOperationRunner.run(SvnNgOperationRunner.java:20)
client_1  |     at org.tmatesoft.svn.core.internal.wc2.SvnOperationRunner.run(SvnOperationRunner.java:21)
client_1  |     at org.tmatesoft.svn.core.wc2.SvnOperationFactory.run(SvnOperationFactory.java:1235)
client_1  |     at org.tmatesoft.svn.core.wc2.SvnOperation.run(SvnOperation.java:294)
client_1  |     at org.tmatesoft.svn.core.wc.SVNUpdateClient.doCheckout(SVNUpdateClient.java:777)
client_1  |     at org.omegat.core.team2.impl.SVNRemoteRepository2.switchToVersion(SVNRemoteRepository2.java:115)
client_1  |     ... 3 more
client_1  | Caused by: java.io.IOException: There was a problem while connecting to server:22
client_1  |     at com.trilead.ssh2.Connection.connect(Connection.java:817)
client_1  |     at org.tmatesoft.svn.core.internal.io.svn.ssh.SshHost.openConnection(SshHost.java:225)
client_1  |     at org.tmatesoft.svn.core.internal.io.svn.ssh.SshHost.openSession(SshHost.java:153)
client_1  |     at org.tmatesoft.svn.core.internal.io.svn.ssh.SshSessionPool.openSession(SshSessionPool.java:85)
client_1  |     at org.tmatesoft.svn.core.internal.io.svn.SVNSSHConnector.open(SVNSSHConnector.java:122)
client_1  |     ... 18 more
client_1  | Caused by: java.io.IOException: Key exchange was not finished, connection is closed.
client_1  |     at com.trilead.ssh2.transport.KexManager.getOrWaitForConnectionInfo(KexManager.java:92)
client_1  |     at com.trilead.ssh2.transport.TransportManager.getConnectionInfo(TransportManager.java:231)
client_1  |     at com.trilead.ssh2.Connection.connect(Connection.java:769)
client_1  |     ... 22 more
client_1  | Caused by: java.io.IOException: Cannot negotiate, proposals do not match.
client_1  |     at com.trilead.ssh2.transport.KexManager.handleMessage(KexManager.java:413)
client_1  |     at com.trilead.ssh2.transport.TransportManager.receiveLoop(TransportManager.java:765)
client_1  |     at com.trilead.ssh2.transport.TransportManager$1.run(TransportManager.java:480)
client_1  |     at java.base/java.lang.Thread.run(Thread.java:829)
client_1  | 
client_1  | FAILURE: Build failed with an exception.

miurahr avatar Sep 03 '22 08:09 miurahr

Here is docker https/svn server project on omegat-org https://github.com/omegat-org/docker-httpd-svn

miurahr avatar Sep 19 '22 10:09 miurahr