Skip to content

fix(npu-windows): install and update stage the shared constraints beside the requirements (#19681) - #20514

Merged
mrveiss merged 5 commits into
mainfrom
issue-19681-win-constraints
Nov 2, 2026
Merged

mrveiss merged 5 commits into
mainfrom
issue-19681-win-constraints

Conversation

@mrveiss

@mrveiss mrveiss commented Nov 1, 2026

Copy link
Copy Markdown
Owner

Thinking Path

The Windows worker's requirements.txt includes -c ../../../constraints/shared.txt. install.ps1 copies that file alone into the install directory, where the path does not exist, so pip aborts with Could not open constraint file before installing anything. update.ps1 hits the same on the installed file.

What Changed

  • New scripts/stage-constraints.ps1: copies the shared constraints beside the installed requirements as constraints-shared.txt, and rewrites the -c line to it. pip resolves -c against the file that holds it. A missing constraints file throws.
  • install.ps1 calls it when installing from elsewhere, not when run in place from a checkout. update.ps1 calls it before pip.

Verification

windows_install_constraints_resolve_19681_test.py passes 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 says Refs: the first criterion's evidence is a generated file on a real install. I checked Resolve-Path and the regex by reading only.

Worth reviewing:

  • The source looks for ..\..\..\constraints\shared.txt (checkout layout) then constraints-shared.txt (package layout). installer/build.ps1 does 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.
  • An existing install that never completed lacks the file; its update throws with that message, and needs a run from a source that has it.
  • The test is structural, by necessity: it reads the scripts rather than running them.

Model Used

Claude Opus 5.5

Refs #19681

🤖 Generated with Claude Code

@mrveiss mrveiss added the phase:M1.1 install.sh completes, fails loudly and is safe label Nov 1, 2026
@coderabbitai

coderabbitai Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
Commits

Reviewing files that changed from the base of the PR and between 09e1c80 and ca0d1f3.

Files selected for processing: 7
  • autobot-npu-worker/resources/windows-npu-worker/scripts/install.ps1
  • autobot-npu-worker/resources/windows-npu-worker/scripts/stage-constraints.ps1
  • autobot-npu-worker/resources/windows-npu-worker/scripts/update.ps1
  • repo_tests/_reach_policy_verdicts.py
  • repo_tests/_reach_roots_record.py
  • repo_tests/reach_scope_claim_17844_test.py
  • repo_tests/windows_install_constraints_resolve_19681_test.py
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Notice: 29 open PRs — past the runaway threshold (25)

This is not a request to defer this PR. There is no cap on open PRs (#19397) -- nothing blocks opening or pushing a PR.

This notice only means the count is high enough to be worth a glance for a runaway — something opening PRs in a loop, or a merge pipeline that has stalled so nothing is draining.

Currently open:

If the queue is draining normally, ignore this. Otherwise:

  1. Check whether CI is dispatching at all — see the ci-dispatch-watchdog status on these PRs
  2. Approved PRs land through the merge train the coordinator sequences (merge commits, never squash) -- check the open chore(merge-train) PR is moving, not each PR on its own
  3. Look for a loop opening near-identical PRs

Warn-only runaway detector — .github/workflows/pr-queue-gate.yml. It never blocks a merge.

@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

✅ SSOT Configuration Compliance: Passing

🎉 No new hardcoded values of either class — ssot and other both block.

Known backlog in pipeline-scripts/hardcoded_values_baseline.txt is suppressed and tracked in #14371.

@mrveiss

mrveiss commented Nov 1, 2026

Copy link
Copy Markdown
Owner Author

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 -c line are right. Non-blocking:

  • install.ps1:181: staging is skipped when the source dir is the install dir, which would leave the relative -c line. Only reachable from a package layout that doesn't exist yet.
  • stage-constraints.ps1:20: from update.ps1 the in-repo candidate climbs above the install dir, so a stray file there could be copied over the staged one.
  • stage-constraints.ps1:38-40: Set-Content -Encoding UTF8 writes a BOM on Windows PowerShell 5.1. Not verified against pip; check it on the first host run.
  • The tests are structural and don't prove a Windows install works, so Refs #19681 is correct.

@github-actions

github-actions Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

Auto-sync: merging main into issue-19681-win-constraints conflicts

The sync aborted the merge and pushed nothing. Conflicts are information, so it never resolves one itself. Below, for each conflicted file, are the commits that touched it on each side since the merge base 09e1c808fa. Merge main in yourself and push; the label clears on the first run that finds this branch 0 behind.

repo_tests/_reach_policy_verdicts.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

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

@github-actions github-actions Bot added the sync-conflict Set by the branch sync (#19548) label Nov 2, 2026
This was referenced Nov 2, 2026
@mrveiss
mrveiss merged commit a89e741 into main Nov 2, 2026
5 checks passed
@mrveiss
mrveiss deleted the issue-19681-win-constraints branch November 2, 2026 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

phase:M1.1 install.sh completes, fails loudly and is safe sync-conflict Set by the branch sync (#19548)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant