Uploaded image for project: ' AGL Development'
  1. AGL Development
  2. SPEC-3306

[devtool] Can't deploy apps due to not being able to resolve AGL_APP_REVISION

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • None
    • None
    • None
    • None

      I'm using devtool to deploy applications, which involves doing a devtool modify recipe followed by devtool deploy-target recipe IP_OF_TARGET.

      It used to work when the SRCREV was set to a valid sha, but now SRCREV uses AGL_APP_REVISION which it seems that devtool modify can't resolve spewing the following huge error:

      Summary: There were 2 WARNING messages shown.
      Traceback (most recent call last):
        File "/shared/workspace_agl/external/poky/bitbake/lib/bb/data_smart.py", line 411, in expandWithRefs
          s = __expand_python_regexp__.sub(varparse.python_sub, s)
        File "/shared/workspace_agl/external/poky/bitbake/lib/bb/data_smart.py", line 112, in python_sub
          return connector.expandPythonRef(self.varname, code, self.d)
        File "/shared/workspace_agl/external/poky/bitbake/lib/bb/tinfoil.py", line 70, in expandPythonRef
          ret = self.tinfoil.run_command('dataStoreConnectorExpandPythonRef', ds, varname, expr)
        File "/shared/workspace_agl/external/poky/bitbake/lib/bb/tinfoil.py", line 466, in run_command
          raise TinfoilCommandFailed(result[1])
      bb.tinfoil.TinfoilCommandFailed: Traceback (most recent call last):
        File "/shared/workspace_agl/external/poky/bitbake/lib/bb/fetch2/__init__.py", line 1560, in latest_revision
          return revs[key]
        File "/shared/workspace_agl/external/poky/bitbake/lib/bb/persist_data.py", line 50, in wrap_func
          return f(self, *args, **kwargs)
        File "/shared/workspace_agl/external/poky/bitbake/lib/bb/persist_data.py", line 79, in wrap_func
          return f(self, cursor, *args, **kwargs)
        File "/shared/workspace_agl/external/poky/bitbake/lib/bb/persist_data.py", line 165, in __getitem__
          raise KeyError(key)
      KeyError: 'git:gerrit.automotivelinux.org.gerrit.apps.onscreenapp${AGL_APP_REVISION}'
      
      During handling of the above exception, another exception occurred:
      
      Traceback (most recent call last):
        File "/shared/workspace_agl/external/poky/bitbake/lib/bb/command.py", line 74, in runCommand
          result = command_method(self, commandline)
        File "/shared/workspace_agl/external/poky/bitbake/lib/bb/command.py", line 496, in dataStoreConnectorExpandPythonRef
          return varparse.python_sub(expr)
        File "/shared/workspace_agl/external/poky/bitbake/lib/bb/data_smart.py", line 136, in python_sub
          value = utils.better_eval(codeobj, DataContext(self.d), {'d' : self.d})
        File "/shared/workspace_agl/external/poky/bitbake/lib/bb/utils.py", line 421, in better_eval
          return eval(source, ctx, locals)
        File "Var <SRCPV>", line 1, in <module>
        File "/shared/workspace_agl/external/poky/bitbake/lib/bb/fetch2/__init__.py", line 745, in get_srcrev
          fetcher = Fetch(d.getVar('SRC_URI').split(), d)
        File "/shared/workspace_agl/external/poky/bitbake/lib/bb/fetch2/__init__.py", line 1600, in __init__
          self.ud[url] = FetchData(url, d, localonly)
        File "/shared/workspace_agl/external/poky/bitbake/lib/bb/fetch2/__init__.py", line 1272, in __init__
          self.method.urldata_init(self, d)
        File "/shared/workspace_agl/external/poky/bitbake/lib/bb/fetch2/git.py", line 237, in urldata_init
          ud.revisions[name] = self.latest_revision(ud, d, name)
        File "/shared/workspace_agl/external/poky/bitbake/lib/bb/fetch2/__init__.py", line 1562, in latest_revision
          revs[key] = rev = self._latest_revision(ud, d, name)
        File "/shared/workspace_agl/external/poky/bitbake/lib/bb/fetch2/git.py", line 645, in _latest_revision
          (ud.unresolvedrev[name], ud.host+ud.path))
      bb.fetch2.FetchError: Fetcher failure: Unable to resolve '${AGL_APP_REVISION}' in upstream git repository in git ls-remote output for gerrit.automotivelinux.org/gerrit/apps/onscreenapp
      
      
      The above exception was the direct cause of the following exception:
      
      Traceback (most recent call last):
        File "/shared/workspace_agl/external/poky/scripts/devtool", line 334, in <module>
          ret = main()
        File "/shared/workspace_agl/external/poky/scripts/devtool", line 321, in main
          ret = args.func(args, config, basepath, workspace)
        File "/shared/workspace_agl/external/poky/scripts/lib/devtool/standard.py", line 851, in modify
          initial_rev, _ = _extract_source(srctree, args.keep_temp, args.branch, False, config, basepath, workspace, args.fixed_setup, rd, tinfoil, no_overrides=args.no_overrides)
        File "/shared/workspace_agl/external/poky/scripts/lib/devtool/standard.py", line 555, in _extract_source
          tempbasedir = d.getVar('WORKDIR')
        File "/shared/workspace_agl/external/poky/bitbake/lib/bb/data_smart.py", line 604, in getVar
          return self.getVarFlag(var, "_content", expand, noweakdefault, parsing)
        File "/shared/workspace_agl/external/poky/bitbake/lib/bb/data_smart.py", line 802, in getVarFlag
          parser = self.expandWithRefs(value, cachename)
        File "/shared/workspace_agl/external/poky/bitbake/lib/bb/data_smart.py", line 409, in expandWithRefs
          s = __expand_var_regexp__.sub(varparse.var_sub, s)
        File "/shared/workspace_agl/external/poky/bitbake/lib/bb/data_smart.py", line 97, in var_sub
          var = self.d.getVarFlag(key, "_content")
        File "/shared/workspace_agl/external/poky/bitbake/lib/bb/data_smart.py", line 802, in getVarFlag
          parser = self.expandWithRefs(value, cachename)
        File "/shared/workspace_agl/external/poky/bitbake/lib/bb/data_smart.py", line 409, in expandWithRefs
          s = __expand_var_regexp__.sub(varparse.var_sub, s)
        File "/shared/workspace_agl/external/poky/bitbake/lib/bb/data_smart.py", line 97, in var_sub
          var = self.d.getVarFlag(key, "_content")
        File "/shared/workspace_agl/external/poky/bitbake/lib/bb/data_smart.py", line 802, in getVarFlag
          parser = self.expandWithRefs(value, cachename)
        File "/shared/workspace_agl/external/poky/bitbake/lib/bb/data_smart.py", line 424, in expandWithRefs
          raise ExpansionError(varname, s, exc).with_traceback(tb) from exc
        File "/shared/workspace_agl/external/poky/bitbake/lib/bb/data_smart.py", line 411, in expandWithRefs
          s = __expand_python_regexp__.sub(varparse.python_sub, s)
        File "/shared/workspace_agl/external/poky/bitbake/lib/bb/data_smart.py", line 112, in python_sub
          return connector.expandPythonRef(self.varname, code, self.d)
        File "/shared/workspace_agl/external/poky/bitbake/lib/bb/tinfoil.py", line 70, in expandPythonRef
          ret = self.tinfoil.run_command('dataStoreConnectorExpandPythonRef', ds, varname, expr)
        File "/shared/workspace_agl/external/poky/bitbake/lib/bb/tinfoil.py", line 466, in run_command
          raise TinfoilCommandFailed(result[1])
      bb.data_smart.ExpansionError: Failure expanding variable SRCPV, expression was ${@bb.fetch2.get_srcrev(d)} which triggered exception TinfoilCommandFailed: Traceback (most recent call last):
        File "/shared/workspace_agl/external/poky/bitbake/lib/bb/fetch2/__init__.py", line 1560, in latest_revision
          return revs[key]
        File "/shared/workspace_agl/external/poky/bitbake/lib/bb/persist_data.py", line 50, in wrap_func
          return f(self, *args, **kwargs)
        File "/shared/workspace_agl/external/poky/bitbake/lib/bb/persist_data.py", line 79, in wrap_func
          return f(self, cursor, *args, **kwargs)
        File "/shared/workspace_agl/external/poky/bitbake/lib/bb/persist_data.py", line 165, in __getitem__
          raise KeyError(key)
      KeyError: 'git:gerrit.automotivelinux.org.gerrit.apps.onscreenapp${AGL_APP_REVISION}'
      
      
      During handling of the above exception, another exception occurred:
      
      Traceback (most recent call last):
        File "/shared/workspace_agl/external/poky/bitbake/lib/bb/command.py", line 74, in runCommand
          result = command_method(self, commandline)
        File "/shared/workspace_agl/external/poky/bitbake/lib/bb/command.py", line 496, in dataStoreConnectorExpandPythonRef
          return varparse.python_sub(expr)
        File "/shared/workspace_agl/external/poky/bitbake/lib/bb/data_smart.py", line 136, in python_sub
          value = utils.better_eval(codeobj, DataContext(self.d), {'d' : self.d})
        File "/shared/workspace_agl/external/poky/bitbake/lib/bb/utils.py", line 421, in better_eval
          return eval(source, ctx, locals)
        File "Var <SRCPV>", line 1, in <module>
        File "/shared/workspace_agl/external/poky/bitbake/lib/bb/fetch2/__init__.py", line 745, in get_srcrev
          fetcher = Fetch(d.getVar('SRC_URI').split(), d)
        File "/shared/workspace_agl/external/poky/bitbake/lib/bb/fetch2/__init__.py", line 1600, in __init__
          self.ud[url] = FetchData(url, d, localonly)
        File "/shared/workspace_agl/external/poky/bitbake/lib/bb/fetch2/__init__.py", line 1272, in __init__
          self.method.urldata_init(self, d)
        File "/shared/workspace_agl/external/poky/bitbake/lib/bb/fetch2/git.py", line 237, in urldata_init
          ud.revisions[name] = self.latest_revision(ud, d, name)
        File "/shared/workspace_agl/external/poky/bitbake/lib/bb/fetch2/__init__.py", line 1562, in latest_revision
          revs[key] = rev = self._latest_revision(ud, d, name)
        File "/shared/workspace_agl/external/poky/bitbake/lib/bb/fetch2/git.py", line 645, in _latest_revision
          (ud.unresolvedrev[name], ud.host+ud.path))
      bb.fetch2.FetchError: Fetcher failure: Unable to resolve '${AGL_APP_REVISION}' in upstream git repository in git ls-remote output for gerrit.automotivelinux.org/gerrit/apps/onscreenapp
      

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            jsmoeller Jan-Simon Moeller
            mvlad Marius Vlad
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: