Age | Commit message (Collapse) | Author |
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
When iterating over, using generator expression will use less memory than list
comprehension.
|
|
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>
|
|
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>
|
|
In python3, all classes are inheriting from object by default.
|
|
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>
|
|
Signed-off-by: Neil Williams <neil.williams@linaro.org>
|
|
It isn't possible to download a directory as part of a
LAVA URL. Fail in validate() instead of waiting for a
later failure.
Signed-off-by: Neil Williams <neil.williams@linaro.org>
|
|
Needed to add encode/decode logic due to underlying string type change
to unicode. Would still also work with python2, if that mattered.
Change-Id: If0b4852f05ddb6617a95726ee0d0f3e5b0685c9c
|
|
The sample job could not work without the "port: auto" in NBD protocol.
While this sample job cannot work due to bad http link, at least made it
a good NBD job example.
Change-Id: I52273d6336a9ab5a4259106d896cd0f134161e80
|
|
The message was including the wrong variable.
Change-Id: I163bc30a6d6dce5dc3daf639b81077079cc04606
|
|
Allow admins to add a prefix to the tmp directory names. Instead of using
directly the job_id, allows to use <prefix><job_id>
This will allow admins to run many slaves on the same physical machine. Each
slave serving a different master (and a different lava instance).
Change-Id: I0d333de81cf59dc245fda3db34fff81864e3e19c
|
|
The lava_dispatcher test suite is now faster and resilient to network errors.
Some tests (listed in conftest.py) that do require network access can still use
the network.
Change-Id: I4df941df68df3ac3dd2a8baf617e2dd68cc2ed80
|
|
Add a note to the docs that the posix constants can only be
overridden if 'os' is not specified. Add a unit test for
the same.
Change-Id: I8847a35ffe759e27cbcf276698cc97ef8cbddc49
|
|
This reverts commit 4efd8586a5e8a103f76e9b56abc3a6b9b8a49090.
Change-Id: Ia8945a1250a133434e515dcb7059193ff924f512
|
|
The DUT runs new firmware once flashing via pyocd is completed.
This can be very quick and booting potentially happens before we
even run the connect action. This can cause job failure because
dispatcher misses the booting string (e.g. "BOOTING ZEPHYR OS").
This patch fixes this by moving connect action before flashing.
This has been tested with a 96Boards nitrogen + zephyr firmware.
Update pyocd pipeline refs accordingly.
Change-Id: Icdd48d0913294d2d22f5a7f96fd7a9bb27caebe7
|
|
The iMX8M evk is NXPs new aarch 64 SoC which supports 4k, HDR10
and is supported under the NXP 10 and 15-year Longevity Program.
Ensure that the hard_reset command also resets the USB C connection
using the Cambrionix hub.
Add support for fastboot deployment without changing the
bootloader.
Add support for TFTP deployment using U-Boot.
Change-Id: I3c28c02a69e91f0f8812cd0f5cb416524c6da047
|
|
Fix check for 'os:' in LXC deploy.
Change-Id: I7df7abebaff602b5043742713ecd0b1d2f849d5a
|
|
We can for instance bind /dev/kvm and use kvm inside docker.
Change-Id: I1f04ff81cb1952926a9cc56c9158714961ab1ad5
|
|
Merge in haste, revert at leisure.
This reverts commit 953df9325ae9e8783a141aa7f87686019ef4b938.
Change-Id: I934539b3c325878c76f2db99df398136794e7967
|
|
Change-Id: I1a579ea602c394b0da5489f68b238d5e0984b33d
|
|
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
|
|
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
|
|
If a misconfigured device lacks any commands: then
connection.serial needs to report a validate() error
instead of the current traceback.
Change-Id: I6e3769189bc3388e6efd693356ec3b3cdcf2b6e2
|
|
Change-Id: I3845e9587b2a3df003ad6cee102c4c1dca20715c
|
|
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
|
|
Make this an helper function, called when needed as this is only used by
Android jobs.
Change-Id: I10584f5f37d4edee5b6a8354bbcd5f393d3b4410
|
|
Function only used in one file, move to that file and
drop the import.
Change-Id: Ib91038c972f0cb07f60a3a6f6c7c70ec417b5ef3
|
|
When most env variables are unset, bzr can't determine the current commiter, so
this should be set manually.
Change-Id: Ie2efbf0976af540ebd70150e3a0b791126357b4f
|
|
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
|
|
Change-Id: Idd4d55a81df7a0fd332fdc0d06e23922362370bc
|
|
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
|
|
Change-Id: I9d61efc457fb5e49ac1b3ad56acaa1b453b9cc4a
|
|
device-type is solely for the scheduler to use, based on the
test job submission. The template to use is determined solely
by the {% extends %}
Change-Id: I6325d86e07694b8729a48ed8f47fdb874781ae5f
|
|
Change-Id: Ic5c1b533c3479b4fdb8cbfe56d051022d1efa779
|
|
If a test job requires a pre os command or pre power command
but none is defined for the device, raise a JobError.
Change-Id: I680a0b5462610a6eb9bf13f66330a14d964692b0
|
|
- fixed the logic in get_device_constant() which didnt handle a
constant being set to False
Change-Id: I0f34a437e29073c544cf99659ef5fc8c75985b4e
|
|
Add a new GDB boot method for this device.
Change-Id: I3283950494c540debc14959233b7d42a7fbd1299
|
|
Change-Id: I4b4eefad471e4a268f3ec6a63b34294325755795
|
|
Change-Id: I65533b7a7cb43cb2b8388258abba32cc860755ab
|
|
Change-Id: I41e4ab0f14cae64cc19eccee900a48bb624889bc
|
|
Change-Id: Idb03006480388cab7500a6bfb74a97952bc59598
|
|
Change-Id: I4b3d8df3ab04af5bc3f5aa4a672022d03e665275
|
|
Change-Id: I69dff99e4daea85693fde4786a1fd6e7fbdc8ffc
|
|
Change-Id: I4adbbf6c19ba576235f00f7b06fc6b52d76e0261
|
|
Some warnings may be missed with the --disable-warnings option.
Change-Id: Ic7daab91b6cdb76a42f81368060b4db3b1ee1ebb
|