- 21 Mar, 2024 16 commits
-
-
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.
-
Bryton Lacquement authored
software/slapos-sr-testing: add erp5-py3 --- WIP ERP5: XXX dumps() parameter for longrequest promise
🚧 Not sure why it was OK on python2 and not sure if this has to be done or the promise code needs to cast the results of getConfig() --- py3: do not enable NEO test yet🚧 at this point they all fail after long timeouts, because neo does not support py3 yet stack/erp5: version up APacheDEX 2.0 (py3 only) -
Kazuhiko Shiozaki authored
-
Kazuhiko Shiozaki authored
-
Jérome Perrin authored
-
Jérome Perrin authored
This reverts commit 6c399134.
-
Jérome Perrin authored
See https://docs.python.org/3/using/cmdline.html#envvar-PYTHONHASHSEED Setting a value will set the environment variable for all zope processes and for the test runner. Default behavior is: - for zope: do not set the variable, so default python behavior will be used ( equivalent to setting `0` on python2 and `random` on python3) - for test runner: generate a random value for each execution and print it, to make it easy to re-run a failing test with the same seed. This means that ERP5 tests will likely reveal problems where code depends on python2 behavior of deterministic hashing. To keep previous behavior (and hide these problems), it's possible to set python-hash-seed to 0 in test suite parameters.
-
- 20 Mar, 2024 3 commits
-
-
Paul Graydon authored
See merge request nexedi/slapos!1553
-
Thomas Gambier authored
See: nexedi/rubygemsrecipe!10 nexedi/slapos.buildout!29
-
Titouan Soulard authored
The CertificateAuthority tool in ERP5 uses UTF8 encoding for certificates, but by default OpenSSL does not. This cause an error when using non-ascii characters: ``` The localityName field is different between CA certificate and the request ``` To solve the problem, the Certificate Authority recipe should use the same encoding as ERP5, which requires adding `-utf8` option when invoking OpenSSL. For instance, creating a certificate with `localityName` Москва will give the following with the default OpenSSL encoding: `\C3\90\C2\9C\C3\90\C2\BE\C3\91\C2\81\C3\90\C2\BA\C3\90\C2\B2\C3\90\C2\B0`. UTF8-encoding this same string gives `\D0\9C\D0\BE\D1\81\D0\BA\D0\B2\D0\B0`, which is what ERP5 expects.
-
- 19 Mar, 2024 3 commits
-
-
Paul Graydon authored
-
Jérome Perrin authored
-
Rafael Monnerat authored
See merge request nexedi/slapos!1552
-
- 18 Mar, 2024 6 commits
-
-
Rafael Monnerat authored
-
Rafael Monnerat authored
-
Kazuhiko Shiozaki authored
-
Kazuhiko Shiozaki authored
-
Kazuhiko Shiozaki authored
-
Kazuhiko Shiozaki authored
-
- 15 Mar, 2024 2 commits
-
-
Thomas Gambier authored
This option will give fixed IP to each SIM card.
-
Thomas Gambier authored
-
- 13 Mar, 2024 1 commit
-
-
Léo-Paul Géneau authored
component/mavsdk: v↑ mavsdk (0.39.0 -> 1.4.13) component/gwsocket: add gwsocket websocket server software/js-drone: add frontend for subscriber software/js-drone: use WebSocket for subscriber slapos/software: run quickjs as a service
-
- 12 Mar, 2024 2 commits
-
-
Łukasz Nowak authored
* the default is already tested so drop TestRe6stVerificationUrlDefaultSlave * use locally provided URL to check re6st-verification-url, to not depend on external resources slapos!1501 did a good job with making default disabled, but during the code review tests changes were not well checked.
-
Titouan Soulard authored
logrotate test for the rapid-cdn SR have been failing for quite some time because of a squid.log file created (and henceforth rotated) on any slave instance of the CDN: ``` Traceback (most recent call last): self.assertEqual( AssertionError: Items in the second set but not the first: 'squid.log_10.0.160.212.20240306.23h57m09s-20240307.00h00m02s.old.xz' ``` Since we do not want to test this file in that specific test, this commit instead loosely check the content of the rotated files directory. In other words, the test now checks for the presence of the two files to be tested, but avoid failing if other files exist. This goes in line with the two following lines of that same test, loosely checking for file absence instead of an empty directory. /cc @tomo @luke /approved-by @luke /reviewed-on !1541
-
- 08 Mar, 2024 3 commits
-
-
Julien Muchembled authored
This saves 380MB, by removing: - bin/mysql_client_test (and the bin/mariadb-client-test symlink) - mysql-test/
-
Ivan Tyagov authored
See merge request nexedi/slapos!1543
-
Ivan Tyagov authored
OPENSSL's libraries in this case SlapOS ones.
-
- 05 Mar, 2024 1 commit
-
-
Thomas Gambier authored
The SR didn't compile without libssl-dev package. Correctly use the openssl lib from slapos.
-
- 01 Mar, 2024 1 commit
-
-
Jérome Perrin authored
Every restricted python code on python2 will be compiled as if it had `from __future__ import print_function`, to ease transition away from python2. To update project code, 2to3 from python2.7 seems to do a good job. Invoking like from the root of a repository rewrite all scripts: 2to3 --write --nobackups --no-diffs --fix=print .
-
- 29 Feb, 2024 2 commits
-
-
Łukasz Nowak authored
When the backend to redirect to uses scheme standard port it's cleaner to redirect to URL without the port. See https://www.rfc-editor.org/rfc/rfc9110.html#name-https-normalization-and-com: "If the port is equal to the default port for a scheme, the normal form is to omit the port subcomponent."
-
Łukasz Nowak authored
-