Skip to content

Add error pixels for if sqlcipher async loading fails or times out#7694

Merged
CDRussell merged 1 commit intodevelopfrom
feature/craig/autofill_async_sqlcipher_error_pixels
Feb 13, 2026
Merged

Add error pixels for if sqlcipher async loading fails or times out#7694
CDRussell merged 1 commit intodevelopfrom
feature/craig/autofill_async_sqlcipher_error_pixels

Conversation

@CDRussell
Copy link
Member

@CDRussell CDRussell commented Feb 6, 2026

Task/Issue URL: https://app.asana.com/1/137249556945/task/1213116557045964

Description

Adds error pixels if there's a problem with the new async sqlcipher native library loading.

Logcat filter: message~:"SqlCipher-Init: |Autofill-DB-Init: |library_load_"
Patches for testing the various error cases: Testing patches

Steps to test this PR

#### Timeouts

  • Apply the timeout patch and launch the app
  • Wait 10s for timeout, then verify Pixel sent: library_load_timeout_sqlcipher in logs

#### Timeouts

  • Remove previous patch, and apply the error patch and launch the app
  • Wait 10s for timeout, then verify Pixel sent: library_load_failure_sqlcipher in logs

Note

Low Risk
Adds telemetry-only behavior gated to async loading; no changes to the actual library loading flow beyond emitting pixels and updating tests.

Overview
Adds two new daily error pixels (library_load_timeout_sqlcipher, library_load_failure_sqlcipher) to track sqlcipher native library async loading issues, including wiring them into AutofillPixelNames and data-cleaning rules.

Updates SqlCipherLibraryLoader.waitForLibraryLoad to fire the appropriate pixel on timeout or exception only when async loading is enabled, and extends unit tests to verify pixels fire (or not) across timeout, failure, success, and sync-loading scenarios.

Written by Cursor Bugbot for commit 60314cd. Configure here.

Copy link
Member Author

CDRussell commented Feb 6, 2026

@CDRussell CDRussell force-pushed the feature/craig/autofill_async_sqlcipher_error_pixels branch from 67f4bfb to 81175f2 Compare February 6, 2026 15:17
AUTOFILL_HARMONY_PREFERENCES_GET_KEY_FAILED("autofill_harmony_preferences_get_key_failed"),
AUTOFILL_PREFERENCES_UPDATE_KEY_FAILED("autofill_preferences_update_key_failed"),
AUTOFILL_HARMONY_PREFERENCES_UPDATE_KEY_FAILED("autofill_harmony_preferences_update_key_failed"),
LIBRARY_LOAD_TIMEOUT_SQLCIPHER("library_load_timeout_sqlcipher"),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in autofill for now but will likely move the sqlcipher library elsewhere for general use after it's been out for a bit

@CDRussell CDRussell force-pushed the feature/craig/autofill_async_sqlcipher_error_pixels branch from 81175f2 to 60314cd Compare February 6, 2026 15:30
@CDRussell CDRussell marked this pull request as ready for review February 6, 2026 15:31
@github-actions
Copy link
Contributor

github-actions bot commented Feb 6, 2026

Privacy Review task: https://app.asana.com/0/69071770703008/1213151886912519

Copy link
Member Author

CDRussell commented Feb 13, 2026

Merge activity

  • Feb 13, 12:31 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Feb 13, 12:49 PM UTC: Graphite rebased this pull request as part of a merge.
  • Feb 13, 1:06 PM UTC: @CDRussell merged this pull request with Graphite.

@CDRussell CDRussell changed the base branch from feature/craig/autofill-use-async-sqlcipher-loader to graphite-base/7694 February 13, 2026 12:33
@CDRussell CDRussell changed the base branch from graphite-base/7694 to develop February 13, 2026 12:48
@CDRussell CDRussell force-pushed the feature/craig/autofill_async_sqlcipher_error_pixels branch from 60314cd to 964c2af Compare February 13, 2026 12:48
@CDRussell CDRussell merged commit 0375290 into develop Feb 13, 2026
8 checks passed
@CDRussell CDRussell deleted the feature/craig/autofill_async_sqlcipher_error_pixels branch February 13, 2026 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants