simplestreams FTBFS: dh_auto_test fails because of expired test gpg key

Bug #2019864 reported by Michał Małoszewski
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
simplestreams (Ubuntu)
Triaged
High
Unassigned
Bionic
Triaged
High
Unassigned
Focal
Triaged
High
Unassigned
Jammy
Triaged
High
Unassigned
Kinetic
Triaged
High
Unassigned
Lunar
Triaged
High
Unassigned

Bug Description

amd64 build of simplestreams failed to build on lcy02-amd64-042
Clicking 'Retry this build' did not help

Full build log: https://launchpadlibrarian.net/666455388/buildlog_ubuntu-bionic-amd64.simplestreams_0.1.0~bzr460-0ubuntu1.2~ppa1_BUILDING.txt.gz

In there you see:

dh_auto_test: Compatibility levels before 9 are deprecated (level 7 in use)
 make -j1 test
make[1]: Entering directory '/<<PKGBUILDDIR>>'
./tools/create-gpgdir
creating GNUPGHOME dir in /<<PKGBUILDDIR>>/gnupg.
  pubkey '/<<PKGBUILDDIR>>/examples/keys/example.pub'
  secret '/<<PKGBUILDDIR>>/examples/keys/example.sec'
  pubkeys: /<<PKGBUILDDIR>>/examples/keys/example.pub
imported secret key /<<PKGBUILDDIR>>/examples/keys/example.sec
imported pubkey /<<PKGBUILDDIR>>/examples/keys/example.pub
./tools/tenv ./tools/sign-examples
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/tools/js2signed", line 53, in <module>
    main()
  File "/<<PKGBUILDDIR>>/tools/js2signed", line 41, in main
    signjson_file(path, force=force)
  File "/<<PKGBUILDDIR>>/tools/sign_helper.py", line 25, in signjson_file
    util.sign_file(fname, inline=False)
  File "/<<PKGBUILDDIR>>/simplestreams/util.py", line 546, in sign_file
    return subp(get_sign_cmd(path=fname, output=outfile, inline=inline))[0]
  File "/<<PKGBUILDDIR>>/simplestreams/util.py", line 458, in subp
    raise subprocess.CalledProcessError(rc, args, output=(out, err))
subprocess.CalledProcessError: Command '['gpg', '--batch', '--output', '/<<PKGBUILDDIR>>/examples/cirros/streams/v1/index.json.gpg', '--armor', '--detach-sign', '/<<PKGBUILDDIR>>/examples/cirros/streams/v1/index.json']' returned non-zero exit status 2
Makefile:39: recipe for target 'examples-sign' failed
make[1]: *** [examples-sign] Error 1

Tags: server-todo
affects: apache2 (Ubuntu) → simplestreams (Ubuntu)
Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

Can you provide better logs, please? It's not possible to understand why the build failed from the logs posted in the description. Thanks.

Bryce Harrington (bryce)
Changed in simplestreams (Ubuntu):
status: New → Incomplete
Revision history for this message
Michał Małoszewski (michal-maloszewski99) wrote :

I am aware, I have found the part that seems interesting:

dpkg-buildpackage
-----------------

Command: dpkg-buildpackage -us -uc -mLaunchpad Build Daemon <email address hidden> -b -rfakeroot
dpkg-buildpackage: info: source package simplestreams
dpkg-buildpackage: info: source version 0.1.0~bzr460-0ubuntu1.2~ppa1
dpkg-buildpackage: info: source distribution bionic
 dpkg-source --before-build simplestreams-0.1.0~bzr460
dpkg-buildpackage: info: host architecture amd64
 fakeroot debian/rules clean
dh clean --with=python2,python3
dh: Compatibility levels before 9 are deprecated (level 7 in use)
   dh_auto_clean
dh_auto_clean: Compatibility levels before 9 are deprecated (level 7 in use)
   dh_clean
dh_clean: Compatibility levels before 9 are deprecated (level 7 in use)
 debian/rules build
dh build --with=python2,python3
dh: Compatibility levels before 9 are deprecated (level 7 in use)
   dh_update_autotools_config
   dh_auto_configure
dh_auto_configure: Compatibility levels before 9 are deprecated (level 7 in use)
   dh_auto_build
dh_auto_build: Compatibility levels before 9 are deprecated (level 7 in use)
 make -j1
make[1]: Entering directory '/<<PKGBUILDDIR>>'
nothing to do for build
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_auto_test
dh_auto_test: Compatibility levels before 9 are deprecated (level 7 in use)
 make -j1 test
make[1]: Entering directory '/<<PKGBUILDDIR>>'
./tools/create-gpgdir
creating GNUPGHOME dir in /<<PKGBUILDDIR>>/gnupg.
  pubkey '/<<PKGBUILDDIR>>/examples/keys/example.pub'
  secret '/<<PKGBUILDDIR>>/examples/keys/example.sec'
  pubkeys: /<<PKGBUILDDIR>>/examples/keys/example.pub
imported secret key /<<PKGBUILDDIR>>/examples/keys/example.sec
imported pubkey /<<PKGBUILDDIR>>/examples/keys/example.pub
./tools/tenv ./tools/sign-examples
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/tools/js2signed", line 53, in <module>
    main()
  File "/<<PKGBUILDDIR>>/tools/js2signed", line 41, in main
    signjson_file(path, force=force)
  File "/<<PKGBUILDDIR>>/tools/sign_helper.py", line 25, in signjson_file
    util.sign_file(fname, inline=False)
  File "/<<PKGBUILDDIR>>/simplestreams/util.py", line 546, in sign_file
    return subp(get_sign_cmd(path=fname, output=outfile, inline=inline))[0]
  File "/<<PKGBUILDDIR>>/simplestreams/util.py", line 458, in subp
    raise subprocess.CalledProcessError(rc, args, output=(out, err))
subprocess.CalledProcessError: Command '['gpg', '--batch', '--output', '/<<PKGBUILDDIR>>/examples/cirros/streams/v1/index.json.gpg', '--armor', '--detach-sign', '/<<PKGBUILDDIR>>/examples/cirros/streams/v1/index.json']' returned non-zero exit status 2
Makefile:39: recipe for target 'examples-sign' failed
make[1]: *** [examples-sign] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_test: make -j1 test returned exit code 2
debian/rules:7: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
--------------------------------------------------------------------------------
Build finished at 2023-05-16T14:04:28Z

Revision history for this message
Paride Legovini (paride) wrote :

I reproduced this by (main steps):

1. git ubuntu clone simplestreams
2. git checkout ubuntu/bionic-devel
3. sbuild -d bionic

Outcome:

[...]
make[1]: Entering directory '/build/simplestreams-83uOzI/simplestreams-0.1.0~bzr460'
./tools/create-gpgdir
creating GNUPGHOME dir in /build/simplestreams-83uOzI/simplestreams-0.1.0~bzr460/gnupg.
  pubkey '/build/simplestreams-83uOzI/simplestreams-0.1.0~bzr460/examples/keys/example.pub'
  secret '/build/simplestreams-83uOzI/simplestreams-0.1.0~bzr460/examples/keys/example.sec'
  pubkeys: /build/simplestreams-83uOzI/simplestreams-0.1.0~bzr460/examples/keys/example.pub
imported secret key /build/simplestreams-83uOzI/simplestreams-0.1.0~bzr460/examples/keys/example.sec
imported pubkey /build/simplestreams-83uOzI/simplestreams-0.1.0~bzr460/examples/keys/example.pub
./tools/tenv ./tools/sign-examples
Traceback (most recent call last):
  File "/build/simplestreams-83uOzI/simplestreams-0.1.0~bzr460/tools/js2signed", line 53, in <module>
    main()
  File "/build/simplestreams-83uOzI/simplestreams-0.1.0~bzr460/tools/js2signed", line 41, in main
    signjson_file(path, force=force)
  File "/build/simplestreams-83uOzI/simplestreams-0.1.0~bzr460/tools/sign_helper.py", line 25, in signjson_file
    util.sign_file(fname, inline=False)
  File "/build/simplestreams-83uOzI/simplestreams-0.1.0~bzr460/simplestreams/util.py", line 546, in sign_file
    return subp(get_sign_cmd(path=fname, output=outfile, inline=inline))[0]
  File "/build/simplestreams-83uOzI/simplestreams-0.1.0~bzr460/simplestreams/util.py", line 458, in subp
    raise subprocess.CalledProcessError(rc, args, output=(out, err))
subprocess.CalledProcessError: Command '['gpg', '--batch', '--output', '/build/simplestreams-83uOzI/simplestreams-0.1.0~bzr460/examples/cirros/streams/v1/index.json.gpg', '--armor', '--detach-sign', '/build/simplestreams-83uOzI/simplestreams-0.1.0~bzr460/examples/cirros/streams/v1/index.json']' returned non-zero exit status 2
Makefile:39: recipe for target 'examples-sign' failed
make[1]: *** [examples-sign] Error 1
make[1]: Leaving directory '/build/simplestreams-83uOzI/simplestreams-0.1.0~bzr460'
dh_auto_test: make -j1 test returned exit code 2
debian/rules:7: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
--------------------------------------------------------------------------------

Revision history for this message
Paride Legovini (paride) wrote :

This affects all the releases (not only bionic). The issue is that the test key expired. We need to renew the key (or generate a new one if easier) and SRU the change everywhere.

---

$ GNUPGHOME=$PWD/gnupg gpg -K
/home/paride/ubuntu/gu/simplestreams/gnupg/pubring.kbx
------------------------------------------------------
sec rsa1024 2013-02-26 [SCEA] [expired: 2023-02-24]
      198E8D3C27227898CB4D413CA9714A203967536E
uid [ expired] Simple Streams Test User (Test Usage Only. Do Not Import.) <email address hidden>

Changed in simplestreams (Ubuntu):
status: Incomplete → Triaged
Changed in simplestreams (Ubuntu Bionic):
status: New → Triaged
Changed in simplestreams (Ubuntu Focal):
status: New → Triaged
Changed in simplestreams (Ubuntu Jammy):
status: New → Triaged
Changed in simplestreams (Ubuntu Kinetic):
status: New → Triaged
Changed in simplestreams (Ubuntu Lunar):
status: New → Triaged
Changed in simplestreams (Ubuntu):
importance: Undecided → High
Changed in simplestreams (Ubuntu Bionic):
importance: Undecided → High
Changed in simplestreams (Ubuntu Focal):
importance: Undecided → High
Changed in simplestreams (Ubuntu Jammy):
importance: Undecided → High
Changed in simplestreams (Ubuntu Kinetic):
importance: Undecided → High
Changed in simplestreams (Ubuntu Lunar):
importance: Undecided → High
tags: added: server-todo
summary: - amd64 build of simplestreams failed in ubuntu bionic release
+ simplestreams FTBFS: dh_auto_test fails because of expired test gpg key
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.