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

master/pike - kirkstone: (intermittent) failure in do_create_runtime_spdx

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • None
    • master, Pike 16.0.3
    • Build and Tools
    • None

       

      This has been seen e.g. in lttng-modules and this one below ... I suspect it has to do with out-of-tree kernel modules builds ?

       

      ERROR: qcacld-4.5.25.57-r0 do_create_runtime_spdx: Error executing a python function in exec_func_python() autogenerated:
      
      The stack trace of python calls that resulted in this exception/failure was:
      File: 'exec_func_python() autogenerated', lineno: 2, function: <module>
           0001:
       *** 0002:do_create_runtime_spdx(d)
           0003:
      File: '/w/workspace/sandbox-build-machines-sstate-mirror/AGLBRANCH/master/MACHINE/bbe/label/agl-test-slave/sstate-build/external/poky/meta/classes/create-spdx.bbclass', lineno: 726, function: do_create_runtime_spdx
           0722:                    (dep_spdx_package, dep_package_ref) = dep_package_cache[dep]
           0723:                else:
           0724:                    dep_path = deploy_dir_spdx / "packages" / ("%s.spdx.json" % dep_pkg)
           0725:
       *** 0726:                    spdx_dep_doc, spdx_dep_sha1 = oe.sbom.read_doc(dep_path)
           0727:
           0728:                    for pkg in spdx_dep_doc.packages:
           0729:                        if pkg.name == dep_pkg:
           0730:                            dep_spdx_package = pkg
      File: '/w/workspace/sandbox-build-machines-sstate-mirror/AGLBRANCH/master/MACHINE/bbe/label/agl-test-slave/sstate-build/external/poky/meta/lib/oe/sbom.py', lineno: 67, function: read_doc
           0063:        else:
           0064:            with fn.open("rb") as f:
           0065:                yield f
           0066:
       *** 0067:    with get_file() as f:
           0068:        sha1 = hashlib.sha1()
           0069:        while True:
           0070:            chunk = f.read(4096)
           0071:            if not chunk:
      File: '/usr/lib/python3.6/contextlib.py', lineno: 81, function: __enter__
           0077:        return self.__class__(self.func, self.args, self.kwds)
           0078:
           0079:    def __enter__(self):
           0080:        try:
       *** 0081:            return next(self.gen)
           0082:        except StopIteration:
           0083:            raise RuntimeError("generator didn't yield") from None
           0084:
           0085:    def __exit__(self, type, value, traceback):
      File: '/w/workspace/sandbox-build-machines-sstate-mirror/AGLBRANCH/master/MACHINE/bbe/label/agl-test-slave/sstate-build/external/poky/meta/lib/oe/sbom.py', lineno: 64, function: get_file
           0060:    def get_file():
           0061:        if isinstance(fn, io.IOBase):
           0062:            yield fn
           0063:        else:
       *** 0064:            with fn.open("rb") as f:
           0065:                yield f
           0066:
           0067:    with get_file() as f:
           0068:        sha1 = hashlib.sha1()
      File: '/usr/lib/python3.6/pathlib.py', lineno: 1183, function: open
           1179:        """
           1180:        if self._closed:
           1181:            self._raise_closed()
           1182:        return io.open(str(self), mode, buffering, encoding, errors, newline,
       *** 1183:                       opener=self._opener)
           1184:
           1185:    def read_bytes(self):
           1186:        """
           1187:        Open the file in bytes mode, read it, and close the file.
      File: '/usr/lib/python3.6/pathlib.py', lineno: 1037, function: _opener
           1033:        raise ValueError("I/O operation on closed path")
           1034:
           1035:    def _opener(self, name, flags, mode=0o666):
           1036:        # A stub for the opener argument to built-in open()
       *** 1037:        return self._accessor.open(self, flags, mode)
           1038:
           1039:    def _raw_open(self, flags, mode=0o777):
           1040:        """
           1041:        Open the file pointed by this path and return a file descriptor,
      File: '/usr/lib/python3.6/pathlib.py', lineno: 387, function: wrapped
           0383:
           0384:    def _wrap_strfunc(strfunc):
           0385:        @functools.wraps(strfunc)
           0386:        def wrapped(pathobj, *args):
       *** 0387:            return strfunc(str(pathobj), *args)
           0388:        return staticmethod(wrapped)
           0389:
           0390:    def _wrap_binary_strfunc(strfunc):
           0391:        @functools.wraps(strfunc)
      Exception: FileNotFoundError: [Errno 2] No such file or directory: '/w/workspace/sandbox-build-machines-sstate-mirror/AGLBRANCH/master/MACHINE/bbe/label/agl-test-slave/sstate-build/build-bbe/tmp/deploy/spdx/bbe/packages/kernel-5.10.168-sc2.spdx.json' 

        # Subject Branch Project Status CR V

            jsmoeller Jan-Simon Moeller
            jsmoeller Jan-Simon Moeller
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: