Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EncryptedDatabaseErrorTest Failing #1120

Closed
jingtang10 opened this issue Feb 6, 2022 · 3 comments · Fixed by #1118, #1119, #1130, #1136 or #1165
Closed

EncryptedDatabaseErrorTest Failing #1120

jingtang10 opened this issue Feb 6, 2022 · 3 comments · Fixed by #1118, #1119, #1130, #1136 or #1165
Labels
P1 High priority issue

Comments

@jingtang10
Copy link
Collaborator

jingtang10 commented Feb 6, 2022

Tracking bug for the currently failing CI.

e.g.
https://github.com/google/android-fhir/runs/5077468637?check_suite_focus=true

com.google.android.fhir.db.impl.EncryptedDatabaseErrorTest > unencryptedDatabase_thenEncryptedDatabase_shouldThrowIllegalStateException[test(AVD) - 10] FAILED 
	java.lang.AssertionError: unexpected exception type thrown; expected:<java.lang.IllegalStateException> but was:<java.lang.OutOfMemoryError>
	at org.junit.Assert.assertThrows(Assert.java:1020)

com.google.android.fhir.db.impl.EncryptedDatabaseErrorTest > encryptedDatabase_thenUnencrypted_shouldThrowIllegalStateException[test(AVD) - 10] FAILED 
	java.lang.AssertionError: unexpected exception type thrown; expected:<java.lang.IllegalStateException> but was:<java.lang.OutOfMemoryError>
	at org.junit.Assert.assertThrows(Assert.java:1020)

com.google.android.fhir.db.impl.EncryptedDatabaseErrorTest > encryptedDatabase_thenLostKey_shouldThrowSQLiteException[test(AVD) - 10] FAILED 
	java.lang.AssertionError: unexpected exception type thrown; expected:<net.sqlcipher.database.SQLiteException> but was:<java.lang.OutOfMemoryError>
	at org.junit.Assert.assertThrows(Assert.java:1020)

com.google.android.fhir.db.impl.EncryptedDatabaseErrorTest > encryptedDatabase_thenLostKey_recreationStrategy_shouldRecreateDatabase[test(AVD) - 10] FAILED 
java.lang.OutOfMemoryError: OutOfMemoryError thrown while trying to throw OutOfMemoryError; no stack trace available

We use emulator to run these test and in the past we ran into issues when there's a new emulator release: ReactiveCircus/android-emulator-runner#160

@jingtang10 jingtang10 added the P1 High priority issue label Feb 6, 2022
@jingtang10
Copy link
Collaborator Author

cc: @epicadk @stevenckngaa @aditya-07

@jingtang10 jingtang10 changed the title Failing CI EncryptedDatabaseErrorTest Failing Feb 7, 2022
@jingtang10 jingtang10 reopened this Feb 8, 2022
@jingtang10
Copy link
Collaborator Author

Not sure this was resolved given the latest failures here https://github.com/google/android-fhir/runs/5105727288?check_suite_focus=true

@jingtang10
Copy link
Collaborator Author

closing since CI passing now with the latest changes. but we should still look into test orchestration and improving CI in general.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment