Skip to content

fix(#1217): uv ciInstall uses uv sync --frozen with uv.lock, else requirements or skip - #1224

Merged
admarble merged 2 commits into
mainfrom
feature/1217-fix-stacks-uv-ciinstall-is-a-bare-uv-pip-install-q
Sep 30, 2026
Merged

admarble merged 2 commits into
mainfrom
feature/1217-fix-stacks-uv-ciinstall-is-a-bare-uv-pip-install-q

Conversation

@admarble

@admarble admarble commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

AC verification

AC Description Status Evidence
AC-1 uv.lock present → ciInstall === "uv sync --frozen" ✅ Implemented src/lib/stacks.ts resolver pm === "uv" branch; stacks.test.ts "uv (#1217 AC-1, AC-2)"
AC-2 No uv.lock → falls back like pip, never bare uv pip install -q ✅ Implemented same branch, reuses findRequirementsFile; tests cover requirements file, alphabetical fallback, and skip cases
AC-3 (gate) CI_INSTALL_SKIP doc comment no longer pip-only ✅ Implemented stacks.test.ts "CI_INSTALL_SKIP doc comment (#1217 AC-3)", mutation-verified below

Mutation-verified: AC-3 — reverted the JSDoc comment text; src/lib/stacks.test.ts > resolvePackageManagerConfig > CI_INSTALL_SKIP doc comment (#1217 AC-3) > no longer says pip is the only manager that resolves to it failed; restored.

Also dropped uv from the "leaves every non-yarn, non-pip package manager untouched" identity-check loop (now "non-yarn, non-pip, non-uv") since uv now gets a directory-aware override too, per the /spec plan's note.

Runner verification (graph #1203)

QA returned NEEDS_VERIFICATION (3/3 ACs met). The runner discharged it:

  • timeout 600 npx vitest run src/lib/stacks.test.ts in the worktree: 144 passed. Ran again with worktree-manager.test.ts and worktree-manager.frozen-install.test.ts after the follow-up commit: 168 passed. tsc --noEmit clean.
  • Re-ran the AC-3 mutation independently: restoring the pre-fix(stacks): uv ciInstall is a bare uv pip install -q — use uv sync --frozen with uv.lock, else requirements or skip #1217 JSDoc made exactly src/lib/stacks.test.ts > resolvePackageManagerConfig > CI_INSTALL_SKIP doc comment (#1217 AC-3) > no longer says pip is the only manager that resolves to it fail (1 failed / 143 passed); restored.
  • Ran the resolved commands against real uv 0.7.13. With pyproject.toml + uv lock, uv sync --frozen exits 0 and creates .venv (AC-1). With a requirements.txt and no lock, uv pip install -q -r requirements.txt exits 0 (AC-2).
  • Folded in QA's two repository_gap findings (eb66deb): a CHANGELOG ### Fixed entry, and the two worktree-manager.ts comments that still said only pip reaches CI_INSTALL_SKIP.

Known limitation, per the AC text, not changed here: the no-lock fallback uv pip install -q -r <file> has no project venv. It installs into whatever environment uv discovers (an active VIRTUAL_ENV or conda env, here conda base), and fails if there is none. #1196's pip fallback behaves the same way. The uv.lock path, uv sync --frozen, is the lockfile-faithful one.

Refs #1203

Test plan

  • timeout 600 npx vitest run src/lib/stacks.test.ts — 144 passed
  • npm run build — passed
  • npm run lint — passed
  • Mutation-verified AC-3 gate test (see marker above)

Closes #1217

🤖 Generated with Claude Code

… worktree-manager

Folds in the two repository_gap findings from qa: sibling comments at worktree-manager.ts said only pip reaches CI_INSTALL_SKIP.

Entire-Checkpoint: 45aa02b3899b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(stacks): uv ciInstall is a bare uv pip install -q — use uv sync --frozen with uv.lock, else requirements or skip

1 participant