Repository navigation
Conversation
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 44 minutes and 10 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, 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 have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughThree CLI help baseline files were updated to reflect changes in default behavior and supported conversation ID formats. The Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
Three baselines drifted after the show/export/bulk-export fixes landed: - help-show: show verb body rewritten (#482) - help-export: gained provider:id-prefix note (#483) - help-main: show description text adjusted (#482) Master CI (showcase-verify) has been red since 6b5c392. Refreshing the baselines unblocks PRs that depend on a green master. Verification: `devtools lab-scenario verify-baselines` exits 0. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
b29a5ae to
ac480bc
Compare
Bundles the .txt baseline drift fix from #503 so the showcase-verify job passes on this branch standalone. Without these the unit suite is green but showcase-verify still fails. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
#505) ## Summary Master CI has been red since 6b5c392 (#489) due to 14 unrelated test failures. This PR fixes them all in one mechanical pass so the architecture-series PRs (#502 and follow-ups) can land. ## Problem Failures span four root causes: 1. **Python 3.11 / pydantic TypedDict.** Pydantic 2.12+ refuses `typing.TypedDict` on Python < 3.12. 19 modules declare TypedDict subclasses; they all need to import from `typing_extensions`. 2. **MCP mutation tests don't mock the new resolve_id pre-check.** Mutation tools resolve the conversation_id via the query store before mutating; tests only patched `_get_tag_store`, so resolve_id returned None and the tools short-circuited with "conversation not found". 3. **Schema/contract drift.** `_clamp_limit` caps at 1000 but tests still echo unbounded inputs. `get_stats_by` gained an enum on `group_by` but the witness wasn't regenerated. `bulk_tag_conversations` switched to `bulk_add_tags(ids, tags)` but the test still asserts N×M `add_tag` awaits. 4. **Env-sensitive logging test.** `configure_logging` honors `POLYLOGUE_FORCE_PLAIN`; CI sets that env to `1`, so `ConsoleRenderer(colors=True)` is unreachable from inside CI. ## Solution Six targeted fixes: 1. Switch 19 files from `typing.TypedDict` to `typing_extensions.TypedDict`. Add `typing-extensions>=4.7` to `pyproject.toml` (works on all supported Pythons). 2. Add `resolved_id` parameter to `make_query_store_mock` and patch `_get_query_store` in affected mutation tests (`add_tag`, `remove_tag`, `set_metadata`, `delete_metadata`, `delete_conversation`). 3. Update `_clamp_limit` parametrized cases (5000/10001/99999 → 1000); regen `tests/data/witnesses/mcp-tool-schemas.json`; rewrite bulk_tag test to assert on `bulk_add_tags`. 4. Add `patch.dict("os.environ")` + `env.pop("POLYLOGUE_FORCE_PLAIN")` to the logging test. 5. Refresh syrupy `test_terminal_snapshots.ambr` (same drift as #503; included here to make the unit suite green standalone). ## Verification ``` POLYLOGUE_FORCE_PLAIN=1 pytest tests/unit/mcp/ \ tests/unit/test_logging_runtime.py \ tests/unit/cli/test_terminal_snapshots.py --no-cov → all pass devtools verify --quick → all checks passed (pre-push hook) ``` ## Out of scope `test_cli_tail_list_json_exposes_tail_provenance` is failing on a TOCTOU warning from a parallel BlobStore fix (in `feature/fix/audit-final` / d295503). Tracked there; not in this PR. ## Related - #503 — baseline + syrupy refresh; this PR includes the syrupy bit again so master test suite is green even without #503. - #502 — topology projection cleanup; blocked on master CI being green. - #489 — the merge that introduced the 14 failures (test code wasn't updated alongside MCP authz/limits + clamp_limit + bulk_add_tags + the show/export help text changes that landed across several merges). <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Enhanced CLI help text for export and show commands with clearer descriptions of conversation ID format handling and default output behavior. * Reordered MCP tool schema parameters with added validation constraints. * **Chores** * Added `typing-extensions>=4.7` as a runtime dependency. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
|
Subsumed by #505 which includes the same baseline + syrupy refresh plus MCP mutation contract fixes. Closing to keep the merge log clean. |
|
@codex review |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
#505) ## Summary Master CI has been red since ddf212f (#489) due to 14 unrelated test failures. This PR fixes them all in one mechanical pass so the architecture-series PRs (#502 and follow-ups) can land. ## Problem Failures span four root causes: 1. **Python 3.11 / pydantic TypedDict.** Pydantic 2.12+ refuses `typing.TypedDict` on Python < 3.12. 19 modules declare TypedDict subclasses; they all need to import from `typing_extensions`. 2. **MCP mutation tests don't mock the new resolve_id pre-check.** Mutation tools resolve the conversation_id via the query store before mutating; tests only patched `_get_tag_store`, so resolve_id returned None and the tools short-circuited with "conversation not found". 3. **Schema/contract drift.** `_clamp_limit` caps at 1000 but tests still echo unbounded inputs. `get_stats_by` gained an enum on `group_by` but the witness wasn't regenerated. `bulk_tag_conversations` switched to `bulk_add_tags(ids, tags)` but the test still asserts N×M `add_tag` awaits. 4. **Env-sensitive logging test.** `configure_logging` honors `POLYLOGUE_FORCE_PLAIN`; CI sets that env to `1`, so `ConsoleRenderer(colors=True)` is unreachable from inside CI. ## Solution Six targeted fixes: 1. Switch 19 files from `typing.TypedDict` to `typing_extensions.TypedDict`. Add `typing-extensions>=4.7` to `pyproject.toml` (works on all supported Pythons). 2. Add `resolved_id` parameter to `make_query_store_mock` and patch `_get_query_store` in affected mutation tests (`add_tag`, `remove_tag`, `set_metadata`, `delete_metadata`, `delete_conversation`). 3. Update `_clamp_limit` parametrized cases (5000/10001/99999 → 1000); regen `tests/data/witnesses/mcp-tool-schemas.json`; rewrite bulk_tag test to assert on `bulk_add_tags`. 4. Add `patch.dict("os.environ")` + `env.pop("POLYLOGUE_FORCE_PLAIN")` to the logging test. 5. Refresh syrupy `test_terminal_snapshots.ambr` (same drift as #503; included here to make the unit suite green standalone). ## Verification ``` POLYLOGUE_FORCE_PLAIN=1 pytest tests/unit/mcp/ \ tests/unit/test_logging_runtime.py \ tests/unit/cli/test_terminal_snapshots.py --no-cov → all pass devtools verify --quick → all checks passed (pre-push hook) ``` ## Out of scope `test_cli_tail_list_json_exposes_tail_provenance` is failing on a TOCTOU warning from a parallel BlobStore fix (in `feature/fix/audit-final` / d295503). Tracked there; not in this PR. ## Related - #503 — baseline + syrupy refresh; this PR includes the syrupy bit again so master test suite is green even without #503. - #502 — topology projection cleanup; blocked on master CI being green. - #489 — the merge that introduced the 14 failures (test code wasn't updated alongside MCP authz/limits + clamp_limit + bulk_add_tags + the show/export help text changes that landed across several merges). <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Enhanced CLI help text for export and show commands with clearer descriptions of conversation ID format handling and default output behavior. * Reordered MCP tool schema parameters with added validation constraints. * **Chores** * Added `typing-extensions>=4.7` as a runtime dependency. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
Summary
Three showcase baselines drifted after recent merges. Master CI (
showcase-verify) has been red since 6b5c392.Problem
help-show.txt—polylogue showdescription rewritten as part of fix(cli): add show verb that resolves provider:id directly #482.help-export.txt— gainedprovider:id-prefixnote as part of feat(cli): add bulk-export verb for filter-driven JSONL dumps #483.help-main.txt—showsummary line updated to match fix(cli): add show verb that resolves provider:id directly #482.The fixes for #422/#482 and #406/#462 updated CLI help text but did not refresh the committed baselines, so
devtools verify-showcase(and the CIshowcase-verifyjob) compares the new help against the old baselines and reports drift.Solution
Regenerated the three affected baselines via
devtools lab-scenario verify-baselines --update. No other changes.Verification
Related
Unblocks #502 and any other PR that depends on a green master.
Summary by CodeRabbit
exportcommand help to document additional conversation ID format support with example (provider:id-prefix).showcommand help to clarify default behavior displays full-content output.