<?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>15875</bug_id>
          
          <creation_ts>2025-05-22 15:11:33 +0000</creation_ts>
          <short_desc>Improve message error around mirroring selftest</short_desc>
          <delta_ts>2026-10-29 17:51:07 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Functional (self) Testing</product>
          <component>oe-selftest</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugzilla.yoctoproject.org/show_bug.cgi?id=15867</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>6.2 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yoann Congal">yoann.congal</reporter>
          <assigned_to name="Unassigned">unassigned</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>102046</commentid>
    <comment_count>0</comment_count>
    <who name="Yoann Congal">yoann.congal</who>
    <bug_when>2025-05-22 15:11:33 +0000</bug_when>
    <thetext>(from #15867)

When a source package is not available on the mirror, the test_yocto_source_mirror selftest output message such as this:
  The URL: &apos;https://archive.mesa3d.org/mesa-25.1.0.tar.xz&apos; is not trusted and cannot be used

But the troubling URL is really on the mirroring side:
  https://downloads.yoctoproject.org/mirror/sources/mesa-25.1.0.tar.xz

This message needs to be improved to mention the fact that in this case, bitbake was configured to only use mirrors (no external internet access).

See test definition: meta/lib/oeqa/selftest/cases/buildoptions.py:
@OETestTag(&quot;yocto-mirrors&quot;)
class SourceMirroring(OESelftestTestCase):
    # Can we download everything from the Yocto Sources Mirror over http only
    def test_yocto_source_mirror(self):
        self.write_config(&quot;&quot;&quot;
BB_ALLOWED_NETWORKS = &quot;downloads.yoctoproject.org&quot;
MIRRORS = &quot;&quot;
DL_DIR = &quot;${TMPDIR}/test_downloads&quot;
STAMPS_DIR = &quot;${TMPDIR}/test_stamps&quot;
SSTATE_DIR = &quot;${TMPDIR}/test_sstate-cache&quot;
PREMIRRORS = &quot;\\
    bzr://.*/.*   http://downloads.yoctoproject.org/mirror/sources/ \\n \\
    cvs://.*/.*   http://downloads.yoctoproject.org/mirror/sources/ \\n \\
    git://.*/.*   http://downloads.yoctoproject.org/mirror/sources/ \\n \\
    gitsm://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \\n \\
    hg://.*/.*    http://downloads.yoctoproject.org/mirror/sources/ \\n \\
    osc://.*/.*   http://downloads.yoctoproject.org/mirror/sources/ \\n \\
    p4://.*/.*    http://downloads.yoctoproject.org/mirror/sources/ \\n \\
    svn://.*/.*   http://downloads.yoctoproject.org/mirror/sources/ \\n \\
    ftp://.*/.*      http://downloads.yoctoproject.org/mirror/sources/ \\n \\
    http://.*/.*     http://downloads.yoctoproject.org/mirror/sources/ \\n \\
    https://.*/.*    http://downloads.yoctoproject.org/mirror/sources/ \\n&quot;
&quot;&quot;&quot;)

        bitbake(&quot;world --runall fetch --continue&quot;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102089</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-05-29 14:34:30 +0000</bug_when>
    <thetext>Will likely need changes in the bitbake fetcher code.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>