Repository navigation
ci: install ripgrep before public-surface audit in lint job - #1855
Conversation
Problem: #1854 added the public-surface audit to the CI lint job, but the audit shells out to ripgrep (rg), which is not on the uv/ubuntu lint runner's PATH. The step exited 2 ("ripgrep is required") and turned master's lint job red. (It was verified locally inside the nix devshell, where rg is always present — masking the CI-environment gap.) What changed: install ripgrep via apt in the lint job before the audit step. Verification: - devtools verify-ci-workflows => 16 workflow files checked, no errors Ref #1850 Co-Authored-By: Claude Opus 4.8 <[email protected]>
|
Warning Review limit reached
More reviews will be available in 11 minutes and 9 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
✨ 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 |
#1867) ## Summary Rename the `read --view conversation` token to `transcript` to remove stale "conversation" vocabulary that #1863 reintroduced on public CLI surfaces, restoring the session/origin vocabulary policy from the #1810/#1852 sweep. ## Problem #1863 shipped `read --view conversation`. The public-surface audit (`tools/cleanup/polylogue_public_surface_audit.sh`, #1852) flags `conversation` as stale schema-v1 vocabulary on both `polylogue/cli/query_verbs.py` and the generated `docs/cli-reference.md`. The audit **false-passed in CI** — the Ubuntu-image ripgrep silently mishandles the audit's `rg` invocation (the #1854/#1855 shelled-binary-in-CI fragility) — so the violation landed on master uncaught. It deterministically fails the local pre-push gate (nix ripgrep), blocking every subsequent push. ## Solution - Rename the read view token `conversation` → `transcript` in `query_verbs.py` (`_READ_VIEWS`, help text, comment). The view has no distinct dispatch branch — it shares the summary fallthrough render path — so this is a pure token rename, no behavior change. - Regenerate `docs/cli-reference.md` and the `help-read.txt` showcase baseline. ## Verification - `tools/cleanup/polylogue_public_surface_audit.sh` → exit 0 (`clean (no stale schema-v1 vocabulary on public surfaces)`) - `mypy --strict polylogue/cli/query_verbs.py` → clean - `ruff check` → clean - `pytest tests/unit/cli -k "help or read or view"` → 433 passed, 4 snapshots passed ## Follow-up The CI audit's ripgrep false-pass is a real gap (CI did not catch this violation). The lint job's `rg` invocation hardening against the runner image is tracked separately (#1855 class).
Summary
Fixes the red
lintjob on master: installripgrepin the CI lint job before the public-surface audit step added in #1854.Problem
#1854 added
bash tools/cleanup/polylogue_public_surface_audit.shto the CIlintjob. The audit shells out torg(ripgrep), which is not on theuv/ubuntu-latestlint runner's PATH, so the step exited 2 (ripgrep is required) and master's lint job went red. The audit was validated locally inside the nix devshell — wherergis always present — which masked the CI-environment gap.Solution
Install ripgrep via apt in the lint job, immediately before the audit step.
Verification
devtools verify-ci-workflows→16 workflow files checked, no errorsRef #1850