Rackslab accepts external community contributions from the community on Slurm-web under some conditions.
In order to secure intellectual property on the project, contributors must accept the Rackslab Contributor License Agreement (CLA).
Rackslab has a clear commitment in terms of source code quality, usability and maintainability towars its customers and users of its software. This means in particular that, before inclusion of the contributions in a Slurm-web release, Rackslab ensures that:
- It has the complete ability to autonomously test and validate the proposed change.
- The software documentation and changelog fully cover the proposed change, including functional and architectural changes, deployment and usage changes and new configuration options.
- The absence of impact on the service level of its customers.
Depending on the complexity of the contribution, this could represent a significant amount of work for Rackslab staff. For this reason, Rackslab can decide to charge a reasonable amount contributing organizations for inclusion of external contributions.
Python code in Slurm-web backend applications must be formatted with Black, with this command:
$ black
Source code in Slurm-web frontend application must be formatted with Prettier, with this command:
$ npm run format
Contributors must do their best to follow guidelines defined in conventional commits for the commit messages.
List of admitted scopes in the first line of Git commit messages:
front
: frontend applicationgateway
: gateway backend applicationagent
: agent backend applicationgenjwt
:slurm-web-gen-jwt-key
commandconf
: configuration specific modificationdev
: tools for development environment (indev/
folder)
The versions numbers of Rackslab software releases follow the semantic versionning specifications.
Use this command to run unit tests for frontend:
$ cd frontend && npm run test:unit
Install tests requirements, typically in a virtual environment
$ pip install -e .[tests]
Use this command to run unit tests for backend applications:
$ pytest