bodnuti

Deterministic checks of Yocto Project & OpenEmbedded patches.


[OE-core][PATCH 0/6] add hyperfine recipe, improve ptest-cargo.bbclass

List
openembedded-core
Thread
lore
Author
Trevor Gamblin
Last message
2026-11-25 15:55
Result
not checked · 4 style findings
Checked against
openembedded-core master
Base
2c6f137c23b7
Note
checked against master at 2c6f137c23b7, before the first of its patches that had landed

[OE-core][PATCH 1/6] hyperfine: add recipe

error oelint oelint.vars.inconspaces meta/recipes-devtools/hyperfine/hyperfine-crates.inc:4
Assignment should be 'VAR += "foo"' not 'VAR += " foo"'
1# Autogenerated with 'bitbake -c update_crates hyperfine'23# from Cargo.lock4SRC_URI += " \5    crate://crates.io/aho-corasick/1.1.5 \6    crate://crates.io/anstream/1.0.0 \7    crate://crates.io/anstyle/1.0.14 \

Model, unverified: This is a pre-existing style issue in the autogenerated crates file where the first item on the continuation line has a leading space after the opening quote. Fix: Change `SRC_URI += " \` to `SRC_URI += "\` (remove the leading space after the opening quote) to satisfy the spacing rule.

Show 1 style finding
info oelint oelint.vars.notneededspace meta/recipes-devtools/hyperfine/hyperfine-crates.inc:4
Space at the beginning of the var is not needed
1# Autogenerated with 'bitbake -c update_crates hyperfine'23# from Cargo.lock4SRC_URI += " \5    crate://crates.io/aho-corasick/1.1.5 \6    crate://crates.io/anstream/1.0.0 \7    crate://crates.io/anstyle/1.0.14 \
Model review (bodnuti-qwen3.8-27b-48k-text): 0 findings

Found by a model, not checked by a person; not counted in the result.

Took 5 min 20 s; 35102 tokens read, 85 written; confidence high; prompt v5

No findings.

[OE-core][PATCH 2/6] hyperfine: add ptest support

error patchtest test_patch.test_signed_off_by_presence
A patch file has been added without a Signed-off-by tag: '0001-tests-allow-overriding-the-hyperfine-binary-with-HYP.patch'
warning oelint oelint.file.patchsignedoff meta/recipes-devtools/hyperfine/hyperfine_2.0.0.bb:9
Patch '0001-tests-allow-overriding-the-hyperfine-binary-with-HYP.patch' should contain a Signed-off-by entry
 6 7inherit cargo cargo-update-recipe-crates ptest-cargo 8 9SRC_URI = "git://github.com/sharkdp/hyperfine.git;protocol=https;nobranch=1;tag=v${PV} \10           file://0001-tests-allow-overriding-the-hyperfine-binary-with-HYP.patch \11           file://run-ptest \12           "

Model, unverified: The carried patch in files/ is missing a Signed-off-by trailer, which OE patch rules require for every patch file added to the layer. Fix: Add a 'Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>' line to the patch header.

warning oelint oelint.task.pythonprefix meta/recipes-devtools/hyperfine/hyperfine_2.0.0.bb:22
Tasks containing python code, should be prefixed with python in function header
1920# Point the tests at the target locations at compile time, which also keeps21# build paths (CARGO_BIN_EXE_hyperfine, CARGO_MANIFEST_DIR) out of the test binaries.22do_compile_ptest_cargo:prepend() {23    os.environ["HYPERFINE_BIN"] = d.expand("${bindir}/hyperfine")24    os.environ["INSTA_WORKSPACE_ROOT"] = d.getVar("PTEST_PATH")25}

Model, unverified: The prepend to do_compile_ptest_cargo contains Python code (os.environ, d.expand, d.getVar) but lacks the 'python' keyword; because the base function in ptest-cargo.bbclass is declared as 'python do_compile_ptest_cargo()', the prepended code is in fact executed as Python, so this is a clarity/style warning rather than a functional break. Fix: Either add the 'python' keyword to the prepend (e.g. 'python do_compile_ptest_cargo:prepend()') for clarity, or leave it as-is since the base function in ptest-cargo.bbclass is already Python and the prepended code will be interpreted as Python regardless.

info oelint oelint.file.inappropriatemsg meta/recipes-devtools/hyperfine/hyperfine_2.0.0.bb:9
Patch '0001-tests-allow-overriding-the-hyperfine-binary-with-HYP.patch' with Upstream-Status Inappropriate has to have a reasoning appended in [], chosen from oe-specific,OE specific,oe-core specific,not author,native,licensing,configuration,enable feature,disable feature,bugfix .*,embedded specific,no upstream,other,upstream ticket .*
 6 7inherit cargo cargo-update-recipe-crates ptest-cargo 8 9SRC_URI = "git://github.com/sharkdp/hyperfine.git;protocol=https;nobranch=1;tag=v${PV} \10           file://0001-tests-allow-overriding-the-hyperfine-binary-with-HYP.patch \11           file://run-ptest \12           "

Model, unverified: The patch's Upstream-Status line uses '[oe specific]' which oelint's accepted-token list does not match verbatim (the list has 'oe-specific' and 'OE specific' but the casing/format here trips the check). Fix: Change to 'Upstream-Status: Inappropriate [oe specific]' is actually acceptable per the list (it matches 'OE specific' case-insensitively in most oelint configs); if oelint still flags it, use '[oe-specific]' or '[OE specific]' to match the accepted tokens exactly.

Show 3 style findings
warning oelint oelint.tabs.notabs meta/recipes-devtools/hyperfine/hyperfine_2.0.0.bb:27
Don't use tabs use spaces
24    os.environ["INSTA_WORKSPACE_ROOT"] = d.getVar("PTEST_PATH")25}2627do_install_ptest() {28	cp -r ${S}/tests ${D}${PTEST_PATH}/29	rm ${D}${PTEST_PATH}/tests/*.rs30}
info oelint oelint.var.suggestedvar.BUGTRACKER meta/recipes-devtools/hyperfine/hyperfine_2.0.0.bb:1
Variable 'BUGTRACKER' should be set
1SUMMARY = "A command-line benchmarking tool"2HOMEPAGE = "https://github.com/sharkdp/hyperfine"3LICENSE = "Apache-2.0 OR MIT"4LIC_FILES_CHKSUM = "file://LICENSE-MIT;md5=50c79cd7360537975dfbbd15f8d01a34 \
info oelint oelint.var.suggestedvar.CVE_PRODUCT meta/recipes-devtools/hyperfine/hyperfine_2.0.0.bb:1
Variable 'CVE_PRODUCT' should be set
1SUMMARY = "A command-line benchmarking tool"2HOMEPAGE = "https://github.com/sharkdp/hyperfine"3LICENSE = "Apache-2.0 OR MIT"4LIC_FILES_CHKSUM = "file://LICENSE-MIT;md5=50c79cd7360537975dfbbd15f8d01a34 \
Model review (bodnuti-qwen3.8-27b-48k-text): 0 findings

Found by a model, not checked by a person; not counted in the result.

Took 18 min 28 s; 35330 tokens read, 351 written; confidence medium; prompt v5

No findings.

[OE-core][PATCH 3/6] ptest-cargo.bbclass: improve test binary matching

Model review (bodnuti-qwen3.8-27b-48k-text): 0 findings

Found by a model, not checked by a person; not counted in the result.

Took 1 min 53 s; 8837 tokens read, 27 written; confidence high; layer 4: not escalated (touches meta/classes-recipe/ptest-cargo.bbclass): no [review.escalate]; prompt v5

No findings.

[OE-core][PATCH 4/6] ptest-cargo.bbclass: run do_install_ptest_cargo as a postfunc

Model review (bodnuti-qwen3.8-27b-48k-text): 0 findings

Found by a model, not checked by a person; not counted in the result.

Took 7 min 45 s; 18400 tokens read, 15 written; confidence high; layer 4: not escalated (touches meta/classes-recipe/ptest-cargo.bbclass): no [review.escalate]; prompt v5

No findings.

[OE-core][PATCH 5/6] librsvg: make ptest symlink creation idempotent

Model review (bodnuti-qwen3.8-27b-48k-text): 0 findings

Found by a model, not checked by a person; not counted in the result.

Took 12 min 29 s; 30079 tokens read, 17 written; confidence high; prompt v5

No findings.

[OE-core][PATCH 6/6] ptest-cargo.bbclass: don't follow symlinks when chowning

Model review (bodnuti-qwen3.8-27b-48k-text): 1 finding

Found by a model, not checked by a person; not counted in the result.

Took 6 min 44 s; 33136 tokens read, 777 written; confidence medium; layer 4: not escalated (touches meta/classes-recipe/ptest-cargo.bbclass): no [review.escalate]; prompt v5

warning, medium confidence, confirmed by the check pass model message meta/classes-recipe/ptest-cargo.bbclass
ptest-cargo.bbclass: The commit message says "as the former follows symlinks," but "the former" refers to os.lchown(), which does NOT follow symlinks — that is precisely the point of the change. The author almost certainly meant "the latter" (shutil.chown), which does follow symlinks before Python 3.13. As written, the sentence contradicts the very next line ("os.lchown changes the owner of the link itself") and misstates the technical reason for the switch.

Not checked

not run shellcheck
shellcheck could not parse meta/recipes-devtools/hyperfine/hyperfine_2.0.0.bb at line 22: Couldn't parse this brace group. Fix to allow more checks. (SC1073); its shell was not checked

patchtest: 62 pass, 1 fail, 27 skip

Text report