Address August sweep follow-ups - #874
Open
yzxcj797 wants to merge 1 commit into
Open
Conversation
code-review-graph reviewOverall risk: 0.65 (MEDIUM) — 16 changed function(s)/class(es), 0 affected flow(s), 4 test gap(s) Risk-scored changes
Test gaps
Token savings: this graph-backed report used ~193,286 fewer tokens (~99%) than reading every changed file in full (estimated, chars/4 approximation). Powered by code-review-graph — local-first analysis; no code leaves the CI runner. |
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.
Summary
Addresses the small follow-ups collected in #866:
get_affected_flowsnow includestruncated: falseon its no-changed-files early return../foo.js→foo.jsx;./foo.mjs→foo.mts;./foo.cjs→foo.cts;.mts/.ctssource resolution.dead-codeandforgetresolve their graph path in read-only mode so a missing graph no longer creates an empty.code-review-graph/directory.crg-daemonconfigures UTF-8 stdio like the main CLI.OSError/WinError 87.Fixes #866.
Testing
pytest tests/test_pr866_followups.py tests/test_cli_reconciliation.py::test_dead_code_missing_graph_exits_nonzero -q— 7 passedruff checkon all changed files — passesgit diff --check— passes