Skip to content

ci: Make the oelint-adv gate blocking#122

Merged
otavio merged 2 commits into
masterfrom
oelint-blocking-gate
Jun 15, 2026
Merged

ci: Make the oelint-adv gate blocking#122
otavio merged 2 commits into
masterfrom
oelint-blocking-gate

Conversation

@otavio

@otavio otavio commented Jun 15, 2026

Copy link
Copy Markdown
Member

Summary

Make the OE Lint workflow a blocking gate now that the upstream
oelint-adv fixes ride in the shared yocto-env.nix '#lint' devshell.

  • recipes: Drop stale srcuridomains nooelint exceptions — the
    crate:// URIs in the autogenerated easysplash-crates.inc and
    wifi-connect-4.11.84-crates.inc all resolve to crates.io, so the
    inline nooelint: oelint.vars.srcuridomains exceptions no longer
    apply. oelint-adv 9.8.4 instead flags them via
    oelint.file.inlinesuppress_na. The lines are not emitted by the
    cargo update_crates generator, so regeneration won't reintroduce
    them.
  • ci: Make the oelint-adv gate blocking — drop
    continue-on-error so any finding fails the job. The two false
    positives that kept it advisory (oelint-adv #889 gomod SRC_URI
    support, oelint-parser #383 leftover-buffer drain) are now carried by
    the #lint devshell.

Test

./contrib/oelint/run-oelint.sh with oelint-adv 9.8.4 → 0 findings,
exit 0
.

otavio added 2 commits June 15, 2026 15:34
The crate:// fetcher URIs in these autogenerated -crates.inc files all
resolve to crates.io, so the inline 'nooelint: oelint.vars.srcuridomains'
exceptions added when the rule misfired are no longer needed: the
oelint-adv carried by the yocto-env.nix '#lint' devshell (now 9.8.4) no
longer reports srcuridomains for them and instead flags the exceptions
themselves via oelint.file.inlinesuppress_na.

Remove the two exception lines so the layer lints clean. The lines are
not emitted by the cargo update_crates generator, so regenerating these
files will not bring them back.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Drop continue-on-error from the OE Lint job so any oelint-adv finding
fails the workflow. The job was advisory because released oelint-adv
still tripped two false positives on our recipes (oelint-adv #889 gomod
SRC_URI support and oelint-parser #383 leftover-buffer drain). Both
fixes are now carried by the github:OSSystems/yocto-env.nix '#lint'
devshell the workflow uses, so the generated telegraf-go-mods.inc and
the custom task handlers lint clean and the gate can enforce.

Verified the layer lints clean (oelint-adv 9.8.4, zero findings) with
the stale crate suppressions removed in the preceding commit.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
@otavio otavio force-pushed the oelint-blocking-gate branch from e0cd114 to 3602d9d Compare June 15, 2026 18:39
@otavio otavio merged commit e971e5a into master Jun 15, 2026
1 check passed
@otavio otavio deleted the oelint-blocking-gate branch June 15, 2026 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants