<?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>15366</bug_id>
          
          <creation_ts>2024-01-23 23:04:43 +0000</creation_ts>
          <short_desc>RRS: rrs_upstream_history.py does not know how to parse &apos;inherit_defer&apos;</short_desc>
          <delta_ts>2024-02-13 19:20:40 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Recipe Reporting System (RRS)</product>
          <component>Recipe Reporting System (RRS)</component>
          <version>5.0</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>5.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tim Orling">tim.orling</reporter>
          <assigned_to name="Tim Orling">tim.orling</assigned_to>
          <cc>randy.macleod</cc>
          
          <qa_contact name="apoorv sangal">apoorvsangal</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>97969</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2024-01-23 23:04:43 +0000</bug_when>
    <thetext>2024-01-23 00:07:17,904: DEBUG: Parsing /opt/workdir/git___git_openembedded_org_openembedded-core/meta/recipes-connectivity/openssh/openssh_9.5p1.bb
2024-01-23 00:07:17,910: ERROR: openembedded-core: master: branch /opt/workdir/git___git_openembedded_org_openembedded-core/meta/recipes-connectivity/openssh/openssh_9.5p1.bb couldn&apos;t be parsed, Traceback (most recent call last):
  File &quot;/opt/workdir/bitbake/lib/bb/parse/parse_py/BBHandler.py&quot;, line 83, in get_statements
    return cached_statements[absolute_filename]
KeyError: &apos;/opt/workdir/git___git_openembedded_org_openembedded-core/meta/classes/useradd.bbclass&apos;

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File &quot;/opt/workdir/bitbake/lib/bb/command.py&quot;, line 90, in runCommand
    result = command_method(self, commandline)
  File &quot;/opt/workdir/bitbake/lib/bb/command.py&quot;, line 577, in parseRecipeFile
    envdata = command.cooker.databuilder._parse_recipe(config_data, fn, appendfiles, mc, layername)[cls]
  File &quot;/opt/workdir/bitbake/lib/bb/cookerdata.py&quot;, line 507, in _parse_recipe
    return bb.parse.handle(bbfile, bb_data)
  File &quot;/opt/workdir/bitbake/lib/bb/parse/__init__.py&quot;, line 115, in handle
    return h[&apos;handle&apos;](fn, data, include, baseconfig)
  File &quot;/opt/workdir/bitbake/lib/bb/parse/parse_py/BBHandler.py&quot;, line 137, in handle
    statements.eval(d)
  File &quot;/opt/workdir/bitbake/lib/bb/parse/ast.py&quot;, line 20, in eval
    statement.eval(data)
  File &quot;/opt/workdir/bitbake/lib/bb/parse/ast.py&quot;, line 314, in eval
    bb.parse.BBHandler.inherit(self.classes, self.filename, self.lineno, data)
  File &quot;/opt/workdir/bitbake/lib/bb/parse/parse_py/BBHandler.py&quot;, line 74, in inherit
    bb.parse.handle(file, d, True)
  File &quot;/opt/workdir/bitbake/lib/bb/parse/__init__.py&quot;, line 115, in handle
    return h[&apos;handle&apos;](fn, data, include, baseconfig)
  File &quot;/opt/workdir/bitbake/lib/bb/parse/parse_py/BBHandler.py&quot;, line 130, in handle
    statements = get_statements(fn, abs_fn, base_name)
  File &quot;/opt/workdir/bitbake/lib/bb/parse/parse_py/BBHandler.py&quot;, line 94, in get_statements
    feeder(lineno, s, filename, base_name, statements)
  File &quot;/opt/workdir/bitbake/lib/bb/parse/parse_py/BBHandler.py&quot;, line 268, in feeder
    return ConfHandler.feeder(lineno, s, fn, statements, conffile=False)
  File &quot;/opt/workdir/bitbake/lib/bb/parse/parse_py/ConfHandler.py&quot;, line 200, in feeder
    raise ParseError(&quot;unparsed line: &apos;%s&apos;&quot; % s, fn, lineno);
bb.parse.ParseError: ParseError at /opt/workdir/git___git_openembedded_org_openembedded-core/meta/classes/useradd.bbclass:271: unparsed line: &apos;inherit_defer ${USERADDEXTENSION}&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97970</commentid>
    <comment_count>1</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2024-01-23 23:09:35 +0000</bug_when>
    <thetext>Might instead be a problem of /opt/workdir/bitbake not being updated:

layers@updatelayers:/opt/workdir/bitbake$ git checkout master
Switched to branch &apos;master&apos;
Your branch is behind &apos;origin/master&apos; by 14 commits, and can be fast-forwarded.
  (use &quot;git pull&quot; to update your local branch)
layers@updatelayers:/opt/workdir/bitbake$ git pull
Updating 664de3f6d..5c2e840e
Fast-forward
 lib/bb/event.py                                              |  5 +--
 lib/bb/fetch2/__init__.py                                    |  2 +-
 lib/bb/fetch2/wget.py                                        |  2 +-
 lib/bb/parse/ast.py                                          | 31 ++++++++++++++---
 lib/bb/parse/parse_py/BBHandler.py                           | 10 +++++-
 lib/bb/runqueue.py                                           | 83 +++++++++++++++++++++++++++------------------
 lib/bb/server/process.py                                     | 10 ++++--
 lib/bb/tests/event.py                                        | 24 +++++++++++++
 lib/bb/tests/parse.py                                        | 98 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 lib/bb/ui/knotty.py                                          | 62 +++++++++++++++++++++++++++------
 lib/toaster/tests/browser/selenium_helpers_base.py           |  7 ++++
 lib/toaster/tests/browser/test_all_builds_page.py            |  9 +++--
 lib/toaster/tests/browser/test_all_projects_page.py          |  3 +-
 lib/toaster/tests/browser/test_builddashboard_page.py        |  1 +
 lib/toaster/tests/browser/test_layerdetails_page.py          |  9 ++++-
 lib/toaster/tests/browser/test_new_custom_image_page.py      |  1 +
 lib/toaster/tests/browser/test_new_project_page.py           |  4 ++-
 lib/toaster/tests/functional/test_project_page.py            |  5 +--
 lib/toaster/tests/functional/test_project_page_tab_config.py |  2 +-
 19 files changed, 305 insertions(+), 63 deletions(-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98197</commentid>
    <comment_count>2</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2024-02-13 19:20:40 +0000</bug_when>
    <thetext>Fixed by doing a checkout of bitbake before running the rrs/tools/*.py scripts.

layers@updatelayers:/opt/layerindex$ cat rrs/tools/daily_run.sh
#!/bin/bash

cd /opt/workdir/bitbake &amp;&amp; git checkout master &amp;&amp; git pull origin master
/opt/layerindex/layerindex/update.py
/opt/layerindex/rrs/tools/rrs_maintainer_history.py -d
/opt/layerindex/rrs/tools/rrs_upgrade_history.py -d
/opt/layerindex/rrs/tools/rrs_upstream_history.py -d
#/opt/layerindex/rrs/tools/rrs_distros.py -d

if [ &quot;$1&quot; = &quot;email&quot; ]; then
        /opt/layerindex/rrs/tools/rrs_upstream_email.py
fi</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>