bodnuti

Deterministic checks of Yocto Project & OpenEmbedded patches.


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

List
openembedded-core
Thread
lore
Author
Trevor Gamblin
Last message
2026-11-25 16:08
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 v2] 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: The SRC_URI += line starts with a space inside the quotes, which oelint flags as a spacing issue; this is a pre-existing style nit in the autogenerated file and does not affect the build. Fix: Change the leading space inside the quotes to a leading space outside, or use a backslash-continuation without the extra space, to satisfy oelint.vars.inconspaces.

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 4 min 55 s; 34782 tokens read, 101 written; confidence low; layer 4: not escalated (layer 3 confidence is low): no [review.escalate]; prompt v5

No findings.

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

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 body is pasted into the Python function declared as `python do_compile_ptest_cargo()` in ptest-cargo.bbclass, so it already runs as Python without its own `python` prefix. Fix: No code change is needed; the keyword is inherited from the base function declaration in ptest-cargo.bbclass.

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 header uses `[oe specific]` (space) where the oelint rule expects one of the enumerated tokens such as `oe-specific` or `OE specific`; the hyphenated form `oe-specific` is the canonical token in the accepted list. Fix: Change to `Upstream-Status: Inappropriate [oe-specific]` (hyphen instead of space) to match the accepted token list.

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 19 min 1 s; 35431 tokens read, 651 written; confidence medium; prompt v5

No findings.

[OE-core][PATCH 3/6 v2] 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 5 min 25 s; 11713 tokens read, 13 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 v2] 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 12 min 8 s; 57341 tokens read, 1157 written; confidence medium; layer 4: not escalated (touches meta/classes-recipe/ptest-cargo.bbclass): no [review.escalate]; 1 refuted by the check pass; prompt v5

No findings.

[OE-core][PATCH 5/6 v2] 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 5 min 40 s; 25093 tokens read, 13 written; confidence high; prompt v5

No findings.

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

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 4 min 53 s; 15530 tokens read, 393 written; confidence high; layer 4: not escalated (touches meta/classes-recipe/ptest-cargo.bbclass): no [review.escalate]; prompt v5

No findings.

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: 63 pass, 0 fail, 27 skip

Text report