- 07 May, 2024 25 commits
-
-
Jérome Perrin authored
-
Jérome Perrin authored
-
-
Jérome Perrin authored
-
Jérome Perrin authored
This reverts commit 99afbc87.
-
Jérome Perrin authored
-
Jérome Perrin authored
reapply xxx
-
Jérome Perrin authored
This reverts commit 453e811d6d384922e1c90919daca7f889364dea5.
-
Jérome Perrin authored
-
Jérome Perrin authored
this is now inline in the software
-
Jérome Perrin authored
-
Jérome Perrin authored
- merge software-common.cfg in software.cfg - use inline templates instead of a recipe for cloudooo.cfg
-
Jérome Perrin authored
-
Jérome Perrin authored
also reorganise the build to use latest golang
-
Jérome Perrin authored
-
Jérome Perrin authored
-
Jérome Perrin authored
The later is not really supposed to be XML-RPC comptabible and it's anyway to use ZPythonScript_edit
-
Jérome Perrin authored
-
Jérome Perrin authored
-
Jérome Perrin authored
testing strategy: - use an external method with a transaction manager which sleeps for 20 seconds during tpc_vote and tpc_commit - commit such a transaction - stop zope - check the stop happens after the tpc_commit
-
-
Jérome Perrin authored
-
Jérome Perrin authored
-
Jérome Perrin authored
For now this still have to be enabled with a config like this in a .conf file in srv/telegraf/extra-config/ : [[inputs.execd]] name_override = "slapos" # this needs sudo when using can not access supervisor socket, like when being installed in root slapos command = ["/usr/bin/sudo", "$SOFTWARE_DIR/go.work/bin/telegraf-input-slapos", "-config", "/path/to/slapos.conf"] /path/to/slapos.conf would contain something like this: [[inputs.slapos]] ## Folder where partitions are located instance_root = "/srv/slapgrid/" ## filepath.Glob pattern to look for recursive instances recursive_instance_glob_pattern = "*/srv/runner/inst*/" ## Path of supervisor socket, relative to instance root socket_name = "sv.sock"
-
Jérome Perrin authored
This version has a new sql input, that can be used to get metrics from sql queries.
-
- 06 May, 2024 5 commits
-
-
Kirill Smelkov authored
Does not work yet as it currently breaks with File "/srv/slapgrid/slappart47/srv/runner/software/7f1663e8148f227ce3c6a38fc52796e2/bin/runwsgi", line 4, in <module> from Products.ERP5.bin.zopewsgi import runwsgi; sys.exit(runwsgi()) File "/srv/slapgrid/slappart47/srv/runner/software/7f1663e8148f227ce3c6a38fc52796e2/parts/erp5/product/ERP5/__init__.py", line 36, in <module> from Products.ERP5Type.Utils import initializeProduct, updateGlobals File "/srv/slapgrid/slappart47/srv/runner/software/7f1663e8148f227ce3c6a38fc52796e2/parts/erp5/product/ERP5Type/__init__.py", line 42, in <module> from .patches import pylint File "/srv/slapgrid/slappart47/srv/runner/software/7f1663e8148f227ce3c6a38fc52796e2/parts/erp5/product/ERP5Type/patches/pylint.py", line 524, in <module> __import__(module_name, fromlist=[module_name], level=0)) File "src/lxml/sax.py", line 18, in init lxml.sax File "src/lxml/etree.pyx", line 154, in init lxml.etree TypeError: Expected bytes, got golang.bstr in cdef bytes _FILENAME_ENCODING = (sys.getfilesystemencoding() or sys.getdefaultencoding() or 'ascii').encode("UTF-8") (https://github.com/lxml/lxml/blob/a9f31d9b/src/lxml/etree.pyx#L150) /cc @kazuhiko, @jerome
-
Kirill Smelkov authored
An example patch of how to convert a program to be run via gpython. For now there should be no change in semantic, but once we adjust ERP5 interpreter to activate bstr+ustr as builtin string types by default, it will affect the programs ran via pyprog infrastructure. /cc @kazuhiko, @jerome
-
Kirill Smelkov authored
This is preparatory step to later use bstr/ustr from gpython as builtin string types. For now we keep both runtime to be threads and string types to be unpatched builtin types provided by python natively. This way there should be practically no change in how ERP5 runs yet. /cc @kazuhiko, @jerome
-
Kirill Smelkov authored
pygolang: Accompany python-interpreter with gpython-interpreter to run gpython instead of std python With python-interpreter staying the default for pyprog, but possible to adjust. We will need gpython-interpreter for ERP5 to use bstr+ustr as builting string types. Remove [gpython] script in favour of gpython-interpreter since both provide the same thing but via slightly different ways internally ([gpython] was generating bin/gpython via setuptools and [gpython-interpreter] does it by hand with user-visible result staying the same). /cc @kazuhiko, @jerome
-
Kirill Smelkov authored
pyprog macro, added in 0ee52376 (Generalize how nxdtest python script is generated into pyprog recipe macro) works by generating buildout code at runtime in text form. This way it should be careful when substituting strings, because if those strings contain \n, then intended control flow might become broken. For example when using pyprog with eggs = ${eggs:eggs} from stack/erp5/ , buildout breaks because erp5 defines eggs as multiline list: INFO self.buildout.parse(""" INFO File "/srv/slapgrid/slappart47/srv/runner/software/7f1663e8148f227ce3c6a38fc52796e2/eggs/zc.buildout-2.7.1+slapos020-py3.9.egg/zc/buildout/buildout.py", line 1352, in parse INFO sections = zc.buildout.configparser.parse( INFO File "/srv/slapgrid/slappart47/srv/runner/software/7f1663e8148f227ce3c6a38fc52796e2/eggs/zc.buildout-2.7.1+slapos020-py3.9.egg/zc/buildout/configparser.py", line 241, in parse INFO raise e INFO zc.buildout.configparser.ParsingError: File contains parsing errors: INFO [line 18]: 'python-barcode\n' INFO [line 19]: 'SOAPpy-py3\n' INFO [line 20]: 'suds-py3\n' INFO [line 21]: 'neoppod[admin, ctl, master]\n' INFO [line 22]: 'cython-zstd\n' INFO [line 23]: 'msgpack\n' INFO [line 24]: 'mysqlclient\n' INFO [line 25]: 'PyMySQL\n' INFO [line 26]: 'ZODB\n' INFO [line 27]: 'zodbtools\n' INFO [line 28]: 'psutil\n' ... -> Fix it via indenting eggs list like we already do with pyinit code. /cc @kazuhiko, @jerome
-
- 04 May, 2024 1 commit
-
-
Jérome Perrin authored
-
- 03 May, 2024 9 commits
-
-
Paul Graydon authored
See merge request !1572
-
Kazuhiko Shiozaki authored
to avoid the following error: relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
-
Kazuhiko Shiozaki authored
software/osie-coupler: keep the build source directory instead of having another open62541-source part.
-
Kazuhiko Shiozaki authored
-
Kazuhiko Shiozaki authored
-
Kazuhiko Shiozaki authored
-
Kazuhiko Shiozaki authored
-
Kazuhiko Shiozaki authored
-
Kazuhiko Shiozaki authored
-