Preflight GitVersion repository history before build - #896
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed June 30, 2026, 1:33 PM ET / 17:33 UTC. Summary Reproducibility: no. high-confidence runtime reproduction was run in this read-only review. The linked report and current source make the late GitVersion/MSBuild failure source-reproducible, but the new shallow/missing-git preflight path still needs current-head terminal or log proof. Review metrics: 1 noteworthy metric.
Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land the focused preflight after the PR body includes current-head Windows output for a full-history success plus a missing-.git or shallow-clone early-failure path. Do we have a high-confidence way to reproduce the issue? No high-confidence runtime reproduction was run in this read-only review. The linked report and current source make the late GitVersion/MSBuild failure source-reproducible, but the new shallow/missing-git preflight path still needs current-head terminal or log proof. Is this the best way to solve the issue? Yes, conditionally: AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against a13d683de90f. Label changesLabel justifications:
Evidence reviewedWhat I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
Co-authored-by: shanselman <2892+shanselman@users.noreply.github.com>
Summary
Sharedbuild.build.ps1now preflights Git metadata and shallow-clone state before building, with an explicit recovery command.git fetch --unshallow --tags origin.Change Type (select all)
Scope (select all touched areas)
winnodeLinked Issue/PR
Validation
.\build.ps1— passed on Windows.dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore— 2659 passed, 31 skipped.dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore— 1445 passed.dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore --filter VersioningContractTests— previously passed: 4 passed, 0 failed, 0 skipped.--no-restorecommands.Real behavior proof
b1d2b6a.build.ps1now runs successfully on a full-history git worktree and completes before any late GitVersion/MSBuild failure.build.ps1contains GitVersion preflight checks for git metadata, shallow repositories, andgit fetch --unshallow --tags origin.Security Impact (required)
Yes/No): NoYes/No): NoYes/No): NoYes/No): NoYes/No): NoYes, explain risk + mitigation: N/ACompatibility / Migration
Yes/No): YesYes/No): NoYes/No): NoReview Conversations