fix(ado-script): fail closed for unresolved synthetic PR merge-base#1460
Conversation
Co-authored-by: jamesadevine <4742697+jamesadevine@users.noreply.github.com>
|
/rust-review |
|
✅ Rust PR Reviewer completed successfully! |
🔍 Rust PR ReviewSummary: Looks good — the fail-closed fix is correct and the security-sensitive refspec interpolation path is properly validated. One minor unit-test coverage gap noted. Findings
|
Co-authored-by: jamesadevine <4742697+jamesadevine@users.noreply.github.com>
Summary
Synthetic PR checkouts could report a plausible but wrong
base.shawhengit merge-base HEAD^1 HEAD^2failed in a shallow clone, silently falling back to the target parent.Merge-base resolution
HEAD^1success fallback.Synthetic PR wiring
System.PullRequest.SourceBranch.AW_PR_SOURCEBRANCHinto the PR execution-context step for synthetic PR builds.Regression coverage
Test plan
cargo buildcargo testcargo clippy --all-targets --all-featuresnpm run typechecknpm run testnpm run test:smoke