docs: refresh public repo scorecard and onboarding#58
Conversation
|
Warning Review limit reached
Next review available in: 53 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (8)
📝 WalkthroughWalkthroughAdds a new ChangesEnvironment Doctor Integration
Estimated code review effort: 2 (Simple) | ~15 minutes Estimated code review effort: 2 (Simple) | ~15 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (2)
.github/workflows/ci.yml (1)
164-164: 🩺 Stability & Availability | 🔵 Trivial | ⚡ Quick win
env_doctor.pyexecutable check added but never invoked in CI.Other scripts in this same list (e.g.
scripts/openapi_contract_check.py,scripts/issue_template_check.py) are both checked for-xand then actually executed later in the job.scripts/env_doctor.pyonly gets the-xcheck; it is never run, so CI won't catch a regression in the script's own logic (e.g. version-threshold bugs).Consider adding
scripts/env_doctor.py(orjust env-doctor) to the executed steps for parity with the other prerequisite checks.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In @.github/workflows/ci.yml at line 164, The CI job currently only verifies that scripts/env_doctor.py is executable but never runs it, unlike the other prerequisite checks. Update the workflow step sequence in the CI job to actually invoke scripts/env_doctor.py (or the equivalent just env-doctor target) after the existing -x check, keeping it consistent with the other script checks such as scripts/openapi_contract_check.py and scripts/issue_template_check.py.justfile (1)
3-3: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick winInterpreter probing only checks
python3.11; misses newer-only installs and bare "no python" case.The fallback chain only tries plain
python3(version-checked) then specificallypython3.11. On systems where only e.g.python3.12/python3.13is installed (common via Homebrewpython@3.12without apython3.11symlink) and the defaultpython3resolves to an older interpreter (e.g. Apple's system Python), the selector falls through toelse echo python3, silently choosing the too-old interpreter instead of a usable one. Separately, ifpython3doesn't exist at all, the2>/dev/nullswallows the "command not found" error and the fallback still emitspython3, so later{{python}} scripts/env_doctor.pyfails with a raw shell error instead of env_doctor's intended friendly message.♻️ Suggested more robust probing
-python := `if python3 -c 'import sys; raise SystemExit(0 if sys.version_info >= (3, 11) else 1)' 2>/dev/null; then echo python3; elif command -v python3.11 >/dev/null; then echo python3.11; else echo python3; fi` +python := `for candidate in python3 python3.13 python3.12 python3.11; do if command -v "$candidate" >/dev/null 2>&1 && "$candidate" -c 'import sys; raise SystemExit(0 if sys.version_info >= (3, 11) else 1)' 2>/dev/null; then echo "$candidate"; exit 0; fi; done; echo python3`🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@justfile` at line 3, The interpreter selection in the `python` variable only checks `python3` and then `python3.11`, so it can miss newer installed versions or fall back to a nonexistent/too-old `python3`. Update the probing logic in the `justfile` so it validates availability and version for a broader set of candidates (for example, newer `python3.x` executables) before defaulting, and ensure the fallback only emits a usable interpreter path. Also handle the no-python-installed case explicitly instead of silently returning `python3`, so `env_doctor` can show its intended friendly error.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In @.github/workflows/ci.yml:
- Line 164: The CI job currently only verifies that scripts/env_doctor.py is
executable but never runs it, unlike the other prerequisite checks. Update the
workflow step sequence in the CI job to actually invoke scripts/env_doctor.py
(or the equivalent just env-doctor target) after the existing -x check, keeping
it consistent with the other script checks such as
scripts/openapi_contract_check.py and scripts/issue_template_check.py.
In `@justfile`:
- Line 3: The interpreter selection in the `python` variable only checks
`python3` and then `python3.11`, so it can miss newer installed versions or fall
back to a nonexistent/too-old `python3`. Update the probing logic in the
`justfile` so it validates availability and version for a broader set of
candidates (for example, newer `python3.x` executables) before defaulting, and
ensure the fallback only emits a usable interpreter path. Also handle the
no-python-installed case explicitly instead of silently returning `python3`, so
`env_doctor` can show its intended friendly error.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 8f752191-3eb1-4333-862b-05ef13a1ae67
📒 Files selected for processing (8)
.github/workflows/ci.ymlREADME.mddocs/launch-scorecard.mddocs/llms-full.txtdocs/qa-onboarding-checklist.mdengine/tests/test_env_doctor.pyjustfilescripts/env_doctor.py
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4ecf23f9ba
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| @@ -1,68 +1,72 @@ | |||
| set shell := ["bash", "-uc"] | |||
| export PYTHONDONTWRITEBYTECODE := "1" | |||
| python := `if python3 -c 'import sys; raise SystemExit(0 if sys.version_info >= (3, 11) else 1)' 2>/dev/null; then echo python3; elif command -v python3.11 >/dev/null; then echo python3.11; else echo python3; fi` | |||
There was a problem hiding this comment.
Validate python3.11 before selecting it
When python3 is still older than 3.11 but a pyenv-style python3.11 shim is present and not activated, command -v python3.11 succeeds even though invoking it exits 127. Because this resolver only checks for the command name, just env-doctor and just bootstrap select the unusable shim and fail before scripts/env_doctor.py can print the actionable Python-version guidance; probe python3.11 -c ... the same way as python3 before echoing it, or fall back to python3 so the doctor can explain the failure.
Useful? React with 👍 / 👎.
4ecf23f to
99aa7db
Compare
Summary
just env-doctorandscripts/env_doctor.pyso fresh clones fail fast on Python/Rust/just prerequisite issues instead of surfacing opaque Python 3.9 import errors.python3is already 3.12.docs/llms-full.txtwith the env-doctor + uv fallback path.100/100current claims with a timestamped scorecard table that keeps all public dimensions at 95+ while clearly separating launch baseline from active release freshness.Verification
just env-doctorjust docs-checkcd engine && uv run --python 3.11 --with pytest --with cryptography --with hypothesis -- python -m pytest -q -p no:cacheprovidercd cli && cargo test --workspaceSafety / boundary notes
Co-authored-by: Hermes Agent hermes@nousresearch.com
Summary by CodeRabbit
New Features
Bug Fixes
Documentation