Repository navigation
fix(tooling): handle Windows paths in repository checks - #190069
Conversation
Normalize filesystem discovery with the shared repository-path helper before SQLite exclusions/classification and changelog artifact/mirror checks. Remove the unused strictBotHandle option without changing credit policy. Co-authored-by: harshitgupta31415 <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper review Credited replacement for #168956. Focused tests and local autoreview are complete; please review the current implementation and Windows boundary regressions. |
|
🦞👀 Re-review progress:
|
|
Codex review: needs maintainer review before merge. What this changesThis PR normalizes discovered Windows paths before SQLite inventory and changelog attribution checks. Example: The Windows changelog checker discovers CHANGELOG\records\2026.9.4.md containing Thanks @steipete.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR repairs concrete Windows checker defects still present on current main, with no actionable code findings. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherRepository checks discover filesystem and Git paths, classify source files or release artifacts, and report SQLite growth or forbidden changelog credits. flowchart TD
A[Filesystem discovery] --> B[Shared path normalization]
C[Git snapshot paths] --> B
B --> D[SQLite inventory classifiers]
B --> E[Changelog artifact predicates]
D --> F[Repository check results]
E --> F
Technical reviewBest possible solution: Normalize discovery paths through the existing shared helper while retaining the current classifiers and attribution policies. Do we have a high-confidence way to reproduce the issue? Current-main source establishes the separator mismatches, and the linked reports provide native Windows failures; this review executed no target code. Is this the best way to solve the issue? Boundary normalization fixes the cause using an existing owner, without changing classification allowances, attribution rules, or adding machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 8b47948c8d3c. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +74, Other +1. Total +75 across 5 files. Added test files: 0. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes: No label changes. Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed November 1, 2026, 12:10 AM ET / 04:10 UTC (Revision 2). |
Keep the frozen PR-tooling import closure intact while normalizing native Windows discovery paths, without importing parser dependencies. Co-authored-by: harshitgupta31415 <[email protected]>
|
Merged via squash.
|
) * fix(tooling): handle Windows paths in repository checks Normalize filesystem discovery with the shared repository-path helper before SQLite exclusions/classification and changelog artifact/mirror checks. Remove the unused strictBotHandle option without changing credit policy. Co-authored-by: harshitgupta31415 <[email protected]> * fix(tooling): reuse the lightweight shared path normalizer Keep the frozen PR-tooling import closure intact while normalizing native Windows discovery paths, without importing parser dependencies. Co-authored-by: harshitgupta31415 <[email protected]> --------- Co-authored-by: harshitgupta31415 <[email protected]>
Supersedes #168956, thanks @harshitgupta31415.
Related: #168935, #168945.
What Problem This Solves
Fixes false SQLite growth reports, rejected allowed changelog credits, and missed frozen contribution records when repository checks receive Windows paths.
User Impact
Windows contributors get the existing SQLite and attribution policies applied consistently. No runtime changes, migrations, or user actions are required.
Why This Change Was Made
Reuse
normalizeChangedPathat filesystem discovery boundaries before existing slash-based classifiers. The replacement is independently implemented against current main; the contributor head was only read withgh pr view/gh pr diffand was never checked out or executed.Production delta: +7/−8, net −1. Removed the unused
strictBotHandleoption and its redundant CLI argument; bot-credit behavior remains covered. Test delta: +74, with a dedicated test-line allocation for the three distinct Windows boundary regressions. No new path helper or policy owner.Evidence
Candidate head:
68a1206ed589(reviewed final local snapshot; both commits preserve the original human co-author).Base:
a460b0c1ead257e25296b586b3ad6d46bf47ab81, verified as current main before implementation.Red on the unchanged base: three
path.win32regressions reproduce noncanonical SQLite inventory keys and missed exclusions, rejected allowed mirror credit, and skipped nested frozen records.Green after:
node scripts/run-vitest.mjs test/scripts/check-database-worker-ratchet.test.ts test/scripts/check-changelog-attributions.test.ts --maxWorkers=1— 32 passed; 2.48 seconds Vitest duration, 3.40 seconds wrapper wall time. Existing real-growth and staged-snapshot controls remain green.Frozen PR-tooling closure checks: 2 passed, 33 skipped; 8.81 seconds Vitest duration, 9.92 seconds wrapper wall time.
Focused typecheck covering both suites and their imported implementation, scripts/test lint, changed-file formatting, and
git diff --checkpassed.Local Codex autoreview of the final candidate against the pinned base, including unchanged helper/release-owner context:
scoped-clean, no actionable P0–P2 findings. The reviewer did not independently execute tests.The first CI head exposed a frozen PR-tooling import-closure failure from the initially selected helper. Reused the existing lightweight normalizer already in that capsule instead of expanding its dependencies.
pr-simplify: retained only boundary normalization, dead-option removal, and regressions; no added architecture.Linux host proof simulates Windows filesystem/discovery separators with
path.win32; native Windows execution was not performed here. Native Windows execution remains unverified here.Current-head PR CI passed: all 60 planned jobs completed, no failures; 543 seconds overall run time. The required
openclaw/ci-gateis green.