Skip to content

feat(integration): add doctor diagnostics#2674

Open
PascalThuet wants to merge 3 commits into
github:mainfrom
PascalThuet:codex/integration-doctor
Open

feat(integration): add doctor diagnostics#2674
PascalThuet wants to merge 3 commits into
github:mainfrom
PascalThuet:codex/integration-doctor

Conversation

@PascalThuet
Copy link
Copy Markdown
Contributor

Summary

  • add specify integration doctor for read-only integration health diagnostics
  • report default/installed integrations, multi-install safety, manifest health, and missing/modified managed files
  • document the command and cover healthy/unhealthy diagnostic cases

Closes #2671

Testing

  • uv run --extra test pytest tests/integrations/test_integration_subcommand.py tests/integrations/test_manifest.py -v
  • uvx ruff check src/specify_cli/integration_doctor.py src/specify_cli/__init__.py tests/integrations/test_integration_subcommand.py
  • git diff --check

AI Disclosure

  • I did not use AI assistance
  • I did use AI assistance

Used OpenAI Codex to inspect the integration state/manifest helpers, implement the diagnostic command, add tests/docs, run validation, and draft this PR.

Copilot AI review requested due to automatic review settings May 22, 2026 07:20
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds a new specify integration doctor subcommand to provide read-only diagnostics of a project’s integration state, with both human-readable and JSON outputs.

Changes:

  • Introduces integration_doctor.py to compute a structured health report (findings, manifest checks, multi-install safety).
  • Adds CLI wiring + formatted console/JSON output for specify integration doctor.
  • Adds integration tests and reference docs for the new command.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.

File Description
tests/integrations/test_integration_subcommand.py Adds integration tests covering integration doctor success and failure modes.
src/specify_cli/integration_doctor.py Implements the diagnostic report generation and manifest/state validation logic.
src/specify_cli/init.py Adds the integration doctor Typer command and report printing/JSON emission.
docs/reference/integrations.md Documents usage and expected outputs for integration doctor.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread tests/integrations/test_integration_subcommand.py Outdated
Comment thread src/specify_cli/integration_doctor.py Outdated
Comment thread src/specify_cli/integration_doctor.py
Comment thread src/specify_cli/integration_doctor.py
Comment thread src/specify_cli/integration_doctor.py
@PascalThuet PascalThuet marked this pull request as ready for review May 22, 2026 08:14
@PascalThuet PascalThuet requested a review from mnriem as a code owner May 22, 2026 08:14
Copilot AI review requested due to automatic review settings May 22, 2026 08:14
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

Comment thread src/specify_cli/integration_doctor.py
Comment thread src/specify_cli/integration_doctor.py
Comment thread src/specify_cli/integration_doctor.py Outdated
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.

[Feature]: Add specify integration doctor diagnostic command

2 participants