aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-07-24Revert "Raise a JobError when a cmd output is empty"Neil Williams
Merge in haste, revert at leisure. This reverts commit 953df9325ae9e8783a141aa7f87686019ef4b938. Change-Id: I934539b3c325878c76f2db99df398136794e7967
2018-07-24admin: improve listing and update/add pageRémi Duraffort
Also remove an unused function. Change-Id: I4dc396cd69fd35ceabcc8b9b5af32e51fa75f7f1
2018-07-24Raise a JobError when a cmd output is emptyRémi Duraffort
Change-Id: I1a579ea602c394b0da5489f68b238d5e0984b33d
2018-07-24Check downloaded file size against expectedMatt Hart
If the data stream closes during a download, don't just assume the download is finised. If we have an expected size for calculating the progress, use that to check the file has fully downloaded. Change-Id: I7d6790d867151c991286f46deb0ce320bbe39a37
2018-07-24Use OSError when applicableRémi Duraffort
Since python 3.3, IOError, socket.error has been replaced by OSError. See https://docs.python.org/3/library/exceptions.html#OSError Change-Id: I7318cadf729f9072f80b9537a27eec6da057d993
2018-07-23Use contextlib.suppress when applicableRémi Duraffort
Change-Id: Ib4f3c0bd002c95e4a5456c5e45b5f7436907662e
2018-07-23Add and fix license headersRémi Duraffort
Change-Id: I8b4213cb666290e185a6c35a67bf8ca18aecc788
2018-07-20Allow LAVA_DB_USER to contain hyphens2018.7Neil Williams
Change-Id: If77b28ea3b9ecb622fe59504b5526a55b8af943e
2018-07-20Simplify and rationalise log permissionsNeil Williams
Move similar calls into one place, change the directory to have setgid as setuid is ignored. Use python handlers instead of shells. Allow users in the 'adm' group to read all log files and start lava-server manage commands. Drop recursive mode and permission operations, use glob to act on all log files. Change-Id: I563b08a2cacfb6cf6fa4a213deaddb48b30e7c4d
2018-07-20Create but not edit objects in admin interfaceNeil Williams
Device, DeviceType and Worker need to be created in the Django Admin Interface but not allow editing after creation. Change the editable field back but change admin.py to support changing the read_only status based on the call being create or edit. Move latest migration to replace non-editable key changes which are no longer required. Change-Id: Ie5f565d300408e4697738322ec1e42ec42b50ec9
2018-07-20worker: add a link to the admin pageRémi Duraffort
Change-Id: I2655501e4352d7064e9ae940cdcfdb77eab6838a
2018-07-20CosmeticsRémi Duraffort
Change-Id: If24c0e9fdc7c1fd01c1c7bb0590b00bee7b8fdc4
2018-07-20Revert "Make primary key non-editable"Rémi Duraffort
With this patch, it's impossible to create the corresponding objects from the admin UI. This reverts commit 6383230a6327f6c3c9970522e9ed2adbdf2b921e. Change-Id: If6581e9085fbf0e5b84b538fe815188df116f3f7
2018-07-20Output a validation error for missing commands:Neil Williams
If a misconfigured device lacks any commands: then connection.serial needs to report a validate() error instead of the current traceback. Change-Id: I6e3769189bc3388e6efd693356ec3b3cdcf2b6e2
2018-07-19Skip deployment_data test if simg2img not installedNeil Williams
Change-Id: I3845e9587b2a3df003ad6cee102c4c1dca20715c
2018-07-18lava-slave: cosmeticsRémi Duraffort
Change-Id: I51da5b1b20aaca5d2ef1618805c62033e0f21279
2018-07-18LAVA-1381 CLI to copy an existing deviceNeil Williams
Change-Id: Ic98160b15f1300fb7607e9096ee2bbea698c330e
2018-07-18Add further fixes for table searchingNeil Williams
Explicitly import time based modules for lavatable to support querystring searches for start_time and end_time. Ensure the table meta data is returned in the templatetags. Fix typo in tables.html template. Change-Id: I9757d4ec11613ed986cffb0e20d97ab0818f21f5
2018-07-18Exclude Retired devices from warning messagesNeil Williams
Change-Id: I948b6dbab13af0eeea3bea4e01a03a9cffb1bb22
2018-07-18Rationalise deployment_data for Python3Neil Williams
Various corner cases of the pretend dict deployment_data_dict cause issues and failures. Simplify back to a simple dict and fix the default value of the (little used) os-specific install deps. Change-Id: Ibb121b5d4040bb356729adfbbb8828dea24c7793
2018-07-18Device: set default health to HEALTH_MAINTENANCERémi Duraffort
This will make admin's life easier when creating devices from the admin UI. Change-Id: I2237dd6c3ff226361a8783ec3c79ae617453754c
2018-07-18api: log when updating device/worker healthRémi Duraffort
Change-Id: Icc3ef0e6174f86457dd44989e3bc7b3a9d95fbf9
2018-07-18slave: allow to kill the process cleanlyRémi Duraffort
When checking the connectivity with the master, lava-slave should still listen for signal to quit if requested. Change-Id: I5e252686a17bfc289fbd4557f2dcfb73d39f54c0
2018-07-17Add rk3328-rock64 device typeMatt Hart
Change-Id: I645df213647fa35a125389d883bb4732f01d14ad
2018-07-17Remove lxc_cmd_prefix from Action classRémi Duraffort
Make this an helper function, called when needed as this is only used by Android jobs. Change-Id: I10584f5f37d4edee5b6a8354bbcd5f393d3b4410
2018-07-17Add docs on adding devices in offline stateNeil Williams
Fix a typo related to the meta-lava addition. Change-Id: I7fa39348910d63367c279c038a5ffd2c9b4ddc5e
2018-07-17Fix notification token after 1a13b85eRémi Duraffort
Bug found by meta-lava. Change-Id: Idf9a079d2bea30914cc502023d9795abec397573
2018-07-17Make primary key non-editableRémi Duraffort
This is confusing most admins because this is not doing what they expect. When modifying the primary_key of an object, Django will make a copy of the object and change the primary_key of the copy, keeping the original. For instance, when a TestJob is running on a Device, changing the Device hostname will create a copy of the Running Device without any TestJob attached to it. Change-Id: Ic7329156c5f45ccdeb42c1a128981d3e36a9d64d
2018-07-17Prevent admins for creating some objectsRémi Duraffort
TestJob, Query, TestCase, ... should never be created in the admin UI because this might break assumption about some links with other objects. Change-Id: Ia37374f21ad2a1ab94861c09e06642a4662e3ad2
2018-07-16Extend .gitignore for .pytest_cache/Neil Williams
Clean up .pytest_cache in ./ci-run too. Change-Id: I2cd4f533c066663ae6b296a212fe5ba55d01ef2e
2018-07-16Add a section on metalavaNeil Williams
Change-Id: I11bfdc04aa0e6a669508479f13a708778d7e35dc
2018-07-16Fix crash when loader yaml descriptionRémi Duraffort
After the creation of lava_common module, pipeline description are not loadable because they reference the old modules. Fix the module new on the fly. Replace python/name:lava_dispatcher.action.InfrastructureError by python/name:lava_common.exceptions.InfrastructureError Change-Id: I1d3ac9c0ee111c0e1310b7bf0edbec6143293573
2018-07-16Add a few more notes on best practicesNeil Williams
Change-Id: Ib69b00110097f595eb15cf9d9b5d4e0c0b803a00
2018-07-16Make handle_testcase localNeil Williams
Function only used in one file, move to that file and drop the import. Change-Id: Ib91038c972f0cb07f60a3a6f6c7c70ec417b5ef3
2018-07-16Address the Meta data directlyNeil Williams
Older versions of django_tables made this magically available. Drop failing search on device_type tables. Change-Id: I1903b172877fbf6505813d0c5b2dad6d48eac441
2018-07-16dt: improve the warning when hc are disabledRémi Duraffort
Change-Id: Ic435a3334c626475ad834ac4f478c773764f5f84
2018-07-16device-types: add meson-gxm-khadas-vim2Corentin LABBE
Add meson-gxm-khadas-vim2 device-type This patch was tested on lab-baylibre. Change-Id: I158c019723500c348d7331fb128f9f96973cfb03
2018-07-16Fix bzr testsRémi Duraffort
When most env variables are unset, bzr can't determine the current commiter, so this should be set manually. Change-Id: Ie2efbf0976af540ebd70150e3a0b791126357b4f
2018-07-16Allow for 'os' to be optional in deploy actionsNeil Williams
Document that 'os' is approximate when it is used. Document when it is still required. Document that other uses are deprecated. Allow the overlay to pick up common POSIX constants. Change-Id: I1f7c8f27615cd33a8d2b505a3f0563373f8111f4
2018-07-13Fix crash after 210140b0Rémi Duraffort
Url lava.scheduler.job.complete_log does not exist anymore. Change-Id: I2b082aaad90f414f1372fdc695afee6742b22a1c
2018-07-13Port 41747ab2 to android lava-test-runnerRémi Duraffort
Change-Id: Idd4d55a81df7a0fd332fdc0d06e23922362370bc
2018-07-13Do not crash when description.yaml is not readableRémi Duraffort
Change-Id: I8d007fa7ccd514a901661ebcf0ad4cb6ff77c186
2018-07-13device-types: Remove no-op blockRémi Duraffort
If a block is not specified, the parent is automaticcaly added. Change-Id: Ia1fc1ce66f294c224db04395dadbeb94add99897
2018-07-13Add coverage default configurationRémi Duraffort
Change-Id: Iefd9df6830251e300d85a911727ab28a2b79958a
2018-07-13Remove unused sourcesRémi Duraffort
Change-Id: I6154819210bff5d816f6c385a19257a4604da76e
2018-07-12device-types: convert tegra124-nyan-big to DepthchargeGuillaume Tucker
The standard bootloader for the tegra124-nyan-big Chromebook is Depthcharge, so update its device type accordingly now that it has been tested with LAVA with these firmware config values: CONFIG_BASE_ADDRESS=0x85000000 CONFIG_HEAP_SIZE=0x00800000 CONFIG_KERNEL_START=0x82000000 CONFIG_KERNEL_SIZE=0x3000000 This allows the device to boot using a FIT image with an initramfs and a mainline kernel built with multi_v7_defconfig. Change-Id: Ifc699769fe7e64311a764a47825cae689dd49e4f Signed-off-by: Guillaume Tucker <guillaume.tucker@collabora.com>
2018-07-12LAVA-952 per dispatcher configurationRémi Duraffort
Support env.yaml and env.dut.yaml in dispatcher-specific directories, /etc/lava-server/dispatcher.d/<hostname> to allow setting values like HTTP_PROXY per dispatcher. If absent lava-master will fallback to instance-wide files in /etc/lava-server/ Change-Id: I85a13cf638771ebfc36fec343e0df4e31c69c4f0
2018-07-12master: remove unused optionsRémi Duraffort
Change-Id: I2229a3cd97262fbfa590e15143d104ffd9754e10
2018-07-12Use reverse relations to break some cyclic-importsRémi Duraffort
We should avoid importing lava_results_app.models from lava_scheduler_app.models. Change-Id: Ib75c149b8fcada2a94fc27c9d10085b87f95e3ca
2018-07-12Move notifications to a specific fileRémi Duraffort
This will help to sort circular imports. Change-Id: I6ab4ea3a451802509f8d580dc3d7d17c6970817b