Repository navigation
fix(npu-windows): install and update stage the shared constraints beside the requirements (#19681) - #20514
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 23 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
✅ SSOT Configuration Compliance: Passing🎉 No new hardcoded values of either class — Known backlog in |
|
Code review on PR #20514 (head b40a68b): approve. Read only; nothing was executed, as the PR body also says. Paths, error handling and the staged
|
Auto-sync: merging
|
| side | commit | subject | issue refs |
|---|---|---|---|
| main | 2e37e1873 |
Merge remote-tracking branch 'origin/main' into issue-20510-role-source | none |
| main | 4327b239f |
fix(deploy): a role's source path no longer depends on the playbook's folder (#20509) | #20509 |
| this branch | c0d01cf7a |
Merge remote-tracking branch 'origin/main' into issue-19681-win-constraints | none |
| this branch | b40a68b8d |
fix(guard): the Windows constraints guard declares its reach (#19681) | #19681 |
repo_tests/reach_scope_claim_17844_test.py
| side | commit | subject | issue refs |
|---|---|---|---|
| main | 2e37e1873 |
Merge remote-tracking branch 'origin/main' into issue-20510-role-source | none |
| main | 4327b239f |
fix(deploy): a role's source path no longer depends on the playbook's folder (#20509) | #20509 |
| this branch | c0d01cf7a |
Merge remote-tracking branch 'origin/main' into issue-19681-win-constraints | none |
| this branch | b40a68b8d |
fix(guard): the Windows constraints guard declares its reach (#19681) | #19681 |
Thinking Path
The Windows worker's
requirements.txtincludes-c ../../../constraints/shared.txt.install.ps1copies that file alone into the install directory, where the path does not exist, so pip aborts withCould not open constraint filebefore installing anything.update.ps1hits the same on the installed file.What Changed
scripts/stage-constraints.ps1: copies the shared constraints beside the installed requirements asconstraints-shared.txt, and rewrites the-cline to it. pip resolves-cagainst the file that holds it. A missing constraints file throws.install.ps1calls it when installing from elsewhere, not when run in place from a checkout.update.ps1calls it before pip.Verification
windows_install_constraints_resolve_19681_test.pypasses locally; only this was run. It finds every install script that gives pip the installed requirements file and fails if one does not stage first, with a contrast. No PowerShell can run here, so the script itself has never executed, on any Windows host. That is why this saysRefs: the first criterion's evidence is a generated file on a real install. I checkedResolve-Pathand the regex by reading only.Worth reviewing:
..\..\..\constraints\shared.txt(checkout layout) thenconstraints-shared.txt(package layout).installer/build.ps1does not put that file in a package today, as far as I read, so a packaged zip without it throws, naming the file, rather than continuing. Whether a zip-based package exists at all, I did not establish.Model Used
Claude Opus 5.5
Refs #19681
🤖 Generated with Claude Code