Age | Commit message (Collapse) | Author | Files | Lines |
|
On my gentoo, using yaml.load now give:
Traceback (most recent call last):
File "./utils/job-prereq.py", line 81, in <module>
main()
File "./utils/job-prereq.py", line 66, in main
job_yaml = yaml.load(job)
File "/usr/lib64/python2.7/site-packages/yaml/__init__.py", line 109, in load
raise RuntimeError("Unsafe load() call disabled by Gentoo. See bug #659348")
RuntimeError: Unsafe load() call disabled by Gentoo. See bug #659348
Note that on recent ubuntu, a warning appears also. (like on AGL jenkins)
/w/workspace/ci-platform-meta-agl-demo-verify-CIBT-qemuarm64/repoclone/releng-scripts/utils/job-prereq.py:66: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
job_yaml = yaml.load(job)
This is due to a security risk of using yaml.load()
Since releng-script does not rely on any behavour provided by load(), let's convert the call to safe_load().
This will also clean/reduce the output of jenkins logs
Change-Id: I6158dcc21c0f7ec4645fb7b16acfaf1a6963cb26
Signed-off-by: Corentin LABBE <clabbe@baylibre.com>
|
|
This patchs permits utils/job-prereq.py to work with qemuarm/qemuarm64
Bug-AGL: SPEC-2376
Signed-off-by: Corentin LABBE <clabbe@baylibre.com>
Change-Id: Ie8615a9ab4d1f0053afc098db508814e6aad1bf7
|
|
This patch takes the branch and machine arguments and decide which is
the dtb name to be used.
Change-Id: I09bd67de51920c81780a77be396906a15d8247f5
Signed-off-by: Khouloud Touil <ktouil@baylibre.com>
|
|
This patch fixes the use of the --build-type to take only the first part
of it, which is the build type.
Change-Id: Ic2f631a639babbd075bb005b2d33415e4ca916ab
Signed-off-by: Khouloud Touil <ktouil@baylibre.com>
|
|
This patch fixes the job parameters, if the build type is ci the
parameters will be parsed as changeid and patchset otherwise it will be
parsed as branch and version.
Change-Id: I3f9abfd91a1b551974dd82ea82dc97a2e0a11d95
Signed-off-by: Khouloud Touil <ktouil@baylibre.com>
|
|
Change-Id: I094220e829686f9acd362339fea93f947f5bfa57
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
|
|
Since iPXE based boards can use NBD boot[1], now in releng-scripts,
we also add support to generate LAVA jobs for iPXE based boards.
With this support, Intel-UP2, one of the community reference boards, can
do validation tests with the generated jobs easily.
[1] https://git.lavasoftware.org/lava/lava/merge_requests/64/diffs
Change-Id: I9adce67d7e9207181675e82bf22a653c73682eb8
Signed-off-by: Liu Wenlong <liuwl.fnst@cn.fujitsu.com>
|
|
The job-prereq tool got broken by some latest changes on the build/url
scheme.
Make the url argument for agljobtemplate optionnal.
Pass build_type argument as build_type now that it is supported.
Fixes: 788b31a122c3 ("utils: change the url / build behavior scheme")
Change-Id: Ie9a0fc728a5e31cabd32e6463f2c6f913e1bd2cf
Signed-off-by: Loys Ollivier <lollivier@baylibre.com>
|
|
Add a new tool that outputs to the stdout the filenames needed by LAVA
to run a test job.
Required arguments are the machine type and the build type (e.g. CI,
snapshots, release).
Change-Id: I760fe59c6e04cf1e396c3772426fc8f6042f322c
Signed-off-by: Loys Ollivier <lollivier@baylibre.com>
|