Skip to content

refine(otaproxy): allow otaproxy to run even if sqlite3 DB init failed#919

Merged
Bodong-Yang merged 4 commits intomainfrom
fix/otaproxy_check_db-main
Apr 24, 2026
Merged

refine(otaproxy): allow otaproxy to run even if sqlite3 DB init failed#919
Bodong-Yang merged 4 commits intomainfrom
fix/otaproxy_check_db-main

Conversation

@Bodong-Yang
Copy link
Copy Markdown
Member

@Bodong-Yang Bodong-Yang commented Apr 23, 2026

Description

This PR adds safety guard around sqlite3 DB preload and init paths at CacheIndex starts up. The back storage sqlite3 DB now can be optional if somehow we cannot make the DB work, allows otaproxy to still run normally without a back sqlite3 DB.

Check list

  • test file(s) that cover the change(s) are implemented.
  • local tests are passing.

@Bodong-Yang Bodong-Yang self-assigned this Apr 23, 2026
@Bodong-Yang Bodong-Yang added the refinement Improve the performance, code quality(like improving code structure/readability/error handling/robus label Apr 23, 2026
@Bodong-Yang Bodong-Yang marked this pull request as ready for review April 23, 2026 05:48
@Bodong-Yang Bodong-Yang requested a review from a team as a code owner April 23, 2026 05:48
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 23, 2026

📊 OTA Update Performance Comparison Report

Generated: 2026-04-24T06:04:31.424129

⏱️ Execution Time

Phase Legacy (s) V1 (s)
Total Duration 26.4 28.0
Metadata Processing 2.0 2.0
Delta Calculation 10.0 10.0
Download 2.0 4.0
Apply Update 6.0 6.0
Post Update 0.0 0.0
Finalization 0.0 0.0

Copy link
Copy Markdown
Collaborator

@airkei airkei left a comment

Choose a reason for hiding this comment

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

Thank you, LGTM!

@Bodong-Yang Bodong-Yang enabled auto-merge (squash) April 24, 2026 06:02
@sonarqubecloud
Copy link
Copy Markdown

@Bodong-Yang Bodong-Yang merged commit 7b75d3b into main Apr 24, 2026
11 checks passed
@Bodong-Yang Bodong-Yang deleted the fix/otaproxy_check_db-main branch April 24, 2026 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refinement Improve the performance, code quality(like improving code structure/readability/error handling/robus

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants