Repository navigation
fix(scans): count historical files for unreviewable local renames - #2101
Conversation
alandelong-oai
left a comment
There was a problem hiding this comment.
The count correction and directory-link handling look coherent, but this commit leaves several test fixtures inconsistent with the new behavior. The inline comments cover the worker permission mocks, ambient environment capture, and Windows fixture assumptions. Please fix those and rerun the affected CI checks.
Validation: 76 focused local tests/checks passed, with two Windows-only skips; builds, types/models, formatting and static package checks also passed. Exact-source CI failed, with 47 successful jobs and 18 failed jobs. Full runtime suites and native Windows execution were not run locally; local registration/SQLite checks remain limited by the test environment.
alandelong-oai
left a comment
There was a problem hiding this comment.
Thanks for addressing the four fixture issues from the previous review. The selected-diff counting and Git-environment transport look sound after reviewing the complete current diff and its integration with registration and worker execution. Two nonblocking suggestions below concern cleanup diagnostics and Windows test portability.
Builds, types, formatting, source checks, and focused SDK/MCP checks passed. The exact-source hosted run confirms the Windows loose-object fixes, worker credential and lifecycle fixtures, all eight fresh/resumed home combinations, and the Windows installed-package Deep Scan/retry smoke. The rank-output expectation now uses the correct platform newline; its six Linux cases passed, while the Windows shard was still running at review time.
Broader local Python and worker suites encountered existing filesystem ownership/protected-checkout restrictions, so this is not a full-suite or all-CI-green claim.
alandelong-oai
left a comment
There was a problem hiding this comment.
Thanks for refreshing this. No new actionable findings in this owner-level merge-safety review of all 43 changed files at ffeb948. Registration counts match the selected text-file view, and the Git changes preserve local-only object reads, explicit configuration, path boundaries, and worker permissions.
Portable checks, SDK build/types/format, plugin bundling, and focused Python, SDK, inventory, and streaming checks passed. Both hosted MCP shards passed on an identical source tree, including worker configuration and stdio lifecycle coverage. Current reports also confirm registration, missing-object behavior, cancellation, Windows Python tests, and Windows installed-package smoke.
Additional local cases were limited by filesystem ownership, a read-only default home, or an unchanged umask assumption. Windows SDK inventory and Git-settings shards were still running; those results and a complete local-suite pass are not claimed.
alandelong-oai
left a comment
There was a problem hiding this comment.
Thanks for the careful regression coverage. Reviewed all 43 changed files at 1ed1fc22a58c7b43bb04b8bcf0fab5c01a44ac18, including registration counts, inventory/path handling, Git configuration preservation, private snapshot lifetime, and worker cancellation. No actionable findings; both previous nonblocking suggestions are addressed.
Validation: required portable checks, SDK/plugin builds, types and formatting passed. Focused local checks passed 110 Python, 73 SDK, 94 MCP, and 20 native-adapter cases. I also verified hosted MCP and Linux/Windows Python results, Windows Git configuration/inventory coverage, installed Windows smoke, and native artifact provenance against a tested merge whose tree exactly matches this head.
Limits: the full SDK suite and live-model scans were not run locally. Existing workspace restrictions prevent some owner/home controls and the temporary-Git cancellation fixture from running locally; the corresponding hosted cancellation case passed. Platform skips remain skips. One Windows SDK shard was still running when checked.
alandelong-oai
left a comment
There was a problem hiding this comment.
Thanks for preserving Git configuration across registration and worker launches. No blocking findings in this owner-level review at b04e8503e9d5284e4f0bbc3280e3f43ef7a4a13b. The incoming parent preflight retains the private Git snapshot and isolated worker configuration; the revised routing assertions preserve caller-supplied MCP settings across direct and coordinator paths.
Validation: ordered portable checks, SDK/plugin builds, types and formatting passed, plus 19 routing tests, eight Git-environment tests and the MCP preflight test file. Matching native inputs and artifact payloads were verified. Prior Python/MCP results were retained only where source and test inputs match. Four known filesystem-dependent test patterns were excluded; full local suites, local Windows and live-model qualification were not run.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
alandelong-oai
left a comment
There was a problem hiding this comment.
Thank you for fixing the missing-rename case. No blocking findings in this review. The rebased contribution is unchanged: Python counting and packaged inventories agree on destination selection, historical deletion fallback, recreated-source precedence, and binary exclusion.
Fresh validation passed 24 Python cases, 18 packaged inventory cases, four cross-entrypoint probes, builds, types, formatting, and portable checks. Current CI passed on an identical source tree. No full local suite or live-model scan was run.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e889ead130
ℹ️ 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".
alandelong-oai
left a comment
There was a problem hiding this comment.
Thanks for preserving reviewable content when a rename destination disappears. The rename-chain issue remains: stage old.py → middle.py, move it again to new.py, then stage only new.py. The earlier real-Git/Python control selected new.py plus historical old.py and counted two files; the base selected only new.py. Resolve eligible destinations across both change sets before retaining a historical source.
This commit has the same source tree as the preceding reviewed head. Earlier verification remains historical with its original limits; no repeated run or duplicate inline comment is added.
Summary
A staged rename could disappear from a local diff scan when its destination went missing, moved into excluded metadata, or became a link. Registration then undercounted the files available to review. The scan now selects the original path as a deletion and classifies its committed contents.
Changes
Testing
Risk and rollout
This affects working-tree diff scans with a rename that Git recognizes. The local counter and both inventories must select the same path. The regression fixtures exercise this through each entrypoint. Native platform checks run in CI.
Public disclosure review