aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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
2018-07-12Move django signal handlers to the right moduleRémi Duraffort
This might help to sort some circular imports. Change-Id: I9a0bbbf79b6931fa29fd7909ba70da14fd7ec135
2018-07-12Validate timeout format inside test definitionRémi Duraffort
Change-Id: I804bbe05dc281b53b71e2c2d7da11f8c44489387
2018-07-12Fix crash introduced by 792b63adRémi Duraffort
Change-Id: I998e35611479ae7c78e269c0c4aaee76dba619eb
2018-07-11LAVA-1368 provide access to the callback dataNeil Williams
Change-Id: Ib42499f38f1bb86a84844df0afe21d74eb731004
2018-07-11LAVA-419 remove google analyticsRémi Duraffort
Change-Id: I2cbe3ad567e6022bba09474d9db37315794f77f7
2018-07-11LAVA-1338 Handle STARTTC, ENDTC and TESTCASERémi Duraffort
Send to lava-logs a specific message to mark the start and end of the test case --shell or the creation of a result directly using --result or via patterns. Store the corresponding log line in the TestCase. Add documentation on the limitations of this support. Change-Id: I63c1efd9c23cd8b718b8b235fe19f39a214020be
2018-07-11By default, dict.get() default value is NoneRémi Duraffort
Change-Id: I9d61efc457fb5e49ac1b3ad56acaa1b453b9cc4a
2018-07-10Remove support for the old v2 format (output.txt)Rémi Duraffort
This format hasn't been in used since May 2016. Also rename the templates to remove the '_pipeline' suffix. Change-Id: I521150a9f3ec3682f439f2dc940cf6dad482359e
2018-07-10Set out plan for functional testingNeil Williams
Change-Id: Icbf6be082b935dfce8b7e6c0a1dd6be0b66c84c4
2018-07-10Loosen the check on health check visibilityNeil Williams
Only hidden device-types need to have restricted visibility health checks, ensure that restricted devices can have public health checks. (Device restriction only affects who can submit and lava-health is always allowed.) This change prevents admins needing to change health checks when changing a device to restricted submissions for triage purposes. Change-Id: Ie0aedb4858e677c9c9784b2412bc1149dc7cbdff
2018-07-10Fix visibility in pending_jobs_by_device_typeNeil Williams
Exclude non-public TestJobs from the count and exclude hidden device-types from the listing unless the user authenticates and is a superuser. Exclude device-types where all devices are retired. Exclude device-types if display is set to false. Change-Id: I0f885ac03d2dc6c45aeb1f92ada608d01278b3d3