From 112d8aec94e587e3d2346242ac43b02edff20539 Mon Sep 17 00:00:00 2001 From: ComplexSpaces Date: Mon, 11 Mar 2024 17:33:57 -0700 Subject: [PATCH] Fix Android CI log output and uploading --- .github/workflows/ci.yml | 5 +- android/emulator.log | 99 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 102 insertions(+), 2 deletions(-) create mode 100644 android/emulator.log diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f0d65151..84837899 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -156,7 +156,8 @@ jobs: env | grep '^JAVA' touch emulator.log chmod 770 emulator.log - adb logcat >> emulator.log & + adb logcat -c + adb logcat | grep 'rustls' | tee emulator.log & ./gradlew connectedDebugAndroidTest - name: Upload Android test results @@ -167,7 +168,7 @@ jobs: name: android-test-results retention-days: 7 path: | - emulator.log + ./android/emulator.log /Users/runner/work/rustls-platform-verifier/rustls-platform-verifier/android/rustls-platform-verifier/build/outputs/androidTest-results/connected/test-result.pb # TODO: Test iOS in CI too. diff --git a/android/emulator.log b/android/emulator.log new file mode 100644 index 00000000..ecba4850 --- /dev/null +++ b/android/emulator.log @@ -0,0 +1,99 @@ +03-11 18:56:29.020 505 553 I ActivityManager: Force stopping org.rustls.platformverifier.test appid=10146 user=-1: installPackageLI +03-11 18:56:29.020 505 574 I PackageManager: Update package org.rustls.platformverifier.test code path from /data/app/~~ofqaBBqWw95QK9fbrXHutg==/org.rustls.platformverifier.test-j0YSdDgTyqaWYuQqTcEuSQ== to /data/app/~~DfyCA_BxcYeWAf6-lmncCQ==/org.rustls.platformverifier.test-4gxlt5Pmd3dkNFSFmRQIcA==; Retain data and using new +03-11 18:56:29.034 505 574 I ActivityManager: Force stopping org.rustls.platformverifier.test appid=10146 user=0: pkg removed +03-11 18:56:29.036 1392 1392 I MediaProvider: Invalidating LocalCallingIdentity cache for package org.rustls.platformverifier.test. Reason: package android.intent.action.PACKAGE_REMOVED +03-11 18:56:29.036 505 553 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_REMOVED dat=package:org.rustls.platformverifier.test flg=0x4000010 (has extras) } to com.android.vending/com.google.android.finsky.packagemonitor.impl.PackageMonitorReceiverImpl$RegisteredReceiver +03-11 18:56:29.036 505 553 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_REMOVED dat=package:org.rustls.platformverifier.test flg=0x4000010 (has extras) } to com.android.vending/com.google.android.finsky.packagemonitor.backgroundimpl.BackgroundPackageMonitorReceiverImpl$RegisteredReceiver +03-11 18:56:29.036 505 553 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_REMOVED dat=package:org.rustls.platformverifier.test flg=0x4000010 (has extras) } to com.android.vending/com.google.android.finsky.instantapps.appmanagement.InstantAppRemoveMonitor +03-11 18:56:29.036 505 553 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_REMOVED dat=package:org.rustls.platformverifier.test flg=0x4000010 (has extras) } to com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver +03-11 18:56:29.036 505 553 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_REMOVED dat=package:org.rustls.platformverifier.test flg=0x4000010 (has extras) } to com.google.android.gms/.games.chimera.GamesSystemBroadcastReceiverProxy +03-11 18:56:29.036 505 553 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_REMOVED dat=package:org.rustls.platformverifier.test flg=0x4000010 (has extras) } to com.google.android.googlequicksearchbox/com.google.android.apps.gsa.googlequicksearchbox.GelStubAppWatcher +03-11 18:56:29.037 3729 3729 I GsaVoiceInteractionSrv: O received Intent { act=android.intent.action.PACKAGE_REMOVED dat=package:org.rustls.platformverifier.test flg=0x4000010 (has extras) } +03-11 18:56:29.041 505 505 I Telecom : CarModeTracker: Package org.rustls.platformverifier.test is not tracked.: SSH.oR@Ahs +03-11 18:56:29.044 10042 10042 I Finsky : [2] saf.aif(67): IQ: onPackageRemoved org.rustls.platformverifier.test, replacing=true, uninstallingFromPlay=false +03-11 18:56:29.045 10042 10113 I Finsky : [60] kpn.a(55): AIM: AppInfoManager-Perf > OnDeviceAppInfo > cacheHitCount=0, cacheMissCount=1. Missed in cache (limit 10) : [org.rustls.platformverifier.test] +03-11 18:56:29.049 10042 10148 I Finsky : [77] kpj.a(206): AIM: AppInfoManager-Perf > ItemModel > CacheSize=0, cacheHitCount=0, cacheMissCount=1, total appsWithNoServerDataCount=0. Missed in cache (limit 10) : [org.rustls.platformverifier.test] +03-11 18:56:29.050 10042 10150 I Finsky : [76] tdk.apply(427): ItemStore: Not cached: org.rustls.platformverifier.test +03-11 18:56:29.050 505 542 D CompanionDeviceManagerService: onPackageModified(packageName = org.rustls.platformverifier.test) +03-11 18:56:29.050 1392 1392 I MediaProvider: Invalidating LocalCallingIdentity cache for package org.rustls.platformverifier.test. Reason: package android.intent.action.PACKAGE_ADDED +03-11 18:56:29.052 505 553 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_ADDED dat=package:org.rustls.platformverifier.test flg=0x4000010 (has extras) } to com.google.android.packageinstaller/com.android.packageinstaller.PackageInstalledReceiver +03-11 18:56:29.052 505 553 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_ADDED dat=package:org.rustls.platformverifier.test flg=0x4000010 (has extras) } to com.android.vending/com.google.android.finsky.packagemonitor.impl.PackageMonitorReceiverImpl$RegisteredReceiver +03-11 18:56:29.052 505 553 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_ADDED dat=package:org.rustls.platformverifier.test flg=0x4000010 (has extras) } to com.android.vending/com.google.android.finsky.packagemonitor.backgroundimpl.BackgroundPackageMonitorReceiverImpl$RegisteredReceiver +03-11 18:56:29.052 505 553 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_ADDED dat=package:org.rustls.platformverifier.test flg=0x4000010 (has extras) } to com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver +03-11 18:56:29.052 505 553 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_ADDED dat=package:org.rustls.platformverifier.test flg=0x4000010 (has extras) } to com.google.android.gms/.games.chimera.GamesSystemBroadcastReceiverProxy +03-11 18:56:29.052 505 553 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_ADDED dat=package:org.rustls.platformverifier.test flg=0x4000010 (has extras) } to com.google.android.gms/.gass.chimera.PackageChangeBroadcastReceiver +03-11 18:56:29.052 505 553 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_ADDED dat=package:org.rustls.platformverifier.test flg=0x4000010 (has extras) } to com.google.android.googlequicksearchbox/com.google.android.apps.gsa.googlequicksearchbox.GelStubAppWatcher +03-11 18:56:29.052 3729 3729 I GsaVoiceInteractionSrv: O received Intent { act=android.intent.action.PACKAGE_ADDED dat=package:org.rustls.platformverifier.test flg=0x4000010 (has extras) } +03-11 18:56:29.054 749 749 D MediaPlayerList: Name of package changed: org.rustls.platformverifier.test +03-11 18:56:29.068 505 571 E VerityUtils: Failed to measure fs-verity, errno 1: /data/app/~~DfyCA_BxcYeWAf6-lmncCQ==/org.rustls.platformverifier.test-4gxlt5Pmd3dkNFSFmRQIcA==/base.apk +03-11 18:56:29.080 10042 10150 I Finsky : [76] kpn.a(55): AIM: AppInfoManager-Perf > OnDeviceAppInfo > cacheHitCount=0, cacheMissCount=1. Missed in cache (limit 10) : [org.rustls.platformverifier.test] +03-11 18:56:29.084 9787 23834 W SQLiteLog: (28) double-quoted string literal: "org.rustls.platformverifier.test" +03-11 18:56:29.086 10042 10148 I Finsky : [77] kpj.a(206): AIM: AppInfoManager-Perf > ItemModel > CacheSize=0, cacheHitCount=0, cacheMissCount=1, total appsWithNoServerDataCount=0. Missed in cache (limit 10) : [org.rustls.platformverifier.test] +03-11 18:56:29.086 10042 10148 I Finsky : [77] tdk.apply(427): ItemStore: Not cached: org.rustls.platformverifier.test +03-11 18:56:29.091 3729 3729 I GsaVoiceInteractionSrv: O received Intent { act=android.intent.action.PACKAGE_REPLACED dat=package:org.rustls.platformverifier.test flg=0x4000010 (has extras) } +03-11 18:56:29.097 505 3204 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_REPLACED dat=package:org.rustls.platformverifier.test flg=0x4000010 (has extras) } to com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver +03-11 18:56:29.098 505 553 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_REPLACED dat=package:org.rustls.platformverifier.test flg=0x4000010 (has extras) } to com.google.android.gms/.gass.chimera.PackageChangeBroadcastReceiver +03-11 18:56:29.098 505 553 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_REPLACED dat=package:org.rustls.platformverifier.test flg=0x4000010 (has extras) } to com.google.android.googlequicksearchbox/com.google.android.apps.gsa.googlequicksearchbox.GelStubAppWatcher +03-11 18:56:29.102 505 571 E VerityUtils: Failed to measure fs-verity, errno 1: /data/app/~~DfyCA_BxcYeWAf6-lmncCQ==/org.rustls.platformverifier.test-4gxlt5Pmd3dkNFSFmRQIcA==/base.apk +03-11 18:56:29.115 959 959 D ImsResolver: maybeAddedImsService, packageName: org.rustls.platformverifier.test +03-11 18:56:29.651 505 4286 I ActivityManager: Force stopping org.rustls.platformverifier.test appid=10146 user=0: start instr +03-11 18:56:29.654 505 554 I ActivityManager: Start proc 23903:org.rustls.platformverifier.test/u0a146 for added application org.rustls.platformverifier.test +03-11 18:56:29.704 23903 23903 V GraphicsEnvironment: ANGLE Developer option for 'org.rustls.platformverifier.test' set to: 'default' +03-11 18:56:29.753 23903 23922 I TestRequestBuilder: Scanning classpath to find tests in paths [/data/app/~~DfyCA_BxcYeWAf6-lmncCQ==/org.rustls.platformverifier.test-4gxlt5Pmd3dkNFSFmRQIcA==/base.apk] +03-11 18:56:29.839 23903 23922 I TestRunner: started: runMockTestSuite(org.rustls.platformverifier.CertificateVerifierTests) +03-11 18:56:29.842 23903 23924 I rustls_platform_verif..: verifying Ok(()) +03-11 18:56:29.860 23903 23922 I rustls_platform_verif..: mock tests: test passed +03-11 18:56:29.860 23903 23922 I rustls_platform_verif..: ----------------------------------------------------------------------------- +03-11 18:56:29.860 23903 23925 I rustls_platform_verif..: verifying Ok(()) +03-11 18:56:29.865 23903 23922 I rustls_platform_verif..: mock tests: test passed +03-11 18:56:29.865 23903 23922 I rustls_platform_verif..: ----------------------------------------------------------------------------- +03-11 18:56:29.865 23903 23926 I rustls_platform_verif..: verifying Ok(()) +03-11 18:56:29.871 23903 23922 I rustls_platform_verif..: mock tests: test passed +03-11 18:56:29.871 23903 23922 I rustls_platform_verif..: ----------------------------------------------------------------------------- +03-11 18:56:29.871 23903 23927 I rustls_platform_verif..: verifying Ok(()) +03-11 18:56:29.879 23903 23922 I rustls_platform_verif..: mock tests: test passed +03-11 18:56:29.879 23903 23922 I rustls_platform_verif..: ----------------------------------------------------------------------------- +03-11 18:56:29.879 23903 23928 I rustls_platform_verif..: verifying Ok(()) +03-11 18:56:29.888 23903 23922 I rustls_platform_verif..: mock tests: test passed +03-11 18:56:29.888 23903 23922 I rustls_platform_verif..: ----------------------------------------------------------------------------- +03-11 18:56:29.888 23903 23929 I rustls_platform_verif..: verifying Ok(()) +03-11 18:56:29.896 23903 23922 I rustls_platform_verif..: mock tests: test passed +03-11 18:56:29.896 23903 23922 I rustls_platform_verif..: ----------------------------------------------------------------------------- +03-11 18:56:29.896 23903 23930 I rustls_platform_verif..: verifying Err(InvalidCertificate(Revoked)) +03-11 18:56:29.906 23903 23930 W rustls_platform_verif..: certificate was revoked: java.security.cert.CertPathValidatorException: Certificate has been revoked, reason: UNSPECIFIED, revocation date: Mon Jul 31 09:27:00 PDT 2023, authority: O=root1-int1, extension OIDs: [] +03-11 18:56:29.906 23903 23930 E rustls_platform_verif..: failed to verify TLS certificate: invalid peer certificate: Revoked +03-11 18:56:29.906 23903 23922 I rustls_platform_verif..: mock tests: test passed +03-11 18:56:29.906 23903 23922 I rustls_platform_verif..: ----------------------------------------------------------------------------- +03-11 18:56:29.906 23903 23931 I rustls_platform_verif..: verifying Err(InvalidCertificate(Revoked)) +03-11 18:56:29.914 23903 23931 W rustls_platform_verif..: certificate was revoked: java.security.cert.CertPathValidatorException: Certificate has been revoked, reason: UNSPECIFIED, revocation date: Mon Jul 31 09:27:00 PDT 2023, authority: O=root1-int1, extension OIDs: [] +03-11 18:56:29.914 23903 23931 E rustls_platform_verif..: failed to verify TLS certificate: invalid peer certificate: Revoked +03-11 18:56:29.914 23903 23922 I rustls_platform_verif..: mock tests: test passed +03-11 18:56:29.915 23903 23922 I rustls_platform_verif..: ----------------------------------------------------------------------------- +03-11 18:56:29.915 23903 23932 I rustls_platform_verif..: verifying Err(InvalidCertificate(Revoked)) +03-11 18:56:29.923 23903 23932 W rustls_platform_verif..: certificate was revoked: java.security.cert.CertPathValidatorException: Certificate has been revoked, reason: UNSPECIFIED, revocation date: Mon Jul 31 09:27:00 PDT 2023, authority: O=root1-int1, extension OIDs: [] +03-11 18:56:29.923 23903 23932 E rustls_platform_verif..: failed to verify TLS certificate: invalid peer certificate: Revoked +03-11 18:56:29.923 23903 23922 I rustls_platform_verif..: mock tests: test passed +03-11 18:56:29.923 23903 23922 I rustls_platform_verif..: ----------------------------------------------------------------------------- +03-11 18:56:29.923 23903 23933 I rustls_platform_verif..: verifying Err(InvalidCertificate(UnknownIssuer)) +03-11 18:56:29.924 23903 23933 W rustls_platform_verif..: certificate was not trusted: java.security.cert.CertificateException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found. +03-11 18:56:29.924 23903 23933 E rustls_platform_verif..: failed to verify TLS certificate: invalid peer certificate: UnknownIssuer +03-11 18:56:29.924 23903 23922 I rustls_platform_verif..: mock tests: test passed +03-11 18:56:29.924 23903 23922 I rustls_platform_verif..: ----------------------------------------------------------------------------- +03-11 18:56:29.924 23903 23934 I rustls_platform_verif..: verifying Err(InvalidCertificate(UnknownIssuer)) +03-11 18:56:29.925 23903 23934 W rustls_platform_verif..: certificate was not trusted: java.security.cert.CertificateException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found. +03-11 18:56:29.925 23903 23934 E rustls_platform_verif..: failed to verify TLS certificate: invalid peer certificate: UnknownIssuer +03-11 18:56:29.925 23903 23922 I rustls_platform_verif..: mock tests: test passed +03-11 18:56:29.925 23903 23922 I rustls_platform_verif..: ----------------------------------------------------------------------------- +03-11 18:56:29.926 23903 23935 I rustls_platform_verif..: verifying Err(InvalidCertificate(UnknownIssuer)) +03-11 18:56:29.927 23903 23935 W rustls_platform_verif..: certificate was not trusted: java.security.cert.CertificateException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found. +03-11 18:56:29.927 23903 23935 E rustls_platform_verif..: failed to verify TLS certificate: invalid peer certificate: UnknownIssuer +03-11 18:56:29.927 23903 23922 I rustls_platform_verif..: mock tests: test passed +03-11 18:56:29.927 23903 23922 I rustls_platform_verif..: ----------------------------------------------------------------------------- +03-11 18:56:29.927 23903 23936 I rustls_platform_verif..: verifying Err(InvalidCertificate(NotValidForName)) +03-11 18:56:29.931 23903 23936 E rustls_platform_verif..: failed to verify TLS certificate: invalid peer certificate: NotValidForName +03-11 18:56:29.931 23903 23922 I rustls_platform_verif..: mock tests: test passed +03-11 18:56:29.931 23903 23922 I rustls_platform_verif..: ----------------------------------------------------------------------------- +03-11 18:56:29.931 23903 23937 I rustls_platform_verif..: verifying Err(InvalidCertificate(NotValidForName)) +03-11 18:56:29.935 23903 23937 E rustls_platform_verif..: failed to verify TLS certificate: invalid peer certificate: NotValidForName +03-11 18:56:29.935 23903 23922 I rustls_platform_verif..: mock tests: test passed +03-11 18:56:29.935 23903 239 \ No newline at end of file