feat(doctor): add health check command for environment diagnostics#11
Merged
feat(doctor): add health check command for environment diagnostics#11
Conversation
Remove the oca-specific block and treat it like any other GitHub org, using the config key verbatim in the URL and clone path. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- RepoConfig: add extra="allow" so arbitrary org keys in [repos] are preserved; validate via model_validator - Repo entries can be a plain string (uses all configured versions) or ["name", ["branch", ...]] (uses only those branches) - Add _iter_org_entries helper to expand entries into (repo_name, branch) pairs; simplify _get_tasks accordingly - Add InvalidRepoEntryError for malformed inline entries - Update tests for new _get_tasks signature; add test for inline branch override syntax Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
With many repos, all progress bars were added upfront and the terminal would overflow showing hundreds of 100% rows. Now tasks are hidden until they start running (max_workers visible at a time), then printed as a static line on completion. A single summary row shows X/N done. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Exhaustive config to contribute to OCA covering all OCA repositories. Repos without Odoo version branches use inline branch override syntax: ["oca-port", ["main"]], ["oca-ci", ["master"]], etc. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
nilshamerlinck
approved these changes
Mar 3, 2026
Contributor
nilshamerlinck
left a comment
There was a problem hiding this comment.
tested locally, works perfectly!
Add missing Ubuntu and Arch packages needed for common Odoo dependencies (pycups, shapely, pysaml2, pyzbar, pdf2image, cairosvg) and general tools (graphviz, ghostscript, fontconfig, poppler, cups). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Implements new `doctor` command with health checks: - check_config: validates config.toml syntax and schema - check_github_ssh: verifies GitHub SSH authentication - check_system_tools: validates required binaries (git, npm, uv, gh, psql) - check_tool_versions: inspects uv and npm tool installations from config - list_venvs: checks virtual environment status and Python versions - run_doctor: orchestrates all checks grouped by category Output: Rich table format with CheckStatus enum (OK/WARN/FAIL) Exit code: 0 if all OK or WARN, 1 if any FAIL
8d922cd to
dba5a1d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Implements new
doctorcommand with health checks:Output