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

jenkins at jenkins.debian.net jenkins at jenkins.debian.net
Wed Aug 28 14:45:07 BST 2019


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

Changes:

[michael] exclude Provides metadata from yml

[michael] test that yaml parsing does not accept provides

[michael] test that write yaml does not write provides

[michael] parse yaml: ignore (and warn) deprecated field: Provides

------------------------------------------
[...truncated 60.24 KB...]
jar signed.

Warning: 
The signer's certificate is self-signed.
DEBUG:root:> /usr/lib/jvm/java-11-openjdk-amd64/bin/jarsigner -strict -verify stats/publishsigkeys.jar
WARNING:root:repo_key_sha256 not in config.py, setting it to the signature key fingerprint of 'stats/publishsigkeys.jar'
.localmodule: /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps

----------------------------------------------------------------------
Ran 7 tests in 1.815s

OK
skipping install.TestCase, its too troublesome in CI builds
+ for testcase in $WORKSPACE/tests/*.TestCase
+ '[' /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/install.TestCase == /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/install.TestCase ']'
+ echo 'skipping install.TestCase, its too troublesome in CI builds'
+ continue
+ for testcase in $WORKSPACE/tests/*.TestCase
+ '[' /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/lint.TestCase == /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/install.TestCase ']'
+ /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/lint.TestCase
....localmodule: /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps
"metadata/dump/" has no matching metadata file!
"metadata/apk/" has no matching metadata file!
"metadata/org.adaway.json" is not a supported file format: (txt,yml)
"metadata/org.adaway.json" is not a supported file format: (txt,yml)

----------------------------------------------------------------------
Ran 4 tests in 0.021s

OK
+ for testcase in $WORKSPACE/tests/*.TestCase
+ '[' /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/metadata.TestCase == /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/install.TestCase ']'
+ /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/metadata.TestCase
.......WARNING:root:Ignoring 'Provides' in 'mock_filename.yaml' metadata because it is deprecated.
...WARNING:root:"metadata/org.adaway.json" is not an accepted format, convert to: txt, yml
/usr/lib/python3/dist-packages/ruamel/yaml/comments.py:14: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
  from collections import MutableSet, Sized, Set
.WARNING:root:"metadata/org.adaway.json" is not an accepted format, convert to: txt, yml
.WARNING:root:"metadata/org.adaway.json" is not an accepted format, convert to: txt, yml
.......
----------------------------------------------------------------------
Ran 19 tests in 1.192s

OK
localmodule: /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps
+ for testcase in $WORKSPACE/tests/*.TestCase
+ '[' /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/publish.TestCase == /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/install.TestCase ']'
+ /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/publish.TestCase
.DEBUG:root:> /usr/lib/jvm/java-11-openjdk-amd64/bin/keytool -list -v -keystore dummy-keystore.jks -storepass:env FDROID_KEY_STORE_PASS
.INFO:root:Creating log directory
INFO:root:Creating temporary directory
INFO:root:1 app, 1 key aliases
INFO:root:Processing unsigned/com.politedroid_6.apk
WARNING:root:Ignoring META-INF/MANIFEST.MF from unsigned/com.politedroid_6.apk
WARNING:root:Ignoring META-INF/RELEASE.SF from unsigned/com.politedroid_6.apk
WARNING:root:Ignoring META-INF/RELEASE.RSA from unsigned/com.politedroid_6.apk
DEBUG:root:tmp/sigcp_com.politedroid_6.apk: Verifies
Verified using v1 scheme (JAR signing): true
Verified using v2 scheme (APK Signature Scheme v2): false
Number of signers: 1

INFO:root:...successfully verified
DEBUG:root:...no source tarball for com.politedroid_6.apk
INFO:root:Published com.politedroid_6.apk
DEBUG:root:> /usr/lib/jvm/java-11-openjdk-amd64/bin/keytool -list -v -keystore keystore.jks -storepass:env FDROID_KEY_STORE_PASS
DEBUG:root:> /usr/lib/jvm/java-11-openjdk-amd64/bin/jarsigner -keystore keystore.jks -storepass:env FDROID_KEY_STORE_PASS -digestalg SHA1 -sigalg SHA1withRSA stats/publishsigkeys.jar sova -keypass:env FDROID_KEY_PASS
jar signed.

Warning: 
The signer's certificate is self-signed.
INFO:root:published list signing-key fingerprints
.DEBUG:root:> /usr/lib/jvm/java-11-openjdk-amd64/bin/keytool -list -v -keystore /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/dummy-keystore.jks -storepass:env FDROID_KEY_STORE_PASS
DEBUG:root:> /usr/lib/jvm/java-11-openjdk-amd64/bin/jarsigner -keystore /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/dummy-keystore.jks -storepass:env FDROID_KEY_STORE_PASS -digestalg SHA1 -sigalg SHA1withRSA stats/publishsigkeys.jar repokey -keypass:env FDROID_KEY_PASS
jar signed.

Warning: 
The signer's certificate is self-signed.
DEBUG:root:> /usr/lib/jvm/java-11-openjdk-amd64/bin/jarsigner -strict -verify stats/publishsigkeys.jar
WARNING:root:repo_key_sha256 not in config.py, setting it to the signature key fingerprint of 'stats/publishsigkeys.jar'
.DEBUG:root:> /usr/lib/jvm/java-11-openjdk-amd64/bin/keytool -list -v -keystore /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/dummy-keystore.jks -storepass:env FDROID_KEY_STORE_PASS
DEBUG:root:> /usr/lib/jvm/java-11-openjdk-amd64/bin/jarsigner -keystore /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/dummy-keystore.jks -storepass:env FDROID_KEY_STORE_PASS -digestalg SHA1 -sigalg SHA1withRSA stats/publishsigkeys.jar repokey -keypass:env FDROID_KEY_PASS
jar signed.

Warning: 
The signer's certificate is self-signed.
DEBUG:root:> /usr/lib/jvm/java-11-openjdk-amd64/bin/jarsigner -strict -verify stats/publishsigkeys.jar
.localmodule: /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps

----------------------------------------------------------------------
Ran 5 tests in 5.621s

OK
+ for testcase in $WORKSPACE/tests/*.TestCase
+ '[' /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/rewritemeta.TestCase == /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/install.TestCase ']'
+ /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/rewritemeta.TestCase
WARNING:root:No 'config.py' found, using defaults.
INFO:root:Rewriting 'a'
INFO:root:Rewriting 'b'
/usr/lib/python3/dist-packages/ruamel/yaml/comments.py:14: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
  from collections import MutableSet, Sized, Set
DEBUG:root:Finished
.INFO:root:Rewriting 'a' to 'yml'
DEBUG:root:Finished
.INFO:root:Rewriting 'a' to 'yml'
.localmodule: /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps
INFO:root:Rewriting 'a'
.
----------------------------------------------------------------------
Ran 4 tests in 0.057s

OK
+ for testcase in $WORKSPACE/tests/*.TestCase
+ '[' /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/scanner.TestCase == /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/install.TestCase ']'
+ /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/scanner.TestCase
ERROR:root:Found usual suspect 'firebase' at line 2 at app/build.gradle
ERROR:root:Found unknown maven repo '../../m2/repository' at syncthing-silk/build.gradle
localmodule: /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps
.
----------------------------------------------------------------------
Ran 1 test in 0.023s

OK
+ for testcase in $WORKSPACE/tests/*.TestCase
+ '[' /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/server.TestCase == /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/install.TestCase ']'
+ /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/server.TestCase
INFO:root:rsyncing repo to example.com:/var/www/fdroid
.INFO:root:rsyncing archive to example.com:/var/www/fdroid
.
----------------------------------------------------------------------
Ran 2 tests in 0.002s

OK
+ for testcase in $WORKSPACE/tests/*.TestCase
+ '[' /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/signatures.TestCase == /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/install.TestCase ']'
+ /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/signatures.TestCase
DEBUG:root:Reading 'config.py'
WARNING:root:unsafe permissions on 'config.py' (should be 0600)!
DEBUG:root:/var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/repo/com.politedroid_3.apk: Verifies
Verified using v1 scheme (JAR signing): true
Verified using v2 scheme (APK Signature Scheme v2): false
Number of signers: 1

DEBUG:root:signature okay: /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/repo/com.politedroid_3.apk
DEBUG:root:Using androguard from "/usr/lib/python3/dist-packages/androguard/__init__.py"
INFO:root:Fetched signatures for '/var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/repo/com.politedroid_3.apk' -> 'metadata/com.politedroid/signatures/3'
localmodule: /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps
.
----------------------------------------------------------------------
Ran 1 test in 0.588s

OK
+ for testcase in $WORKSPACE/tests/*.TestCase
+ '[' /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/update.TestCase == /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/install.TestCase ']'
+ /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/update.TestCase
.Result:e0ecb5fc2d63088e4a07ae410a127722
..WARNING:root:repo/duplicate.permisssions_9999999.apk is set to android:debuggable="true"
WARNING:root:No SDK version information found in repo/no.min.target.sdk_987.apk
.WARNING:root:repo/duplicate.permisssions_9999999.apk is set to android:debuggable="true"
WARNING:root:No SDK version information found in repo/no.min.target.sdk_987.apk
.WARNING:root:repo/urzip.apk is set to android:debuggable="true"
INFO:root:Generated skeleton metadata for info.guardianproject.urzip
INFO:root:Generated skeleton metadata for info.guardianproject.urzip
WARNING:root:Unrecognised app field 'Donation' in 'metadata/info.guardianproject.urzip.yml'
WARNING:root:Unrecognised app field 'Archive Policy' in 'metadata/info.guardianproject.urzip.yml'
WARNING:root:Unrecognised app field 'Requires Root' in 'metadata/info.guardianproject.urzip.yml'
.WARNING:root:rocks.janicerand does not have a name! Using package name instead.
INFO:root:Generated skeleton metadata for rocks.janicerand
F.ERROR:root:No signing certificates found in urzip-release-unsigned.apk
INFO:root:Using APK Signature v2
...WARNING:root:repo/../urzip.apk is set to android:debuggable="true"
..WARNING:androguard.apk:Missing AndroidManifest.xml. Is this an APK file?
ERROR:root:Failed to get apk information, skipping repo/fake.ota.update_1234.zip
WARNING:root:Skipping 'fake.ota.update_1234.zip' with invalid signature!
.INFO:root:Using APK Signature v2
INFO:root:Using APK Signature v2
WARNING:root:No SDK version information found in SpeedoMeterApp.main_1.apk
WARNING:root:No SDK version information found in SpeedoMeterApp.main_1.apk
.WARNING:root:No SDK version information found in repo/no.min.target.sdk_987.apk
.ERROR:root:No signing certificates found in urzip-release-unsigned.apk
.WARNING:root:repo/duplicate.permisssions_9999999.apk is set to android:debuggable="true"
WARNING:root:No SDK version information found in repo/no.min.target.sdk_987.apk
.localmodule: /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps
tmptestsdir /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/.testfiles/test_create_metadata_from_templatej3j7bx3w
tmptestsdir /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/.testfiles/test_process_apk_signed_by_disabled_algorithms816do6mm
SKIPPING: apksigner installed and it allows MD5 signatures
USE_ANDROGUARD True
USE_ANDROGUARD False

======================================================================
FAIL: test_create_metadata_from_template_empty_keys (__main__.UpdateTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/update.TestCase", line 917, in test_create_metadata_from_template_empty_keys
    'WebSite': ''})
AssertionError: {'Disabled': '', 'Provides': None, 'License[627 chars]: ''} != {'ArchivePolicy': '', 'AuthorEmail': '', 'A[625 chars]: ''}
  {'ArchivePolicy': '',
   'AuthorEmail': '',
   'AuthorName': '',
   'AuthorWebSite': '',
   'AutoName': 'rocks.janicerand',
   'AutoUpdateMode': '',
   'Binaries': '',
   'Bitcoin': '',
   'Builds': '',
   'Changelog': '',
   'CurrentVersion': '',
   'CurrentVersionCode': '',
   'Disabled': '',
   'Donate': '',
   'FlattrID': '',
   'IssueTracker': '',
   'LiberapayID': '',
   'License': '',
   'Litecoin': '',
   'Name': 'rocks.janicerand',
   'NoSourceSince': '',
-  'Provides': None,
?              ^^^^

+  'Provides': '',
?              ^^

   'Repo': '',
   'RepoType': '',
   'RequiresRoot': '',
   'SourceCode': '',
   'Summary': 'rocks.janicerand',
   'Translation': '',
   'UpdateCheckData': '',
   'UpdateCheckIgnore': '',
   'UpdateCheckMode': '',
   'UpdateCheckName': '',
   'VercodeOperation': '',
   'WebSite': ''}

----------------------------------------------------------------------
Ran 18 tests in 46.566s

FAILED (failures=1)
+ cleanup_all
++ date -u
Wed 28 Aug 2019 01:45:07 PM UTC - cleanup in progress...
+ echo 'Wed 28 Aug 2019 01:45:07 PM UTC - cleanup in progress...'
+ killall adb
adb: no process found
Wed 28 Aug 2019 01:45:07 PM UTC - /srv/jenkins/bin/reproducible_fdroid_test.sh stopped running as /tmp/jenkins-script-F9JfiPER, 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