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

jenkins at jenkins.debian.net jenkins at jenkins.debian.net
Mon Jan 22 13:31:54 UTC 2018


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

Changes:

[hans] common.get_wiki_timestamp() for posting timestamps to wiki log pages

[hans] wiki: log checkupdates start/stop time and command line for each run

[hans] wiki: log appids as checkupdates goes through them

[hans] wiki: fix bug updating Repository Maintenance

[hans] wiki: log update start/stop time and command line

[hans] move get_android_tools_versions functions to common

[hans] log installed android sdk versions for update and checkupdates

[hans] wiki: move checkupdates wiki log to separate function

[hans] jenkins-test: include repo_pubkey in config.py for BUILD test

[hans] buildserver: force no auto updates of package lists or upgrades

[hans] wiki: log server start/stop times and command line

[hans] wiki: log build start/stop time, command line, RAM, and processor count

[hans] gitlab-ci: make metadata_v0 test work even when tags are missing

------------------------------------------
[...truncated 29.65 KB...]
No -tsa or -tsacert is provided and this jar is not timestamped. Without a timestamp, users may not be able to validate this jar after the signer certificate's expiration date (2044-01-30) or after any future revocation date.
/var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/common.TestCase:271: ResourceWarning: unclosed file <_io.BufferedReader name='/var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/signindex/guardianproject.jar'>
  self.assertNotEqual(open(sourcefile, 'rb').read(), open(testfile, 'rb').read())
/var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/common.TestCase:271: ResourceWarning: unclosed file <_io.BufferedReader name='/var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/.testfiles/test_signjar6gbnbdj7/guardianproject.jar'>
  self.assertNotEqual(open(sourcefile, 'rb').read(), open(testfile, 'rb').read())
..DEBUG:root:Reading 'config.py'
WARNING:root:unsafe permissions on 'config.py' (should be 0600)!
WARNING:root:Using Java's jarsigner, not recommended for verifying APKs! Use apksigner
DEBUG:root:JAR signature verified: bad-unicode-πÇÇ现代通用字-български-عربي1.apk
ERROR:root:JAR signature failed to verify: org.bitbucket.tickytacky.mirrormirror_1.apk

The jar will be treated as unsigned, because it is signed with a weak algorithm that is now disabled.

Re-run jarsigner with the -verbose option for more details.

ERROR:root:JAR signature failed to verify: org.bitbucket.tickytacky.mirrormirror_2.apk

The jar will be treated as unsigned, because it is signed with a weak algorithm that is now disabled.

Re-run jarsigner with the -verbose option for more details.

ERROR:root:JAR signature failed to verify: org.bitbucket.tickytacky.mirrormirror_3.apk

The jar will be treated as unsigned, because it is signed with a weak algorithm that is now disabled.

Re-run jarsigner with the -verbose option for more details.

ERROR:root:JAR signature failed to verify: org.bitbucket.tickytacky.mirrormirror_4.apk

The jar will be treated as unsigned, because it is signed with a weak algorithm that is now disabled.

Re-run jarsigner with the -verbose option for more details.

DEBUG:root:JAR signature verified: org.dyndns.fules.ck_20.apk
DEBUG:root:JAR signature verified: urzip.apk
ERROR:root:JAR signature failed to verify: urzip-badcert.apk
jarsigner: java.lang.SecurityException: cannot verify signature block file META-INF/CERT

ERROR:root:JAR signature failed to verify: urzip-badsig.apk
jarsigner: java.lang.SecurityException: invalid SHA1 signature file digest for AndroidManifest.xml

DEBUG:root:JAR signature verified: urzip-release.apk
ERROR:root:JAR signature failed to verify: urzip-release-unsigned.apk

no manifest.

jar is unsigned.

.DEBUG:root:Reading 'config.py'
WARNING:root:unsafe permissions on 'config.py' (should be 0600)!
WARNING:root:Using Java's jarsigner, not recommended for verifying APKs! Use apksigner
DEBUG:root:JAR signature verified: /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/.testfiles/test_verify_apkssg3rrcvd/urzip-copy.apk
WARNING:root:Ignoring META-INF/MANIFEST.MF from /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/.testfiles/test_verify_apkssg3rrcvd/urzip-copy.apk
WARNING:root:Ignoring META-INF/CERT.SF from /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/.testfiles/test_verify_apkssg3rrcvd/urzip-copy.apk
WARNING:root:Ignoring META-INF/CERT.RSA from /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/.testfiles/test_verify_apkssg3rrcvd/urzip-copy.apk
DEBUG:root:JAR signature verified: /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/.testfiles/sigcp_urzip-copy.apk
INFO:root:...successfully verified
DEBUG:root:JAR signature verified: /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/.testfiles/sigcp_urzip-unsigned.apk
INFO:root:...successfully verified
/var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/common.TestCase:360: UserWarning: Duplicate name: 'META-INF/MANIFEST.MF'
  testapk.writestr(info, otherapk.read(info.filename))
/var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/common.TestCase:360: UserWarning: Duplicate name: 'META-INF/CERT.SF'
  testapk.writestr(info, otherapk.read(info.filename))
/var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/common.TestCase:360: UserWarning: Duplicate name: 'META-INF/CERT.RSA'
  testapk.writestr(info, otherapk.read(info.filename))
ERROR:root:JAR signature failed to verify: /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/.testfiles/test_verify_apkssg3rrcvd/urzip-twosig.apk
jarsigner: java.lang.SecurityException: SHA1 digest error for AndroidManifest.xml

WARNING:root:Ignoring META-INF/MANIFEST.MF from /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/.testfiles/test_verify_apkssg3rrcvd/urzip-twosig.apk
WARNING:root:Ignoring META-INF/MANIFEST.MF from /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/.testfiles/test_verify_apkssg3rrcvd/urzip-twosig.apk
WARNING:root:Ignoring META-INF/CERT.SF from /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/.testfiles/test_verify_apkssg3rrcvd/urzip-twosig.apk
WARNING:root:Ignoring META-INF/CERT.SF from /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/.testfiles/test_verify_apkssg3rrcvd/urzip-twosig.apk
WARNING:root:Ignoring META-INF/CERT.RSA from /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/.testfiles/test_verify_apkssg3rrcvd/urzip-twosig.apk
WARNING:root:Ignoring META-INF/CERT.RSA from /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/.testfiles/test_verify_apkssg3rrcvd/urzip-twosig.apk
DEBUG:root:JAR signature verified: /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/.testfiles/sigcp_urzip-twosig.apk
INFO:root:...successfully verified
.DEBUG:root:Reading 'config.py'
WARNING:root:unsafe permissions on 'config.py' (should be 0600)!
.DEBUG:root:Reading 'config.py'
WARNING:root:unsafe permissions on 'config.py' (should be 0600)!
DEBUG:root:JAR signature verified: /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/signindex/testy.jar
DEBUG:root:JAR signature verified: /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/signindex/guardianproject.jar
.DEBUG:root:Reading 'config.py'
WARNING:root:unsafe permissions on 'config.py' (should be 0600)!
DEBUG:root:JAR signature verified: bad-unicode-πÇÇ现代通用字-български-عربي1.apk
DEBUG:root:JAR signature verified: org.bitbucket.tickytacky.mirrormirror_1.apk
DEBUG:root:JAR signature verified: org.bitbucket.tickytacky.mirrormirror_2.apk
DEBUG:root:JAR signature verified: org.bitbucket.tickytacky.mirrormirror_3.apk
DEBUG:root:JAR signature verified: org.bitbucket.tickytacky.mirrormirror_4.apk
DEBUG:root:JAR signature verified: org.dyndns.fules.ck_20.apk
DEBUG:root:JAR signature verified: urzip.apk
ERROR:root:Old APK signature failed to verify: urzip-badcert.apk
jarsigner: java.lang.SecurityException: cannot verify signature block file META-INF/CERT

ERROR:root:Old APK signature failed to verify: urzip-badsig.apk
jarsigner: java.lang.SecurityException: invalid SHA1 signature file digest for AndroidManifest.xml

DEBUG:root:JAR signature verified: urzip-release.apk
ERROR:root:Old APK signature failed to verify: urzip-release-unsigned.apk

no manifest.

jar is unsigned.

...localmodule: /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps
testdir /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/.testfiles/test_prepare_sources_refreshga4vw5bu
testdir /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/.testfiles/test_verify_apkssg3rrcvd

----------------------------------------------------------------------
Ran 27 tests in 31.196s

OK
+ for testcase in $WORKSPACE/tests/*.TestCase
+ /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/exception.TestCase
localmodule: /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps
.
----------------------------------------------------------------------
Ran 1 test in 0.000s

OK
+ for testcase in $WORKSPACE/tests/*.TestCase
+ /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/import.TestCase
DEBUG:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): gitlab.com
DEBUG:requests.packages.urllib3.connectionpool:https://gitlab.com:443 "HEAD /fdroid/ci-test-app HTTP/1.1" 200 0
INFO:root:Getting source from git repo at https://gitlab.com/fdroid/ci-test-app.git
DEBUG:root:> git -c core.sshCommand=false -c url.https://.insteadOf=ssh:// -c url.https://u:p@bitbucket.org/.insteadOf=git@bitbucket.org: -c url.https://u:p@bitbucket.org.insteadOf=git://bitbucket.org -c url.https://u:p@bitbucket.org.insteadOf=https://bitbucket.org -c url.https://u:p@github.com/.insteadOf=git@github.com: -c url.https://u:p@github.com.insteadOf=git://github.com -c url.https://u:p@github.com.insteadOf=https://github.com -c url.https://u:p@gitlab.com/.insteadOf=git@gitlab.com: -c url.https://u:p@gitlab.com.insteadOf=git://gitlab.com -c url.https://u:p@gitlab.com.insteadOf=https://gitlab.com clone https://gitlab.com/fdroid/ci-test-app.git tmp/importer
Cloning into 'tmp/importer'...
DEBUG:root:Directory: tmp/importer
DEBUG:root:> git rev-parse --show-toplevel
DEBUG:root:Directory: tmp/importer
DEBUG:root:> git checkout -f origin/HEAD
DEBUG:root:Directory: tmp/importer
DEBUG:root:> git clean -dffx
.localmodule: /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps
localmodule: /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps

----------------------------------------------------------------------
Ran 1 test in 2.927s

OK
+ for testcase in $WORKSPACE/tests/*.TestCase
+ /var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/index.TestCase
DEBUG:root:Reading 'config.py'
WARNING:root:unsafe permissions on 'config.py' (should be 0600)!
DEBUG:root:Verifying index signature:
DEBUG:root:JAR signature verified: /tmp/tmpp8oszq88
.DEBUG:root:Reading 'config.py'
WARNING:root:unsafe permissions on 'config.py' (should be 0600)!
.DEBUG:root:Reading 'config.py'
WARNING:root:unsafe permissions on 'config.py' (should be 0600)!
DEBUG:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): localhost
EDEBUG:root:Reading 'config.py'
WARNING:root:unsafe permissions on 'config.py' (should be 0600)!
.DEBUG:root:Reading 'config.py'
WARNING:root:unsafe permissions on 'config.py' (should be 0600)!
.DEBUG:root:Reading 'config.py'
WARNING:root:unsafe permissions on 'config.py' (should be 0600)!
.DEBUG:root:Reading 'config.py'
WARNING:root:unsafe permissions on 'config.py' (should be 0600)!
DEBUG:root:> /usr/lib/jvm/java-8-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: 
No -tsa or -tsacert is provided and this jar is not timestamped. Without a timestamp, users may not be able to validate this jar after the signer certificate's expiration date (2044-11-26) or after any future revocation date.
DEBUG:root:> /usr/lib/jvm/java-8-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
.
======================================================================
ERROR: test_download_repo_index_no_jar (__main__.IndexTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 138, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 98, in create_connection
    raise err
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 88, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 594, in urlopen
    chunked=chunked)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 361, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.5/http/client.py", line 1107, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib/python3.5/http/client.py", line 1152, in _send_request
    self.endheaders(body)
  File "/usr/lib/python3.5/http/client.py", line 1103, in endheaders
    self._send_output(message_body)
  File "/usr/lib/python3.5/http/client.py", line 934, in _send_output
    self.send(msg)
  File "/usr/lib/python3.5/http/client.py", line 877, in send
    self.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 163, in connect
    conn = self._new_conn()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 147, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
requests.packages.urllib3.exceptions.NewConnectionError: <requests.packages.urllib3.connection.HTTPConnection object at 0x7fda9a054080>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 423, in send
    timeout=timeout
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 643, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 363, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
requests.packages.urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=3128): Max retries exceeded with url: http://example.org/index-v1.jar (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7fda9a054080>: Failed to establish a new connection: [Errno 111] Connection refused',)))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/tests/index.TestCase", line 75, in test_download_repo_index_no_jar
    fdroidserver.index.download_repo_index("http://example.org?fingerprint=nope")
  File "/var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/fdroidserver/index.py", line 689, in download_repo_index
    download, new_etag = net.http_get(url.geturl(), etag)
  File "/var/lib/jenkins/userContent/reproducible/reproducible_fdroid_build_apps/fdroidserver/net.py", line 60, in http_get
    r = requests.get(url, headers=headers)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 70, in get
    return request('get', url, params=params, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 56, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 488, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 609, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 485, in send
    raise ProxyError(e, request=request)
requests.exceptions.ProxyError: HTTPConnectionPool(host='localhost', port=3128): Max retries exceeded with url: http://example.org/index-v1.jar (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7fda9a054080>: Failed to establish a new connection: [Errno 111] Connection refused',)))

----------------------------------------------------------------------
Ran 7 tests in 2.385s

FAILED (errors=1)
+ cleanup_all
++ date -u
Mon Jan 22 13:31:54 UTC 2018 - cleanup in progress...
+ echo 'Mon Jan 22 13:31:54 UTC 2018 - cleanup in progress...'
+ killall adb
adb: no process found
Mon Jan 22 13:31:54 UTC 2018 - /srv/jenkins/bin/reproducible_fdroid_test.sh stopped running as /tmp/jenkins-script-7V4rejrI, 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