vcswatch reports that
this package seems to have a new changelog entry (version
2023.02-1, distribution
unstable) and new commits
in its VCS. You should consider whether it's time to make
an upload.
Here are the relevant commit messages:
commit 122d39ce372bc7ec1cfb17e3324a3ff8bc23d347
Merge: 09837ae91 027582147
Author: Rémi Duraffort <remi.duraffort@linaro.org>
Date: Tue Mar 28 15:34:40 2023 +0000
Merge branch 'fix-run-command-deprecated-in-unittests' into 'master'
tests: Fix uses of deprecated `Action.run_command`
See merge request lava/lava!2060
commit 09837ae914a93ce0611114d277687a91dd6dff4b
Merge: cc09502a1 deae04e57
Author: Rémi Duraffort <remi.duraffort@linaro.org>
Date: Tue Mar 28 15:33:36 2023 +0000
Merge branch 'reorganize-tests-junit' into 'master'
Generate one junit report per CI job (+pytest color output)
See merge request lava/lava!2059
commit 02758214742d049f65c5e03a6fd0b9458709ce14
Author: Igor Ponomarev <igor.ponomarev@collabora.com>
Date: Mon Mar 27 19:06:13 2023 +0600
tests: Separate bad schroot name test from test_schroot_params
`test_schroot_params` seems to be always skipped but the test
of bad schroot name is still useful to check command parsing.
commit 4cb5bcacd1dd8f42918b363724a2005a84f0fd05
Author: Igor Ponomarev <igor.ponomarev@collabora.com>
Date: Mon Mar 27 18:10:41 2023 +0600
test_schroot_params: Replace the use of deprecated `run_command`
Instead use new `parsed_command`.
The `parsed_command` saves the output to `.results["output"]`.
This means the action will no longer become invalid when a
subprocess raises an non-zero exit code. Instead of checking
`.valid` check the return code is equals to zero.
Also remove check of schroot name. If the name of the schroot
changes in `ssh-deploy.yaml` this will cause errors. There is
no point in checking for a specifc specific name.
commit c7bc6ff9b96b155049ebc50a6048d8763e272ea5
Author: Igor Ponomarev <igor.ponomarev@collabora.com>
Date: Mon Mar 27 17:32:08 2023 +0600
tests: Assert that using Action.run_command warns DeprecationWarning
The `run_command` is deprecated but it is still relevant to test
it so that existing test pipelines don't break.
Asserting that warning is raised will silence the DeprecationWarning
in tests and ensures that it is actually raised by the code.
commit deae04e57831d640bd310a58bc17126caf11a930
Author: Igor Ponomarev <igor.ponomarev@collabora.com>
Date: Mon Mar 27 15:15:36 2023 +0600
Enable pytest color output in CI
Gitlab can process terminal escape sequences to color the output.
commit 82b72317a73a18f2e9f5efe0f3b2718fcc4a3e1b
Author: Igor Ponomarev <igor.ponomarev@collabora.com>
Date: Mon Mar 27 15:05:39 2023 +0600
Generate one junit report per CI job
There is no functional benefit to splitting junits to different
files and Gitlab will simply add them together.
However, running all tests in one command per job has benefits
of a single warning summary and a simplified shell script where
pytest options are only specified once.
commit cc09502a184cfad1d3bcbb06d25a29dc0a1117d8
Merge: 7e391a744 41f78653f
Author: Rémi Duraffort <remi.duraffort@linaro.org>
Date: Mon Mar 27 08:11:47 2023 +0000
Merge branch 'enable-warnings-for-unittests' into 'master'
Enable warnings when running unit tests in CI
See merge request lava/lava!2055
commit 7e391a744cad234f78d568c5000b8aa670636bde
Merge: 07d6f54d4 2ada17204
Author: Rémi Duraffort <remi.duraffort@linaro.org>
Date: Mon Mar 27 08:10:40 2023 +0000
Merge branch 'sjoerd/rock5b-upstream' into 'master'
Add device template for Radxa Rock 5b
See merge request lava/lava!2056
commit 07d6f54d49249901136b59ce632be245528d169e
Merge: f22ca659c b9a374e90
Author: Rémi Duraffort <remi.duraffort@linaro.org>
Date: Mon Mar 27 08:10:02 2023 +0000
Merge branch 'fix-unclosed-files-in-dispatcher-tests' into 'master'
tests: Fix unclosed files in lava dispatcher tests
See merge request lava/lava!2058
commit b9a374e90173007ef0dc9d68e2885f786634f690
Author: Igor Ponomarev <igor.ponomarev@collabora.com>
Date: Mon Mar 27 10:46:57 2023 +0600
tests: Fix unclosed files in lava dispatcher tests
This is equivalent to c838eafe6a491159711a1d7ce5869ad995b300c9
but for lava dispatcher tests.
commit 2ada17204d74838e5d24e7dea3cad3acbaf68d7f
Author: Sjoerd Simons <sjoerd@collabora.com>
Date: Fri Mar 3 18:36:33 2023 +0100
Add device template for Radxa Rock 5b
Signed-off-by: Sjoerd Simons <sjoerd@collabora.com>
commit 41f78653f52ac418c4e4454ca2435c7abacc36d8
Author: Igor Ponomarev <igor.ponomarev@collabora.com>
Date: Fri Mar 24 16:14:58 2023 +0600
Enable warnings when running unit tests in CI
By default pytest does not show all warnings.
Set warning setting to `default` which means displaying warning
once per location.
commit f22ca659c4c60cd97e6f523a21223b7ca942ad8f
Merge: 3875de9a5 622b4bedc
Author: Rémi Duraffort <remi.duraffort@linaro.org>
Date: Fri Mar 24 08:22:09 2023 +0000
Merge branch 'uuu/bcu-skip-serial-check' into 'master'
uuu: Skip SDP check & bootloader corrup action with bcu
See merge request lava/lava!2019
commit 3875de9a5d02b678f7aa9d1d3736730e580d4049
Merge: c2fc7bccb e23ac5ce4
Author: Rémi Duraffort <remi.duraffort@linaro.org>
Date: Fri Mar 24 08:19:20 2023 +0000
Merge branch 'lava-server-dbutils-annotate-int-field-verbose' into 'master'
Introduce annotate_int_field_verbose function
See merge request lava/lava!2009
commit c2fc7bccb424af18aa45f76328d4fede3bcc8b3b
Merge: 8c45f71a7 ac8829727
Author: Rémi Duraffort <remi.duraffort@linaro.org>
Date: Fri Mar 24 08:11:40 2023 +0000
Merge branch 'StefanG/system_templates' into 'master'
lava_scheduler_app: Remove mention of system templates in tests
See merge request lava/lava!2039
commit 8c45f71a739517e4d45df3ad0318a5ce52aa58fc
Merge: c657173b5 e87949cbe
Author: Rémi Duraffort <remi.duraffort@linaro.org>
Date: Fri Mar 24 08:04:52 2023 +0000
Merge branch 'create-static-files-dev-directory' into 'master'
Create static files directory when using dev settings
See merge request lava/lava!2051
commit ac88297272fea4b38028125d1f83f5b407eb0e8a
Author: Stefan Gänsler <git.lavasoftware.org_23@green-sparklet.de>
Date: Fri Mar 3 13:21:02 2023 +0100
lava_scheduler_app: Remove mention of system templates in tests
With ae4d4776c jinja_template_path was removed and prepare_jinja_template( lost path parameter and thus functionality to read local templates. So system variable in test is dead code, remove it and remove comments mentioning it.
commit e87949cbe239b06113f75dedf778712be38a8aa0
Author: Igor Ponomarev <igor.ponomarev@collabora.com>
Date: Thu Mar 23 15:27:09 2023 +0600
Create static files directory when using dev settings
This fixes most of the warnings when running unit tests.
The issue was that because static files directory did not exist
whitenoise file server would raise a warning.
commit c657173b5cd37200376c1a3ebece37a1759007b9
Merge: 73a997d9f 607286ae1
Author: Rémi Duraffort <remi.duraffort@linaro.org>
Date: Thu Mar 23 09:02:16 2023 +0000
Merge branch 'docker-worker-crash' into 'master'
worker: wait 5s before newt PING when the server crashes
See merge request lava/lava!2050
commit 73a997d9f7a8123eb66fea18f6ab0830b5e65e4c
Merge: 507ec4ffe c838eafe6
Author: Rémi Duraffort <remi.duraffort@linaro.org>
Date: Thu Mar 23 08:38:57 2023 +0000
Merge branch 'tests-fix-unclosed-file' into 'master'
tests: Fix unclosed file descriptors
See merge request lava/lava!2047
commit 607286ae1e66a2272d2d8f82e79911e667046332
Author: Rémi Duraffort <remi.duraffort@linaro.org>
Date: Mon Mar 6 17:42:15 2023 +0100
worker: wait 5s before newt PING when the server crashes
Signed-off-by: Rémi Duraffort <remi.duraffort@linaro.org>
commit 507ec4ffebcf3961e590316f179fa0c7e040bc73
Merge: 7f0cd4cb8 140cf79f8
Author: Fathi Boudra <fathi.boudra@linaro.org>
Date: Wed Mar 22 20:44:33 2023 +0000
Merge branch 'nodebooter-mac-address-handling' into 'master'
Nodebooter should take mac_address from device config.
See merge request lava/lava!2046
commit c838eafe6a491159711a1d7ce5869ad995b300c9
Author: Igor Ponomarev <igor.ponomarev@collabora.com>
Date: Wed Mar 22 16:44:28 2023 +0600
tests: Fix unclosed file descriptors
Use `with open(...) as f` expression to clean-up file objects.
This fixes the `ResourceWarning: unclosed file` warnings.
commit 140cf79f80e26346f79a6d6fcd0bce7590114aa3
Author: Stevan Radaković <stevan.radakovic@linaro.org>
Date: Wed Mar 22 11:30:26 2023 +0100
Nodebooter should take mac_address from device config.
Take `device_mac` parameter from device config to define the DUT
mac address requested by nodebooter.
Signed-off-by: Stevan Radaković <stevan.radakovic@linaro.org>
commit 7f0cd4cb858e56c6da450062300d3913b49d29e9
Merge: d088727ee d0094ced8
Author: Antonio Terceiro <antonio.terceiro@linaro.org>
Date: Tue Mar 21 14:40:38 2023 +0000
Merge branch 'fix-lava-mac' into 'master'
boot: fix check for lava_mac
See merge request lava/lava!2040
commit d088727ee084e19804ca8903af255db1b7a60b6d
Merge: 35b0bea9e 3011f525c
Author: Rémi Duraffort <remi.duraffort@linaro.org>
Date: Tue Mar 21 13:56:29 2023 +0000
Merge branch 'nodebooter-method' into 'master'
lava_dispatcher: Add nodebooter boot action
See merge request lava/lava!2008
commit 3011f525cb8c09c21ec1444ef8ac41c27bf656f5
Author: Stevan Radaković <stevan.radakovic@linaro.org>
Date: Tue Feb 28 08:00:08 2023 +0100
lava_dispatcher: Add nodebooter boot action
Nodebooter action will start the nodebooter container, configure
it, add the DUT via API to nodebooter and reset the device to be
netbooted by nodebooter.
Signed-off-by: Stevan Radaković <stevan.radakovic@linaro.org>
commit 35b0bea9e34c6d5f8c9d011c6a98bf27828c79c4
Merge: 0f306c071 f9c56044a
Author: Rémi Duraffort <remi.duraffort@linaro.org>
Date: Tue Mar 21 10:45:47 2023 +0000
Merge branch 'xmlrpc-charset' into 'master'
xmlrpc: set the right http charset (utf-8)
See merge request lava/lava!2042
commit 0f306c0711786f80fcb097202536b615214101fa
Merge: 9fce47032 a08ef1a87
Author: Rémi Duraffort <remi.duraffort@linaro.org>
Date: Tue Mar 21 10:34:03 2023 +0000
Merge branch 'hide_retired_device' into 'master'
Hide retired devices attached to worker.
See merge request lava/lava!2033
commit 9fce47032038fa67f1911c610b2e4a16c298257b
Merge: 2cb96f064 3e5e903e5
Author: Rémi Duraffort <remi.duraffort@linaro.org>
Date: Tue Mar 21 10:27:06 2023 +0000
Merge branch 'bst/imx8mm-innocomm-wb15-evk' into 'master'
device-types: add imx8mm-innocomm-wb15-evk
See merge request lava/lava!2037
commit 2cb96f064551d1114ea6cbf921972e1c98bfb89a
Merge: c91a6ab14 18aee35b6
Author: Rémi Duraffort <remi.duraffort@linaro.org>
Date: Tue Mar 21 10:25:15 2023 +0000
Merge branch 'lava-dispatcher-worker-remove-unused-enable-future-annotations' into 'master'
lava_dispatcher/worker.py: Enable postponed annotations and remove un-used constant
See merge request lava/lava!1980
commit c91a6ab149c7fed43571e6037f3a3c6236414766
Merge: 0c897ae40 e2bfbdb18
Author: Rémi Duraffort <remi.duraffort@linaro.org>
Date: Tue Mar 21 10:16:14 2023 +0000
Merge branch 'is-permission-restricted-use-exists' into 'master'
Use exists() instead of count() for is_permission_restricted
See merge request lava/lava!2035
commit f9c56044a46b33cbd9b4326910e580a60035de35
Author: Rémi Duraffort <remi.duraffort@linaro.org>
Date: Mon Mar 20 09:16:56 2023 +0100
xmlrpc: set the right http charset (utf-8)
Signed-off-by: Rémi Duraffort <remi.duraffort@linaro.org>
commit d0094ced8bc8d7b2332ccc6c3ee6eb9281fa90e1
Author: Antonio Terceiro <antonio.terceiro@linaro.org>
Date: Fri Mar 17 16:12:32 2023 -0300
boot: fix check for lava_mac
The lava_mac key can be there but with no value, in which case it will
be None and will cause the regex match to crash because the input is
neither str or bytes.
commit 0c897ae40b9e846498fa7d0485913fcd66add5e3
Merge: 23cae1093 e433b791e
Author: Antonio Terceiro <antonio.terceiro@linaro.org>
Date: Fri Mar 17 16:02:16 2023 +0000
Merge branch 'fix-custom-lava-test-results-dir' into 'master'
apply_overlay: fix applying overlay to a custom directory
See merge request lava/lava!2038
commit e433b791eade7b507a232722b5442fe787985f1b
Author: Antonio Terceiro <antonio.terceiro@linaro.org>
Date: Thu Mar 16 23:05:06 2023 -0300
apply_overlay: fix applying overlay to a custom directory
The test directory, which defaults to /lava-%s (where %s gets replaced
by the job ID), can be overriden like this:
context:
lava_test_results_dir: /var/lib/lava-%s
When compressing the artifacts, apply_overlay would only include the
last component in the tarball, and would extract it to /
unconditionally, what breaks the possibility to actually use a custom
directory that is not directly under /. This fixes it by extracting the
tarball to the original parent directory.
commit 23cae109368387783a4b5c3525f07038c4f9b225
Merge: 28aba12d0 4fb86ea52
Author: Rémi Duraffort <remi.duraffort@linaro.org>
Date: Thu Mar 16 14:18:18 2023 +0000
Merge branch 'wait-job-finish' into 'master'
lava-worker: add signal handler for SIGINT and SIGTERM
See merge request lava/lava!2036
commit 3e5e903e5ff315553cf2e534d8b49d06b6431b09
Author: Bastian Krause <bst@pengutronix.de>
Date: Wed Mar 8 16:04:49 2023 +0100
device-types: add imx8mm-innocomm-wb15-evk
Signed-off-by: Bastian Krause <bst@pengutronix.de>
commit 4fb86ea52bb43798e050498829449d3bd5a57f5a
Author: Chase Qi <chase.qi@linaro.org>
Date: Thu Mar 16 15:47:22 2023 +0800
lava-worker: add signal handler for SIGINT and SIGTERM
Cancel async tasks on SIGINT/SIGTERM signal. await cancelled task
throws asyncio.CancelledErro. LAVA worker waits for job to finish
on the exception.
Signed-off-by: Chase Qi <chase.qi@linaro.org>
commit e2bfbdb182b3b1263c0a3109e71aa2f07497ae83
Author: Igor Ponomarev <igor.ponomarev@collabora.com>
Date: Wed Mar 15 18:02:16 2023 +0600
Use exists() instead of count() for is_permission_restricted
There is no point in counting all permissions if the final count
will only be compared to zero.
Instead of use exists() which returns True as soon as first
permission encountered.
Gives +10% performance boost even on small permission tables
and much larger boost for large permission tables.
commit a08ef1a878b0c0fb9aa87470d67215410c3118ac
Author: Larry Shen <larry.shen@nxp.com>
Date: Wed Mar 15 14:07:26 2023 +0800
Hide retired devices attached to worker.
Signed-off-by: Larry Shen <larry.shen@nxp.com>
commit 28aba12d04b4a96b13c74193b303eb8833d66103
Merge: 95952c8c6 d910f9120
Author: Rémi Duraffort <remi.duraffort@linaro.org>
Date: Tue Mar 14 11:36:20 2023 +0000
Merge branch 'ping-server-log-debug' into 'master'
lava_dispatcher: worker: demote server ping trace from info to debug
See merge request lava/lava!2031
commit d910f91200e3da61883507b051c7ee639519f5e1
Author: Fathi Boudra <fathi.boudra@linaro.org>
Date: Tue Mar 14 12:07:23 2023 +0100
lava_dispatcher: worker: demote server ping trace from info to debug
lava-docker-worker.log reaches 1M after 3 days due to the server ping
traces. Reduce the log from info to debug.
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
commit 95952c8c6f75ed2540fd25e7c4ae8ca729f33c87
Merge: e9ce4d696 e836e2605
Author: Rémi Duraffort <remi.duraffort@linaro.org>
Date: Tue Mar 14 08:47:53 2023 +0000
Merge branch 'add-nodebooter-action' into 'master'
Add nodebooter action support to base-grub template
See merge request lava/lava!2028
commit e9ce4d69662d82512a383a5b40e394ab6bf420da
Merge: a8d08af04 7ebcfced4
Author: Rémi Duraffort <remi.duraffort@linaro.org>
Date: Tue Mar 14 08:46:56 2023 +0000
Merge branch 'worker_api' into 'master'
api/worker: skip retired workers by default.
See merge request lava/lava!2029
commit a8d08af04dc42a6d8e99019429a5419f83a62257
Merge: 90c559a41 c7b48cc42
Author: Rémi Duraffort <remi.duraffort@linaro.org>
Date: Tue Mar 14 08:45:32 2023 +0000
Merge branch 'docker-worker-reboot' into 'master'
lava-docker-worker: start/shutdown after containerd.service
See merge request lava/lava!2030
commit c7b48cc4202aa9259164612d8d06e7661f538392
Author: Chase Qi <chase.qi@linaro.org>
Date: Tue Mar 14 12:26:25 2023 +0800
lava-docker-worker: start/shutdown after containerd.service
containerd -> docker -> lava-docker-worker is the right sequence to start
or shutdown lava docker worker. When the sequence is not well defined,
system reboot will take a long time.
Signed-off-by: Chase Qi <chase.qi@linaro.org>
commit 7ebcfced498e3e9b806c7947ef8c5326c436f052
Author: Larry Shen <larry.shen@nxp.com>
Date: Tue Mar 14 10:40:10 2023 +0800
tests: verify improved worker list api.
Signed-off-by: Larry Shen <larry.shen@nxp.com>
commit e836e2605050c187a419b59be533d82eb6992450
Author: Stevan Radaković <stevan.radakovic@linaro.org>
Date: Mon Mar 13 15:00:57 2023 +0100
Add nodebooter action support to base-grub template
This will allow admins to set has_nodebooter parameter in
device type config in order to add nodebooter support for that
device type.
Syntax: {% set has_nodebooter = True %}
Signed-off-by: Stevan Radaković <stevan.radakovic@linaro.org>
commit 37cc6ce36447f318125f2bf075471c98a7c444ab
Author: Larry Shen <larry.shen@nxp.com>
Date: Mon Mar 13 21:16:12 2023 +0800
api/worker: skip retired workers by default.
Signed-off-by: Larry Shen <larry.shen@nxp.com>
commit 90c559a4173e5e9e4d6f7427baa6aedd9f4dd15b
Merge: 6675c4bbd c109fdbcc
Author: Rémi Duraffort <remi.duraffort@linaro.org>
Date: Mon Mar 13 07:42:05 2023 +0000
Merge branch 'black-23.1.0-reformat' into 'master'
Reformat source code against black 23.1.0
See merge request lava/lava!2027
commit c109fdbcca64baab40897c755c450d56cd57dcdc
Author: Igor Ponomarev <igor.ponomarev@collabora.com>
Date: Mon Mar 13 11:11:00 2023 +0600
Reformat source code against black 23.1.0
Recent black version has several new formatting features like
removing redundant brackets.
commit 6675c4bbdc06a6d79ae7bba413becef5114222f3
Merge: c4c867a3f a41231d9e
Author: Rémi Duraffort <remi.duraffort@linaro.org>
Date: Fri Mar 10 14:52:39 2023 +0000
Merge branch 'docker-worker-sleep' into 'master'
lava-docker-worker: sleep 5s when connecting to server fails
See merge request lava/lava!2025
commit a41231d9efb6ca5a146c7621ae4dee2c46fdf78d
Author: Rémi Duraffort <remi.duraffort@linaro.org>
Date: Fri Mar 10 15:27:46 2023 +0100
lava-docker-worker: sleep 5s when connecting to server fails
Signed-off-by: Rémi Duraffort <remi.duraffort@linaro.org>
commit c4c867a3f468a1b32e2f4c97b89e56f19a02fd8c
Merge: 232cb76bd 28993c171
Author: Rémi Duraffort <remi.duraffort@linaro.org>
Date: Fri Mar 10 12:08:46 2023 +0000
Merge branch 'stefang/device_fix' into 'master'
device: Fix uncaught configuration error
See merge request lava/lava!2017
commit 232cb76bd8fd7c04b813a0f4f2e29355de785ad4
Merge: 1e760c244 758d482ef
Author: Rémi Duraffort <remi.duraffort@linaro.org>
Date: Fri Mar 10 11:58:26 2023 +0000
Merge branch 'test-case-test-suite-superuser-permission-shortcut' into 'master'
Add permission shortcut for superusers viewing test cases and suites
See merge request lava/lava!2015
commit 1e760c2446585f16882aee2572b43fbcc36f95cd
Merge: c7eb5c6fb f122c67d2
Author: Rémi Duraffort <remi.duraffort@linaro.org>
Date: Fri Mar 10 11:54:44 2023 +0000
Merge branch 'doc' into 'master'
doc: fix a typo in docker installation
See merge request lava/lava!2022
commit c7eb5c6fb53474c07b95c797803a6b32c3750649
Merge: 1acf7350e 482dab8cd
Author: Rémi Duraffort <remi.duraffort@linaro.org>
Date: Fri Mar 10 11:51:01 2023 +0000
Merge branch 'docker-worker-reboot' into 'master'
lava-docker-worker: start the service after docker.service
See merge request lava/lava!2024
commit 482dab8cd73d6eb8d4822a6c84d87dd76888cace
Author: Chase Qi <chase.qi@linaro.org>
Date: Fri Mar 10 13:52:59 2023 +0800
lava-docker-worker: start the service after docker.service
lava-docker-worker depends on docker. Without the service startup and
shutdown order, system reboot/shutdown may stop docker service before
lava-docker-worker. When this happen, it takes a long time to stop
lava-docker-worker.
Recommand to use `docker.io` as there are multiple ways and packages for
installing docker.
Signed-off-by: Chase Qi <chase.qi@linaro.org>
commit 622b4bedcb66e3d69162ce305c86cff442fc11ca
Author: Thomas Mahé <thomas.mahe@nxp.com>
Date: Wed Mar 8 17:12:14 2023 +0100
docs: action-boot note added describing skipped actions with bcu
commit c6504da3b82f8b316ba4050989cf2e60b70681dc
Author: Thomas Mahé <thomas.mahe@nxp.com>
Date: Thu Mar 9 10:35:28 2023 +0100
Tests: uuu - Skip serial availability on bcu only mode
Serial availability is skipped when first command of uuu is `bcu: reset usb` or when uuu block contain only bcu protocol.
unittest.mock patching reworked
commit 8512cb35306643a945262847676e62bf7de10768
Author: Thomas Mahé <thomas.mahe@nxp.com>
Date: Fri Mar 10 09:07:49 2023 +0100
dispatcher: actions.boot.uuu - Skip serial availability on bcu only mode
Required to recover devices with broken bootloader/boot sequence
commit 1acf7350e99172503109042d7caf3cdfbd699ef9
Merge: 07770b2e9 09279aea7
Author: Rémi Duraffort <remi.duraffort@linaro.org>
Date: Fri Mar 10 07:59:38 2023 +0000
Merge branch 'wip/berknip-support' into 'master'
device-types: add hp-14b-na0052xx-zork
See merge request lava/lava!2020
commit 07770b2e953f7912627b0faa816c7a013d90870a
Merge: 305e82895 fc042b7d3
Author: Rémi Duraffort <remi.duraffort@linaro.org>
Date: Fri Mar 10 07:54:06 2023 +0000
Merge branch 'validate_doc_amend' into 'master'
doc: fix wrong validate debug command.
See merge request lava/lava!2021
commit f122c67d24da3deec007eb6aa6f81fe977923f1e
Author: Chase Qi <chase.qi@linaro.org>
Date: Fri Mar 10 13:43:53 2023 +0800
doc: fix a typo in docker installation
Signed-off-by: Chase Qi <chase.qi@linaro.org>
commit 09279aea722d0edbdc11a4466c2e14991fc88c8e
Author: Laura Nao <laura.nao@collabora.com>
Date: Wed Mar 8 16:12:43 2023 +0100
device-types: add hp-14b-na0052xx-zork
Add device type template for the HP 14b-na0052xx berknip Chromebook.
Signed-off-by: Laura Nao <laura.nao@collabora.com>
commit fc042b7d360d1f4258a45b43bbb586958b3e249c
Author: Larry Shen <larry.shen@nxp.com>
Date: Wed Mar 8 15:29:54 2023 +0800
doc: fix wrong validate debug command.
There is no `lava-dispatch` command, should be `lava-run`.
Signed-off-by: Larry Shen <larry.shen@nxp.com>
commit 305e82895f10f07c15c734056946293b2c838e69
Merge: 85d1b81ab f64636f28
Author: Rémi Duraffort <remi.duraffort@linaro.org>
Date: Tue Mar 7 13:19:42 2023 +0000
Merge branch 'white-list-system-version' into 'master'
RequireLogin: white list /api/v0.2/system/version/
See merge request lava/lava!2016
commit 28993c171e62d3ac10dfaab1bfe49da5d54ab7dc
Author: Stefan Gänsler <git.lavasoftware.org_23@green-sparklet.de>
Date: Tue Mar 7 14:12:44 2023 +0100
device: Fix uncaught configuration error
Signed-off-by: Stefan Gänsler <git.lavasoftware.org_23@green-sparklet.de>
commit f64636f282a54faf94ac0a71a8a0c56d63be454c
Author: Rémi Duraffort <remi.duraffort@linaro.org>
Date: Tue Mar 7 13:52:42 2023 +0100
RequireLogin: white list /api/v0.2/system/version/
This endpoint is used (as anonymous) by lava-docket-worker to get the server
version.
Also only accept /v1/healthz/ but not the subpaths.
Signed-off-by: Rémi Duraffort <remi.duraffort@linaro.org>
commit 758d482ef7e948905c2655b7547612e1faff1dc0
Author: Igor Ponomarev <igor.ponomarev@collabora.com>
Date: Tue Mar 7 17:57:36 2023 +0600
Add permission shortcut for superusers viewing test cases and suites
The superusers can already view all the jobs so there should not
be any test cases or suites that superusers should not be able
to view.
commit 85d1b81abcd658c50bd583f625684cadc9b512c5
Merge: d1af5dd07 389323a9a
Author: Rémi Duraffort <remi.duraffort@linaro.org>
Date: Tue Mar 7 09:50:39 2023 +0000
Merge branch 'gunicorn-healthz' into 'master'
Add /v1/healthz endpoint
See merge request lava/lava!2014
commit 389323a9a13e6b799f03601f153a1994670a5864
Author: Rémi Duraffort <remi.duraffort@linaro.org>
Date: Mon Mar 6 18:09:41 2023 +0100
Add /v1/healthz endpoint
The endpoint is doing a simple query on the database.
Signed-off-by: Rémi Duraffort <remi.duraffort@linaro.org>
commit 375f06eea1631b105822eddd16c767c03a15a90c
Author: Rémi Duraffort <remi.duraffort@linaro.org>
Date: Mon Mar 6 17:57:17 2023 +0100
LavaRequireLoginMiddleware: simplify logic
Signed-off-by: Rémi Duraffort <remi.duraffort@linaro.org>
commit d1af5dd07da05bfa3e1f029dafc33c363cdc8c31
Merge: 95564240b 4743b3198
Author: Rémi Duraffort <remi.duraffort@linaro.org>
Date: Tue Mar 7 09:22:22 2023 +0000
Merge branch 'fix_finish_check' into 'master'
worker: let worker not blocked by exception job.
See merge request lava/lava!2013
commit 95564240b40664e28650a17e4722e108a2cefdeb
Merge: dde08c5b0 2bf0f1ea5
Author: Rémi Duraffort <remi.duraffort@linaro.org>
Date: Tue Mar 7 09:20:53 2023 +0000
Merge branch 'jobs-compress-improve' into 'master'
Improve `jobs compress` command performance
See merge request lava/lava!2012
commit 4743b3198d747c48d06921b8abc1d8aa5a20f5ac
Author: Larry Shen <larry.shen@nxp.com>
Date: Tue Mar 7 14:16:18 2023 +0800
worker: let worker not blocked by exception job.
Signed-off-by: Larry Shen <larry.shen@nxp.com>
commit 2bf0f1ea59e98029d7ca2170155c94df84ea8276
Author: Igor Ponomarev <igor.ponomarev@collabora.com>
Date: Mon Mar 6 16:40:06 2023 +0600
Jobs compress: Only fetch required fields from database
To compress job outputs only pk, end_time, submit_time are required.
Fetching only required field from database can significantly
improve the cursor iterator performance. Simple test shows that
a 30 seconds query went to sub 1 second on reducing the amount
of fields fetched.
commit 10d5e25dccf0e43198f39a9f21641193738e5bdc
Author: Igor Ponomarev <igor.ponomarev@collabora.com>
Date: Mon Mar 6 16:32:44 2023 +0600
Jobs compress: Print number of compressed jobs after compression
Counting jobs is very slow with database server. Instead the last
index of the loop can be used to deduct the total number of jobs.
commit ef8c7692f9203537e6aefef9409e5d16ba2bf08d
Author: Igor Ponomarev <igor.ponomarev@collabora.com>
Date: Mon Mar 6 16:28:12 2023 +0600
tests: Add test to job log compression
Runs the `jobs compress` command to test if the jobs compress
correctly.
commit 531404c6a087f2656477ab4659814ffb20e48b5c
Author: Igor Ponomarev <igor.ponomarev@collabora.com>
Date: Mon Mar 6 13:40:34 2023 +0600
Jobs compress: Use explicit iterator over jobs
By default `enumerate(jobs)` would fetch ALL THE JOBS from the
database. This caused an excessive amount of RAM usage.
By explicitly calling the `iterator` the enumeration will become
lazy and only 100 jobs at the time would be fetched from database.
commit e23ac5ce43dda91b6d978c6206ac5a2015fc935e
Author: Igor Ponomarev <igor.ponomarev@collabora.com>
Date: Tue Feb 28 12:55:35 2023 +0600
Introduce annotate_int_field_verbose function
It will be used to convert the int field values to the verbose
names.
Example:
Device.health -> 4 -> "Maintenance"
Usuallt the get_FOO_display can be used to get the verbose name
but that requires fetching the entire model which is not available
when values() or values_list() is used.
Instead the When-Case-Values construct can be used to annotate
with verbose name the values on the database. The
`annotate_int_field_verbose` will create those annotations using
the Django field metadata.
This technique was already used in 2be1e2b207f93f0a82306fabe9f8b302f377a6ab
but is now in a separate function and can be applied to other
tables.
commit 18aee35b61b43a1a5357859a6c8b4736593f3e3e
Author: Igor Ponomarev <igor.ponomarev@collabora.com>
Date: Thu Feb 16 20:04:07 2023 +0600
lava_dispatcher/worker.py: Enable postponed annotations
Postponed annotations improve start-up speed and ensures compatibility
with future python versions.
commit 1cada3c0c8ab56a4d9a5e85471af787f395e9d78
Author: Igor Ponomarev <igor.ponomarev@collabora.com>
Date: Thu Feb 16 20:03:06 2023 +0600
lava_dispatcher/worker.py: Remove unused constant