<86>Mar 11 10:26:13 userdel[3119052]: delete user 'rooter' <86>Mar 11 10:26:13 userdel[3119052]: removed group 'rooter' owned by 'rooter' <86>Mar 11 10:26:13 userdel[3119052]: removed shadow group 'rooter' owned by 'rooter' <86>Mar 11 10:26:13 groupadd[3119116]: group added to /etc/group: name=rooter, GID=585 <86>Mar 11 10:26:13 groupadd[3119116]: group added to /etc/gshadow: name=rooter <86>Mar 11 10:26:13 useradd[3119127]: new user: name=rooter, UID=585, GID=585, home=/root, shell=/bin/bash <86>Mar 11 10:26:13 userdel[3119172]: delete user 'builder' <86>Mar 11 10:26:13 userdel[3119172]: removed group 'builder' owned by 'builder' <86>Mar 11 10:26:13 userdel[3119172]: removed shadow group 'builder' owned by 'builder' <86>Mar 11 10:26:13 groupadd[3119182]: group added to /etc/group: name=builder, GID=586 <86>Mar 11 10:26:13 groupadd[3119182]: group added to /etc/gshadow: name=builder <86>Mar 11 10:26:13 groupadd[3119182]: new group: name=builder, GID=586 <86>Mar 11 10:26:13 useradd[3119235]: new user: name=builder, UID=586, GID=586, home=/usr/src, shell=/bin/bash /usr/src/in/srpm/python3-module-mozcrash-1.0-alt2.src.rpm: The use of such a license name is ambiguous: MPL <13>Mar 11 10:26:16 rpmi: libgdbm-1.8.3-alt10 1454943334 installed <13>Mar 11 10:26:16 rpmi: libexpat-2.2.4-alt1 1503305345 installed <13>Mar 11 10:26:17 rpmi: libp11-kit-0.23.15-alt1 sisyphus+226408.100.2.1 1554288204 installed <13>Mar 11 10:26:17 rpmi: libtasn1-4.16.0-alt1 sisyphus+245480.100.1.1 1580825062 installed <13>Mar 11 10:26:17 rpmi: rpm-macros-alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Mar 11 10:26:17 rpmi: alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Mar 11 10:26:17 rpmi: ca-certificates-2020.01.23-alt1 sisyphus+244791.300.2.1 1580285500 installed <13>Mar 11 10:26:17 rpmi: ca-trust-0.1.2-alt1 sisyphus+233348.100.1.1 1561653823 installed <13>Mar 11 10:26:17 rpmi: p11-kit-trust-0.23.15-alt1 sisyphus+226408.100.2.1 1554288204 installed <13>Mar 11 10:26:17 rpmi: libcrypto1.1-1.1.1d-alt1.1 sisyphus+237931.100.2.1 1569235729 installed <13>Mar 11 10:26:17 rpmi: libssl1.1-1.1.1d-alt1.1 sisyphus+237931.100.2.1 1569235729 installed <13>Mar 11 10:26:17 rpmi: python3-3.8.1-alt1 sisyphus+245000.10.78.1 1583192667 installed <13>Mar 11 10:26:19 rpmi: python3-base-3.8.1-alt1 sisyphus+245000.10.78.1 1583192667 installed <13>Mar 11 10:26:19 rpmi: libpython3-3.8.1-alt1 sisyphus+245000.10.78.1 1583192667 installed <13>Mar 11 10:26:19 rpmi: tests-for-installed-python3-pkgs-0.1.13.1-alt2 1535450458 installed <13>Mar 11 10:26:19 rpmi: rpm-build-python3-0.1.13.1-alt2 1535450458 installed <13>Mar 11 10:26:23 rpmi: python3-module-pkg_resources-1:41.4.0-alt1 sisyphus+238787.100.2.1 1570608044 installed <13>Mar 11 10:26:23 rpmi: libverto-0.3.0-alt1_7 sisyphus+225932.100.1.1 1553994919 installed <13>Mar 11 10:26:23 rpmi: libkeyutils-1.6-alt2 sisyphus+226520.100.2.1 1554512089 installed <13>Mar 11 10:26:23 rpmi: libcom_err-1.44.6-alt1 sisyphus+224154.100.1.1 1552091678 installed <86>Mar 11 10:26:23 groupadd[3137377]: group added to /etc/group: name=_keytab, GID=499 <86>Mar 11 10:26:23 groupadd[3137377]: group added to /etc/gshadow: name=_keytab <86>Mar 11 10:26:23 groupadd[3137377]: new group: name=_keytab, GID=499 <13>Mar 11 10:26:23 rpmi: libkrb5-1.17.1-alt1 sisyphus+242784.100.1.1 1576137330 installed <13>Mar 11 10:26:23 rpmi: libtirpc-1.0.3-alt1 1532008017 installed <13>Mar 11 10:26:23 rpmi: libnsl2-1.1.0-alt1_1 1511548749 installed <13>Mar 11 10:26:23 rpmi: python-modules-encodings-2.7.17-alt4 sisyphus+244873.100.2.1 1581419544 installed <13>Mar 11 10:26:23 rpmi: python-modules-compiler-2.7.17-alt4 sisyphus+244873.100.2.1 1581419544 installed <13>Mar 11 10:26:23 rpmi: python-modules-email-2.7.17-alt4 sisyphus+244873.100.2.1 1581419544 installed <13>Mar 11 10:26:23 rpmi: python-modules-unittest-2.7.17-alt4 sisyphus+244873.100.2.1 1581419544 installed <13>Mar 11 10:26:24 rpmi: python-modules-2.7.17-alt4 sisyphus+244873.100.2.1 1581419544 installed <13>Mar 11 10:26:24 rpmi: python-modules-nis-2.7.17-alt4 sisyphus+244873.100.2.1 1581419544 installed <13>Mar 11 10:26:24 rpmi: python-modules-ctypes-2.7.17-alt4 sisyphus+244873.100.2.1 1581419544 installed <13>Mar 11 10:26:24 rpmi: python-modules-multiprocessing-2.7.17-alt4 sisyphus+244873.100.2.1 1581419544 installed <13>Mar 11 10:26:24 rpmi: python-modules-logging-2.7.17-alt4 sisyphus+244873.100.2.1 1581419544 installed <13>Mar 11 10:26:24 rpmi: python-tools-2to3-2.7.17-alt4 sisyphus+244873.100.2.1 1581419544 installed <13>Mar 11 10:26:24 rpmi: python3-module-mozinfo-1.2.1-alt1 sisyphus+244613.200.2.1 1579618952 installed <13>Mar 11 10:26:24 rpmi: python3-module-mozlog-3.3-alt2 sisyphus+244612.100.2.1 1579617899 installed <13>Mar 11 10:26:24 rpmi: python3-module-six-1.13.0-alt1 sisyphus+240546.100.2.1 1573542703 installed <13>Mar 11 10:26:24 rpmi: python3-module-mozfile-1.2-alt2 sisyphus+244612.40.2.1 1579617865 installed Building target platforms: i586 Building for target i586 Wrote: /usr/src/in/nosrpm/python3-module-mozcrash-1.0-alt2.nosrc.rpm <13>Mar 11 10:26:26 rpmi: libtinfo-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686226 installed <13>Mar 11 10:26:26 rpmi: libncurses-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686226 installed <13>Mar 11 10:26:26 rpmi: python3-dev-3.8.1-alt1 sisyphus+245000.10.78.1 1583192667 installed <13>Mar 11 10:26:26 rpmi: python3-module-setuptools-1:41.4.0-alt1 sisyphus+238787.100.2.1 1570608044 installed Installing python3-module-mozcrash-1.0-alt2.src.rpm Building target platforms: i586 Building for target i586 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.84004 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf mozcrash-1.0 + echo 'Source #0 (mozcrash-1.0.tar.gz):' Source #0 (mozcrash-1.0.tar.gz): + /bin/gzip -dc /usr/src/RPM/SOURCES/mozcrash-1.0.tar.gz + /bin/tar -xf - + cd mozcrash-1.0 + /bin/chmod -c -Rf u+rwX,go-w . + find -type f -name '*.py' -exec 2to3 -w -n '{}' + RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: No changes to ./setup.py RefactoringTool: Refactored ./mozcrash/mozcrash.py RefactoringTool: Refactored ./mozcrash/__init__.py RefactoringTool: Files that were modified: RefactoringTool: ./setup.py RefactoringTool: ./mozcrash/mozcrash.py RefactoringTool: ./mozcrash/__init__.py --- ./mozcrash/mozcrash.py (original) +++ ./mozcrash/mozcrash.py (refactored) @@ -10,7 +10,7 @@ import subprocess import sys import tempfile -import urllib2 +import urllib.request, urllib.error, urllib.parse import zipfile from collections import namedtuple @@ -105,10 +105,10 @@ stackwalk_output.append("minidump_stackwalk exited with return code %d" % info.stackwalk_retcode) signature = info.signature if info.signature else "unknown top frame" - print "PROCESS-CRASH | %s | application crashed [%s]" % (test_name, - signature) - print '\n'.join(stackwalk_output) - print '\n'.join(info.stackwalk_errors) + print("PROCESS-CRASH | %s | application crashed [%s]" % (test_name, + signature)) + print('\n'.join(stackwalk_output)) + print('\n'.join(info.stackwalk_errors)) return crash_count @@ -177,7 +177,7 @@ self.remove_symbols = True self.logger.info("Downloading symbols from: %s" % self.symbols_path) # Get the symbols and write them to a temporary zipfile - data = urllib2.urlopen(self.symbols_path) + data = urllib.request.urlopen(self.symbols_path) with tempfile.TemporaryFile() as symbols_file: symbols_file.write(data.read()) # extract symbols to a temporary directory (which we'll delete after @@ -371,12 +371,12 @@ if m and m.group(1): exception_location = m.group(1) if not quiet: - print "PROCESS-CRASH | %s | java-exception %s %s" % (test_name, + print("PROCESS-CRASH | %s | java-exception %s %s" % (test_name, exception_type, - exception_location) + exception_location)) else: - print "Automation Error: java exception in logcat at line " \ - "%d of %d: %s" % (i, len(logcat), line) + print("Automation Error: java exception in logcat at line " \ + "%d of %d: %s" % (i, len(logcat), line)) break return found_exception @@ -422,7 +422,7 @@ log.error("minidumpwriter not found in %s" % utility_path) return - if isinstance(file_name, unicode): + if isinstance(file_name, str): # Convert to a byte string before sending to the shell. file_name = file_name.encode(sys.getfilesystemencoding()) @@ -436,10 +436,10 @@ if not proc_handle: return - if not isinstance(file_name, unicode): + if not isinstance(file_name, str): # Convert to unicode explicitly so our path will be valid as input # to CreateFileW - file_name = unicode(file_name, sys.getfilesystemencoding()) + file_name = str(file_name, sys.getfilesystemencoding()) file_handle = kernel32.CreateFileW(file_name, GENERIC_READ | GENERIC_WRITE, --- ./mozcrash/__init__.py (original) +++ ./mozcrash/__init__.py (refactored) @@ -7,4 +7,4 @@ and left behind a minidump file using the Google Breakpad library. """ -from mozcrash import * +from .mozcrash import * + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.85876 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd mozcrash-1.0 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export FFLAGS + /usr/bin/python3 setup.py build --debug running build running build_py creating build creating build/lib creating build/lib/mozcrash copying mozcrash/mozcrash.py -> build/lib/mozcrash copying mozcrash/__init__.py -> build/lib/mozcrash running egg_info writing mozcrash.egg-info/PKG-INFO writing dependency_links to mozcrash.egg-info/dependency_links.txt writing requirements to mozcrash.egg-info/requires.txt writing top-level names to mozcrash.egg-info/top_level.txt reading manifest file 'mozcrash.egg-info/SOURCES.txt' writing manifest file 'mozcrash.egg-info/SOURCES.txt' + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.88355 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/python3-module-mozcrash-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python3-module-mozcrash-buildroot + cd mozcrash-1.0 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export FFLAGS + /usr/bin/python3 setup.py install --skip-build --root=/usr/src/tmp/python3-module-mozcrash-buildroot --force running install running install_lib creating /usr/src/tmp/python3-module-mozcrash-buildroot creating /usr/src/tmp/python3-module-mozcrash-buildroot/usr creating /usr/src/tmp/python3-module-mozcrash-buildroot/usr/lib creating /usr/src/tmp/python3-module-mozcrash-buildroot/usr/lib/python3 creating /usr/src/tmp/python3-module-mozcrash-buildroot/usr/lib/python3/site-packages creating /usr/src/tmp/python3-module-mozcrash-buildroot/usr/lib/python3/site-packages/mozcrash copying build/lib/mozcrash/__init__.py -> /usr/src/tmp/python3-module-mozcrash-buildroot/usr/lib/python3/site-packages/mozcrash copying build/lib/mozcrash/mozcrash.py -> /usr/src/tmp/python3-module-mozcrash-buildroot/usr/lib/python3/site-packages/mozcrash byte-compiling /usr/src/tmp/python3-module-mozcrash-buildroot/usr/lib/python3/site-packages/mozcrash/__init__.py to __init__.cpython-38.pyc byte-compiling /usr/src/tmp/python3-module-mozcrash-buildroot/usr/lib/python3/site-packages/mozcrash/mozcrash.py to mozcrash.cpython-38.pyc running install_egg_info running egg_info writing mozcrash.egg-info/PKG-INFO writing dependency_links to mozcrash.egg-info/dependency_links.txt writing requirements to mozcrash.egg-info/requires.txt writing top-level names to mozcrash.egg-info/top_level.txt reading manifest file 'mozcrash.egg-info/SOURCES.txt' writing manifest file 'mozcrash.egg-info/SOURCES.txt' Copying mozcrash.egg-info to /usr/src/tmp/python3-module-mozcrash-buildroot/usr/lib/python3/site-packages/mozcrash-1.0-py3.8.egg-info running install_scripts + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/python3-module-mozcrash-buildroot (auto) Verifying and fixing files in /usr/src/tmp/python3-module-mozcrash-buildroot (binconfig,pkgconfig,libtool,desktop) Checking contents of files in /usr/src/tmp/python3-module-mozcrash-buildroot/ (default) Compressing files in /usr/src/tmp/python3-module-mozcrash-buildroot (auto) Adjusting library links in /usr/src/tmp/python3-module-mozcrash-buildroot ./usr/lib: Verifying ELF objects in /usr/src/tmp/python3-module-mozcrash-buildroot (arch=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=normal,stack=normal,textrel=normal,unresolved=normal) Bytecompiling python modules in /usr/src/tmp/python3-module-mozcrash-buildroot using /usr/bin/python2.7 Bytecompiling python modules with optimization in /usr/src/tmp/python3-module-mozcrash-buildroot using /usr/bin/python2.7 -O Bytecompiling python3 modules in /usr/src/tmp/python3-module-mozcrash-buildroot using /usr/bin/python3 unlink /usr/src/tmp/python3-module-mozcrash-buildroot/usr/lib/python3/site-packages/mozcrash/__pycache__/__init__.cpython-38.pyc unlink /usr/src/tmp/python3-module-mozcrash-buildroot/usr/lib/python3/site-packages/mozcrash/__pycache__/mozcrash.cpython-38.pyc compile /usr/src/tmp/python3-module-mozcrash-buildroot/usr/lib/python3/site-packages/mozcrash/__init__.py compile /usr/src/tmp/python3-module-mozcrash-buildroot/usr/lib/python3/site-packages/mozcrash/mozcrash.py Bytecompiling python3 modules with optimization in /usr/src/tmp/python3-module-mozcrash-buildroot using /usr/bin/python3 -O compile /usr/src/tmp/python3-module-mozcrash-buildroot/usr/lib/python3/site-packages/mozcrash/__init__.py compile /usr/src/tmp/python3-module-mozcrash-buildroot/usr/lib/python3/site-packages/mozcrash/mozcrash.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python3-module-mozcrash-buildroot using /usr/bin/python3 -OO compile /usr/src/tmp/python3-module-mozcrash-buildroot/usr/lib/python3/site-packages/mozcrash/__init__.py compile /usr/src/tmp/python3-module-mozcrash-buildroot/usr/lib/python3/site-packages/mozcrash/mozcrash.py Hardlinking identical .pyc and .opt-?.pyc files './usr/lib/python3/site-packages/mozcrash/__pycache__/mozcrash.cpython-38.opt-1.pyc' => './usr/lib/python3/site-packages/mozcrash/__pycache__/mozcrash.cpython-38.pyc' './usr/lib/python3/site-packages/mozcrash/__pycache__/__init__.cpython-38.opt-1.pyc' => './usr/lib/python3/site-packages/mozcrash/__pycache__/__init__.cpython-38.pyc' Hardlinking identical .pyc and .pyo files Executing(%check): /bin/sh -e /usr/src/tmp/rpm-tmp.21592 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd mozcrash-1.0 + /usr/bin/python3 setup.py test running test running egg_info writing mozcrash.egg-info/PKG-INFO writing dependency_links to mozcrash.egg-info/dependency_links.txt deleting mozcrash.egg-info/requires.txt writing top-level names to mozcrash.egg-info/top_level.txt reading manifest file 'mozcrash.egg-info/SOURCES.txt' writing manifest file 'mozcrash.egg-info/SOURCES.txt' running build_ext mozcrash (unittest.loader._FailedTest) ... ERROR ====================================================================== ERROR: mozcrash (unittest.loader._FailedTest) ---------------------------------------------------------------------- ImportError: Failed to import test module: mozcrash Traceback (most recent call last): File "/usr/lib/python3/site-packages/mozinfo/mozinfo.py", line 107, in from distro import linux_distribution ModuleNotFoundError: No module named 'distro' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3.8/unittest/loader.py", line 470, in _find_test_path package = self._get_module_from_name(name) File "/usr/lib/python3.8/unittest/loader.py", line 377, in _get_module_from_name __import__(name) File "/usr/src/RPM/BUILD/mozcrash-1.0/mozcrash/__init__.py", line 10, in from .mozcrash import * File "/usr/src/RPM/BUILD/mozcrash-1.0/mozcrash/mozcrash.py", line 18, in import mozinfo File "/usr/lib/python3/site-packages/mozinfo/__init__.py", line 57, in from . import mozinfo File "/usr/lib/python3/site-packages/mozinfo/mozinfo.py", line 109, in from platform import linux_distribution ImportError: cannot import name 'linux_distribution' from 'platform' (/usr/lib/python3.8/platform.py) ---------------------------------------------------------------------- Ran 1 test in 0.001s FAILED (errors=1) Test failed: error: Test failed: error: Bad exit status from /usr/src/tmp/rpm-tmp.21592 (%check) RPM build errors: Bad exit status from /usr/src/tmp/rpm-tmp.21592 (%check) Command exited with non-zero status 1 7.07user 0.49system 0:14.63elapsed 51%CPU (0avgtext+0avgdata 20708maxresident)k 0inputs+0outputs (0major+95384minor)pagefaults 0swaps hsh-rebuild: rebuild of `python3-module-mozcrash-1.0-alt2.src.rpm' failed. Command exited with non-zero status 1 14.27user 3.39system 0:32.04elapsed 55%CPU (0avgtext+0avgdata 108956maxresident)k 232inputs+0outputs (0major+509024minor)pagefaults 0swaps