Bug 15736 - Patchtest false positive for inline Python expression
Summary: Patchtest false positive for inline Python expression
Status: NEW
Alias: None
Product: Patchwork/Patchtest
Classification: Yocto Project Subprojects
Component: Patchwork (show other bugs)
Version: 5.1.4
Hardware: x86 Multiple
: Medium normal
Target Milestone: 6.2
Assignee: Trevor Gamblin
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2025-02-05 21:25 UTC by Tom Hochstein
Modified: 2026-10-29 15:16 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Hochstein 2025-02-05 21:25:31 UTC
A commit with an inline Python expression, e.g.,
`${@oe.utils.contains...}`, triggers a patchtest failure.

FAIL: test commit message user tags: Mbox includes one or more GitHub-style username tags. Ensure that any "@" symbols are stripped out of usernames (test_mbox.TestMbox.test_commit_message_user_tags)
Comment 1 Tom Hochstein 2025-02-05 21:35:05 UTC
I played with this a bit from the command line. With grep, I was able to reproduce the issue by enabling Perl compatibility.

$ grep -Pz '\B@([a-z0-9](?:-(?=[a-z0-9])|[a-z0-9]){0,38}(?<=[a-z0-9]))' ~/0001-uboot-config-Fix-devtool-modify.patch

Replacing \B with \s fixes this as far as I can tell via grep.

$ grep -Pz '\s@([a-z0-9](?:-(?=[a-z0-9])|[a-z0-9]){0,38}(?<=[a-z0-9]))' ~/0001-uboot-config-Fix-devtool-modify.patch