Skip to content

feat: location messages backup (WPB-5826) #1705

feat: location messages backup (WPB-5826)

feat: location messages backup (WPB-5826) #1705

GitHub Actions / Test Results failed Dec 21, 2023 in 0s

364 fail, 2 skipped, 65 pass in 3m 18s

431 tests     65 ✔️  3m 18s ⏱️
    1 suites      2 💤
    1 files    364

Results for commit 2b02183.

Annotations

Check warning on line 0 in com.wire.kalium.persistence.backup.DatabaseExporterTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

givenSelfDeletingMessages_whenBackup_thenTheyAreNotIncludedInTheGeneratedBackup (com.wire.kalium.persistence.backup.DatabaseExporterTest) failed

persistence/build/outputs/androidTest-results/connected/debug/TEST-emulator-5554 - 11-_persistence-.xml [took 0s]
Raw output
android.database.sqlite.SQLiteException: no such table: local_db.MessageConversationLocationContent (code 1 SQLITE_ERROR): , while compiling: WITH selfdelete_message_id AS (
SELECT local_db.Message.id, local_db.Message.conversation_id
FROM local_db.Message
WHERE local_db.Message.expire_after_millis IS NOT NULL
)
INSERT INTO MessageConversationLocationContent
SELECT local_db.MessageConversationLocationContent.message_id,
local_db.MessageConversationLocationContent.conversation_id,
local_db.MessageConversationLocationContent.latitude,
local_db.MessageConversationLocationContent.longitude,
local_db.MessageConversationLocationContent.name,
local_db.MessageConversationLocationContent.zoom
FROM local_db.MessageConversationLocationContent
LEFT JOIN selfdelete_message_id
ON local_db.MessageConversationLocationContent.message_id = selfdelete_message_id.id
AND local_db.MessageConversationLocationContent.conversation_id = selfdelete_message_id.conversation_id
WHERE selfdelete_message_id.id IS NULL
OR selfdelete_message_id.conversation_id IS NULL
at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:1045)
at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:652)
at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:590)
at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:61)
at android.database.sqlite.SQLiteStatement.<init>(SQLiteStatement.java:33)
at android.database.sqlite.SQLiteDatabase.compileStatement(SQLiteDatabase.java:1223)
at androidx.sqlite.db.framework.FrameworkSQLiteDatabase.compileStatement(FrameworkSQLiteDatabase.kt:51)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute-zeHU3Mk(AndroidSqliteDriver.kt:163)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.db.SqlDriver$DefaultImpls.execute$default(SqlDriver.kt:63)
at com.wire.kalium.persistence.persistence.UserDatabaseImpl$Schema.create-0iQ1-z0(UserDatabaseImpl.kt:1245)
at com.wire.kalium.persistence.persistence.UserDatabaseImpl$Schema.create(UserDatabaseImpl.kt:236)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$Callback.onCreate(AndroidSqliteDriver.kt:207)
at com.wire.kalium.persistence.db.support.SqliteCallback.onCreate(SqliteCallback.kt:32)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.onCreate(FrameworkSQLiteOpenHelper.kt:244)
at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:411)
at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:316)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getWritableOrReadableDatabase(FrameworkSQLiteOpenHelper.kt:232)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.innerGetDatabase(FrameworkSQLiteOpenHelper.kt:190)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getSupportDatabase(FrameworkSQLiteOpenHelper.kt:151)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper.getWritableDatabase(FrameworkSQLiteOpenHelper.kt:104)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$database$2.invoke(AndroidSqliteDriver.kt:41)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$database$2.invoke(AndroidSqliteDriver.kt:40)
at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.getDatabase(AndroidSqliteDriver.kt:40)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.access$getDatabase(AndroidSqliteDriver.kt:29)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute-zeHU3Mk(AndroidSqliteDriver.kt:163)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute(AndroidSqliteDriver.kt:184)
at com.wire.kalium.persistence.DatabasePropertiesQueries.insertSelfUserId(DatabasePropertiesQueries.kt:12)
at com.wire.kalium.persistence.db.UserDatabaseBuilder.<init>(UserDatabaseBuilder.kt:165)
at com.wire.kalium.persistence.db.UserDatabaseBuilder.<init>(UserDatabaseBuilder.kt:117)
at com.wire.kalium.persistence.db.UserDatabaseKt.userDatabaseBuilder-YmARkpc(UserDatabase.kt:75)
at com.wire.kalium.persistence.BaseDatabaseTest.createDatabase-fl0Tdyo(BaseDatabaseTest.kt:53)
at com.wire.kalium.persistence.backup.DatabaseExporterTest.setUp(DatabaseExporterTest.kt:49)

Check warning on line 0 in com.wire.kalium.persistence.backup.DatabaseImporterTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

givenBackupHasSomeOverlappingConversationsWithTheUserAlongWithTheUniqueOnes_whenRestoringBackup_thenOnlyTheUniqueOnesAreRestored (com.wire.kalium.persistence.backup.DatabaseImporterTest) failed

persistence/build/outputs/androidTest-results/connected/debug/TEST-emulator-5554 - 11-_persistence-.xml [took 0s]
Raw output
android.database.sqlite.SQLiteException: no such table: local_db.MessageConversationLocationContent (code 1 SQLITE_ERROR): , while compiling: WITH selfdelete_message_id AS (
SELECT local_db.Message.id, local_db.Message.conversation_id
FROM local_db.Message
WHERE local_db.Message.expire_after_millis IS NOT NULL
)
INSERT INTO MessageConversationLocationContent
SELECT local_db.MessageConversationLocationContent.message_id,
local_db.MessageConversationLocationContent.conversation_id,
local_db.MessageConversationLocationContent.latitude,
local_db.MessageConversationLocationContent.longitude,
local_db.MessageConversationLocationContent.name,
local_db.MessageConversationLocationContent.zoom
FROM local_db.MessageConversationLocationContent
LEFT JOIN selfdelete_message_id
ON local_db.MessageConversationLocationContent.message_id = selfdelete_message_id.id
AND local_db.MessageConversationLocationContent.conversation_id = selfdelete_message_id.conversation_id
WHERE selfdelete_message_id.id IS NULL
OR selfdelete_message_id.conversation_id IS NULL
at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:1045)
at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:652)
at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:590)
at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:61)
at android.database.sqlite.SQLiteStatement.<init>(SQLiteStatement.java:33)
at android.database.sqlite.SQLiteDatabase.compileStatement(SQLiteDatabase.java:1223)
at androidx.sqlite.db.framework.FrameworkSQLiteDatabase.compileStatement(FrameworkSQLiteDatabase.kt:51)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute-zeHU3Mk(AndroidSqliteDriver.kt:163)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.db.SqlDriver$DefaultImpls.execute$default(SqlDriver.kt:63)
at com.wire.kalium.persistence.persistence.UserDatabaseImpl$Schema.create-0iQ1-z0(UserDatabaseImpl.kt:1245)
at com.wire.kalium.persistence.persistence.UserDatabaseImpl$Schema.create(UserDatabaseImpl.kt:236)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$Callback.onCreate(AndroidSqliteDriver.kt:207)
at com.wire.kalium.persistence.db.support.SqliteCallback.onCreate(SqliteCallback.kt:32)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.onCreate(FrameworkSQLiteOpenHelper.kt:244)
at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:411)
at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:316)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getWritableOrReadableDatabase(FrameworkSQLiteOpenHelper.kt:232)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.innerGetDatabase(FrameworkSQLiteOpenHelper.kt:190)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getSupportDatabase(FrameworkSQLiteOpenHelper.kt:151)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper.getWritableDatabase(FrameworkSQLiteOpenHelper.kt:104)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$database$2.invoke(AndroidSqliteDriver.kt:41)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$database$2.invoke(AndroidSqliteDriver.kt:40)
at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.getDatabase(AndroidSqliteDriver.kt:40)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.access$getDatabase(AndroidSqliteDriver.kt:29)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute-zeHU3Mk(AndroidSqliteDriver.kt:163)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute(AndroidSqliteDriver.kt:184)
at com.wire.kalium.persistence.DatabasePropertiesQueries.insertSelfUserId(DatabasePropertiesQueries.kt:12)
at com.wire.kalium.persistence.db.UserDatabaseBuilder.<init>(UserDatabaseBuilder.kt:165)
at com.wire.kalium.persistence.db.UserDatabaseBuilder.<init>(UserDatabaseBuilder.kt:117)
at com.wire.kalium.persistence.db.UserDatabaseKt.userDatabaseBuilder-YmARkpc(UserDatabase.kt:75)
at com.wire.kalium.persistence.BaseDatabaseTest.createDatabase-fl0Tdyo(BaseDatabaseTest.kt:53)
at com.wire.kalium.persistence.backup.DatabaseImporterTest.setUp(DatabaseImporterTest.kt:64)

Check warning on line 0 in com.wire.kalium.persistence.backup.DatabaseImporterTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

givenBackupHasNoTeamsANdUserHasTeams_whenRestoringBackup_thenTeamsArePresent (com.wire.kalium.persistence.backup.DatabaseImporterTest) failed

persistence/build/outputs/androidTest-results/connected/debug/TEST-emulator-5554 - 11-_persistence-.xml [took 0s]
Raw output
android.database.sqlite.SQLiteException: no such table: local_db.MessageConversationLocationContent (code 1 SQLITE_ERROR): , while compiling: WITH selfdelete_message_id AS (
SELECT local_db.Message.id, local_db.Message.conversation_id
FROM local_db.Message
WHERE local_db.Message.expire_after_millis IS NOT NULL
)
INSERT INTO MessageConversationLocationContent
SELECT local_db.MessageConversationLocationContent.message_id,
local_db.MessageConversationLocationContent.conversation_id,
local_db.MessageConversationLocationContent.latitude,
local_db.MessageConversationLocationContent.longitude,
local_db.MessageConversationLocationContent.name,
local_db.MessageConversationLocationContent.zoom
FROM local_db.MessageConversationLocationContent
LEFT JOIN selfdelete_message_id
ON local_db.MessageConversationLocationContent.message_id = selfdelete_message_id.id
AND local_db.MessageConversationLocationContent.conversation_id = selfdelete_message_id.conversation_id
WHERE selfdelete_message_id.id IS NULL
OR selfdelete_message_id.conversation_id IS NULL
at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:1045)
at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:652)
at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:590)
at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:61)
at android.database.sqlite.SQLiteStatement.<init>(SQLiteStatement.java:33)
at android.database.sqlite.SQLiteDatabase.compileStatement(SQLiteDatabase.java:1223)
at androidx.sqlite.db.framework.FrameworkSQLiteDatabase.compileStatement(FrameworkSQLiteDatabase.kt:51)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute-zeHU3Mk(AndroidSqliteDriver.kt:163)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.db.SqlDriver$DefaultImpls.execute$default(SqlDriver.kt:63)
at com.wire.kalium.persistence.persistence.UserDatabaseImpl$Schema.create-0iQ1-z0(UserDatabaseImpl.kt:1245)
at com.wire.kalium.persistence.persistence.UserDatabaseImpl$Schema.create(UserDatabaseImpl.kt:236)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$Callback.onCreate(AndroidSqliteDriver.kt:207)
at com.wire.kalium.persistence.db.support.SqliteCallback.onCreate(SqliteCallback.kt:32)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.onCreate(FrameworkSQLiteOpenHelper.kt:244)
at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:411)
at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:316)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getWritableOrReadableDatabase(FrameworkSQLiteOpenHelper.kt:232)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.innerGetDatabase(FrameworkSQLiteOpenHelper.kt:190)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getSupportDatabase(FrameworkSQLiteOpenHelper.kt:151)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper.getWritableDatabase(FrameworkSQLiteOpenHelper.kt:104)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$database$2.invoke(AndroidSqliteDriver.kt:41)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$database$2.invoke(AndroidSqliteDriver.kt:40)
at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.getDatabase(AndroidSqliteDriver.kt:40)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.access$getDatabase(AndroidSqliteDriver.kt:29)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute-zeHU3Mk(AndroidSqliteDriver.kt:163)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute(AndroidSqliteDriver.kt:184)
at com.wire.kalium.persistence.DatabasePropertiesQueries.insertSelfUserId(DatabasePropertiesQueries.kt:12)
at com.wire.kalium.persistence.db.UserDatabaseBuilder.<init>(UserDatabaseBuilder.kt:165)
at com.wire.kalium.persistence.db.UserDatabaseBuilder.<init>(UserDatabaseBuilder.kt:117)
at com.wire.kalium.persistence.db.UserDatabaseKt.userDatabaseBuilder-YmARkpc(UserDatabase.kt:75)
at com.wire.kalium.persistence.BaseDatabaseTest.createDatabase-fl0Tdyo(BaseDatabaseTest.kt:53)
at com.wire.kalium.persistence.backup.DatabaseImporterTest.setUp(DatabaseImporterTest.kt:64)

Check warning on line 0 in com.wire.kalium.persistence.backup.DatabaseImporterTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

givenBackupHasConversationWithCallsButUserNot_whenRestoringBackup_thenAllCallsAreInserted (com.wire.kalium.persistence.backup.DatabaseImporterTest) failed

persistence/build/outputs/androidTest-results/connected/debug/TEST-emulator-5554 - 11-_persistence-.xml [took 0s]
Raw output
android.database.sqlite.SQLiteException: no such table: local_db.MessageConversationLocationContent (code 1 SQLITE_ERROR): , while compiling: WITH selfdelete_message_id AS (
SELECT local_db.Message.id, local_db.Message.conversation_id
FROM local_db.Message
WHERE local_db.Message.expire_after_millis IS NOT NULL
)
INSERT INTO MessageConversationLocationContent
SELECT local_db.MessageConversationLocationContent.message_id,
local_db.MessageConversationLocationContent.conversation_id,
local_db.MessageConversationLocationContent.latitude,
local_db.MessageConversationLocationContent.longitude,
local_db.MessageConversationLocationContent.name,
local_db.MessageConversationLocationContent.zoom
FROM local_db.MessageConversationLocationContent
LEFT JOIN selfdelete_message_id
ON local_db.MessageConversationLocationContent.message_id = selfdelete_message_id.id
AND local_db.MessageConversationLocationContent.conversation_id = selfdelete_message_id.conversation_id
WHERE selfdelete_message_id.id IS NULL
OR selfdelete_message_id.conversation_id IS NULL
at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:1045)
at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:652)
at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:590)
at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:61)
at android.database.sqlite.SQLiteStatement.<init>(SQLiteStatement.java:33)
at android.database.sqlite.SQLiteDatabase.compileStatement(SQLiteDatabase.java:1223)
at androidx.sqlite.db.framework.FrameworkSQLiteDatabase.compileStatement(FrameworkSQLiteDatabase.kt:51)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute-zeHU3Mk(AndroidSqliteDriver.kt:163)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.db.SqlDriver$DefaultImpls.execute$default(SqlDriver.kt:63)
at com.wire.kalium.persistence.persistence.UserDatabaseImpl$Schema.create-0iQ1-z0(UserDatabaseImpl.kt:1245)
at com.wire.kalium.persistence.persistence.UserDatabaseImpl$Schema.create(UserDatabaseImpl.kt:236)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$Callback.onCreate(AndroidSqliteDriver.kt:207)
at com.wire.kalium.persistence.db.support.SqliteCallback.onCreate(SqliteCallback.kt:32)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.onCreate(FrameworkSQLiteOpenHelper.kt:244)
at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:411)
at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:316)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getWritableOrReadableDatabase(FrameworkSQLiteOpenHelper.kt:232)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.innerGetDatabase(FrameworkSQLiteOpenHelper.kt:190)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getSupportDatabase(FrameworkSQLiteOpenHelper.kt:151)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper.getWritableDatabase(FrameworkSQLiteOpenHelper.kt:104)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$database$2.invoke(AndroidSqliteDriver.kt:41)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$database$2.invoke(AndroidSqliteDriver.kt:40)
at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.getDatabase(AndroidSqliteDriver.kt:40)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.access$getDatabase(AndroidSqliteDriver.kt:29)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute-zeHU3Mk(AndroidSqliteDriver.kt:163)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute(AndroidSqliteDriver.kt:184)
at com.wire.kalium.persistence.DatabasePropertiesQueries.insertSelfUserId(DatabasePropertiesQueries.kt:12)
at com.wire.kalium.persistence.db.UserDatabaseBuilder.<init>(UserDatabaseBuilder.kt:165)
at com.wire.kalium.persistence.db.UserDatabaseBuilder.<init>(UserDatabaseBuilder.kt:117)
at com.wire.kalium.persistence.db.UserDatabaseKt.userDatabaseBuilder-YmARkpc(UserDatabase.kt:75)
at com.wire.kalium.persistence.BaseDatabaseTest.createDatabase-fl0Tdyo(BaseDatabaseTest.kt:53)
at com.wire.kalium.persistence.backup.DatabaseImporterTest.setUp(DatabaseImporterTest.kt:64)

Check warning on line 0 in com.wire.kalium.persistence.backup.DatabaseImporterTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

givenBackupHasConversationWithMembersAndUseWithSomeOfThoseMembers_whenRestoringBackup_thenTheOverlappingMembersAreNotRestored (com.wire.kalium.persistence.backup.DatabaseImporterTest) failed

persistence/build/outputs/androidTest-results/connected/debug/TEST-emulator-5554 - 11-_persistence-.xml [took 0s]
Raw output
android.database.sqlite.SQLiteException: no such table: local_db.MessageConversationLocationContent (code 1 SQLITE_ERROR): , while compiling: WITH selfdelete_message_id AS (
SELECT local_db.Message.id, local_db.Message.conversation_id
FROM local_db.Message
WHERE local_db.Message.expire_after_millis IS NOT NULL
)
INSERT INTO MessageConversationLocationContent
SELECT local_db.MessageConversationLocationContent.message_id,
local_db.MessageConversationLocationContent.conversation_id,
local_db.MessageConversationLocationContent.latitude,
local_db.MessageConversationLocationContent.longitude,
local_db.MessageConversationLocationContent.name,
local_db.MessageConversationLocationContent.zoom
FROM local_db.MessageConversationLocationContent
LEFT JOIN selfdelete_message_id
ON local_db.MessageConversationLocationContent.message_id = selfdelete_message_id.id
AND local_db.MessageConversationLocationContent.conversation_id = selfdelete_message_id.conversation_id
WHERE selfdelete_message_id.id IS NULL
OR selfdelete_message_id.conversation_id IS NULL
at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:1045)
at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:652)
at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:590)
at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:61)
at android.database.sqlite.SQLiteStatement.<init>(SQLiteStatement.java:33)
at android.database.sqlite.SQLiteDatabase.compileStatement(SQLiteDatabase.java:1223)
at androidx.sqlite.db.framework.FrameworkSQLiteDatabase.compileStatement(FrameworkSQLiteDatabase.kt:51)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute-zeHU3Mk(AndroidSqliteDriver.kt:163)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.db.SqlDriver$DefaultImpls.execute$default(SqlDriver.kt:63)
at com.wire.kalium.persistence.persistence.UserDatabaseImpl$Schema.create-0iQ1-z0(UserDatabaseImpl.kt:1245)
at com.wire.kalium.persistence.persistence.UserDatabaseImpl$Schema.create(UserDatabaseImpl.kt:236)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$Callback.onCreate(AndroidSqliteDriver.kt:207)
at com.wire.kalium.persistence.db.support.SqliteCallback.onCreate(SqliteCallback.kt:32)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.onCreate(FrameworkSQLiteOpenHelper.kt:244)
at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:411)
at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:316)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getWritableOrReadableDatabase(FrameworkSQLiteOpenHelper.kt:232)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.innerGetDatabase(FrameworkSQLiteOpenHelper.kt:190)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getSupportDatabase(FrameworkSQLiteOpenHelper.kt:151)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper.getWritableDatabase(FrameworkSQLiteOpenHelper.kt:104)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$database$2.invoke(AndroidSqliteDriver.kt:41)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$database$2.invoke(AndroidSqliteDriver.kt:40)
at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.getDatabase(AndroidSqliteDriver.kt:40)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.access$getDatabase(AndroidSqliteDriver.kt:29)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute-zeHU3Mk(AndroidSqliteDriver.kt:163)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute(AndroidSqliteDriver.kt:184)
at com.wire.kalium.persistence.DatabasePropertiesQueries.insertSelfUserId(DatabasePropertiesQueries.kt:12)
at com.wire.kalium.persistence.db.UserDatabaseBuilder.<init>(UserDatabaseBuilder.kt:165)
at com.wire.kalium.persistence.db.UserDatabaseBuilder.<init>(UserDatabaseBuilder.kt:117)
at com.wire.kalium.persistence.db.UserDatabaseKt.userDatabaseBuilder-YmARkpc(UserDatabase.kt:75)
at com.wire.kalium.persistence.BaseDatabaseTest.createDatabase-fl0Tdyo(BaseDatabaseTest.kt:53)
at com.wire.kalium.persistence.backup.DatabaseImporterTest.setUp(DatabaseImporterTest.kt:64)

Check warning on line 0 in com.wire.kalium.persistence.backup.DatabaseImporterTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

givenBackupHasConversationsAndUserNone_whenRestoringBackup_thenThoseConversationAreRestored (com.wire.kalium.persistence.backup.DatabaseImporterTest) failed

persistence/build/outputs/androidTest-results/connected/debug/TEST-emulator-5554 - 11-_persistence-.xml [took 0s]
Raw output
android.database.sqlite.SQLiteException: no such table: local_db.MessageConversationLocationContent (code 1 SQLITE_ERROR): , while compiling: WITH selfdelete_message_id AS (
SELECT local_db.Message.id, local_db.Message.conversation_id
FROM local_db.Message
WHERE local_db.Message.expire_after_millis IS NOT NULL
)
INSERT INTO MessageConversationLocationContent
SELECT local_db.MessageConversationLocationContent.message_id,
local_db.MessageConversationLocationContent.conversation_id,
local_db.MessageConversationLocationContent.latitude,
local_db.MessageConversationLocationContent.longitude,
local_db.MessageConversationLocationContent.name,
local_db.MessageConversationLocationContent.zoom
FROM local_db.MessageConversationLocationContent
LEFT JOIN selfdelete_message_id
ON local_db.MessageConversationLocationContent.message_id = selfdelete_message_id.id
AND local_db.MessageConversationLocationContent.conversation_id = selfdelete_message_id.conversation_id
WHERE selfdelete_message_id.id IS NULL
OR selfdelete_message_id.conversation_id IS NULL
at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:1045)
at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:652)
at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:590)
at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:61)
at android.database.sqlite.SQLiteStatement.<init>(SQLiteStatement.java:33)
at android.database.sqlite.SQLiteDatabase.compileStatement(SQLiteDatabase.java:1223)
at androidx.sqlite.db.framework.FrameworkSQLiteDatabase.compileStatement(FrameworkSQLiteDatabase.kt:51)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute-zeHU3Mk(AndroidSqliteDriver.kt:163)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.db.SqlDriver$DefaultImpls.execute$default(SqlDriver.kt:63)
at com.wire.kalium.persistence.persistence.UserDatabaseImpl$Schema.create-0iQ1-z0(UserDatabaseImpl.kt:1245)
at com.wire.kalium.persistence.persistence.UserDatabaseImpl$Schema.create(UserDatabaseImpl.kt:236)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$Callback.onCreate(AndroidSqliteDriver.kt:207)
at com.wire.kalium.persistence.db.support.SqliteCallback.onCreate(SqliteCallback.kt:32)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.onCreate(FrameworkSQLiteOpenHelper.kt:244)
at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:411)
at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:316)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getWritableOrReadableDatabase(FrameworkSQLiteOpenHelper.kt:232)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.innerGetDatabase(FrameworkSQLiteOpenHelper.kt:190)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getSupportDatabase(FrameworkSQLiteOpenHelper.kt:151)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper.getWritableDatabase(FrameworkSQLiteOpenHelper.kt:104)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$database$2.invoke(AndroidSqliteDriver.kt:41)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$database$2.invoke(AndroidSqliteDriver.kt:40)
at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.getDatabase(AndroidSqliteDriver.kt:40)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.access$getDatabase(AndroidSqliteDriver.kt:29)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute-zeHU3Mk(AndroidSqliteDriver.kt:163)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute(AndroidSqliteDriver.kt:184)
at com.wire.kalium.persistence.DatabasePropertiesQueries.insertSelfUserId(DatabasePropertiesQueries.kt:12)
at com.wire.kalium.persistence.db.UserDatabaseBuilder.<init>(UserDatabaseBuilder.kt:165)
at com.wire.kalium.persistence.db.UserDatabaseBuilder.<init>(UserDatabaseBuilder.kt:117)
at com.wire.kalium.persistence.db.UserDatabaseKt.userDatabaseBuilder-YmARkpc(UserDatabase.kt:75)
at com.wire.kalium.persistence.BaseDatabaseTest.createDatabase-fl0Tdyo(BaseDatabaseTest.kt:53)
at com.wire.kalium.persistence.backup.DatabaseImporterTest.setUp(DatabaseImporterTest.kt:64)

Check warning on line 0 in com.wire.kalium.persistence.backup.DatabaseImporterTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

givenBackupHasOverlappingUsersWithUserAlongWithUniqueOnes_whenRestoringBackup_thenOnlyUniqueOnesAReRestored (com.wire.kalium.persistence.backup.DatabaseImporterTest) failed

persistence/build/outputs/androidTest-results/connected/debug/TEST-emulator-5554 - 11-_persistence-.xml [took 0s]
Raw output
android.database.sqlite.SQLiteException: no such table: local_db.MessageConversationLocationContent (code 1 SQLITE_ERROR): , while compiling: WITH selfdelete_message_id AS (
SELECT local_db.Message.id, local_db.Message.conversation_id
FROM local_db.Message
WHERE local_db.Message.expire_after_millis IS NOT NULL
)
INSERT INTO MessageConversationLocationContent
SELECT local_db.MessageConversationLocationContent.message_id,
local_db.MessageConversationLocationContent.conversation_id,
local_db.MessageConversationLocationContent.latitude,
local_db.MessageConversationLocationContent.longitude,
local_db.MessageConversationLocationContent.name,
local_db.MessageConversationLocationContent.zoom
FROM local_db.MessageConversationLocationContent
LEFT JOIN selfdelete_message_id
ON local_db.MessageConversationLocationContent.message_id = selfdelete_message_id.id
AND local_db.MessageConversationLocationContent.conversation_id = selfdelete_message_id.conversation_id
WHERE selfdelete_message_id.id IS NULL
OR selfdelete_message_id.conversation_id IS NULL
at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:1045)
at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:652)
at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:590)
at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:61)
at android.database.sqlite.SQLiteStatement.<init>(SQLiteStatement.java:33)
at android.database.sqlite.SQLiteDatabase.compileStatement(SQLiteDatabase.java:1223)
at androidx.sqlite.db.framework.FrameworkSQLiteDatabase.compileStatement(FrameworkSQLiteDatabase.kt:51)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute-zeHU3Mk(AndroidSqliteDriver.kt:163)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.db.SqlDriver$DefaultImpls.execute$default(SqlDriver.kt:63)
at com.wire.kalium.persistence.persistence.UserDatabaseImpl$Schema.create-0iQ1-z0(UserDatabaseImpl.kt:1245)
at com.wire.kalium.persistence.persistence.UserDatabaseImpl$Schema.create(UserDatabaseImpl.kt:236)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$Callback.onCreate(AndroidSqliteDriver.kt:207)
at com.wire.kalium.persistence.db.support.SqliteCallback.onCreate(SqliteCallback.kt:32)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.onCreate(FrameworkSQLiteOpenHelper.kt:244)
at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:411)
at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:316)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getWritableOrReadableDatabase(FrameworkSQLiteOpenHelper.kt:232)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.innerGetDatabase(FrameworkSQLiteOpenHelper.kt:190)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getSupportDatabase(FrameworkSQLiteOpenHelper.kt:151)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper.getWritableDatabase(FrameworkSQLiteOpenHelper.kt:104)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$database$2.invoke(AndroidSqliteDriver.kt:41)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$database$2.invoke(AndroidSqliteDriver.kt:40)
at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.getDatabase(AndroidSqliteDriver.kt:40)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.access$getDatabase(AndroidSqliteDriver.kt:29)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute-zeHU3Mk(AndroidSqliteDriver.kt:163)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute(AndroidSqliteDriver.kt:184)
at com.wire.kalium.persistence.DatabasePropertiesQueries.insertSelfUserId(DatabasePropertiesQueries.kt:12)
at com.wire.kalium.persistence.db.UserDatabaseBuilder.<init>(UserDatabaseBuilder.kt:165)
at com.wire.kalium.persistence.db.UserDatabaseBuilder.<init>(UserDatabaseBuilder.kt:117)
at com.wire.kalium.persistence.db.UserDatabaseKt.userDatabaseBuilder-YmARkpc(UserDatabase.kt:75)
at com.wire.kalium.persistence.BaseDatabaseTest.createDatabase-fl0Tdyo(BaseDatabaseTest.kt:53)
at com.wire.kalium.persistence.backup.DatabaseImporterTest.setUp(DatabaseImporterTest.kt:64)

Check warning on line 0 in com.wire.kalium.persistence.backup.DatabaseImporterTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

givenBackupHasUsersAndUserNot_whenRestoringBackup_thenThoseUsersAreRestored (com.wire.kalium.persistence.backup.DatabaseImporterTest) failed

persistence/build/outputs/androidTest-results/connected/debug/TEST-emulator-5554 - 11-_persistence-.xml [took 0s]
Raw output
android.database.sqlite.SQLiteException: no such table: local_db.MessageConversationLocationContent (code 1 SQLITE_ERROR): , while compiling: WITH selfdelete_message_id AS (
SELECT local_db.Message.id, local_db.Message.conversation_id
FROM local_db.Message
WHERE local_db.Message.expire_after_millis IS NOT NULL
)
INSERT INTO MessageConversationLocationContent
SELECT local_db.MessageConversationLocationContent.message_id,
local_db.MessageConversationLocationContent.conversation_id,
local_db.MessageConversationLocationContent.latitude,
local_db.MessageConversationLocationContent.longitude,
local_db.MessageConversationLocationContent.name,
local_db.MessageConversationLocationContent.zoom
FROM local_db.MessageConversationLocationContent
LEFT JOIN selfdelete_message_id
ON local_db.MessageConversationLocationContent.message_id = selfdelete_message_id.id
AND local_db.MessageConversationLocationContent.conversation_id = selfdelete_message_id.conversation_id
WHERE selfdelete_message_id.id IS NULL
OR selfdelete_message_id.conversation_id IS NULL
at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:1045)
at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:652)
at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:590)
at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:61)
at android.database.sqlite.SQLiteStatement.<init>(SQLiteStatement.java:33)
at android.database.sqlite.SQLiteDatabase.compileStatement(SQLiteDatabase.java:1223)
at androidx.sqlite.db.framework.FrameworkSQLiteDatabase.compileStatement(FrameworkSQLiteDatabase.kt:51)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute-zeHU3Mk(AndroidSqliteDriver.kt:163)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.db.SqlDriver$DefaultImpls.execute$default(SqlDriver.kt:63)
at com.wire.kalium.persistence.persistence.UserDatabaseImpl$Schema.create-0iQ1-z0(UserDatabaseImpl.kt:1245)
at com.wire.kalium.persistence.persistence.UserDatabaseImpl$Schema.create(UserDatabaseImpl.kt:236)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$Callback.onCreate(AndroidSqliteDriver.kt:207)
at com.wire.kalium.persistence.db.support.SqliteCallback.onCreate(SqliteCallback.kt:32)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.onCreate(FrameworkSQLiteOpenHelper.kt:244)
at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:411)
at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:316)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getWritableOrReadableDatabase(FrameworkSQLiteOpenHelper.kt:232)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.innerGetDatabase(FrameworkSQLiteOpenHelper.kt:190)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getSupportDatabase(FrameworkSQLiteOpenHelper.kt:151)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper.getWritableDatabase(FrameworkSQLiteOpenHelper.kt:104)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$database$2.invoke(AndroidSqliteDriver.kt:41)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$database$2.invoke(AndroidSqliteDriver.kt:40)
at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.getDatabase(AndroidSqliteDriver.kt:40)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.access$getDatabase(AndroidSqliteDriver.kt:29)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute-zeHU3Mk(AndroidSqliteDriver.kt:163)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute(AndroidSqliteDriver.kt:184)
at com.wire.kalium.persistence.DatabasePropertiesQueries.insertSelfUserId(DatabasePropertiesQueries.kt:12)
at com.wire.kalium.persistence.db.UserDatabaseBuilder.<init>(UserDatabaseBuilder.kt:165)
at com.wire.kalium.persistence.db.UserDatabaseBuilder.<init>(UserDatabaseBuilder.kt:117)
at com.wire.kalium.persistence.db.UserDatabaseKt.userDatabaseBuilder-YmARkpc(UserDatabase.kt:75)
at com.wire.kalium.persistence.BaseDatabaseTest.createDatabase-fl0Tdyo(BaseDatabaseTest.kt:53)
at com.wire.kalium.persistence.backup.DatabaseImporterTest.setUp(DatabaseImporterTest.kt:64)

Check warning on line 0 in com.wire.kalium.persistence.backup.DatabaseImporterTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

givenBackupHasAssetsAndUser_whenRestoringBackup_thenBackupAssetsAreNotRestoredButUsersAssetArePreserved (com.wire.kalium.persistence.backup.DatabaseImporterTest) failed

persistence/build/outputs/androidTest-results/connected/debug/TEST-emulator-5554 - 11-_persistence-.xml [took 0s]
Raw output
android.database.sqlite.SQLiteException: no such table: local_db.MessageConversationLocationContent (code 1 SQLITE_ERROR): , while compiling: WITH selfdelete_message_id AS (
SELECT local_db.Message.id, local_db.Message.conversation_id
FROM local_db.Message
WHERE local_db.Message.expire_after_millis IS NOT NULL
)
INSERT INTO MessageConversationLocationContent
SELECT local_db.MessageConversationLocationContent.message_id,
local_db.MessageConversationLocationContent.conversation_id,
local_db.MessageConversationLocationContent.latitude,
local_db.MessageConversationLocationContent.longitude,
local_db.MessageConversationLocationContent.name,
local_db.MessageConversationLocationContent.zoom
FROM local_db.MessageConversationLocationContent
LEFT JOIN selfdelete_message_id
ON local_db.MessageConversationLocationContent.message_id = selfdelete_message_id.id
AND local_db.MessageConversationLocationContent.conversation_id = selfdelete_message_id.conversation_id
WHERE selfdelete_message_id.id IS NULL
OR selfdelete_message_id.conversation_id IS NULL
at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:1045)
at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:652)
at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:590)
at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:61)
at android.database.sqlite.SQLiteStatement.<init>(SQLiteStatement.java:33)
at android.database.sqlite.SQLiteDatabase.compileStatement(SQLiteDatabase.java:1223)
at androidx.sqlite.db.framework.FrameworkSQLiteDatabase.compileStatement(FrameworkSQLiteDatabase.kt:51)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute-zeHU3Mk(AndroidSqliteDriver.kt:163)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.db.SqlDriver$DefaultImpls.execute$default(SqlDriver.kt:63)
at com.wire.kalium.persistence.persistence.UserDatabaseImpl$Schema.create-0iQ1-z0(UserDatabaseImpl.kt:1245)
at com.wire.kalium.persistence.persistence.UserDatabaseImpl$Schema.create(UserDatabaseImpl.kt:236)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$Callback.onCreate(AndroidSqliteDriver.kt:207)
at com.wire.kalium.persistence.db.support.SqliteCallback.onCreate(SqliteCallback.kt:32)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.onCreate(FrameworkSQLiteOpenHelper.kt:244)
at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:411)
at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:316)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getWritableOrReadableDatabase(FrameworkSQLiteOpenHelper.kt:232)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.innerGetDatabase(FrameworkSQLiteOpenHelper.kt:190)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getSupportDatabase(FrameworkSQLiteOpenHelper.kt:151)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper.getWritableDatabase(FrameworkSQLiteOpenHelper.kt:104)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$database$2.invoke(AndroidSqliteDriver.kt:41)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$database$2.invoke(AndroidSqliteDriver.kt:40)
at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.getDatabase(AndroidSqliteDriver.kt:40)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.access$getDatabase(AndroidSqliteDriver.kt:29)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute-zeHU3Mk(AndroidSqliteDriver.kt:163)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute(AndroidSqliteDriver.kt:184)
at com.wire.kalium.persistence.DatabasePropertiesQueries.insertSelfUserId(DatabasePropertiesQueries.kt:12)
at com.wire.kalium.persistence.db.UserDatabaseBuilder.<init>(UserDatabaseBuilder.kt:165)
at com.wire.kalium.persistence.db.UserDatabaseBuilder.<init>(UserDatabaseBuilder.kt:117)
at com.wire.kalium.persistence.db.UserDatabaseKt.userDatabaseBuilder-YmARkpc(UserDatabase.kt:75)
at com.wire.kalium.persistence.BaseDatabaseTest.createDatabase-fl0Tdyo(BaseDatabaseTest.kt:53)
at com.wire.kalium.persistence.backup.DatabaseImporterTest.setUp(DatabaseImporterTest.kt:64)

Check warning on line 0 in com.wire.kalium.persistence.backup.DatabaseImporterTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

givenBackupHasAllUserConversationsAndBackupHasUniqueOnesAlongWithTheUser_whenRestoringBackup_thenOnlyTheUniqueOesAreRestored (com.wire.kalium.persistence.backup.DatabaseImporterTest) failed

persistence/build/outputs/androidTest-results/connected/debug/TEST-emulator-5554 - 11-_persistence-.xml [took 0s]
Raw output
android.database.sqlite.SQLiteException: no such table: local_db.MessageConversationLocationContent (code 1 SQLITE_ERROR): , while compiling: WITH selfdelete_message_id AS (
SELECT local_db.Message.id, local_db.Message.conversation_id
FROM local_db.Message
WHERE local_db.Message.expire_after_millis IS NOT NULL
)
INSERT INTO MessageConversationLocationContent
SELECT local_db.MessageConversationLocationContent.message_id,
local_db.MessageConversationLocationContent.conversation_id,
local_db.MessageConversationLocationContent.latitude,
local_db.MessageConversationLocationContent.longitude,
local_db.MessageConversationLocationContent.name,
local_db.MessageConversationLocationContent.zoom
FROM local_db.MessageConversationLocationContent
LEFT JOIN selfdelete_message_id
ON local_db.MessageConversationLocationContent.message_id = selfdelete_message_id.id
AND local_db.MessageConversationLocationContent.conversation_id = selfdelete_message_id.conversation_id
WHERE selfdelete_message_id.id IS NULL
OR selfdelete_message_id.conversation_id IS NULL
at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:1045)
at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:652)
at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:590)
at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:61)
at android.database.sqlite.SQLiteStatement.<init>(SQLiteStatement.java:33)
at android.database.sqlite.SQLiteDatabase.compileStatement(SQLiteDatabase.java:1223)
at androidx.sqlite.db.framework.FrameworkSQLiteDatabase.compileStatement(FrameworkSQLiteDatabase.kt:51)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute-zeHU3Mk(AndroidSqliteDriver.kt:163)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.db.SqlDriver$DefaultImpls.execute$default(SqlDriver.kt:63)
at com.wire.kalium.persistence.persistence.UserDatabaseImpl$Schema.create-0iQ1-z0(UserDatabaseImpl.kt:1245)
at com.wire.kalium.persistence.persistence.UserDatabaseImpl$Schema.create(UserDatabaseImpl.kt:236)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$Callback.onCreate(AndroidSqliteDriver.kt:207)
at com.wire.kalium.persistence.db.support.SqliteCallback.onCreate(SqliteCallback.kt:32)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.onCreate(FrameworkSQLiteOpenHelper.kt:244)
at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:411)
at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:316)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getWritableOrReadableDatabase(FrameworkSQLiteOpenHelper.kt:232)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.innerGetDatabase(FrameworkSQLiteOpenHelper.kt:190)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getSupportDatabase(FrameworkSQLiteOpenHelper.kt:151)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper.getWritableDatabase(FrameworkSQLiteOpenHelper.kt:104)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$database$2.invoke(AndroidSqliteDriver.kt:41)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$database$2.invoke(AndroidSqliteDriver.kt:40)
at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.getDatabase(AndroidSqliteDriver.kt:40)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.access$getDatabase(AndroidSqliteDriver.kt:29)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute-zeHU3Mk(AndroidSqliteDriver.kt:163)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute(AndroidSqliteDriver.kt:184)
at com.wire.kalium.persistence.DatabasePropertiesQueries.insertSelfUserId(DatabasePropertiesQueries.kt:12)
at com.wire.kalium.persistence.db.UserDatabaseBuilder.<init>(UserDatabaseBuilder.kt:165)
at com.wire.kalium.persistence.db.UserDatabaseBuilder.<init>(UserDatabaseBuilder.kt:117)
at com.wire.kalium.persistence.db.UserDatabaseKt.userDatabaseBuilder-YmARkpc(UserDatabase.kt:75)
at com.wire.kalium.persistence.BaseDatabaseTest.createDatabase-fl0Tdyo(BaseDatabaseTest.kt:53)
at com.wire.kalium.persistence.backup.DatabaseImporterTest.setUp(DatabaseImporterTest.kt:64)

Check warning on line 0 in com.wire.kalium.persistence.backup.DatabaseImporterTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

givenBackupHasUniqueConversationWithCallsButFromOtherClient_whenRestoringBackup_thenNoCallsAreInserted (com.wire.kalium.persistence.backup.DatabaseImporterTest) failed

persistence/build/outputs/androidTest-results/connected/debug/TEST-emulator-5554 - 11-_persistence-.xml [took 0s]
Raw output
android.database.sqlite.SQLiteException: no such table: local_db.MessageConversationLocationContent (code 1 SQLITE_ERROR): , while compiling: WITH selfdelete_message_id AS (
SELECT local_db.Message.id, local_db.Message.conversation_id
FROM local_db.Message
WHERE local_db.Message.expire_after_millis IS NOT NULL
)
INSERT INTO MessageConversationLocationContent
SELECT local_db.MessageConversationLocationContent.message_id,
local_db.MessageConversationLocationContent.conversation_id,
local_db.MessageConversationLocationContent.latitude,
local_db.MessageConversationLocationContent.longitude,
local_db.MessageConversationLocationContent.name,
local_db.MessageConversationLocationContent.zoom
FROM local_db.MessageConversationLocationContent
LEFT JOIN selfdelete_message_id
ON local_db.MessageConversationLocationContent.message_id = selfdelete_message_id.id
AND local_db.MessageConversationLocationContent.conversation_id = selfdelete_message_id.conversation_id
WHERE selfdelete_message_id.id IS NULL
OR selfdelete_message_id.conversation_id IS NULL
at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:1045)
at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:652)
at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:590)
at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:61)
at android.database.sqlite.SQLiteStatement.<init>(SQLiteStatement.java:33)
at android.database.sqlite.SQLiteDatabase.compileStatement(SQLiteDatabase.java:1223)
at androidx.sqlite.db.framework.FrameworkSQLiteDatabase.compileStatement(FrameworkSQLiteDatabase.kt:51)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute-zeHU3Mk(AndroidSqliteDriver.kt:163)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.db.SqlDriver$DefaultImpls.execute$default(SqlDriver.kt:63)
at com.wire.kalium.persistence.persistence.UserDatabaseImpl$Schema.create-0iQ1-z0(UserDatabaseImpl.kt:1245)
at com.wire.kalium.persistence.persistence.UserDatabaseImpl$Schema.create(UserDatabaseImpl.kt:236)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$Callback.onCreate(AndroidSqliteDriver.kt:207)
at com.wire.kalium.persistence.db.support.SqliteCallback.onCreate(SqliteCallback.kt:32)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.onCreate(FrameworkSQLiteOpenHelper.kt:244)
at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:411)
at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:316)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getWritableOrReadableDatabase(FrameworkSQLiteOpenHelper.kt:232)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.innerGetDatabase(FrameworkSQLiteOpenHelper.kt:190)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getSupportDatabase(FrameworkSQLiteOpenHelper.kt:151)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper.getWritableDatabase(FrameworkSQLiteOpenHelper.kt:104)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$database$2.invoke(AndroidSqliteDriver.kt:41)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$database$2.invoke(AndroidSqliteDriver.kt:40)
at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.getDatabase(AndroidSqliteDriver.kt:40)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.access$getDatabase(AndroidSqliteDriver.kt:29)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute-zeHU3Mk(AndroidSqliteDriver.kt:163)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute(AndroidSqliteDriver.kt:184)
at com.wire.kalium.persistence.DatabasePropertiesQueries.insertSelfUserId(DatabasePropertiesQueries.kt:12)
at com.wire.kalium.persistence.db.UserDatabaseBuilder.<init>(UserDatabaseBuilder.kt:165)
at com.wire.kalium.persistence.db.UserDatabaseBuilder.<init>(UserDatabaseBuilder.kt:117)
at com.wire.kalium.persistence.db.UserDatabaseKt.userDatabaseBuilder-YmARkpc(UserDatabase.kt:75)
at com.wire.kalium.persistence.BaseDatabaseTest.createDatabase-fl0Tdyo(BaseDatabaseTest.kt:53)
at com.wire.kalium.persistence.backup.DatabaseImporterTest.setUp(DatabaseImporterTest.kt:64)

Check warning on line 0 in com.wire.kalium.persistence.backup.DatabaseImporterTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

givenBackupHasNoUsersAndUserDoes_whenRestoringBackup_thenThoseUsersAreRestored (com.wire.kalium.persistence.backup.DatabaseImporterTest) failed

persistence/build/outputs/androidTest-results/connected/debug/TEST-emulator-5554 - 11-_persistence-.xml [took 0s]
Raw output
android.database.sqlite.SQLiteException: no such table: local_db.MessageConversationLocationContent (code 1 SQLITE_ERROR): , while compiling: WITH selfdelete_message_id AS (
SELECT local_db.Message.id, local_db.Message.conversation_id
FROM local_db.Message
WHERE local_db.Message.expire_after_millis IS NOT NULL
)
INSERT INTO MessageConversationLocationContent
SELECT local_db.MessageConversationLocationContent.message_id,
local_db.MessageConversationLocationContent.conversation_id,
local_db.MessageConversationLocationContent.latitude,
local_db.MessageConversationLocationContent.longitude,
local_db.MessageConversationLocationContent.name,
local_db.MessageConversationLocationContent.zoom
FROM local_db.MessageConversationLocationContent
LEFT JOIN selfdelete_message_id
ON local_db.MessageConversationLocationContent.message_id = selfdelete_message_id.id
AND local_db.MessageConversationLocationContent.conversation_id = selfdelete_message_id.conversation_id
WHERE selfdelete_message_id.id IS NULL
OR selfdelete_message_id.conversation_id IS NULL
at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:1045)
at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:652)
at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:590)
at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:61)
at android.database.sqlite.SQLiteStatement.<init>(SQLiteStatement.java:33)
at android.database.sqlite.SQLiteDatabase.compileStatement(SQLiteDatabase.java:1223)
at androidx.sqlite.db.framework.FrameworkSQLiteDatabase.compileStatement(FrameworkSQLiteDatabase.kt:51)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute-zeHU3Mk(AndroidSqliteDriver.kt:163)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.db.SqlDriver$DefaultImpls.execute$default(SqlDriver.kt:63)
at com.wire.kalium.persistence.persistence.UserDatabaseImpl$Schema.create-0iQ1-z0(UserDatabaseImpl.kt:1245)
at com.wire.kalium.persistence.persistence.UserDatabaseImpl$Schema.create(UserDatabaseImpl.kt:236)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$Callback.onCreate(AndroidSqliteDriver.kt:207)
at com.wire.kalium.persistence.db.support.SqliteCallback.onCreate(SqliteCallback.kt:32)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.onCreate(FrameworkSQLiteOpenHelper.kt:244)
at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:411)
at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:316)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getWritableOrReadableDatabase(FrameworkSQLiteOpenHelper.kt:232)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.innerGetDatabase(FrameworkSQLiteOpenHelper.kt:190)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getSupportDatabase(FrameworkSQLiteOpenHelper.kt:151)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper.getWritableDatabase(FrameworkSQLiteOpenHelper.kt:104)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$database$2.invoke(AndroidSqliteDriver.kt:41)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$database$2.invoke(AndroidSqliteDriver.kt:40)
at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.getDatabase(AndroidSqliteDriver.kt:40)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.access$getDatabase(AndroidSqliteDriver.kt:29)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute-zeHU3Mk(AndroidSqliteDriver.kt:163)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute(AndroidSqliteDriver.kt:184)
at com.wire.kalium.persistence.DatabasePropertiesQueries.insertSelfUserId(DatabasePropertiesQueries.kt:12)
at com.wire.kalium.persistence.db.UserDatabaseBuilder.<init>(UserDatabaseBuilder.kt:165)
at com.wire.kalium.persistence.db.UserDatabaseBuilder.<init>(UserDatabaseBuilder.kt:117)
at com.wire.kalium.persistence.db.UserDatabaseKt.userDatabaseBuilder-YmARkpc(UserDatabase.kt:75)
at com.wire.kalium.persistence.BaseDatabaseTest.createDatabase-fl0Tdyo(BaseDatabaseTest.kt:53)
at com.wire.kalium.persistence.backup.DatabaseImporterTest.setUp(DatabaseImporterTest.kt:64)

Check warning on line 0 in com.wire.kalium.persistence.backup.DatabaseImporterTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

givenBackupHasOverLappingConversationWithUser_whenRestoringBackup_thenThoseConversationsAreNotInserted (com.wire.kalium.persistence.backup.DatabaseImporterTest) failed

persistence/build/outputs/androidTest-results/connected/debug/TEST-emulator-5554 - 11-_persistence-.xml [took 0s]
Raw output
android.database.sqlite.SQLiteException: no such table: local_db.MessageConversationLocationContent (code 1 SQLITE_ERROR): , while compiling: WITH selfdelete_message_id AS (
SELECT local_db.Message.id, local_db.Message.conversation_id
FROM local_db.Message
WHERE local_db.Message.expire_after_millis IS NOT NULL
)
INSERT INTO MessageConversationLocationContent
SELECT local_db.MessageConversationLocationContent.message_id,
local_db.MessageConversationLocationContent.conversation_id,
local_db.MessageConversationLocationContent.latitude,
local_db.MessageConversationLocationContent.longitude,
local_db.MessageConversationLocationContent.name,
local_db.MessageConversationLocationContent.zoom
FROM local_db.MessageConversationLocationContent
LEFT JOIN selfdelete_message_id
ON local_db.MessageConversationLocationContent.message_id = selfdelete_message_id.id
AND local_db.MessageConversationLocationContent.conversation_id = selfdelete_message_id.conversation_id
WHERE selfdelete_message_id.id IS NULL
OR selfdelete_message_id.conversation_id IS NULL
at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:1045)
at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:652)
at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:590)
at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:61)
at android.database.sqlite.SQLiteStatement.<init>(SQLiteStatement.java:33)
at android.database.sqlite.SQLiteDatabase.compileStatement(SQLiteDatabase.java:1223)
at androidx.sqlite.db.framework.FrameworkSQLiteDatabase.compileStatement(FrameworkSQLiteDatabase.kt:51)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute-zeHU3Mk(AndroidSqliteDriver.kt:163)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.db.SqlDriver$DefaultImpls.execute$default(SqlDriver.kt:63)
at com.wire.kalium.persistence.persistence.UserDatabaseImpl$Schema.create-0iQ1-z0(UserDatabaseImpl.kt:1245)
at com.wire.kalium.persistence.persistence.UserDatabaseImpl$Schema.create(UserDatabaseImpl.kt:236)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$Callback.onCreate(AndroidSqliteDriver.kt:207)
at com.wire.kalium.persistence.db.support.SqliteCallback.onCreate(SqliteCallback.kt:32)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.onCreate(FrameworkSQLiteOpenHelper.kt:244)
at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:411)
at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:316)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getWritableOrReadableDatabase(FrameworkSQLiteOpenHelper.kt:232)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.innerGetDatabase(FrameworkSQLiteOpenHelper.kt:190)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getSupportDatabase(FrameworkSQLiteOpenHelper.kt:151)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper.getWritableDatabase(FrameworkSQLiteOpenHelper.kt:104)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$database$2.invoke(AndroidSqliteDriver.kt:41)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$database$2.invoke(AndroidSqliteDriver.kt:40)
at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.getDatabase(AndroidSqliteDriver.kt:40)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.access$getDatabase(AndroidSqliteDriver.kt:29)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute-zeHU3Mk(AndroidSqliteDriver.kt:163)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute(AndroidSqliteDriver.kt:184)
at com.wire.kalium.persistence.DatabasePropertiesQueries.insertSelfUserId(DatabasePropertiesQueries.kt:12)
at com.wire.kalium.persistence.db.UserDatabaseBuilder.<init>(UserDatabaseBuilder.kt:165)
at com.wire.kalium.persistence.db.UserDatabaseBuilder.<init>(UserDatabaseBuilder.kt:117)
at com.wire.kalium.persistence.db.UserDatabaseKt.userDatabaseBuilder-YmARkpc(UserDatabase.kt:75)
at com.wire.kalium.persistence.BaseDatabaseTest.createDatabase-fl0Tdyo(BaseDatabaseTest.kt:53)
at com.wire.kalium.persistence.backup.DatabaseImporterTest.setUp(DatabaseImporterTest.kt:64)

Check warning on line 0 in com.wire.kalium.persistence.backup.DatabaseImporterTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

givenBackupHasTeamsAndUserHasNoTeams_whenRestoringBackup_thenTeamsAreRestored (com.wire.kalium.persistence.backup.DatabaseImporterTest) failed

persistence/build/outputs/androidTest-results/connected/debug/TEST-emulator-5554 - 11-_persistence-.xml [took 0s]
Raw output
android.database.sqlite.SQLiteException: no such table: local_db.MessageConversationLocationContent (code 1 SQLITE_ERROR): , while compiling: WITH selfdelete_message_id AS (
SELECT local_db.Message.id, local_db.Message.conversation_id
FROM local_db.Message
WHERE local_db.Message.expire_after_millis IS NOT NULL
)
INSERT INTO MessageConversationLocationContent
SELECT local_db.MessageConversationLocationContent.message_id,
local_db.MessageConversationLocationContent.conversation_id,
local_db.MessageConversationLocationContent.latitude,
local_db.MessageConversationLocationContent.longitude,
local_db.MessageConversationLocationContent.name,
local_db.MessageConversationLocationContent.zoom
FROM local_db.MessageConversationLocationContent
LEFT JOIN selfdelete_message_id
ON local_db.MessageConversationLocationContent.message_id = selfdelete_message_id.id
AND local_db.MessageConversationLocationContent.conversation_id = selfdelete_message_id.conversation_id
WHERE selfdelete_message_id.id IS NULL
OR selfdelete_message_id.conversation_id IS NULL
at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:1045)
at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:652)
at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:590)
at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:61)
at android.database.sqlite.SQLiteStatement.<init>(SQLiteStatement.java:33)
at android.database.sqlite.SQLiteDatabase.compileStatement(SQLiteDatabase.java:1223)
at androidx.sqlite.db.framework.FrameworkSQLiteDatabase.compileStatement(FrameworkSQLiteDatabase.kt:51)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute-zeHU3Mk(AndroidSqliteDriver.kt:163)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.db.SqlDriver$DefaultImpls.execute$default(SqlDriver.kt:63)
at com.wire.kalium.persistence.persistence.UserDatabaseImpl$Schema.create-0iQ1-z0(UserDatabaseImpl.kt:1245)
at com.wire.kalium.persistence.persistence.UserDatabaseImpl$Schema.create(UserDatabaseImpl.kt:236)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$Callback.onCreate(AndroidSqliteDriver.kt:207)
at com.wire.kalium.persistence.db.support.SqliteCallback.onCreate(SqliteCallback.kt:32)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.onCreate(FrameworkSQLiteOpenHelper.kt:244)
at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:411)
at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:316)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getWritableOrReadableDatabase(FrameworkSQLiteOpenHelper.kt:232)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.innerGetDatabase(FrameworkSQLiteOpenHelper.kt:190)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getSupportDatabase(FrameworkSQLiteOpenHelper.kt:151)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper.getWritableDatabase(FrameworkSQLiteOpenHelper.kt:104)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$database$2.invoke(AndroidSqliteDriver.kt:41)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$database$2.invoke(AndroidSqliteDriver.kt:40)
at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.getDatabase(AndroidSqliteDriver.kt:40)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.access$getDatabase(AndroidSqliteDriver.kt:29)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute-zeHU3Mk(AndroidSqliteDriver.kt:163)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute(AndroidSqliteDriver.kt:184)
at com.wire.kalium.persistence.DatabasePropertiesQueries.insertSelfUserId(DatabasePropertiesQueries.kt:12)
at com.wire.kalium.persistence.db.UserDatabaseBuilder.<init>(UserDatabaseBuilder.kt:165)
at com.wire.kalium.persistence.db.UserDatabaseBuilder.<init>(UserDatabaseBuilder.kt:117)
at com.wire.kalium.persistence.db.UserDatabaseKt.userDatabaseBuilder-YmARkpc(UserDatabase.kt:75)
at com.wire.kalium.persistence.BaseDatabaseTest.createDatabase-fl0Tdyo(BaseDatabaseTest.kt:53)
at com.wire.kalium.persistence.backup.DatabaseImporterTest.setUp(DatabaseImporterTest.kt:64)

Check warning on line 0 in com.wire.kalium.persistence.backup.DatabaseImporterTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

givenBackupHasNoConversationWithCallsButUserDoes_whenRestoringBackup_thenThoseCallsArePresent (com.wire.kalium.persistence.backup.DatabaseImporterTest) failed

persistence/build/outputs/androidTest-results/connected/debug/TEST-emulator-5554 - 11-_persistence-.xml [took 0s]
Raw output
android.database.sqlite.SQLiteException: no such table: local_db.MessageConversationLocationContent (code 1 SQLITE_ERROR): , while compiling: WITH selfdelete_message_id AS (
SELECT local_db.Message.id, local_db.Message.conversation_id
FROM local_db.Message
WHERE local_db.Message.expire_after_millis IS NOT NULL
)
INSERT INTO MessageConversationLocationContent
SELECT local_db.MessageConversationLocationContent.message_id,
local_db.MessageConversationLocationContent.conversation_id,
local_db.MessageConversationLocationContent.latitude,
local_db.MessageConversationLocationContent.longitude,
local_db.MessageConversationLocationContent.name,
local_db.MessageConversationLocationContent.zoom
FROM local_db.MessageConversationLocationContent
LEFT JOIN selfdelete_message_id
ON local_db.MessageConversationLocationContent.message_id = selfdelete_message_id.id
AND local_db.MessageConversationLocationContent.conversation_id = selfdelete_message_id.conversation_id
WHERE selfdelete_message_id.id IS NULL
OR selfdelete_message_id.conversation_id IS NULL
at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:1045)
at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:652)
at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:590)
at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:61)
at android.database.sqlite.SQLiteStatement.<init>(SQLiteStatement.java:33)
at android.database.sqlite.SQLiteDatabase.compileStatement(SQLiteDatabase.java:1223)
at androidx.sqlite.db.framework.FrameworkSQLiteDatabase.compileStatement(FrameworkSQLiteDatabase.kt:51)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute-zeHU3Mk(AndroidSqliteDriver.kt:163)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.db.SqlDriver$DefaultImpls.execute$default(SqlDriver.kt:63)
at com.wire.kalium.persistence.persistence.UserDatabaseImpl$Schema.create-0iQ1-z0(UserDatabaseImpl.kt:1245)
at com.wire.kalium.persistence.persistence.UserDatabaseImpl$Schema.create(UserDatabaseImpl.kt:236)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$Callback.onCreate(AndroidSqliteDriver.kt:207)
at com.wire.kalium.persistence.db.support.SqliteCallback.onCreate(SqliteCallback.kt:32)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.onCreate(FrameworkSQLiteOpenHelper.kt:244)
at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:411)
at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:316)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getWritableOrReadableDatabase(FrameworkSQLiteOpenHelper.kt:232)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.innerGetDatabase(FrameworkSQLiteOpenHelper.kt:190)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getSupportDatabase(FrameworkSQLiteOpenHelper.kt:151)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper.getWritableDatabase(FrameworkSQLiteOpenHelper.kt:104)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$database$2.invoke(AndroidSqliteDriver.kt:41)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$database$2.invoke(AndroidSqliteDriver.kt:40)
at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.getDatabase(AndroidSqliteDriver.kt:40)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.access$getDatabase(AndroidSqliteDriver.kt:29)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute-zeHU3Mk(AndroidSqliteDriver.kt:163)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute(AndroidSqliteDriver.kt:184)
at com.wire.kalium.persistence.DatabasePropertiesQueries.insertSelfUserId(DatabasePropertiesQueries.kt:12)
at com.wire.kalium.persistence.db.UserDatabaseBuilder.<init>(UserDatabaseBuilder.kt:165)
at com.wire.kalium.persistence.db.UserDatabaseBuilder.<init>(UserDatabaseBuilder.kt:117)
at com.wire.kalium.persistence.db.UserDatabaseKt.userDatabaseBuilder-YmARkpc(UserDatabase.kt:75)
at com.wire.kalium.persistence.BaseDatabaseTest.createDatabase-fl0Tdyo(BaseDatabaseTest.kt:53)
at com.wire.kalium.persistence.backup.DatabaseImporterTest.setUp(DatabaseImporterTest.kt:64)

Check warning on line 0 in com.wire.kalium.persistence.backup.DatabaseImporterTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

givenBackupHasOverLappingConversationWithLastReadDate_whenRestoringBackup_thenTheRightLastReadDateIsRestored (com.wire.kalium.persistence.backup.DatabaseImporterTest) failed

persistence/build/outputs/androidTest-results/connected/debug/TEST-emulator-5554 - 11-_persistence-.xml [took 0s]
Raw output
android.database.sqlite.SQLiteException: no such table: local_db.MessageConversationLocationContent (code 1 SQLITE_ERROR): , while compiling: WITH selfdelete_message_id AS (
SELECT local_db.Message.id, local_db.Message.conversation_id
FROM local_db.Message
WHERE local_db.Message.expire_after_millis IS NOT NULL
)
INSERT INTO MessageConversationLocationContent
SELECT local_db.MessageConversationLocationContent.message_id,
local_db.MessageConversationLocationContent.conversation_id,
local_db.MessageConversationLocationContent.latitude,
local_db.MessageConversationLocationContent.longitude,
local_db.MessageConversationLocationContent.name,
local_db.MessageConversationLocationContent.zoom
FROM local_db.MessageConversationLocationContent
LEFT JOIN selfdelete_message_id
ON local_db.MessageConversationLocationContent.message_id = selfdelete_message_id.id
AND local_db.MessageConversationLocationContent.conversation_id = selfdelete_message_id.conversation_id
WHERE selfdelete_message_id.id IS NULL
OR selfdelete_message_id.conversation_id IS NULL
at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:1045)
at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:652)
at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:590)
at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:61)
at android.database.sqlite.SQLiteStatement.<init>(SQLiteStatement.java:33)
at android.database.sqlite.SQLiteDatabase.compileStatement(SQLiteDatabase.java:1223)
at androidx.sqlite.db.framework.FrameworkSQLiteDatabase.compileStatement(FrameworkSQLiteDatabase.kt:51)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute-zeHU3Mk(AndroidSqliteDriver.kt:163)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.db.SqlDriver$DefaultImpls.execute$default(SqlDriver.kt:63)
at com.wire.kalium.persistence.persistence.UserDatabaseImpl$Schema.create-0iQ1-z0(UserDatabaseImpl.kt:1245)
at com.wire.kalium.persistence.persistence.UserDatabaseImpl$Schema.create(UserDatabaseImpl.kt:236)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$Callback.onCreate(AndroidSqliteDriver.kt:207)
at com.wire.kalium.persistence.db.support.SqliteCallback.onCreate(SqliteCallback.kt:32)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.onCreate(FrameworkSQLiteOpenHelper.kt:244)
at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:411)
at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:316)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getWritableOrReadableDatabase(FrameworkSQLiteOpenHelper.kt:232)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.innerGetDatabase(FrameworkSQLiteOpenHelper.kt:190)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getSupportDatabase(FrameworkSQLiteOpenHelper.kt:151)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper.getWritableDatabase(FrameworkSQLiteOpenHelper.kt:104)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$database$2.invoke(AndroidSqliteDriver.kt:41)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$database$2.invoke(AndroidSqliteDriver.kt:40)
at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.getDatabase(AndroidSqliteDriver.kt:40)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.access$getDatabase(AndroidSqliteDriver.kt:29)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute-zeHU3Mk(AndroidSqliteDriver.kt:163)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute(AndroidSqliteDriver.kt:184)
at com.wire.kalium.persistence.DatabasePropertiesQueries.insertSelfUserId(DatabasePropertiesQueries.kt:12)
at com.wire.kalium.persistence.db.UserDatabaseBuilder.<init>(UserDatabaseBuilder.kt:165)
at com.wire.kalium.persistence.db.UserDatabaseBuilder.<init>(UserDatabaseBuilder.kt:117)
at com.wire.kalium.persistence.db.UserDatabaseKt.userDatabaseBuilder-YmARkpc(UserDatabase.kt:75)
at com.wire.kalium.persistence.BaseDatabaseTest.createDatabase-fl0Tdyo(BaseDatabaseTest.kt:53)
at com.wire.kalium.persistence.backup.DatabaseImporterTest.setUp(DatabaseImporterTest.kt:64)

Check warning on line 0 in com.wire.kalium.persistence.backup.DatabaseImporterTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

givenBackupHasUniqueUsersAndUserDoes_whenRestoringBackup_thenThoseUsersAreRestored (com.wire.kalium.persistence.backup.DatabaseImporterTest) failed

persistence/build/outputs/androidTest-results/connected/debug/TEST-emulator-5554 - 11-_persistence-.xml [took 0s]
Raw output
android.database.sqlite.SQLiteException: no such table: local_db.MessageConversationLocationContent (code 1 SQLITE_ERROR): , while compiling: WITH selfdelete_message_id AS (
SELECT local_db.Message.id, local_db.Message.conversation_id
FROM local_db.Message
WHERE local_db.Message.expire_after_millis IS NOT NULL
)
INSERT INTO MessageConversationLocationContent
SELECT local_db.MessageConversationLocationContent.message_id,
local_db.MessageConversationLocationContent.conversation_id,
local_db.MessageConversationLocationContent.latitude,
local_db.MessageConversationLocationContent.longitude,
local_db.MessageConversationLocationContent.name,
local_db.MessageConversationLocationContent.zoom
FROM local_db.MessageConversationLocationContent
LEFT JOIN selfdelete_message_id
ON local_db.MessageConversationLocationContent.message_id = selfdelete_message_id.id
AND local_db.MessageConversationLocationContent.conversation_id = selfdelete_message_id.conversation_id
WHERE selfdelete_message_id.id IS NULL
OR selfdelete_message_id.conversation_id IS NULL
at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:1045)
at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:652)
at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:590)
at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:61)
at android.database.sqlite.SQLiteStatement.<init>(SQLiteStatement.java:33)
at android.database.sqlite.SQLiteDatabase.compileStatement(SQLiteDatabase.java:1223)
at androidx.sqlite.db.framework.FrameworkSQLiteDatabase.compileStatement(FrameworkSQLiteDatabase.kt:51)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute-zeHU3Mk(AndroidSqliteDriver.kt:163)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.db.SqlDriver$DefaultImpls.execute$default(SqlDriver.kt:63)
at com.wire.kalium.persistence.persistence.UserDatabaseImpl$Schema.create-0iQ1-z0(UserDatabaseImpl.kt:1245)
at com.wire.kalium.persistence.persistence.UserDatabaseImpl$Schema.create(UserDatabaseImpl.kt:236)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$Callback.onCreate(AndroidSqliteDriver.kt:207)
at com.wire.kalium.persistence.db.support.SqliteCallback.onCreate(SqliteCallback.kt:32)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.onCreate(FrameworkSQLiteOpenHelper.kt:244)
at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:411)
at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:316)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getWritableOrReadableDatabase(FrameworkSQLiteOpenHelper.kt:232)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.innerGetDatabase(FrameworkSQLiteOpenHelper.kt:190)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getSupportDatabase(FrameworkSQLiteOpenHelper.kt:151)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper.getWritableDatabase(FrameworkSQLiteOpenHelper.kt:104)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$database$2.invoke(AndroidSqliteDriver.kt:41)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$database$2.invoke(AndroidSqliteDriver.kt:40)
at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.getDatabase(AndroidSqliteDriver.kt:40)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.access$getDatabase(AndroidSqliteDriver.kt:29)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute-zeHU3Mk(AndroidSqliteDriver.kt:163)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute(AndroidSqliteDriver.kt:184)
at com.wire.kalium.persistence.DatabasePropertiesQueries.insertSelfUserId(DatabasePropertiesQueries.kt:12)
at com.wire.kalium.persistence.db.UserDatabaseBuilder.<init>(UserDatabaseBuilder.kt:165)
at com.wire.kalium.persistence.db.UserDatabaseBuilder.<init>(UserDatabaseBuilder.kt:117)
at com.wire.kalium.persistence.db.UserDatabaseKt.userDatabaseBuilder-YmARkpc(UserDatabase.kt:75)
at com.wire.kalium.persistence.BaseDatabaseTest.createDatabase-fl0Tdyo(BaseDatabaseTest.kt:53)
at com.wire.kalium.persistence.backup.DatabaseImporterTest.setUp(DatabaseImporterTest.kt:64)

Check warning on line 0 in com.wire.kalium.persistence.backup.DatabaseImporterTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

givenBackupHasConversationWithAssetContentAndUserToo_whenRestoringBackup_thenTheBackupAssetContentDownloadAndUploadStatusIsReset (com.wire.kalium.persistence.backup.DatabaseImporterTest) failed

persistence/build/outputs/androidTest-results/connected/debug/TEST-emulator-5554 - 11-_persistence-.xml [took 0s]
Raw output
android.database.sqlite.SQLiteException: no such table: local_db.MessageConversationLocationContent (code 1 SQLITE_ERROR): , while compiling: WITH selfdelete_message_id AS (
SELECT local_db.Message.id, local_db.Message.conversation_id
FROM local_db.Message
WHERE local_db.Message.expire_after_millis IS NOT NULL
)
INSERT INTO MessageConversationLocationContent
SELECT local_db.MessageConversationLocationContent.message_id,
local_db.MessageConversationLocationContent.conversation_id,
local_db.MessageConversationLocationContent.latitude,
local_db.MessageConversationLocationContent.longitude,
local_db.MessageConversationLocationContent.name,
local_db.MessageConversationLocationContent.zoom
FROM local_db.MessageConversationLocationContent
LEFT JOIN selfdelete_message_id
ON local_db.MessageConversationLocationContent.message_id = selfdelete_message_id.id
AND local_db.MessageConversationLocationContent.conversation_id = selfdelete_message_id.conversation_id
WHERE selfdelete_message_id.id IS NULL
OR selfdelete_message_id.conversation_id IS NULL
at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:1045)
at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:652)
at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:590)
at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:61)
at android.database.sqlite.SQLiteStatement.<init>(SQLiteStatement.java:33)
at android.database.sqlite.SQLiteDatabase.compileStatement(SQLiteDatabase.java:1223)
at androidx.sqlite.db.framework.FrameworkSQLiteDatabase.compileStatement(FrameworkSQLiteDatabase.kt:51)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute-zeHU3Mk(AndroidSqliteDriver.kt:163)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.db.SqlDriver$DefaultImpls.execute$default(SqlDriver.kt:63)
at com.wire.kalium.persistence.persistence.UserDatabaseImpl$Schema.create-0iQ1-z0(UserDatabaseImpl.kt:1245)
at com.wire.kalium.persistence.persistence.UserDatabaseImpl$Schema.create(UserDatabaseImpl.kt:236)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$Callback.onCreate(AndroidSqliteDriver.kt:207)
at com.wire.kalium.persistence.db.support.SqliteCallback.onCreate(SqliteCallback.kt:32)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.onCreate(FrameworkSQLiteOpenHelper.kt:244)
at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:411)
at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:316)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getWritableOrReadableDatabase(FrameworkSQLiteOpenHelper.kt:232)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.innerGetDatabase(FrameworkSQLiteOpenHelper.kt:190)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getSupportDatabase(FrameworkSQLiteOpenHelper.kt:151)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper.getWritableDatabase(FrameworkSQLiteOpenHelper.kt:104)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$database$2.invoke(AndroidSqliteDriver.kt:41)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$database$2.invoke(AndroidSqliteDriver.kt:40)
at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.getDatabase(AndroidSqliteDriver.kt:40)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.access$getDatabase(AndroidSqliteDriver.kt:29)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute-zeHU3Mk(AndroidSqliteDriver.kt:163)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute(AndroidSqliteDriver.kt:184)
at com.wire.kalium.persistence.DatabasePropertiesQueries.insertSelfUserId(DatabasePropertiesQueries.kt:12)
at com.wire.kalium.persistence.db.UserDatabaseBuilder.<init>(UserDatabaseBuilder.kt:165)
at com.wire.kalium.persistence.db.UserDatabaseBuilder.<init>(UserDatabaseBuilder.kt:117)
at com.wire.kalium.persistence.db.UserDatabaseKt.userDatabaseBuilder-YmARkpc(UserDatabase.kt:75)
at com.wire.kalium.persistence.BaseDatabaseTest.createDatabase-fl0Tdyo(BaseDatabaseTest.kt:53)
at com.wire.kalium.persistence.backup.DatabaseImporterTest.setUp(DatabaseImporterTest.kt:64)

Check warning on line 0 in com.wire.kalium.persistence.backup.DatabaseImporterTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

givenBackupHasMessageWithAssetContent_whenRestoringBackup_thenThoseMessagesHaveTheirUploadAndDownloadStatusReset (com.wire.kalium.persistence.backup.DatabaseImporterTest) failed

persistence/build/outputs/androidTest-results/connected/debug/TEST-emulator-5554 - 11-_persistence-.xml [took 0s]
Raw output
android.database.sqlite.SQLiteException: no such table: local_db.MessageConversationLocationContent (code 1 SQLITE_ERROR): , while compiling: WITH selfdelete_message_id AS (
SELECT local_db.Message.id, local_db.Message.conversation_id
FROM local_db.Message
WHERE local_db.Message.expire_after_millis IS NOT NULL
)
INSERT INTO MessageConversationLocationContent
SELECT local_db.MessageConversationLocationContent.message_id,
local_db.MessageConversationLocationContent.conversation_id,
local_db.MessageConversationLocationContent.latitude,
local_db.MessageConversationLocationContent.longitude,
local_db.MessageConversationLocationContent.name,
local_db.MessageConversationLocationContent.zoom
FROM local_db.MessageConversationLocationContent
LEFT JOIN selfdelete_message_id
ON local_db.MessageConversationLocationContent.message_id = selfdelete_message_id.id
AND local_db.MessageConversationLocationContent.conversation_id = selfdelete_message_id.conversation_id
WHERE selfdelete_message_id.id IS NULL
OR selfdelete_message_id.conversation_id IS NULL
at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:1045)
at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:652)
at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:590)
at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:61)
at android.database.sqlite.SQLiteStatement.<init>(SQLiteStatement.java:33)
at android.database.sqlite.SQLiteDatabase.compileStatement(SQLiteDatabase.java:1223)
at androidx.sqlite.db.framework.FrameworkSQLiteDatabase.compileStatement(FrameworkSQLiteDatabase.kt:51)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute-zeHU3Mk(AndroidSqliteDriver.kt:163)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.db.SqlDriver$DefaultImpls.execute$default(SqlDriver.kt:63)
at com.wire.kalium.persistence.persistence.UserDatabaseImpl$Schema.create-0iQ1-z0(UserDatabaseImpl.kt:1245)
at com.wire.kalium.persistence.persistence.UserDatabaseImpl$Schema.create(UserDatabaseImpl.kt:236)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$Callback.onCreate(AndroidSqliteDriver.kt:207)
at com.wire.kalium.persistence.db.support.SqliteCallback.onCreate(SqliteCallback.kt:32)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.onCreate(FrameworkSQLiteOpenHelper.kt:244)
at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:411)
at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:316)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getWritableOrReadableDatabase(FrameworkSQLiteOpenHelper.kt:232)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.innerGetDatabase(FrameworkSQLiteOpenHelper.kt:190)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getSupportDatabase(FrameworkSQLiteOpenHelper.kt:151)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper.getWritableDatabase(FrameworkSQLiteOpenHelper.kt:104)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$database$2.invoke(AndroidSqliteDriver.kt:41)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$database$2.invoke(AndroidSqliteDriver.kt:40)
at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.getDatabase(AndroidSqliteDriver.kt:40)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.access$getDatabase(AndroidSqliteDriver.kt:29)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute-zeHU3Mk(AndroidSqliteDriver.kt:163)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute(AndroidSqliteDriver.kt:184)
at com.wire.kalium.persistence.DatabasePropertiesQueries.insertSelfUserId(DatabasePropertiesQueries.kt:12)
at com.wire.kalium.persistence.db.UserDatabaseBuilder.<init>(UserDatabaseBuilder.kt:165)
at com.wire.kalium.persistence.db.UserDatabaseBuilder.<init>(UserDatabaseBuilder.kt:117)
at com.wire.kalium.persistence.db.UserDatabaseKt.userDatabaseBuilder-YmARkpc(UserDatabase.kt:75)
at com.wire.kalium.persistence.BaseDatabaseTest.createDatabase-fl0Tdyo(BaseDatabaseTest.kt:53)
at com.wire.kalium.persistence.backup.DatabaseImporterTest.setUp(DatabaseImporterTest.kt:64)

Check warning on line 0 in com.wire.kalium.persistence.backup.DatabaseImporterTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

givenBackupHasUniqueConversationWithCallsAndUser_whenRestoringBackup_thenBothCallsArePresents (com.wire.kalium.persistence.backup.DatabaseImporterTest) failed

persistence/build/outputs/androidTest-results/connected/debug/TEST-emulator-5554 - 11-_persistence-.xml [took 0s]
Raw output
android.database.sqlite.SQLiteException: no such table: local_db.MessageConversationLocationContent (code 1 SQLITE_ERROR): , while compiling: WITH selfdelete_message_id AS (
SELECT local_db.Message.id, local_db.Message.conversation_id
FROM local_db.Message
WHERE local_db.Message.expire_after_millis IS NOT NULL
)
INSERT INTO MessageConversationLocationContent
SELECT local_db.MessageConversationLocationContent.message_id,
local_db.MessageConversationLocationContent.conversation_id,
local_db.MessageConversationLocationContent.latitude,
local_db.MessageConversationLocationContent.longitude,
local_db.MessageConversationLocationContent.name,
local_db.MessageConversationLocationContent.zoom
FROM local_db.MessageConversationLocationContent
LEFT JOIN selfdelete_message_id
ON local_db.MessageConversationLocationContent.message_id = selfdelete_message_id.id
AND local_db.MessageConversationLocationContent.conversation_id = selfdelete_message_id.conversation_id
WHERE selfdelete_message_id.id IS NULL
OR selfdelete_message_id.conversation_id IS NULL
at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:1045)
at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:652)
at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:590)
at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:61)
at android.database.sqlite.SQLiteStatement.<init>(SQLiteStatement.java:33)
at android.database.sqlite.SQLiteDatabase.compileStatement(SQLiteDatabase.java:1223)
at androidx.sqlite.db.framework.FrameworkSQLiteDatabase.compileStatement(FrameworkSQLiteDatabase.kt:51)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute-zeHU3Mk(AndroidSqliteDriver.kt:163)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.db.SqlDriver$DefaultImpls.execute$default(SqlDriver.kt:63)
at com.wire.kalium.persistence.persistence.UserDatabaseImpl$Schema.create-0iQ1-z0(UserDatabaseImpl.kt:1245)
at com.wire.kalium.persistence.persistence.UserDatabaseImpl$Schema.create(UserDatabaseImpl.kt:236)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$Callback.onCreate(AndroidSqliteDriver.kt:207)
at com.wire.kalium.persistence.db.support.SqliteCallback.onCreate(SqliteCallback.kt:32)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.onCreate(FrameworkSQLiteOpenHelper.kt:244)
at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:411)
at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:316)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getWritableOrReadableDatabase(FrameworkSQLiteOpenHelper.kt:232)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.innerGetDatabase(FrameworkSQLiteOpenHelper.kt:190)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getSupportDatabase(FrameworkSQLiteOpenHelper.kt:151)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper.getWritableDatabase(FrameworkSQLiteOpenHelper.kt:104)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$database$2.invoke(AndroidSqliteDriver.kt:41)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$database$2.invoke(AndroidSqliteDriver.kt:40)
at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.getDatabase(AndroidSqliteDriver.kt:40)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.access$getDatabase(AndroidSqliteDriver.kt:29)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute-zeHU3Mk(AndroidSqliteDriver.kt:163)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute(AndroidSqliteDriver.kt:184)
at com.wire.kalium.persistence.DatabasePropertiesQueries.insertSelfUserId(DatabasePropertiesQueries.kt:12)
at com.wire.kalium.persistence.db.UserDatabaseBuilder.<init>(UserDatabaseBuilder.kt:165)
at com.wire.kalium.persistence.db.UserDatabaseBuilder.<init>(UserDatabaseBuilder.kt:117)
at com.wire.kalium.persistence.db.UserDatabaseKt.userDatabaseBuilder-YmARkpc(UserDatabase.kt:75)
at com.wire.kalium.persistence.BaseDatabaseTest.createDatabase-fl0Tdyo(BaseDatabaseTest.kt:53)
at com.wire.kalium.persistence.backup.DatabaseImporterTest.setUp(DatabaseImporterTest.kt:64)

Check warning on line 0 in com.wire.kalium.persistence.backup.DatabaseImporterTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

givenBackupHasUniqueConversationAndUserHasUniqueConversations_whenRestoringBackup_TheBackupConversationAreInsertedInUserDatabase (com.wire.kalium.persistence.backup.DatabaseImporterTest) failed

persistence/build/outputs/androidTest-results/connected/debug/TEST-emulator-5554 - 11-_persistence-.xml [took 0s]
Raw output
android.database.sqlite.SQLiteException: no such table: local_db.MessageConversationLocationContent (code 1 SQLITE_ERROR): , while compiling: WITH selfdelete_message_id AS (
SELECT local_db.Message.id, local_db.Message.conversation_id
FROM local_db.Message
WHERE local_db.Message.expire_after_millis IS NOT NULL
)
INSERT INTO MessageConversationLocationContent
SELECT local_db.MessageConversationLocationContent.message_id,
local_db.MessageConversationLocationContent.conversation_id,
local_db.MessageConversationLocationContent.latitude,
local_db.MessageConversationLocationContent.longitude,
local_db.MessageConversationLocationContent.name,
local_db.MessageConversationLocationContent.zoom
FROM local_db.MessageConversationLocationContent
LEFT JOIN selfdelete_message_id
ON local_db.MessageConversationLocationContent.message_id = selfdelete_message_id.id
AND local_db.MessageConversationLocationContent.conversation_id = selfdelete_message_id.conversation_id
WHERE selfdelete_message_id.id IS NULL
OR selfdelete_message_id.conversation_id IS NULL
at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:1045)
at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:652)
at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:590)
at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:61)
at android.database.sqlite.SQLiteStatement.<init>(SQLiteStatement.java:33)
at android.database.sqlite.SQLiteDatabase.compileStatement(SQLiteDatabase.java:1223)
at androidx.sqlite.db.framework.FrameworkSQLiteDatabase.compileStatement(FrameworkSQLiteDatabase.kt:51)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute-zeHU3Mk(AndroidSqliteDriver.kt:163)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.db.SqlDriver$DefaultImpls.execute$default(SqlDriver.kt:63)
at com.wire.kalium.persistence.persistence.UserDatabaseImpl$Schema.create-0iQ1-z0(UserDatabaseImpl.kt:1245)
at com.wire.kalium.persistence.persistence.UserDatabaseImpl$Schema.create(UserDatabaseImpl.kt:236)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$Callback.onCreate(AndroidSqliteDriver.kt:207)
at com.wire.kalium.persistence.db.support.SqliteCallback.onCreate(SqliteCallback.kt:32)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.onCreate(FrameworkSQLiteOpenHelper.kt:244)
at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:411)
at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:316)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getWritableOrReadableDatabase(FrameworkSQLiteOpenHelper.kt:232)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.innerGetDatabase(FrameworkSQLiteOpenHelper.kt:190)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getSupportDatabase(FrameworkSQLiteOpenHelper.kt:151)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper.getWritableDatabase(FrameworkSQLiteOpenHelper.kt:104)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$database$2.invoke(AndroidSqliteDriver.kt:41)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$database$2.invoke(AndroidSqliteDriver.kt:40)
at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.getDatabase(AndroidSqliteDriver.kt:40)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.access$getDatabase(AndroidSqliteDriver.kt:29)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute-zeHU3Mk(AndroidSqliteDriver.kt:163)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute(AndroidSqliteDriver.kt:184)
at com.wire.kalium.persistence.DatabasePropertiesQueries.insertSelfUserId(DatabasePropertiesQueries.kt:12)
at com.wire.kalium.persistence.db.UserDatabaseBuilder.<init>(UserDatabaseBuilder.kt:165)
at com.wire.kalium.persistence.db.UserDatabaseBuilder.<init>(UserDatabaseBuilder.kt:117)
at com.wire.kalium.persistence.db.UserDatabaseKt.userDatabaseBuilder-YmARkpc(UserDatabase.kt:75)
at com.wire.kalium.persistence.BaseDatabaseTest.createDatabase-fl0Tdyo(BaseDatabaseTest.kt:53)
at com.wire.kalium.persistence.backup.DatabaseImporterTest.setUp(DatabaseImporterTest.kt:64)

Check warning on line 0 in com.wire.kalium.persistence.backup.DatabaseImporterTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

givenBackupHasAssets_whenRestoringBackup_thenThoseAssetsAreNotRestored (com.wire.kalium.persistence.backup.DatabaseImporterTest) failed

persistence/build/outputs/androidTest-results/connected/debug/TEST-emulator-5554 - 11-_persistence-.xml [took 0s]
Raw output
android.database.sqlite.SQLiteException: no such table: local_db.MessageConversationLocationContent (code 1 SQLITE_ERROR): , while compiling: WITH selfdelete_message_id AS (
SELECT local_db.Message.id, local_db.Message.conversation_id
FROM local_db.Message
WHERE local_db.Message.expire_after_millis IS NOT NULL
)
INSERT INTO MessageConversationLocationContent
SELECT local_db.MessageConversationLocationContent.message_id,
local_db.MessageConversationLocationContent.conversation_id,
local_db.MessageConversationLocationContent.latitude,
local_db.MessageConversationLocationContent.longitude,
local_db.MessageConversationLocationContent.name,
local_db.MessageConversationLocationContent.zoom
FROM local_db.MessageConversationLocationContent
LEFT JOIN selfdelete_message_id
ON local_db.MessageConversationLocationContent.message_id = selfdelete_message_id.id
AND local_db.MessageConversationLocationContent.conversation_id = selfdelete_message_id.conversation_id
WHERE selfdelete_message_id.id IS NULL
OR selfdelete_message_id.conversation_id IS NULL
at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:1045)
at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:652)
at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:590)
at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:61)
at android.database.sqlite.SQLiteStatement.<init>(SQLiteStatement.java:33)
at android.database.sqlite.SQLiteDatabase.compileStatement(SQLiteDatabase.java:1223)
at androidx.sqlite.db.framework.FrameworkSQLiteDatabase.compileStatement(FrameworkSQLiteDatabase.kt:51)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute-zeHU3Mk(AndroidSqliteDriver.kt:163)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.db.SqlDriver$DefaultImpls.execute$default(SqlDriver.kt:63)
at com.wire.kalium.persistence.persistence.UserDatabaseImpl$Schema.create-0iQ1-z0(UserDatabaseImpl.kt:1245)
at com.wire.kalium.persistence.persistence.UserDatabaseImpl$Schema.create(UserDatabaseImpl.kt:236)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$Callback.onCreate(AndroidSqliteDriver.kt:207)
at com.wire.kalium.persistence.db.support.SqliteCallback.onCreate(SqliteCallback.kt:32)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.onCreate(FrameworkSQLiteOpenHelper.kt:244)
at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:411)
at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:316)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getWritableOrReadableDatabase(FrameworkSQLiteOpenHelper.kt:232)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.innerGetDatabase(FrameworkSQLiteOpenHelper.kt:190)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getSupportDatabase(FrameworkSQLiteOpenHelper.kt:151)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper.getWritableDatabase(FrameworkSQLiteOpenHelper.kt:104)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$database$2.invoke(AndroidSqliteDriver.kt:41)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$database$2.invoke(AndroidSqliteDriver.kt:40)
at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.getDatabase(AndroidSqliteDriver.kt:40)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.access$getDatabase(AndroidSqliteDriver.kt:29)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute-zeHU3Mk(AndroidSqliteDriver.kt:163)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute(AndroidSqliteDriver.kt:184)
at com.wire.kalium.persistence.DatabasePropertiesQueries.insertSelfUserId(DatabasePropertiesQueries.kt:12)
at com.wire.kalium.persistence.db.UserDatabaseBuilder.<init>(UserDatabaseBuilder.kt:165)
at com.wire.kalium.persistence.db.UserDatabaseBuilder.<init>(UserDatabaseBuilder.kt:117)
at com.wire.kalium.persistence.db.UserDatabaseKt.userDatabaseBuilder-YmARkpc(UserDatabase.kt:75)
at com.wire.kalium.persistence.BaseDatabaseTest.createDatabase-fl0Tdyo(BaseDatabaseTest.kt:53)
at com.wire.kalium.persistence.backup.DatabaseImporterTest.setUp(DatabaseImporterTest.kt:64)

Check warning on line 0 in com.wire.kalium.persistence.backup.DatabaseImporterTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

givenBackupHasNoConversationButUserDoes_whenRestoringBackup_thenThoseConversationAreRestored (com.wire.kalium.persistence.backup.DatabaseImporterTest) failed

persistence/build/outputs/androidTest-results/connected/debug/TEST-emulator-5554 - 11-_persistence-.xml [took 0s]
Raw output
android.database.sqlite.SQLiteException: no such table: local_db.MessageConversationLocationContent (code 1 SQLITE_ERROR): , while compiling: WITH selfdelete_message_id AS (
SELECT local_db.Message.id, local_db.Message.conversation_id
FROM local_db.Message
WHERE local_db.Message.expire_after_millis IS NOT NULL
)
INSERT INTO MessageConversationLocationContent
SELECT local_db.MessageConversationLocationContent.message_id,
local_db.MessageConversationLocationContent.conversation_id,
local_db.MessageConversationLocationContent.latitude,
local_db.MessageConversationLocationContent.longitude,
local_db.MessageConversationLocationContent.name,
local_db.MessageConversationLocationContent.zoom
FROM local_db.MessageConversationLocationContent
LEFT JOIN selfdelete_message_id
ON local_db.MessageConversationLocationContent.message_id = selfdelete_message_id.id
AND local_db.MessageConversationLocationContent.conversation_id = selfdelete_message_id.conversation_id
WHERE selfdelete_message_id.id IS NULL
OR selfdelete_message_id.conversation_id IS NULL
at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:1045)
at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:652)
at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:590)
at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:61)
at android.database.sqlite.SQLiteStatement.<init>(SQLiteStatement.java:33)
at android.database.sqlite.SQLiteDatabase.compileStatement(SQLiteDatabase.java:1223)
at androidx.sqlite.db.framework.FrameworkSQLiteDatabase.compileStatement(FrameworkSQLiteDatabase.kt:51)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute-zeHU3Mk(AndroidSqliteDriver.kt:163)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.db.SqlDriver$DefaultImpls.execute$default(SqlDriver.kt:63)
at com.wire.kalium.persistence.persistence.UserDatabaseImpl$Schema.create-0iQ1-z0(UserDatabaseImpl.kt:1245)
at com.wire.kalium.persistence.persistence.UserDatabaseImpl$Schema.create(UserDatabaseImpl.kt:236)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$Callback.onCreate(AndroidSqliteDriver.kt:207)
at com.wire.kalium.persistence.db.support.SqliteCallback.onCreate(SqliteCallback.kt:32)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.onCreate(FrameworkSQLiteOpenHelper.kt:244)
at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:411)
at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:316)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getWritableOrReadableDatabase(FrameworkSQLiteOpenHelper.kt:232)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.innerGetDatabase(FrameworkSQLiteOpenHelper.kt:190)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getSupportDatabase(FrameworkSQLiteOpenHelper.kt:151)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper.getWritableDatabase(FrameworkSQLiteOpenHelper.kt:104)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$database$2.invoke(AndroidSqliteDriver.kt:41)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$database$2.invoke(AndroidSqliteDriver.kt:40)
at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.getDatabase(AndroidSqliteDriver.kt:40)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.access$getDatabase(AndroidSqliteDriver.kt:29)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute-zeHU3Mk(AndroidSqliteDriver.kt:163)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute(AndroidSqliteDriver.kt:184)
at com.wire.kalium.persistence.DatabasePropertiesQueries.insertSelfUserId(DatabasePropertiesQueries.kt:12)
at com.wire.kalium.persistence.db.UserDatabaseBuilder.<init>(UserDatabaseBuilder.kt:165)
at com.wire.kalium.persistence.db.UserDatabaseBuilder.<init>(UserDatabaseBuilder.kt:117)
at com.wire.kalium.persistence.db.UserDatabaseKt.userDatabaseBuilder-YmARkpc(UserDatabase.kt:75)
at com.wire.kalium.persistence.BaseDatabaseTest.createDatabase-fl0Tdyo(BaseDatabaseTest.kt:53)
at com.wire.kalium.persistence.backup.DatabaseImporterTest.setUp(DatabaseImporterTest.kt:64)

Check warning on line 0 in com.wire.kalium.persistence.backup.DatabaseImporterTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

givenBackupHasGroupConversationWithMembersAndUserNone_whenRestoringBackup_thenThoseConversationAreRestoredButMembersNot (com.wire.kalium.persistence.backup.DatabaseImporterTest) failed

persistence/build/outputs/androidTest-results/connected/debug/TEST-emulator-5554 - 11-_persistence-.xml [took 0s]
Raw output
android.database.sqlite.SQLiteException: no such table: local_db.MessageConversationLocationContent (code 1 SQLITE_ERROR): , while compiling: WITH selfdelete_message_id AS (
SELECT local_db.Message.id, local_db.Message.conversation_id
FROM local_db.Message
WHERE local_db.Message.expire_after_millis IS NOT NULL
)
INSERT INTO MessageConversationLocationContent
SELECT local_db.MessageConversationLocationContent.message_id,
local_db.MessageConversationLocationContent.conversation_id,
local_db.MessageConversationLocationContent.latitude,
local_db.MessageConversationLocationContent.longitude,
local_db.MessageConversationLocationContent.name,
local_db.MessageConversationLocationContent.zoom
FROM local_db.MessageConversationLocationContent
LEFT JOIN selfdelete_message_id
ON local_db.MessageConversationLocationContent.message_id = selfdelete_message_id.id
AND local_db.MessageConversationLocationContent.conversation_id = selfdelete_message_id.conversation_id
WHERE selfdelete_message_id.id IS NULL
OR selfdelete_message_id.conversation_id IS NULL
at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:1045)
at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:652)
at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:590)
at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:61)
at android.database.sqlite.SQLiteStatement.<init>(SQLiteStatement.java:33)
at android.database.sqlite.SQLiteDatabase.compileStatement(SQLiteDatabase.java:1223)
at androidx.sqlite.db.framework.FrameworkSQLiteDatabase.compileStatement(FrameworkSQLiteDatabase.kt:51)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute-zeHU3Mk(AndroidSqliteDriver.kt:163)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.db.SqlDriver$DefaultImpls.execute$default(SqlDriver.kt:63)
at com.wire.kalium.persistence.persistence.UserDatabaseImpl$Schema.create-0iQ1-z0(UserDatabaseImpl.kt:1245)
at com.wire.kalium.persistence.persistence.UserDatabaseImpl$Schema.create(UserDatabaseImpl.kt:236)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$Callback.onCreate(AndroidSqliteDriver.kt:207)
at com.wire.kalium.persistence.db.support.SqliteCallback.onCreate(SqliteCallback.kt:32)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.onCreate(FrameworkSQLiteOpenHelper.kt:244)
at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:411)
at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:316)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getWritableOrReadableDatabase(FrameworkSQLiteOpenHelper.kt:232)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.innerGetDatabase(FrameworkSQLiteOpenHelper.kt:190)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getSupportDatabase(FrameworkSQLiteOpenHelper.kt:151)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper.getWritableDatabase(FrameworkSQLiteOpenHelper.kt:104)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$database$2.invoke(AndroidSqliteDriver.kt:41)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$database$2.invoke(AndroidSqliteDriver.kt:40)
at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.getDatabase(AndroidSqliteDriver.kt:40)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.access$getDatabase(AndroidSqliteDriver.kt:29)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute-zeHU3Mk(AndroidSqliteDriver.kt:163)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute(AndroidSqliteDriver.kt:184)
at com.wire.kalium.persistence.DatabasePropertiesQueries.insertSelfUserId(DatabasePropertiesQueries.kt:12)
at com.wire.kalium.persistence.db.UserDatabaseBuilder.<init>(UserDatabaseBuilder.kt:165)
at com.wire.kalium.persistence.db.UserDatabaseBuilder.<init>(UserDatabaseBuilder.kt:117)
at com.wire.kalium.persistence.db.UserDatabaseKt.userDatabaseBuilder-YmARkpc(UserDatabase.kt:75)
at com.wire.kalium.persistence.BaseDatabaseTest.createDatabase-fl0Tdyo(BaseDatabaseTest.kt:53)
at com.wire.kalium.persistence.backup.DatabaseImporterTest.setUp(DatabaseImporterTest.kt:64)

Check warning on line 0 in com.wire.kalium.persistence.backup.NukeDBTest

See this annotation in the file changed.

@github-actions github-actions / Test Results

givenDBNotFound_whenNuke_thenReturnTrue (com.wire.kalium.persistence.backup.NukeDBTest) failed

persistence/build/outputs/androidTest-results/connected/debug/TEST-emulator-5554 - 11-_persistence-.xml [took 0s]
Raw output
android.database.sqlite.SQLiteException: no such table: local_db.MessageConversationLocationContent (code 1 SQLITE_ERROR): , while compiling: WITH selfdelete_message_id AS (
SELECT local_db.Message.id, local_db.Message.conversation_id
FROM local_db.Message
WHERE local_db.Message.expire_after_millis IS NOT NULL
)
INSERT INTO MessageConversationLocationContent
SELECT local_db.MessageConversationLocationContent.message_id,
local_db.MessageConversationLocationContent.conversation_id,
local_db.MessageConversationLocationContent.latitude,
local_db.MessageConversationLocationContent.longitude,
local_db.MessageConversationLocationContent.name,
local_db.MessageConversationLocationContent.zoom
FROM local_db.MessageConversationLocationContent
LEFT JOIN selfdelete_message_id
ON local_db.MessageConversationLocationContent.message_id = selfdelete_message_id.id
AND local_db.MessageConversationLocationContent.conversation_id = selfdelete_message_id.conversation_id
WHERE selfdelete_message_id.id IS NULL
OR selfdelete_message_id.conversation_id IS NULL
at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:1045)
at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:652)
at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:590)
at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:61)
at android.database.sqlite.SQLiteStatement.<init>(SQLiteStatement.java:33)
at android.database.sqlite.SQLiteDatabase.compileStatement(SQLiteDatabase.java:1223)
at androidx.sqlite.db.framework.FrameworkSQLiteDatabase.compileStatement(FrameworkSQLiteDatabase.kt:51)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute-zeHU3Mk(AndroidSqliteDriver.kt:163)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.db.SqlDriver$DefaultImpls.execute$default(SqlDriver.kt:63)
at com.wire.kalium.persistence.persistence.UserDatabaseImpl$Schema.create-0iQ1-z0(UserDatabaseImpl.kt:1245)
at com.wire.kalium.persistence.persistence.UserDatabaseImpl$Schema.create(UserDatabaseImpl.kt:236)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$Callback.onCreate(AndroidSqliteDriver.kt:207)
at com.wire.kalium.persistence.db.support.SqliteCallback.onCreate(SqliteCallback.kt:32)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.onCreate(FrameworkSQLiteOpenHelper.kt:244)
at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:411)
at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:316)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getWritableOrReadableDatabase(FrameworkSQLiteOpenHelper.kt:232)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.innerGetDatabase(FrameworkSQLiteOpenHelper.kt:190)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper$OpenHelper.getSupportDatabase(FrameworkSQLiteOpenHelper.kt:151)
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper.getWritableDatabase(FrameworkSQLiteOpenHelper.kt:104)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$database$2.invoke(AndroidSqliteDriver.kt:41)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$database$2.invoke(AndroidSqliteDriver.kt:40)
at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.getDatabase(AndroidSqliteDriver.kt:40)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.access$getDatabase(AndroidSqliteDriver.kt:29)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver$execute$1.invoke(AndroidSqliteDriver.kt:184)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute-zeHU3Mk(AndroidSqliteDriver.kt:163)
at app.cash.sqldelight.driver.android.AndroidSqliteDriver.execute(AndroidSqliteDriver.kt:184)
at com.wire.kalium.persistence.DatabasePropertiesQueries.insertSelfUserId(DatabasePropertiesQueries.kt:12)
at com.wire.kalium.persistence.db.UserDatabaseBuilder.<init>(UserDatabaseBuilder.kt:165)
at com.wire.kalium.persistence.db.UserDatabaseBuilder.<init>(UserDatabaseBuilder.kt:117)
at com.wire.kalium.persistence.db.UserDatabaseKt.userDatabaseBuilder-YmARkpc(UserDatabase.kt:75)
at com.wire.kalium.persistence.BaseDatabaseTest.createDatabase-fl0Tdyo(BaseDatabaseTest.kt:53)
at com.wire.kalium.persistence.backup.NukeDBTest.setUp(NukeDBTest.kt:42)