fix: Add try except to log error for clearer reason for failure #526
build.yml
on: pull_request
copr-build
0s
Matrix: Build and push image
Annotations
2 errors
Build and push image (39)
Error: buildah exited with code 2
Trying to pull registry.fedoraproject.org/fedora:39...
Getting image source signatures
Copying blob sha256:0dfdde14d20174460196a8f3e2f8fb828085664407faa1954ab3de8b16162c99
Copying blob sha256:0dfdde14d20174460196a8f3e2f8fb828085664407faa1954ab3de8b16162c99
Copying config sha256:349277cb3b3cce28ff36d5955036e7734f2abb66dae9c731e75fdc74070f85c6
Writing manifest to image destination
Storing signatures
git_dir_pack: archiving /app:
commit b5739f711b02658f9dc74e25ca848734952223a2 (grafted, HEAD, pull/118/merge)
Author: Gerald Pinder <[email protected]>
Date: Tue Jun 11 01:25:09 2024 +0000
Merge c5969741e6bfc949ae3f4c5bcad4e30fdfc0c25a into b2bbbf0c95b6bceef2778d302a89c3aa52ecf0f2
git_dir_pack: Wrote: /app/output/ublue-update-b5739f71.tar.gz
+ umask 022
+ cd /app/output
+ cd /app/output
+ rm -rf ublue-update
+ /usr/lib/rpm/rpmuncompress -x /app/output/ublue-update-b5739f71.tar.gz
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd ublue-update
+ rm -rf /app/output/ublue-update-SPECPARTS
+ /usr/bin/mkdir -p /app/output/ublue-update-SPECPARTS
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ RPM_EC=0
++ jobs -p
+ exit 0
+ umask 022
+ cd /app/output
+ CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer '
+ export CFLAGS
+ CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer '
+ export CXXFLAGS
+ FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules '
+ export FFLAGS
+ FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules '
+ export FCFLAGS
+ VALAFLAGS=-g
+ export VALAFLAGS
+ RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn'
+ export RUSTFLAGS
+ LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes '
+ export LDFLAGS
+ LT_SYS_LIBRARY_PATH=/usr/lib64:
+ export LT_SYS_LIBRARY_PATH
+ CC=gcc
+ export CC
+ CXX=g++
+ export CXX
+ cd ublue-update
+ ls
+ ls src
+ black src
reformatted /app/output/ublue-update/src/ublue_update/update_inhibitors/custom.py
reformatted /app/output/ublue-update/src/ublue_update/update_inhibitors/hardware.py
reformatted /app/output/ublue-update/src/ublue_update/cli.py
All done! ✨ 🍰 ✨
3 files reformatted, 8 files left unchanged.
+ flake8 src
error: Bad exit status from /var/tmp/rpm-tmp.WS0ehD (%build)
Bad exit status from /var/tmp/rpm-tmp.WS0ehD (%build)
ma
|
Build and push image (38)
Error: buildah exited with code 2
Trying to pull registry.fedoraproject.org/fedora:38...
Getting image source signatures
Copying blob sha256:95fe7b64e419f415e8175e1a4f65b41ddb69fdb5c5730a26abd9ffd4a50a1281
Copying blob sha256:95fe7b64e419f415e8175e1a4f65b41ddb69fdb5c5730a26abd9ffd4a50a1281
Copying config sha256:3eda970c1318e5ea564134338746c04d86ae9817c3a0defdc138b8ccdf787285
Writing manifest to image destination
Storing signatures
git_dir_pack: archiving /app:
commit b5739f711b02658f9dc74e25ca848734952223a2 (grafted, HEAD, pull/118/merge)
Author: Gerald Pinder <[email protected]>
Date: Tue Jun 11 01:25:09 2024 +0000
Merge c5969741e6bfc949ae3f4c5bcad4e30fdfc0c25a into b2bbbf0c95b6bceef2778d302a89c3aa52ecf0f2
git_dir_pack: Wrote: /app/output/ublue-update-b5739f71.tar.gz
+ umask 022
+ cd /app/output
+ cd /app/output
+ rm -rf ublue-update
+ /usr/lib/rpm/rpmuncompress -x /app/output/ublue-update-b5739f71.tar.gz
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd ublue-update
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ RPM_EC=0
++ jobs -p
+ exit 0
+ umask 022
+ cd /app/output
+ CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer '
+ export CFLAGS
+ CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer '
+ export CXXFLAGS
+ FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules '
+ export FFLAGS
+ FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules '
+ export FCFLAGS
+ VALAFLAGS=-g
+ export VALAFLAGS
+ LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes '
+ export LDFLAGS
+ LT_SYS_LIBRARY_PATH=/usr/lib64:
+ export LT_SYS_LIBRARY_PATH
+ CC=gcc
+ export CC
+ CXX=g++
+ export CXX
+ cd ublue-update
+ ls
+ ls src
+ black src
reformatted src/ublue_update/update_inhibitors/custom.py
reformatted src/ublue_update/update_inhibitors/hardware.py
reformatted src/ublue_update/cli.py
All done! ✨ 🍰 ✨
3 files reformatted, 8 files left unchanged.
+ flake8 src
error: Bad exit status from /var/tmp/rpm-tmp.ED2sPQ (%build)
Bad exit status from /var/tmp/rpm-tmp.ED2sPQ (%build)
make: *** [Makefile:19: build-rpm] Error 1
error building at STEP "RUN dnf install --disablerepo='*' --enablerepo='fedora,updates' --setopt install_weak_deps=0 --nodocs --assumeyes 'dnf-command(builddep)' rpkg rpm-build && mkdir -p "$UBLUE_ROOT" && rpkg spec --outdir "$UBLUE_ROOT" &&
|