<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>15815</bug_id>
          
          <creation_ts>2025-03-26 17:29:52 +0000</creation_ts>
          <short_desc>patchtest should warn if git SRC_URI doesn&apos;t have a tag=</short_desc>
          <delta_ts>2026-03-12 15:20:37 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Patchwork/Patchtest</product>
          <component>Patchtest Testsuite</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>6.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Trevor Gamblin">tgamblin</assigned_to>
          <cc>randy.macleod</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>101506</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2025-03-26 17:29:52 +0000</bug_when>
    <thetext>As of a few days ago, the behaviour of tag= in SRC_URIs with git repositories has changed.  Now, if tag= is set in the SRC_URI and SRCREV is set, bitbake will verify that the tag name matches the SRCREV.

This is good as it stops people having a recipe that eg claims to be v1.2 in PV and comments, but the SRCREV is actually 1.2+malicious or similar.

Somehow, patchtest should identify if this behaviour isn&apos;t being set.

Some thoughts:
- Limit to upgrades so that it doesn&apos;t trigger on patches that touch recipe
- Something along the lines of: if SRC_URI has git:// repository without a tag= and PV doesn&apos;t contain +git, fail.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>