Skip to content

Conversation

@jamesonwilliams
Copy link
Contributor

@jamesonwilliams jamesonwilliams commented Dec 11, 2024

Contributor checklist

  • Pixel 8 API 34 emulator
  • My contribution is fully baked and ready to be merged as is
  • I ensure that all the open issues my contribution fixes are mentioned in the commit message of my first commit using the Fixes #1234 syntax

Description

Currently when I run the connect device suite, e.g., ./gradlew clean :Signal-Android:connectedAndroidTest, V2ConversationItemShapeTest will fail with errors like this:

org.thoughtcrime.securesms.conversation.v2.items.V2ConversationItemShapeTest > givenNextAndPreviousMessageDoNotExist_whenISetMessageShape_thenIExpectSingle[Pixel_8_API_34(AVD) - 14]
        io.mockk.MockKException: Can't instantiate proxy for class com.bumptech.glide.RequestManager
        at io.mockk.impl.instantiation.JvmMockFactory.newProxy(JvmMockFactory.kt:64)

Instead of using MockK in the Instrumentation tests, we should probably be using some real objects (or our own fakes). A simple solution, sufficient to get the test passing again, is to replace the mocks with real components.

Testing

After changes:

./gradlew clean :Signal-Android:connectedAndroidTest

[...snip...]
Finished 298 tests on Pixel_8_API_34(AVD) - 14

BUILD SUCCESSFUL in 28m
463 actionable tasks: 433 executed, 30 up-to-date
./gradlew qa

[...snip...]

BUILD SUCCESSFUL in 4m 19s
1020 actionable tasks: 180 executed, 840 up-to-date

greyson-signal pushed a commit that referenced this pull request Dec 12, 2024
TheTechZone pushed a commit to Cerenia/Signal-Android that referenced this pull request Jan 6, 2025
AbandonedCart pushed a commit to SamSprung/Signal-Android that referenced this pull request Jan 31, 2025
Fix issue with using registration recovery password.

Update translations and other static files.

Bump version to 7.27.1

Fix backup perf issue by doing cleanup inline.

Reuse generated backup file if it's less than one hour old and enable resumable upload.

Use LibSignalChatConnection for Authenticated Socket based on Remote Config

Update to RingRTC v2.49.0

Fix bugs with notification schedules caused by 24xx end times.

Add log section for backups.

Fix backups crash when not signed in to play store.

Fix hot loop when creating a subscription to remote backups.

Allow restoration over cellular

Add additional link+sync logs.

Fix system PIP not closing on call end.

Fix thread merge update archive NPE.

Handle group call creation failure.

Add link+sync error flows.

Add a copy button to the SQLite Playground.

Self-heal payment state transfer if onAdded fails to update as expected.

Add InAppPaymentTableTest to verify functionality of update method.

Display descriptive error using payment data instead of generic error.

Update string translation comments.

Properly escape CSV output in playground.

Fix possible backup validation error.

Update to libsignal 0.64.0

Add improved archive upload progress.

Remove explicit indexed by statement from approximate exportable message count.

Fix post-transfer emoji search.

Improved progress indicator for backup file upload.

Convert more tests to kotlin.

Resolves signalapp#13829

Add thread delete progress logs.

Add notification profile and chat folder backupv2 proto support.

Update the backup playground to be more friendly.

Fix dangling quote authors.

Fix export issue with bad edit messages from during development.

Fix bad one-time-payment receipt creation for cancelled iDEAL.

Update restore banners with progress indicators and redirection.

Close selection bar when nothing is selected.

Limit wallpaper uploading to media tier.

Rotate quick restore QR code and web socket.

Add additional error handling in regv3 flows.

Add learn more urls for regv3 flows.

Update story strings and button.

Remove some badly-formatted e164's.

Convert a batch of tests from mockito -> mockk.

Resolves signalapp#13832

Migrate all remaining mockito tests to mockk.

Resolves signalapp#13835

Fix instrumentation tests.

Resolves signalapp#13836

Rotate link+sync flag.

Inline some paypal remote configs.

Fix duplicate contacts during story selection.

Fix delete options in note to self.

Update translations and other static files.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant