Source: libreoffice-parlatype-extension
Version: 3.1.1-1
Severity: important

Dear Maintainer,

I see parlatype-libreoffice-extension failing with the new  upstream
release of libreoffice in experimental (see 
https://ci.debian.net/data/autopkgtest/unstable/amd64/p/parlatype-libreoffice-extension/37751215/log.gz):

 82s autopkgtest [18:31:18]: test unit-tests: [-----------------------
 83s Warning: failed to launch javaldx - java may not function correctly
 85s test_extractTimestamp 
(test_parlatype_utils.TestUtils.test_extractTimestamp)
 85s Test extractTimestamp() ... ERROR
 85s test_isValidCharacter 
(test_parlatype_utils.TestUtils.test_isValidCharacter)
 85s Test _isValidCharacter() ... ok
 85s starting LibreOffice with channel:  
pipe,name=pytest6667d0ae-50d1-11ee-8852-00163ebb4c1a
 85s Connecting to:  
uno:pipe,name=pytest6667d0ae-50d1-11ee-8852-00163ebb4c1a;urp;StarOffice.ComponentContext
 85s WARN: NoConnectException: sleeping...
 85s WARN: NoConnectException: sleeping...
 85s tearDown: calling terminate()...
 85s ...done
 85s
 85s ======================================================================
 85s ERROR: test_extractTimestamp 
(test_parlatype_utils.TestUtils.test_extractTimestamp)
 85s Test extractTimestamp()
 85s ----------------------------------------------------------------------
 85s Traceback (most recent call last):
 85s   File 
"/tmp/autopkgtest-lxc.djpobicb/downtmp/build.oGP/src/tests/test_parlatype_utils.py",
 line 61, in test_extractTimestamp
 85s     text = doc.Text
 85s            ^^^^^^^^
 85s AttributeError: 'NoneType' object has no attribute 'Text'
 85s
 85s ----------------------------------------------------------------------
 85s Ran 2 tests in 2.082s
 85s
 85s FAILED (errors=1)
 85s Warning: failed to launch javaldx - java may not function correctly
 86s test_empty_get (test_document_link.TestUtils.test_empty_get)
 86s Get empty custom property "Parlatype" ... ERROR
 86s test_remove_and_get (test_document_link.TestUtils.test_remove_and_get)
 86s Remove custom property "Parlatype" ... ERROR
 86s test_set_and_get (test_document_link.TestUtils.test_set_and_get)
 86s Set custom property "Parlatype" ... ERROR
 86s
 86s ======================================================================
 86s ERROR: test_empty_get (test_document_link.TestUtils.test_empty_get)
 86s Get empty custom property "Parlatype"
 86s ----------------------------------------------------------------------
 86s Traceback (most recent call last):
 86s   File 
"/tmp/autopkgtest-lxc.djpobicb/downtmp/build.oGP/src/tests/test_document_link.py",
 line 48, in test_empty_get
 86s     self.assertIsNone(getDocumentLink(doc))
 86s                       ^^^^^^^^^^^^^^^^^^^^
 86s   File 
"/usr/lib/libreoffice/share/extensions/parlatype/python/components/Parlatype.py",
 line 131, in getDocumentLink
 86s     doc_prop = doc.getDocumentProperties()
 86s                ^^^^^^^^^^^^^^^^^^^^^^^^^
 86s AttributeError: 'NoneType' object has no attribute 'getDocumentProperties'
 86s
 86s ======================================================================
 86s ERROR: test_remove_and_get 
(test_document_link.TestUtils.test_remove_and_get)
 86s Remove custom property "Parlatype"
 86s ----------------------------------------------------------------------
 86s Traceback (most recent call last):
 86s   File 
"/tmp/autopkgtest-lxc.djpobicb/downtmp/build.oGP/src/tests/test_document_link.py",
 line 67, in test_remove_and_get
 86s     setDocumentLink(doc, "http://test";)
 86s   File 
"/usr/lib/libreoffice/share/extensions/parlatype/python/components/Parlatype.py",
 line 119, in setDocumentLink
 86s     doc_prop = doc.getDocumentProperties()
 86s                ^^^^^^^^^^^^^^^^^^^^^^^^^
 86s AttributeError: 'NoneType' object has no attribute 'getDocumentProperties'
 86s
 86s ======================================================================
 86s ERROR: test_set_and_get (test_document_link.TestUtils.test_set_and_get)
 86s Set custom property "Parlatype"
 86s ----------------------------------------------------------------------
 86s Traceback (most recent call last):
 86s   File 
"/tmp/autopkgtest-lxc.djpobicb/downtmp/build.oGP/src/tests/test_document_link.py",
 line 57, in test_set_and_get
 86s     setDocumentLink(doc, "http://test";)
 86s   File 
"/usr/lib/libreoffice/share/extensions/parlatype/python/components/Parlatype.py",
 line 119, in setDocumentLink
 86s     doc_prop = doc.getDocumentProperties()
 86s                ^^^^^^^^^^^^^^^^^^^^^^^^^
 86s AttributeError: 'NoneType' object has no attribute 'getDocumentProperties'
 86s
 86s ----------------------------------------------------------------------
 86s Ran 3 tests in 1.075s
 86s
 86s FAILED (errors=3)
 86s WARN: NoConnectException: sleeping...
 86s autopkgtest [18:31:22]: test unit-tests: -----------------------]
 86s unit-tests           FAIL non-zero exit status 1
 86s autopkgtest [18:31:22]: test unit-tests:  - - - - - - - - - - results - - 
- - - - - - - -
 87s autopkgtest [18:31:23]: @@@@@@@@@@@@@@@@@@@@ summary
 87s extension-installed-test PASS (superficial)
 87s unit-tests           FAIL non-zero exit status 1

I see the following in your debian/tests/control:

Tests: extension-installed-test
Depends: @
Restrictions: superficial

Tests: unit-tests
Depends: @,libreoffice-writer-nogui
# allow-stderr because of this warning:
# failed to launch javaldx - java may not function correctly
Restrictions: allow-stderr

It starts working when you use libreoffice-writer. (So explicitely no -nogui 
but given parlatype is an extension with UI
this could also be acceptable)

After some tests in a fresh chroot it seems that the test somehow tries to 
access libcuilo.so in some way.
(Found out by copying it from -core over.).  [1]

So either
 - Depends: libreoffice-writer
or
 - Depends: libreoffice-writer-nogui, libreoffice-core

sound like possible solutions here.

Same for Build-Depends in debian/control.

Regards,

Rene

[1] apparently they made some stuff checking some configuration stuff/options 
stuff and still do so via "Common UI" (cui) even in --disable-gui. :/
How I hate this...

Reply via email to