aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-10-05Add lava-server manage device-tagsHEADmasterNeil Williams
Closes: #85 - create, add, remove, list and show Tags on existing Devices. Signed-off-by: Neil Williams <neil.williams@linaro.org>
2018-10-05Initial blackening support.Neil Williams
Include advice on when and how often to blacken files. Signed-off-by: Neil Williams <neil.williams@linaro.org>
2018-10-05CI fix docker build when branch name is uppercaseRémi Duraffort
Found in the folowing job https://git.lavasoftware.org/gtucker/lava/-/jobs/3254 Fix lava/ci-images#6
2018-10-02CI: fail the job is listing deps is failingRémi Duraffort
Thanks to shell syntax, we should split this in two lines in order to exit the script if listing the requirements fail for any reason.
2018-10-02CI: fix typo in setupRémi Duraffort
This typo prevents scripts from installing the required dependencies. Fix #107
2018-10-01Add overrides for bandit false positivesNeil Williams
Reduce the noise in the SAST report further. Override bandit warnings in lava-dispatcher as bandit is overly based on a web UI mindset. Add overrides and fixes for files in ./share/ Signed-off-by: Neil Williams <neil.williams@linaro.org>
2018-10-01Ignore new PEP8 warning W504Neil Williams
Update for some occurrences of W604 but exclude files where this is unrealistic. Ignore W504 as this currently conflicts with black. Signed-off-by: Neil Williams <neil.williams@linaro.org>
2018-10-01Silence SAST warnings about mark_safe for internal data.Neil Williams
Signed-off-by: Neil Williams <neil.williams@linaro.org>
2018-10-01Apply yaml.safe_load to unit testsNeil Williams
Ensure unit tests are testing the same behaviour as the rest of the source code and also reduce the amount of noise in the SAST report so that genuine issues are easier to find. Signed-off-by: Neil Williams <neil.williams@linaro.org>
2018-10-01Silence SAST noise from unit testNeil Williams
Signed-off-by: Neil Williams <neil.williams@linaro.org>
2018-10-01Silence security noise from unit test use of assertNeil Williams
Signed-off-by: Neil Williams <neil.williams@linaro.org>
2018-09-28Explicitly set autoescape to False for YAML.Neil Williams
Jinja2 autoescape defaults to False but this default is likely to change. Autoescape behaviour is predicated on HTML for XSS vulnerabilities, so would be set by Django in handling the UI templates. HTML (escaped or not) would be either invalid YAML or ignored comments. Autoescape also has a performance penalty when enabled, so set to False now to protect against the future change in the default in jinja2. Signed-off-by: Neil Williams <neil.williams@linaro.org>
2018-09-27Point README at new siteNeil Williams
Signed-off-by: Neil Williams <neil.williams@linaro.org>
2018-09-27Fix typo in the variable names for sinceNeil Williams
Variable 'start' was being overwritten, causing an error. Signed-off-by: Neil Williams <neil.williams@linaro.org>
2018-09-26Update jobs.pyNeil Williams
2018-09-26Add more output to scheduler.jobs.listNeil Williams
Closes: #104 Add a verbose option to add details of the device and the job result test case. Signed-off-by: Neil Williams <neil.williams@linaro.org>
2018-09-25Updates for the contribution guideNeil Williams
Fix up some artifacts of merge conflicts in the merged branch. Signed-off-by: Neil Williams <neil.williams@linaro.org>
2018-09-21CI: tag the docker images correctlyRémi Duraffort
Every docker images built from master will be pushed as lava/lava/master:GIT_DESCRIBE For tags, the corresponding image will be available at lava/lava:GIT_TAG.
2018-09-21CI: move scripts into a specific folderRémi Duraffort
This allows to simplify the gitlab-ci definition and to run the scripts manualy if needed.
2018-09-21CI: Refactor the test pipelineRémi Duraffort
We are now using 4 stages: test, analyze, build and publish.
2018-09-21CI: build docker images automaticallyRémi Duraffort
2018-09-21Improve indexing and linking for device dictsNeil Williams
Add a section on using lavacli for device dictionaries. Signed-off-by: Neil Williams <neil.williams@linaro.org>
2018-09-21Support building for specific suitesNeil Williams
Developer builds may need to use the dependency requirements of a suite other than the current default of unstable. Signed-off-by: Neil Williams <neil.williams@linaro.org>
2018-09-21Minor doc updatesSteve McIntyre
Fix link in CONTRIBUTING.md Tweaks to wording in naming conventions
2018-09-21CI: use requires.py to build the dependenciesRémi Duraffort
2018-09-20Update copyright of docs.Neil Williams
Signed-off-by: Neil Williams <neil.williams@linaro.org>
2018-09-21Add gitlab ci configurationRémi Duraffort
Expand the start of the current Developer Guide to include the Contribution Guide. Change advice on branches and workflow to the Community Project workflow in gitlab. Update references to files in the git repo. Update README for GitLab Update the support page for lavasoftware.org Update README for GitLab Make it clearer that the CoC is not just for communications on mailing lists etc., but for all behaviour around the LSCP. Signed-off-by: Neil Williams <neil.williams@linaro.org>
2018-09-20requirements: fix indentationRémi Duraffort
2018-09-20Update stretch-backports.yaml for whitespace alignmentNeil Williams
2018-09-20Fix django-tables2 version on stretchRémi Duraffort
The package should come from stretch-backports instead of stretch.
2018-09-19Fix build errors in manpagesNeil Williams
Signed-off-by: Neil Williams <neil.williams@linaro.org>
2018-09-19Remove unused dependencies from calculated requirementsNeil Williams
Remove system dependencies from requirements support as the CI images do not need this list. Retain support for future usage. Signed-off-by: Neil Williams <neil.williams@linaro.org>
2018-09-19Implement split behaviour for Debian backportsNeil Williams
Avoid duplicating listings by conditionally repeating the call for the dependencies. If used for package building, create a combined list covering backports and the corresponding stable suite. If used with --names, only output the dependencies which need to be installed from backports and require a second call by the user to get the list of dependencies needed from the corresponding stable branch. (The call to install from backports requires different command line options.) Refactor to put this specialist knowledge into a specific function for Debian, allow for other functions for other distributions. Signed-off-by: Neil Williams <neil.williams@linaro.org>
2018-09-18Port zmq-client example script to Python3Neil Williams
Improve error handling. Closes: #98 Signed-off-by: Neil Williams <neil.williams@linaro.org>
2018-09-18Fix copy/paste error in 65ba876cb5Neil Williams
Let LXC protocol calls use lists as in base contained an error as self relates to a Protocol object, not an Action. Signed-off-by: Neil Williams <neil.williams@linaro.org>
2018-09-18Use generator expressions when availableRémi Duraffort
When iterating over, using generator expression will use less memory than list comprehension.
2018-09-18Use isinstance() instead of type()Rémi Duraffort
2018-09-18doc: fix most broken linksRémi Duraffort
Found by running "make -C doc/v2 linkcheck"
2018-09-18Support LXC with IoTNeil Williams
Ensure the connection is picked up from the correct namespace when setting the shared namespace data. Closes: #82 Signed-off-by: Neil Williams <neil.williams@linaro.org>
2018-09-18Allow LXC for FRDM-K64F IoT deviceNeil Williams
Provide support for admin operations in an LXC to fix problems when running a lot of IoT jobs. Signed-off-by: Neil Williams <neil.williams@linaro.org>
2018-09-18Fix the name for unstable requirementsNeil Williams
Signed-off-by: Neil Williams <neil.williams@linaro.org>
2018-09-17Move requirements away from pypi toolingNeil Williams
Allow CI processes like LXC and Docker to obtain a list of binary package names for a specified suite of a specified distribution instead of duplicating the knowledge in the Pypi requirements files. Include system dependencies which are not Python. Signed-off-by: Neil Williams <neil.williams@linaro.org>
2018-09-17Remove python2 leftoverRémi Duraffort
In python3, all classes are inheriting from object by default.
2018-09-17Add support for qemu-system-miscNeil Williams
Closes: #100 Signed-off-by: Neil Williams <neil.williams@linaro.org>
2018-09-17CI: use debian-9-packaging from ci-imagesRémi Duraffort
2018-09-17CI: use debian 9 for the coverageRémi Duraffort
Some packages are missing in Debian 10. Also use the new ci-images where pytest coverage is already installed.
2018-09-17Speedup test suite by caching jinja2 environmentsRémi Duraffort
On my machine, the server test suite is now taking 30s instead of 100s.
2018-09-17Let LXC protocol calls use lists as in baseNeil Williams
pre-power and pre-os commands can be lists, allow the LXC protocols to use the commands as lists. Signed-off-by: Neil Williams <neil.williams@linaro.org>
2018-09-14Upgrade doc examples to StretchNeil Williams
Use files.lavasoftware.org and add sha256sum checks. Update prompts to stretch. Signed-off-by: Neil Williams <neil.williams@linaro.org>
2018-09-14Handle cancelled test jobs in get_recent_jobsNeil Williams
Ensure get_recent_jobs_for_device_type can return data if job.actual_device has not been assigned, e.g. whilst in Submitted. Move the hostname check inside the loop Signed-off-by: Neil Williams <neil.williams@linaro.org>