Skip to content

refactor(cli): organize doctor checks and use fix flag - #3178

Merged
liukewia merged 1 commit into
TencentCloud:developfrom
liukewia:refactor/doctor-cli
Nov 27, 2026
Merged

liukewia merged 1 commit into
TencentCloud:developfrom
liukewia:refactor/doctor-cli

Conversation

@liukewia

Copy link
Copy Markdown
Collaborator

Summary

  • Organize offline doctor checks under a dedicated doctor command package so future checks can be added independently.
  • Expose SQLite repair as octop doctor db --fix and keep database inspection and repair behavior aligned.
  • Update localized guidance, changelog entries, and CLI tests for the new command structure.

Target branch

  • Base is develop (feature / fix — default)
  • Base is main (release/* or hotfix/* only)

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation
  • Refactor / chore
  • Release / hotfix

Test plan

  • make all passes locally: 6436 passed, 47 skipped.

  • uv run pytest tests/unit/db/test_sqlite_doctor.py tests/unit/i18n/test_stream.py -q: 35 passed.

  • Local smoke test passed for octop doctor db and octop doctor db --fix with a temporary OCTOP_HOME.

  • make all passes locally

  • Added/updated tests

Checklist

  • Updated CHANGELOG.md (if user-facing)
  • README / docs updated (if needed)

- Added `octop doctor db` and `octop doctor db --fix` commands for offline integrity checks and repairs of SQLite databases in `OCTOP_HOME`.
- Updated relevant documentation and command references to reflect the new command structure.
- Modified existing tests to align with the new command names and functionalities.
@liukewia
liukewia merged commit c1bcde3 into TencentCloud:develop Nov 27, 2026
9 checks passed
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