bodnuti

Deterministic checks of Yocto Project & OpenEmbedded patches.


[OE-core][PATCH v6 0/7] Implement SPDX for deploy tasks

List
openembedded-core
Thread
lore
Author
Joshua Watt
Last message
2026-10-27 22:49
Result
12 findings ยท 4 style findings
Checked against
openembedded-core master
Base
fa83da7da277
AutoBuilder
1 build: 0 passed, 0 with warnings, 0 failed

[OE-core][PATCH v6 1/7] spdx: Skip dependencies that are not in the taskhash

[OE-core][PATCH v6 2/7] spdx: Add ability for deploy tasks to create SPDX

[OE-core][PATCH v6 3/7] oeqa: Add SPDX deploy SBoM test

[OE-core][PATCH v6 4/7] classes-global/sstate: Keep SPDX generating setscene dependencies

[OE-core][PATCH v6 5/7] classes-recipe/deploy: Add do_deploy to SPDX_DEPLOY_TASKS

warning oelint oelint.vars.mispell.unknown meta/classes-recipe/deploy.bbclass:9
'SPDX_DEPLOY_TASKS' is unknown. Consider adding it via --constantmods
 6 7DEPLOYDIR = "${WORKDIR}/deploy-${PN}" 8SSTATETASKS += "do_deploy" 9SPDX_DEPLOY_TASKS += "do_deploy"10SPDX_DEPLOY_ARTIFACTS_DIR:task-deploy = "${DEPLOYDIR}"11do_deploy[sstate-inputdirs] = "${DEPLOYDIR}"12do_deploy[sstate-outputdirs] = "${DEPLOY_DIR_IMAGE}"
warning oelint oelint.vars.mispell.unknown meta/classes-recipe/deploy.bbclass:10
'SPDX_DEPLOY_ARTIFACTS_DIR' is unknown. Consider adding it via --constantmods
 7DEPLOYDIR = "${WORKDIR}/deploy-${PN}" 8SSTATETASKS += "do_deploy" 9SPDX_DEPLOY_TASKS += "do_deploy"10SPDX_DEPLOY_ARTIFACTS_DIR:task-deploy = "${DEPLOYDIR}"11do_deploy[sstate-inputdirs] = "${DEPLOYDIR}"12do_deploy[sstate-outputdirs] = "${DEPLOY_DIR_IMAGE}"13

[OE-core][PATCH v6 6/7] spdx: Replace do_create_image_spdx with deploy task

warning oelint oelint.vars.mispell.unknown meta/classes-recipe/create-spdx-image-3.0.bbclass:55
'oe.spdx30_tasks.create_image_spdx' is unknown. Consider adding it via --constantmods
5253    oe.spdx30_tasks.create_image_spdx(d, spdxdeploydir)54}55oe.spdx30_tasks.create_image_spdx[vardeps] += "SPDX_IMAGE_PURPOSE"56SPDX_DEPLOY_TASKS += "do_image_complete:create_image_spdx"57# No deploy sbom is needed since do_create_image_sbom_spdx() is used instead58SPDX_DEPLOY_SBOM = "0"
warning oelint oelint.vars.mispell.unknown meta/classes-recipe/create-spdx-image-3.0.bbclass:56
'SPDX_DEPLOY_TASKS' is unknown. Consider adding it via --constantmods
53    oe.spdx30_tasks.create_image_spdx(d, spdxdeploydir)54}55oe.spdx30_tasks.create_image_spdx[vardeps] += "SPDX_IMAGE_PURPOSE"56SPDX_DEPLOY_TASKS += "do_image_complete:create_image_spdx"57# No deploy sbom is needed since do_create_image_sbom_spdx() is used instead58SPDX_DEPLOY_SBOM = "0"59
warning oelint oelint.vars.mispell.unknown meta/classes-recipe/create-spdx-image-3.0.bbclass:58
'SPDX_DEPLOY_SBOM' is unknown. Consider adding it via --constantmods
55oe.spdx30_tasks.create_image_spdx[vardeps] += "SPDX_IMAGE_PURPOSE"56SPDX_DEPLOY_TASKS += "do_image_complete:create_image_spdx"57# No deploy sbom is needed since do_create_image_sbom_spdx() is used instead58SPDX_DEPLOY_SBOM = "0"5960python do_create_image_sbom_spdx() {61    import oe.spdx30_tasks
warning oelint oelint.vars.mispell meta/classes/create-spdx-3.0.bbclass:192
'SPDX_DEPLOY_SBOM_NAME' is unknown, maybe you meant 'SPDX_RECIPE_SBOM_NAME'
189    If the recipe already has another task to create an SBoM, this should be \190    set to '0' to prevent multiple SBoMs from being created."191192SPDX_DEPLOY_SBOM_NAME ?= "${PN}-deploy-sbom"193SPDX_DEPLOY_SBOM_NAME[doc] = "The name of the output deploy SBoM when using \194    create_deploy_sbom"195
warning oelint oelint.vars.mispell meta/classes/create-spdx-3.0.bbclass:193
'SPDX_DEPLOY_SBOM_NAME' is unknown, maybe you meant 'SPDX_RECIPE_SBOM_NAME'
190    set to '0' to prevent multiple SBoMs from being created."191192SPDX_DEPLOY_SBOM_NAME ?= "${PN}-deploy-sbom"193SPDX_DEPLOY_SBOM_NAME[doc] = "The name of the output deploy SBoM when using \194    create_deploy_sbom"195196SPDX_DEPLOY_ARTIFACTS = "AUTO"
warning oelint oelint.vars.mispell.unknown meta/classes/create-spdx-3.0.bbclass:197
'SPDX_DEPLOY_ARITFACTS' is unknown. Consider adding it via --constantmods
194    create_deploy_sbom"195196SPDX_DEPLOY_ARTIFACTS = "AUTO"197SPDX_DEPLOY_ARITFACTS[doc] = "A space separated list of deployed artifacts, \198    relative to SPDX_DEPLOY_ARTIFACTS_DIR that should be included in the SBoM. \199    If 'AUTO' (the default), all files in SPDX_DEPLOY_ARITFACTS_DIR will be \200    added. A :task- override *must* be used to set this value so that it is \
warning oelint oelint.vars.mispell.unknown meta/classes/create-spdx-3.0.bbclass:355
'oe.spdx30_tasks.find_build_dep_objsets' is unknown. Consider adding it via --constantmods
352353    oe.spdx30_tasks.create_deploy_spdx(d, spdxdeploydir, artifactsdir, artifacts)354}355oe.spdx30_tasks.find_build_dep_objsets[vardepsexclude] += "BB_TASKDEPDATA"356357python () {358    # Most recipes generate SPDX output in a distinct task from the task that
warning oelint oelint.task.noanonpython meta/classes/create-spdx-3.0.bbclass:357
Avoid anonymous python functions as they are expensive and come with all sorts of side effects
354}355oe.spdx30_tasks.find_build_dep_objsets[vardepsexclude] += "BB_TASKDEPDATA"356357python () {358    # Most recipes generate SPDX output in a distinct task from the task that359    # actually is the relevant dependency. As such, we need to map the task360    # that we care about to the task that generates the corresponding SPDX
warning oelint oelint.vars.mispell.unknown meta/classes/create-spdx-3.0.bbclass:473
'SSTATE_SKIP_CREATION' is unknown. Consider adding it via --constantmods
470    sstate_setscene(d)471}472addtask do_create_deploy_sbom_setscene473SSTATE_SKIP_CREATION:task-create-deploy-sbom = "1"
warning oelint oelint.vars.mispell meta/classes/spdx-common.bbclass:28
'SPDXDEPLOYSBOMDEPLOY' is unknown, maybe you meant 'SPDXRECIPESBOMDEPLOY'
25SPDXRECIPEDEPLOY = "${SPDXDIR}/recipe-deploy"26SPDXRUNTIMEDEPLOY = "${SPDXDIR}/runtime-deploy"27SPDXRECIPESBOMDEPLOY = "${SPDXDIR}/recipes-bom-deploy"28SPDXDEPLOYSBOMDEPLOY = "${SPDXDIR}/deploy-bom-deploy"2930SPDX_INCLUDE_SOURCES ??= "0"31SPDX_INCLUDE_SOURCES[doc] = "If set to '1', include source code files in the \
Show 4 style findings
info oelint oelint.task.docstrings meta/classes-recipe/create-spdx-image-3.0.bbclass:46
Every custom task should have a doc string set by task[doc] = '...'
43}44addtask do_create_rootfs_spdx_setscene4546python create_image_spdx() {47    import oe.spdx30_tasks48    from pathlib import Path49    current_task = "do_" + d.getVar("BB_CURRENTTASK")
info oelint oelint.task.docstrings meta/classes/create-spdx-3.0.bbclass:339
Every custom task should have a doc string set by task[doc] = '...'
336addhandler spdx30_build_started_handler337spdx30_build_started_handler[eventmask] = "bb.event.BuildStarted"338339python create_deploy_spdx() {340    import oe.spdx30_tasks341    from pathlib import Path342    current_task = "do_" + d.getVar("BB_CURRENTTASK")
info oelint oelint.task.docstrings meta/classes/create-spdx-3.0.bbclass:450
Every custom task should have a doc string set by task[doc] = '...'
447        bb.build.addtask("do_create_deploy_sbom", "do_build", " ".join(deploy_sbom_tasks), d)448}449450python do_create_deploy_sbom() {451    import oe.spdx30_tasks452    from pathlib import Path453    deploydir = Path(d.getVar("SPDXDEPLOYSBOMDEPLOY"))
info oelint oelint.task.docstrings meta/classes/create-spdx-3.0.bbclass:469
Every custom task should have a doc string set by task[doc] = '...'
466do_create_deploy_sbom[file-checksums] += "${SPDX3_DEP_FILES}"467468SSTATETASKS += "do_create_deploy_sbom"469python do_create_deploy_sbom_setscene() {470    sstate_setscene(d)471}472addtask do_create_deploy_sbom_setscene

[OE-core][PATCH v6 7/7] layer.conf: Fix initramfs-framework not knowing which udev it has

patchtest: 70 pass, 0 fail, 35 skip

Text report

AutoBuilder

Builds of staging branches that carried this series. Each builds every patch on the branch; a failure is shown as this series' only when it is in a recipe the series changes, or two builds failed so newly carrying it.