- 28 Jan, 2022 1 commit
-
-
Rafael Monnerat authored
In case the instance isn't linked to the tree properly (due Garbage Collect unlinked it), stop the instance directly anyway.
-
- 26 Jan, 2022 2 commits
-
-
Rafael Monnerat authored
-
Łukasz Nowak authored
Once per day is not real time monitoring, so drop it to each 5 minutes.
-
- 25 Jan, 2022 1 commit
-
-
Jérome Perrin authored
On python2, warnings.warn expects the message to be passed as a str and it will silently output nothing when the message is an unicode that can not be converted to str using ascii encoding (cf. https://bugs.python.org/issue34752 ) Since october update of pyupio/safety-db there is a new vulnerability for pytest-runner, which is described as: "pytest-runner": [ { "advisory": "Pytest-runner depends on deprecated features of setuptools and relies on features that break security mechanisms in pip. For example \u2018setup_requires\u2019 and \u2018tests_require\u2019 bypass pip --require-hashes. See also pypa/setuptools#1684.\r\nIt is recommended that you:\r\n- Remove 'pytest-runner' from your setup_requires, preferably removing the setup_requires option.\r\n- Remove 'pytest' and any other testing requirements from tests_require, preferably removing the tests_requires option.\r\n- Select a tool to bootstrap and then run tests such as tox.", "cve": "PVE-2021-43313", "id": "pyup.io-43313", "specs": [ ">0" ], "v": ">0" } ], notice the quotes: \u2018setup_requires\u2019 and \u2018tests_require\u2019 this was sent to warnings.warn as unicode and because all our softwares have this vulnerability (that BTW do not impact us because we run buildout with a patch for setup_requires), we no longer saw any warning on python2 software release tests.
-
- 24 Jan, 2022 2 commits
-
-
Jérome Perrin authored
pkg_resources.Environment only scans packages for the current python version, but the checked software might be using a different python version than the python version used to check software (the slapos python). The checked software might also include packages for multiples python versions. Compute the list used python packages from the eggs directory and use an Environment for each python version, this way we check all python versions and also when slapos python and software python are different.
-
Jérome Perrin authored
-
- 17 Jan, 2022 1 commit
-
-
Jérome Perrin authored
- only consider shared parts from checked software - support new `.buildout-shared.json` signature files - unit test coverage See merge request nexedi/slapos.core!361
-
- 12 Jan, 2022 1 commit
-
-
Levin Zimmermann authored
See merge request nexedi/slapos.core!358
-
- 11 Jan, 2022 6 commits
-
-
Jérome Perrin authored
check_software was checking all shared parts, which was an easy implementation but turned out to be problematic, both when running on test nodes because if one software installs broken shared parts all softwares being tested afterwards were failing and also during development because we needed to prune broken shared parts when fixing problems reported by check_software. This inspects buildout's .installed.cfg to guess which shared parts are used.
-
Jérome Perrin authored
These are used in check software tests.
-
Jérome Perrin authored
shutil.rmtree does not support files marked as read only by slapos.recipe.build shared parts system and this test is now used for testing of shared parts.
-
Jérome Perrin authored
Since slapos.recipe.cmmi version 0.18, the signature files no longer match the glob pattern that was used here, so check that shared parts do not reference software parts was not effective anymore.
-
Jérome Perrin authored
test detection of usage of shared library from system and of shared parts referencing software
-
Jérome Perrin authored
This reverts commit 2d50c8b8. We are not ready for this, for example on debian 10 perl link with libnsl. For reference, one example test failure: https://erp5js.nexedi.net/#/test_result_module/20220111-190A520F2/20 We'll try to re-apply this later once no software use system libnsl
-
- 06 Jan, 2022 2 commits
-
-
Jérome Perrin authored
Since slapos commit 246be932e (component/libtirpc,libnsl: initial inclusion, 2021-12-28) we have a slapos component, so no reason to accept the system library
-
Jérome Perrin authored
logrotate stack uses srv/backup/logrotate
-
- 29 Dec, 2021 24 commits
-
-
Rafael Monnerat authored
This MR aims to introduce and extend the internal API with the support for manage: - Project - Organisation - Site (also Organisation) - Tokens - Computer Network So via the introductions of workflows we included the following methods: - Project.approveRegistration() - Project.leaveProject() - Project.acceptInvitation() - Organisation.approveRegistration() - Organisation.leaveOrganisation() - Organisation.acceptInvitation() - Person.requestProject(project_title) - Person.requestOrganisation(organisation_title) - Person.requestSite(organisation_title) - Person.requestToken(request_url) - Person.requestNetwork(network_title) - ComputeNote.requestTransfer(...) - InstanceTree.requestTransfer(...) - ComputerNetwork.approveRegistration() - ComputerNetwork.requestTransfer(...) This API with minor exceptions, don't replaces the way the Hateoas/JIO website interacts with ERP5, so the original scripts are kept and just changed to call internal APIs. See merge request nexedi/slapos.core!348
-
Rafael Monnerat authored
-
Rafael Monnerat authored
-
Rafael Monnerat authored
-
Rafael Monnerat authored
-
Rafael Monnerat authored
-
Rafael Monnerat authored
Drop code that is never called anyway.
-
Rafael Monnerat authored
-
Rafael Monnerat authored
-
Rafael Monnerat authored
This makes easy write or update tests per workflow-basis
-
Rafael Monnerat authored
-
Rafael Monnerat authored
-
Rafael Monnerat authored
-
Rafael Monnerat authored
-
Rafael Monnerat authored
Drop an duplication, probably came from copy and paste
-
Rafael Monnerat authored
-
Rafael Monnerat authored
-
Rafael Monnerat authored
Introduce API on person to handle the requests of Organisations and Sites.
-
Rafael Monnerat authored
This aims to transform *_createMovement into an proper API to handle location/project/owners transfers between Sites/Project/Organisations.
-
Rafael Monnerat authored
-
Rafael Monnerat authored
-
Rafael Monnerat authored
This allows the project owner leave the project if he would like too
-
Rafael Monnerat authored
This API aims to handle token generation for person, rather them keep ad-hoc API on scripts for specific usage
-
Rafael Monnerat authored
-