- 28 Apr, 2021 1 commit
-
-
Jérome Perrin authored
This uses psutil.process_iter to iterate on all processes, but in the meantime some process might terminate. As we could observe in the logs: 2021-04-26 12:53:02 - Cloudooo - DEBUG - Stop Pid - 15816 Exception in thread Thread-1: Traceback (most recent call last): File "python2.7/lib/python2.7/threading.py", line 801, in __bootstrap_inner self.run() File "cloudooo-repository/cloudooo/handler/ooo/monitor/request.py", line 60, in run self.openoffice.restart() File "cloudooo-repository/cloudooo/handler/ooo/application/application.py", line 79, in restart self.stop() File "cloudooo-repository/cloudooo/handler/ooo/application/openoffice.py", line 169, in stop self._releaseOpenOfficePort() File "cloudooo-repository/cloudooo/handler/ooo/application/openoffice.py", line 122, in _releaseOpenOfficePort if process.exe() == join(self.office_binary_path, self._bin_soffice): File "psutil-5.8.0-py2.7-linux-x86_64.egg/psutil/__init__.py", line 660, in exe exe = self._proc.exe() File "psutil-5.8.0-py2.7-linux-x86_64.egg/psutil/_pslinux.py", line 1688, in exe raise NoSuchProcess(self.pid, self._name) NoSuchProcess: psutil.NoSuchProcess process no longer exists (pid=19382) Update to catch and ignore such exceptions, and minor refactorings such as: - Not calculate the path of openoffice binary in the loop, this is not supposed to change. - Remove reference to lsof in logged message, this does not use lsof. - Catch all exceptions.
-
- 29 Mar, 2021 1 commit
-
-
Jérome Perrin authored
In python2, mimetypes module was not deterministic and this snippet: import mimetypes; print(mimetypes.guess_extension("text/html")) use to be ".html" on python 2.7.14, but is ".htm" on python 2.7.18 Similarly: import mimetypes; print(mimetypes.guess_extension("application/msword")) was ".doc" on 2.7.14 and ".dot" on 2.7.18 (this was in my observations, this does not look deterministic as it is iterating on a dict, maybe this behaviour is not always same) For html conversion engine, ERP5 expect that the extension for text/html is .html, not .htm. Some tests also expect that the conversion for word is .doc so to keep compatibility with extensions used in ERP5 compatibility mode, define explicitly these two extensions instead of depending on python standard library.
-
- 01 Jun, 2020 1 commit
-
-
Gabriel Monnerat authored
-
- 25 May, 2020 1 commit
-
-
Gabriel Monnerat authored
-
- 18 May, 2020 1 commit
-
-
Gabriel Monnerat authored
See merge request !25
-
- 14 May, 2020 1 commit
-
-
Gabriel Monnerat authored
-
- 06 May, 2020 1 commit
-
-
Georgios Dagkakis authored
See merge request !24
-
- 05 May, 2020 1 commit
-
-
Kirill Smelkov authored
-
- 02 Jan, 2020 1 commit
-
-
Ivan Tyagov authored
Tests passing at https://nexedi.erp5.net/test_result_module/20200102-6DAB14B9 /reviewed-on !23
-
- 30 Dec, 2019 1 commit
-
-
Ivan Tyagov authored
/reviewed-on !22
-
- 27 Dec, 2019 1 commit
-
-
Ivan Tyagov authored
Due to a5157949 cloudooo will retry 10 times before raising thus take this into account Raise rather than swallow. Test do pass at https://nexedi.erp5.net/test_result_module/20191227-20A35E0F /reviewed-on !21
-
- 13 Mar, 2019 1 commit
-
-
Yusei Tahara authored
-
- 21 Sep, 2018 1 commit
-
-
Jérome Perrin authored
/reviewed-on !18
-
- 18 Sep, 2018 3 commits
-
-
Jérome Perrin authored
using python csv module
-
Jérome Perrin authored
latin1 is still supported as a fallback when input csv does not decode as utf8
-
Jérome Perrin authored
-
- 14 Sep, 2018 4 commits
-
-
Jérome Perrin authored
Split into several test classes for easier maintainance
-
Jérome Perrin authored
no need for test_suite everywhere
-
Jérome Perrin authored
-
Jérome Perrin authored
-
- 03 Aug, 2018 1 commit
-
-
Roque authored
The cloudooo test on erp5-master is not able to finish after last erp5.util release: https://nexedijs.erp5.net/#/test_result_module/20180719-86977F42 After fix, there is a cloned test suite and the test is completed: https://nexedijs.erp5.net/#/test_result_module/20180719-781978C2 , but some test fails. I don't know these particular tests neither if they are failing due to the egg release, but the change in this MR solves the problem with test execution and it is ready to merge. /reviewed-on !17
-
- 26 Feb, 2018 9 commits
-
-
Boris Kocherov authored
-
Boris Kocherov authored
-
Boris Kocherov authored
-
Vincent Bechu authored
-
Boris Kocherov authored
-
Boris Kocherov authored
-
Boris Kocherov authored
(cherry picked from commit e0068547)
-
Boris Kocherov authored
(cherry picked from commit 50329148)
-
Boris Kocherov authored
-
- 19 Feb, 2018 1 commit
-
-
Vincent Bechu authored
/reviewed-on !14
-
- 21 Feb, 2017 1 commit
-
-
Tristan Cavelier authored
`cloudooo.handler.yformat.handler` was mainly contributed by Boris Kocherov. Commit 0bb5fbdc should have been credited to him.
-
- 17 Jan, 2017 1 commit
-
-
Tristan Cavelier authored
fix backward compatibily + update test
-
- 14 Jan, 2017 1 commit
-
-
Kazuhiko Shiozaki authored
-
- 13 Jan, 2017 3 commits
-
-
Kazuhiko Shiozaki authored
-
Tristan Cavelier authored
- source format is html - destination format is pdf - conversion_kw is not empty
-
Tristan Cavelier authored
-
- 05 Jan, 2017 1 commit
-
-
Jérome Perrin authored
-
- 03 Jan, 2017 2 commits
-
-
Tristan Cavelier authored
-
Tristan Cavelier authored
-