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

jenkins at jenkins.debian.net jenkins at jenkins.debian.net
Sat Oct 10 23:14:08 BST 2020


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

Changes:

[hans] index: generate repo icon if missing, and add tests

[hans] update: use "app" as dict not App instance in apply_info_from_latest_apk

[hans] update: test if options is instantated before using attributes

[hans] scanner: expose "usual suspects" patterns for use in an API

[hans] update: fix bug where only last appid was added to antiFeatures status

[michael] log vm status when vagrant up fails


------------------------------------------
[...truncated 197.19 KB...]
2020-10-10 22:13:43,289 INFO: ...fake : Checking disabled
2020-10-10 22:13:43,306 INFO: Finished
+ which gpg
/usr/bin/gpg
+ /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/fdroid gpgsign
+ /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/fdroid lint
+ /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/fdroid readmeta
+ /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/fdroid rewritemeta fake
2020-10-10 22:13:44,790 INFO: Rewriting 'fake'
+ /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/fdroid deploy
+ /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/fdroid server update
+ /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/fdroid scanner
2020-10-10 22:13:45,967 INFO: Creating build directory
2020-10-10 22:13:45,968 INFO: fake: no builds specified, running on current source state
0 problems found
2020-10-10 22:13:45,971 INFO: Finished
+ /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/fdroid build
usage: fdroid build [options] [APPID[:VERCODE] [APPID[:VERCODE] ...]]
fdroid build: error: option all: If you really want to build all the apps, use --all
+ true
+ /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/fdroid import
2020-10-10 22:13:46,703 CRITICAL: Specify project url.
+ true
+ /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/fdroid install
usage: fdroid install [options] [APPID[:VERCODE] [APPID[:VERCODE] ...]]
fdroid install: error: option all: If you really want to install all the signed apps, use --all
+ true
==============================================================================
test config checks of local_copy_dir
+ '[' -e .git/config ']'
+ echo_header 'test config checks of local_copy_dir'
++ create_test_dir
++ test -e /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/.testfiles
++ mktemp -d /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/.testfiles/run-tests.XXXX
+ REPOROOT=/var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/.testfiles/run-tests.GZZo
+ cd /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/.testfiles/run-tests.GZZo
+ /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/fdroid init
2020-10-10 22:13:47,440 INFO: Generating a new key in "keystore.p12"...
2020-10-10 22:13:52,554 INFO: Alias name: osuosl-build168-amd64.debian.net
Creation date: Oct 10, 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: c74fb1b
Valid from: Sat Oct 10 22:13:51 UTC 2020 until: Wed Feb 26 22:13:51 UTC 2048
Certificate fingerprints:
	 SHA1: 12:42:84:6B:4D:FD:A3:12:3C:B9:E4:44:9F:80:57:41:AF:62:6E:0C
	 SHA256: AE:BD:7C:B4:20:1D:51:2F:DC:16:50:55:79:32:05:31:11:F1:B4:C1:71:2F:68:D8:B1:C4:EA:73:C2:5C:84:20
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: 01 0D 5F 2F 1E 4A C7 8B   2B B3 28 1A AD ED 21 D7  .._/.J..+.(...!.
0010: 11 AF 12 4C                                        ...L
]
]


2020-10-10 22:13:53,262 INFO: 
Built repo based in "/var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/.testfiles/run-tests.GZZo" with this config:

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

To complete the setup, add your APKs to "/var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/.testfiles/run-tests.GZZo/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
+ /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/fdroid update --create-metadata --verbose
2020-10-10 22:13:53,755 DEBUG: Reading 'config.py'
2020-10-10 22:13:53,761 DEBUG: > /usr/lib/jvm/java-11-openjdk-amd64/bin/keytool -exportcert -alias osuosl-build168-amd64.debian.net -keystore keystore.p12 -storepass:env FDROID_KEY_STORE_PASS
2020-10-10 22:13:54,568 INFO: Creating signed index with this key (SHA256):
2020-10-10 22:13:54,568 INFO: AE BD 7C B4 20 1D 51 2F DC 16 50 55 79 32 05 31 11 F1 B4 C1 71 2F 68 D8 B1 C4 EA 73 C2 5C 84 20
2020-10-10 22:13:54,568 DEBUG: Directory: archive
2020-10-10 22:13:54,568 DEBUG: > jar cf index.jar index.xml
2020-10-10 22:13:54,775 DEBUG: > /usr/lib/jvm/java-11-openjdk-amd64/bin/jarsigner -keystore keystore.p12 -storepass:env FDROID_KEY_STORE_PASS -digestalg SHA1 -sigalg SHA1withRSA archive/index.jar osuosl-build168-amd64.debian.net -keypass:env FDROID_KEY_PASS
jar signed.

Warning: 
The signer's certificate is self-signed.
2020-10-10 22:13:55,785 DEBUG: > /usr/lib/jvm/java-11-openjdk-amd64/bin/jarsigner -keystore keystore.p12 -storepass:env FDROID_KEY_STORE_PASS -digestalg SHA1 -sigalg SHA1withRSA archive/index-v1.jar osuosl-build168-amd64.debian.net -keypass:env FDROID_KEY_PASS
jar signed.

Warning: 
The signer's certificate is self-signed.
2020-10-10 22:13:56,796 DEBUG: > /usr/lib/jvm/java-11-openjdk-amd64/bin/keytool -exportcert -alias osuosl-build168-amd64.debian.net -keystore keystore.p12 -storepass:env FDROID_KEY_STORE_PASS
2020-10-10 22:13:57,605 INFO: Creating signed index with this key (SHA256):
2020-10-10 22:13:57,605 INFO: AE BD 7C B4 20 1D 51 2F DC 16 50 55 79 32 05 31 11 F1 B4 C1 71 2F 68 D8 B1 C4 EA 73 C2 5C 84 20
2020-10-10 22:13:57,606 DEBUG: Directory: repo
2020-10-10 22:13:57,606 DEBUG: > jar cf index.jar index.xml
2020-10-10 22:13:57,812 DEBUG: > /usr/lib/jvm/java-11-openjdk-amd64/bin/jarsigner -keystore keystore.p12 -storepass:env FDROID_KEY_STORE_PASS -digestalg SHA1 -sigalg SHA1withRSA repo/index.jar osuosl-build168-amd64.debian.net -keypass:env FDROID_KEY_PASS
jar signed.

Warning: 
The signer's certificate is self-signed.
2020-10-10 22:13:58,821 DEBUG: > /usr/lib/jvm/java-11-openjdk-amd64/bin/jarsigner -keystore keystore.p12 -storepass:env FDROID_KEY_STORE_PASS -digestalg SHA1 -sigalg SHA1withRSA repo/index-v1.jar osuosl-build168-amd64.debian.net -keypass:env FDROID_KEY_PASS
jar signed.

Warning: 
The signer's certificate is self-signed.
2020-10-10 22:13:59,929 DEBUG: Outputting JSON
2020-10-10 22:13:59,932 DEBUG: Popen(['git', 'cat-file', '--batch-check'], cwd=/var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps, universal_newlines=False, shell=None)
2020-10-10 22:13:59,939 DEBUG: Popen(['git', 'diff', '--cached', '--abbrev=40', '--full-index', '--raw'], cwd=/var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps, universal_newlines=False, shell=None)
2020-10-10 22:13:59,946 DEBUG: Popen(['git', 'diff', '--abbrev=40', '--full-index', '--raw'], cwd=/var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps, universal_newlines=False, shell=None)
2020-10-10 22:13:59,955 DEBUG: skip deploying full build logs: not enabled in config
2020-10-10 22:13:59,957 DEBUG: skip deploying full build logs: not enabled in config
2020-10-10 22:13:59,957 INFO: Finished
+ /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/fdroid readmeta
+ /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/fdroid server update --local-copy-dir=/tmp/fdroid
+ /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/fdroid deploy --local-copy-dir=/tmp/fdroid --verbose
2020-10-10 22:14:01,238 DEBUG: Reading 'config.py'
2020-10-10 22:14:01,242 DEBUG: rsync --recursive --safe-links --times --perms --one-file-system --delete --chmod=Da+rx,Fa-x,a+r,u+w --checksum --verbose repo /tmp/fdroid/
sending incremental file list
repo/status/
repo/status/running.json
repo/status/server.json

sent 1,414 bytes  received 70 bytes  2,968.00 bytes/sec
total size is 15,678  speedup is 10.56
2020-10-10 22:14:01,248 DEBUG: rsync --recursive --safe-links --times --perms --one-file-system --delete --chmod=Da+rx,Fa-x,a+r,u+w --checksum --verbose archive /tmp/fdroid/
sending incremental file list

sent 449 bytes  received 24 bytes  946.00 bytes/sec
total size is 14,026  speedup is 29.65
2020-10-10 22:14:01,256 DEBUG: Popen(['git', 'cat-file', '--batch-check'], cwd=/var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps, universal_newlines=False, shell=None)
2020-10-10 22:14:01,260 DEBUG: Popen(['git', 'diff', '--cached', '--abbrev=40', '--full-index', '--raw'], cwd=/var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps, universal_newlines=False, shell=None)
2020-10-10 22:14:01,265 DEBUG: Popen(['git', 'diff', '--abbrev=40', '--full-index', '--raw'], cwd=/var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps, universal_newlines=False, shell=None)
2020-10-10 22:14:01,275 DEBUG: skip deploying full build logs: not enabled in config
2020-10-10 22:14:01,276 DEBUG: skip deploying full build logs: not enabled in config
+ set +e
+ /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/fdroid server update --local-copy-dir=thisisnotanabsolutepath
2020-10-10 22:14:01,654 ERROR: The root dir for local_copy_dir "" does not exist!
testing absolute path checker passed
+ '[' 1 -eq 0 ']'
+ echo 'testing absolute path checker passed'
+ /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/fdroid server update --local-copy-dir=/tmp/IReallyDoubtThisPathExistsasdfasdf
2020-10-10 22:14:02,023 ERROR: local_copy_dir does not end with "fdroid", perhaps you meant: "/tmp/IReallyDoubtThisPathExistsasdfasdf/fdroid"
testing dirname exists checker passed
+ '[' 1 -eq 0 ']'
+ echo 'testing dirname exists checker passed'
+ /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/fdroid server update --local-copy-dir=/tmp/IReallyDoubtThisPathExistsasdfasdf/fdroid
2020-10-10 22:14:02,388 ERROR: The root dir for local_copy_dir "/tmp/IReallyDoubtThisPathExistsasdfasdf" does not exist!
testing dirname exists checker passed
==============================================================================
setup a new repo from scratch using ANDROID_HOME and do a local sync
+ '[' 1 -eq 0 ']'
+ echo 'testing dirname exists checker passed'
+ set -e
+ echo_header 'setup a new repo from scratch using ANDROID_HOME and do a local sync'
++ create_test_dir
++ test -e /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/.testfiles
++ mktemp -d /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/.testfiles/run-tests.XXXX
+ REPOROOT=/var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/.testfiles/run-tests.zhzl
+ cd /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/.testfiles/run-tests.zhzl
+ fdroid_init_with_prebuilt_keystore
+ '[' -z '' ']'
+ keystore=/var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/keystore.jks
+ /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/fdroid init --keystore /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/keystore.jks --repo-keyalias=sova
2020-10-10 22:14:02,768 WARNING: 
Using existing keystore "/var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/keystore.jks"
Now set these in config.py: keystorepass, keypass, keydname

2020-10-10 22:14:02,769 INFO: 
Built repo based in "/var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/.testfiles/run-tests.zhzl" with this config:

  Android SDK:			/usr/lib/android-sdk
  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.zhzl/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="'
+ copy_apks_into_repo /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/.testfiles/run-tests.zhzl
+ set +x
+ /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/fdroid update --create-metadata --verbose
2020-10-10 22:14:03,134 DEBUG: Reading 'config.py'
2020-10-10 22:14:03,141 DEBUG: > /usr/lib/jvm/java-11-openjdk-amd64/bin/keytool -exportcert -alias sova -keystore /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/keystore.jks -storepass:env FDROID_KEY_STORE_PASS

Warning:
The JKS keystore uses a proprietary format. It is recommended to migrate to PKCS12 which is an industry standard format using "keytool -importkeystore -srckeystore /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/keystore.jks -destkeystore /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/keystore.jks -deststoretype pkcs12".
2020-10-10 22:14:03,547 INFO: Creating signed index with this key (SHA256):
2020-10-10 22:14:03,547 INFO: F4 9A F3 F1 1E FD DF 20 DF FD 70 F5 E3 11 7B 99 76 67 41 67 AD CA 28 0E 6B 19 32 A0 60 1B 26 F6
2020-10-10 22:14:03,547 DEBUG: Directory: archive
2020-10-10 22:14:03,547 DEBUG: > jar cf index.jar index.xml
2020-10-10 22:14:03,754 DEBUG: > /usr/lib/jvm/java-11-openjdk-amd64/bin/jarsigner -keystore /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/keystore.jks -storepass:env FDROID_KEY_STORE_PASS -digestalg SHA1 -sigalg SHA1withRSA archive/index.jar sova -keypass:env FDROID_KEY_PASS
jar signed.

Warning: 
The signer's certificate is self-signed.
2020-10-10 22:14:04,463 DEBUG: > /usr/lib/jvm/java-11-openjdk-amd64/bin/jarsigner -keystore /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/keystore.jks -storepass:env FDROID_KEY_STORE_PASS -digestalg SHA1 -sigalg SHA1withRSA archive/index-v1.jar sova -keypass:env FDROID_KEY_PASS
jar signed.

Warning: 
The signer's certificate is self-signed.
2020-10-10 22:14:05,173 DEBUG: > /usr/lib/jvm/java-11-openjdk-amd64/bin/keytool -exportcert -alias sova -keystore /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/keystore.jks -storepass:env FDROID_KEY_STORE_PASS

Warning:
The JKS keystore uses a proprietary format. It is recommended to migrate to PKCS12 which is an industry standard format using "keytool -importkeystore -srckeystore /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/keystore.jks -destkeystore /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/keystore.jks -deststoretype pkcs12".
2020-10-10 22:14:05,682 INFO: Creating signed index with this key (SHA256):
2020-10-10 22:14:05,682 INFO: F4 9A F3 F1 1E FD DF 20 DF FD 70 F5 E3 11 7B 99 76 67 41 67 AD CA 28 0E 6B 19 32 A0 60 1B 26 F6
2020-10-10 22:14:05,682 DEBUG: Directory: repo
2020-10-10 22:14:05,682 DEBUG: > jar cf index.jar index.xml
2020-10-10 22:14:05,888 DEBUG: > /usr/lib/jvm/java-11-openjdk-amd64/bin/jarsigner -keystore /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/keystore.jks -storepass:env FDROID_KEY_STORE_PASS -digestalg SHA1 -sigalg SHA1withRSA repo/index.jar sova -keypass:env FDROID_KEY_PASS
jar signed.

Warning: 
The signer's certificate is self-signed.
2020-10-10 22:14:06,699 DEBUG: > /usr/lib/jvm/java-11-openjdk-amd64/bin/jarsigner -keystore /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/keystore.jks -storepass:env FDROID_KEY_STORE_PASS -digestalg SHA1 -sigalg SHA1withRSA repo/index-v1.jar sova -keypass:env FDROID_KEY_PASS
jar signed.

Warning: 
The signer's certificate is self-signed.
2020-10-10 22:14:07,406 DEBUG: Outputting JSON
2020-10-10 22:14:07,409 DEBUG: Popen(['git', 'cat-file', '--batch-check'], cwd=/var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps, universal_newlines=False, shell=None)
2020-10-10 22:14:07,416 DEBUG: Popen(['git', 'diff', '--cached', '--abbrev=40', '--full-index', '--raw'], cwd=/var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps, universal_newlines=False, shell=None)
2020-10-10 22:14:07,423 DEBUG: Popen(['git', 'diff', '--abbrev=40', '--full-index', '--raw'], cwd=/var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps, universal_newlines=False, shell=None)
2020-10-10 22:14:07,433 DEBUG: skip deploying full build logs: not enabled in config
2020-10-10 22:14:07,434 DEBUG: skip deploying full build logs: not enabled in config
2020-10-10 22:14:07,434 INFO: Finished
+ /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/fdroid readmeta
+ grep -F '<application id=' repo/index.xml
+ cleanup_all
++ date -u
Sat 10 Oct 2020 10:14:07 PM UTC - cleanup in progress...
+ echo 'Sat 10 Oct 2020 10:14:07 PM UTC - cleanup in progress...'
+ killall adb
adb: no process found
Sat 10 Oct 2020 10:14:08 PM UTC - reproducible_fdroid_test.sh stopped running as /tmp/jenkins-script-PLVPxjya, 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