[Qa-jenkins-scm] Build failed in Jenkins: reproducible_fdroid_test #362

jenkins at jenkins.debian.net jenkins at jenkins.debian.net
Sat Sep 12 07:35:35 BST 2020


See <https://jenkins.debian.net/job/reproducible_fdroid_test/362/display/redirect?page=changes>

Changes:

[bubu] use yaml safeloader in tests

[bubu] make update.Testcase tests work standalone

[bubu] we need FullLoader for one test, we are dumping custom objects

[bubu] pickle -> yaml rename

[bubu] tests: use yaml.Loader on older yaml versions

[bubu] tests: debian: apksigner is required for the tests to run now

[bubu] fix fedora test

[bubu] skip new signing test when we can't find apksigner

[bubu] use new find_apksigner in test_scan_apk


------------------------------------------
[...truncated 89.13 MB...]
  Android NDK r12b (optional):	$ANDROID_NDK
  Keystore for signing key:	/var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/keystore.jks
  Alias for key in store:	sova

To complete the setup, add your APKs to "/var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/.testfiles/run-tests.EiVA/repo"
then run "fdroid update -c; fdroid update".  You might also want to edit
"config.py" to set the URL, repo name, and more.  You should also set up
a signing key (a temporary one might have been automatically generated).

For more info: https://f-droid.org/docs/Setup_an_F-Droid_App_Repo
and https://f-droid.org/docs/Signing_Process
+ echo 'keystorepass = "r9aquRHYoI8+dYz6jKrLntQ5/NJNASFBacJh7Jv2BlI="'
+ echo 'keypass = "r9aquRHYoI8+dYz6jKrLntQ5/NJNASFBacJh7Jv2BlI="'
+ echo 'keydname = "CN=Birdman, OU=Cell, O=Alcatraz, L=Alcatraz, S=California, C=US"'
+ test -d metadata
+ mkdir metadata
+ cp /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/metadata/com.politedroid.yml metadata/
+ test -d repo
+ test -d unsigned
+ mkdir unsigned
+ cp /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/repo/com.politedroid_6.apk unsigned/
+ /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/fdroid signatures unsigned/com.politedroid_6.apk
2020-09-12 06:33:46,582 INFO: Fetched signatures for 'unsigned/com.politedroid_6.apk' -> 'metadata/com.politedroid/signatures/6'
+ test -d metadata/com.politedroid/signatures/6
+ test -f metadata/com.politedroid/signatures/6/MANIFEST.MF
+ test -f metadata/com.politedroid/signatures/6/RELEASE.RSA
+ test -f metadata/com.politedroid/signatures/6/RELEASE.SF
+ test -f repo/com.politedroid_6.apk
+ /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/fdroid publish
2020-09-12 06:33:46,981 INFO: Creating log directory
2020-09-12 06:33:46,983 INFO: 1 app, 1 key aliases
2020-09-12 06:33:46,984 INFO: Processing unsigned/com.politedroid_6.apk
2020-09-12 06:33:47,888 INFO: Key alias: 4e7da5b7
2020-09-12 06:33:49,379 INFO: Published com.politedroid_6.apk
2020-09-12 06:33:50,521 INFO: published list signing-key fingerprints
+ test -f repo/com.politedroid_6.apk
+ which jarsigner
/usr/bin/jarsigner
+ jarsigner -verify repo/com.politedroid_6.apk

jar verified.

Warning: 
This jar contains entries whose certificate chain is invalid. Reason: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
This jar contains entries whose signer certificate is self-signed.
This jar contains signatures that do not include a timestamp. Without a timestamp, users may not be able to validate this jar after any of the signer certificates expire (as early as 2041-11-08).

Re-run with the -verbose and -certs options for more details.
/usr/bin/apksigner
+ which apksigner
+ apksigner verify repo/com.politedroid_6.apk
+ rm -rf /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/fdroidserver.egg-info/
SUCCESS
+ echo SUCCESS
+ cd /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/fdroiddata
+ rm -f config.py keystore.jks
+ ../fdroid init --verbose
2020-09-12 06:33:52,019 DEBUG: Using androguard from "/usr/lib/python3/dist-packages/androguard/__init__.py"
2020-09-12 06:33:52,021 DEBUG: Reading 'config.py'
2020-09-12 06:33:52,030 INFO: Generating a new key in "keystore.jks"...
2020-09-12 06:33:52,031 DEBUG: > /usr/lib/jvm/java-11-openjdk-amd64/bin/keytool -genkey -keystore keystore.jks -alias osuosl-build168-amd64.debian.net -keyalg RSA -keysize 4096 -sigalg SHA256withRSA -validity 10000 -storepass:env FDROID_KEY_STORE_PASS -dname CN=osuosl-build168-amd64.debian.net, OU=F-Droid -J-Duser.language=en -keypass:env FDROID_KEY_PASS
2020-09-12 06:33:54,037 DEBUG: > /usr/lib/jvm/java-11-openjdk-amd64/bin/keytool -list -v -keystore keystore.jks -alias osuosl-build168-amd64.debian.net -storepass:env FDROID_KEY_STORE_PASS -J-Duser.language=en
Alias name: osuosl-build168-amd64.debian.net
Creation date: Sep 12, 2020
Entry type: PrivateKeyEntry
Certificate chain length: 1
Certificate[1]:
Owner: CN=osuosl-build168-amd64.debian.net, OU=F-Droid
Issuer: CN=osuosl-build168-amd64.debian.net, OU=F-Droid
Serial number: 611cbfad
Valid from: Sat Sep 12 06:33:53 UTC 2020 until: Wed Jan 29 06:33:53 UTC 2048
Certificate fingerprints:
	 SHA1: 0E:1F:6C:01:9B:A1:BD:FC:4F:77:D3:D2:35:1C:C9:7F:9A:BE:E6:78
	 SHA256: 65:30:CF:40:23:EB:05:F4:64:55:9E:03:19:D0:6E:80:C8:53:E7:97:26:9F:D6:86:2F:8F:63:47:1E:B1:A4:12
Signature algorithm name: SHA256withRSA
Subject Public Key Algorithm: 4096-bit RSA key
Version: 3

Extensions: 

#1: ObjectId: 2.5.29.14 Criticality=false
SubjectKeyIdentifier [
KeyIdentifier [
0000: EE 5A 3B 96 82 80 61 CF   44 43 57 8D 40 3B 71 09  .Z;...a.DCW.@;q.
0010: D4 8E 70 6E                                        ..pn
]
]

2020-09-12 06:33:54,743 INFO: Alias name: osuosl-build168-amd64.debian.net
Creation date: Sep 12, 2020
Entry type: PrivateKeyEntry
Certificate chain length: 1
Certificate[1]:
Owner: CN=osuosl-build168-amd64.debian.net, OU=F-Droid
Issuer: CN=osuosl-build168-amd64.debian.net, OU=F-Droid
Serial number: 611cbfad
Valid from: Sat Sep 12 06:33:53 UTC 2020 until: Wed Jan 29 06:33:53 UTC 2048
Certificate fingerprints:
	 SHA1: 0E:1F:6C:01:9B:A1:BD:FC:4F:77:D3:D2:35:1C:C9:7F:9A:BE:E6:78
	 SHA256: 65:30:CF:40:23:EB:05:F4:64:55:9E:03:19:D0:6E:80:C8:53:E7:97:26:9F:D6:86:2F:8F:63:47:1E:B1:A4:12
Signature algorithm name: SHA256withRSA
Subject Public Key Algorithm: 4096-bit RSA key
Version: 3

Extensions: 

#1: ObjectId: 2.5.29.14 Criticality=false
SubjectKeyIdentifier [
KeyIdentifier [
0000: EE 5A 3B 96 82 80 61 CF   44 43 57 8D 40 3B 71 09  .Z;...a.DCW.@;q.
0010: D4 8E 70 6E                                        ..pn
]
]


2020-09-12 06:33:54,744 DEBUG: > /usr/lib/jvm/java-11-openjdk-amd64/bin/keytool -exportcert -keystore keystore.jks -alias osuosl-build168-amd64.debian.net -storepass:env FDROID_KEY_STORE_PASS
2020-09-12 06:33:55,651 INFO: 
Built repo based in "/var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/fdroiddata" with this config:

  Android SDK:			/usr/lib/android-sdk
  Android NDK r12b (optional):	$ANDROID_NDK
  Keystore for signing key:	keystore.jks

To complete the setup, add your APKs to "/var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/fdroiddata/repo"
then run "fdroid update -c; fdroid update".  You might also want to edit
"config.py" to set the URL, repo name, and more.  You should also set up
a signing key (a temporary one might have been automatically generated).

For more info: https://f-droid.org/docs/Setup_an_F-Droid_App_Repo
and https://f-droid.org/docs/Signing_Process
+ export GNUPGHOME=/var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/gnupghome
+ GNUPGHOME=/var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/gnupghome
+ '[' '!' -e /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/gnupghome/private-keys-v1.d ']'
+ mkdir -p /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/gnupghome/private-keys-v1.d
+ chmod 0700 /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/gnupghome/private-keys-v1.d
+ gpg --import /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/gnupghome/secring.gpg
gpg: WARNING: unsafe permissions on homedir '/var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/gnupghome'
gpg: starting migration from earlier GnuPG versions
gpg: porting secret keys from '/var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/gnupghome/secring.gpg' to gpg-agent
gpg: key 16D6C4D3CE71F7FB: secret key imported
gpg: migration succeeded
gpg: key 16D6C4D3CE71F7FB: "Fake F-Droid Test Signing Key (never use this for anything but tests) <fake at fake>" not changed
gpg: key 16D6C4D3CE71F7FB: secret key imported
gpg: Total number processed: 1
gpg:              unchanged: 1
gpg:       secret keys read: 1
gpg:  secret keys unchanged: 1
+ echo 'build_server_always = True'
+ echo 'deploy_process_logs = True'
+ echo 'make_current_version_link = False'
+ echo 'gpghome = '\''/var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/gnupghome'\'''
+ echo 'gpgkey = '\''CE71F7FB'\'''
+ chmod 0600 config.py
+ sed -i '/\s*repo_key_sha256\s*=.*/d' config.py
+ test -d repo
+ test -d archive
+ mkdir archive
+ ../fdroid publish
2020-09-12 06:34:05,232 INFO: 3492 apps, 3492 key aliases
2020-09-12 06:34:05,234 INFO: Processing unsigned/acr.browser.barebones_67.apk
2020-09-12 06:34:05,234 INFO: Key alias: 5b297b6d
2020-09-12 06:34:05,742 INFO: Key does not exist - generating...
2020-09-12 06:34:08,654 INFO: Published acr.browser.barebones_67.apk
2020-09-12 06:34:08,655 INFO: Processing unsigned/app.fedilab.fedilabtube_6.apk
2020-09-12 06:34:08,656 INFO: Key alias: 0d093a48
2020-09-12 06:34:09,265 INFO: Key does not exist - generating...
2020-09-12 06:34:12,228 INFO: Published app.fedilab.fedilabtube_6.apk
2020-09-12 06:34:12,229 INFO: Processing unsigned/app.fedilab.nitterizeme_23.apk
2020-09-12 06:34:12,230 INFO: Key alias: 2ddc73b9
2020-09-12 06:34:12,840 INFO: Key does not exist - generating...
2020-09-12 06:34:15,918 INFO: Published app.fedilab.nitterizeme_23.apk
2020-09-12 06:34:15,919 INFO: Processing unsigned/app.fedilab.nitterizemelite_23.apk
2020-09-12 06:34:15,920 INFO: Key alias: 12a9a016
2020-09-12 06:34:16,531 INFO: Key does not exist - generating...
2020-09-12 06:34:19,195 INFO: Published app.fedilab.nitterizemelite_23.apk
2020-09-12 06:34:19,195 INFO: Processing unsigned/at.bitfire.davdroid_303010001.apk
2020-09-12 06:34:19,196 INFO: Key alias: 9b8fc2b1
2020-09-12 06:34:19,807 INFO: Key does not exist - generating...
2020-09-12 06:34:24,814 INFO: Published at.bitfire.davdroid_303010001.apk
2020-09-12 06:34:24,814 INFO: Processing unsigned/ch.rmy.android.http_shortcuts_1101360000.apk
2020-09-12 06:34:24,815 INFO: Key alias: 2336fb42
2020-09-12 06:34:25,424 INFO: Key does not exist - generating...
2020-09-12 06:34:36,803 INFO: Published ch.rmy.android.http_shortcuts_1101360000.apk
2020-09-12 06:34:36,803 INFO: Processing unsigned/com.DartChecker_13.apk
2020-09-12 06:34:36,803 INFO: Key alias: 286ef5be
2020-09-12 06:34:37,413 INFO: Key does not exist - generating...
2020-09-12 06:34:40,571 INFO: Published com.DartChecker_13.apk
2020-09-12 06:34:40,572 INFO: Processing unsigned/com.SecUpwN.AIMSICD_43.apk
2020-09-12 06:34:40,573 INFO: Key alias: 28f4be85
2020-09-12 06:34:41,183 INFO: Key does not exist - generating...
2020-09-12 06:34:45,055 INFO: Published com.SecUpwN.AIMSICD_43.apk
2020-09-12 06:34:45,056 INFO: Processing unsigned/com.android.gpstest.osmdroid_18072.apk
2020-09-12 06:34:45,057 INFO: Key alias: 8df948db
2020-09-12 06:34:45,667 INFO: Key does not exist - generating...
2020-09-12 06:34:49,135 INFO: Published com.android.gpstest.osmdroid_18072.apk
2020-09-12 06:34:49,136 INFO: Processing unsigned/com.artifex.mupdf.mini_112.apk
2020-09-12 06:34:49,136 INFO: Key alias: 411e5ac2
2020-09-12 06:34:49,847 INFO: Key does not exist - generating...
2020-09-12 06:34:52,997 INFO: Published com.artifex.mupdf.mini_112.apk
2020-09-12 06:34:52,998 INFO: Processing unsigned/com.artifex.mupdfdemo_113.apk
2020-09-12 06:34:52,998 INFO: Key alias: 42a335c3
2020-09-12 06:34:53,709 INFO: Key does not exist - generating...
2020-09-12 06:34:59,412 INFO: Published com.artifex.mupdfdemo_113.apk
2020-09-12 06:34:59,413 INFO: Processing unsigned/com.brentpanther.bitcoinwidget_250.apk
2020-09-12 06:34:59,413 INFO: Key alias: 91e96841
2020-09-12 06:35:00,123 INFO: Key does not exist - generating...
2020-09-12 06:35:02,871 INFO: Published com.brentpanther.bitcoinwidget_250.apk
2020-09-12 06:35:02,872 INFO: Processing unsigned/com.emacberry.uuid0xfd6fscan_917.apk
2020-09-12 06:35:02,873 INFO: Key alias: c15f4c92
2020-09-12 06:35:03,484 INFO: Key does not exist - generating...
2020-09-12 06:35:07,249 INFO: Published com.emacberry.uuid0xfd6fscan_917.apk
2020-09-12 06:35:07,250 INFO: Processing unsigned/com.example.CosyDVR_11.apk
2020-09-12 06:35:07,250 INFO: Key alias: 744fa034
2020-09-12 06:35:07,861 INFO: Key does not exist - generating...
2020-09-12 06:35:10,907 INFO: Published com.example.CosyDVR_11.apk
2020-09-12 06:35:10,908 INFO: Processing unsigned/com.github.ashutoshgngwr.noice_31.apk
2020-09-12 06:35:10,909 INFO: Key alias: a3929329
2020-09-12 06:35:11,619 INFO: Key does not exist - generating...
2020-09-12 06:35:15,930 INFO: Published com.github.ashutoshgngwr.noice_31.apk
2020-09-12 06:35:15,931 INFO: Processing unsigned/com.github.niccokunzmann.hanumanchalisa_6.apk
2020-09-12 06:35:15,932 INFO: Key alias: 49729acc
2020-09-12 06:35:16,541 INFO: Key does not exist - generating...
2020-09-12 06:35:20,209 INFO: Published com.github.niccokunzmann.hanumanchalisa_6.apk
2020-09-12 06:35:20,210 INFO: Processing unsigned/com.hermit.btreprap_3.apk
2020-09-12 06:35:20,211 INFO: Key alias: ac4988b7
2020-09-12 06:35:20,920 INFO: Key does not exist - generating...
2020-09-12 06:35:22,443 CRITICAL: Unknown exception found!
Traceback (most recent call last):
  File "../fdroid", line 22, in <module>
    fdroidserver.__main__.main()
  File "/var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/fdroidserver/__main__.py", line 230, in main
    raise e
  File "/var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/fdroidserver/__main__.py", line 211, in main
    mod.main()
  File "/var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/fdroidserver/publish.py", line 377, in main
    common.sign_apk(apkfile, signed_apk_path, keyalias)
  File "/var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/fdroidserver/common.py", line 3071, in sign_apk
    if int(apk.get_target_sdk_version()) >= 30:
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
+ cleanup_all
++ date -u
Sat 12 Sep 2020 06:35:22 AM UTC - cleanup in progress...
+ echo 'Sat 12 Sep 2020 06:35:22 AM UTC - cleanup in progress...'
+ killall adb
adb: no process found
Sat 12 Sep 2020 06:35:22 AM UTC - reproducible_fdroid_test.sh stopped running as /tmp/jenkins-script-8AlbGdNX, which will now be removed.

SSH EXIT CODE: 1
Build step 'Execute shell' marked build as failure



More information about the Qa-jenkins-scm mailing list