Repository navigation
feat(roadmap): bootstrap the dev env with uv in each Job - #6537
Conversation
|
Local proof of task 3.3 (rootless Podman with
Scoped checks before the push: |
The runner image holds the runtime of devops-cli and its review extra, and no dev group. Each stage, implement and fix-checks Job runs uv sync --locked --group dev (from the uv seed of #4814 when it fits) and npm ci --ignore-scripts in its checkout before its first agent step, and the agent and the checks get the tools of the checkout first on PATH.
|
Pull request #6537 has merge conflicts with |
The stage Job runs in the Service image, which holds no uv, so it runs no bootstrap until it moves to the runner image (#6417, #6528). The fix-checks Job bootstraps at the start of its model fix, so tier 1 still repairs a stale uv.lock. An existing branch syncs without --locked, as the uv run of the hook install did. The container-image-layers spec drops the dev requirements of the lock stage.
e8fe17a to
d98ecfe
Compare
🤖 I have created a release *beep* *boop* --- ## [0.185.0](v0.184.0...v0.185.0) (2026-11-20) ### Features * **roadmap:** bootstrap the dev env with uv in each Job ([#6537](#6537)) ([a0c0e4e](a0c0e4e)), closes [#6517](#6517) ### Bug Fixes * **roadmap:** an open tracker holds back no item ([#6548](#6548)) ([016b681](016b681)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
On an existing branch, the coder bootstrap of #6517 (PR #6537) ran `uv sync` with no `--locked`, and the install of the hook environments ran `uv run pre-commit install-hooks`. On a stale `uv.lock`, both lock again and write it, and `npm ci` refuses a stale `package-lock.json`. The locks are tracked files, so the first step refused the dirty worktree: fix-checks returned no fix, and the implement Job stopped at group 1. Now the bootstrap of an existing branch runs `uv sync --frozen`, which installs `uv.lock` as it is, and `npm install --no-save --ignore-scripts`, which writes no lock. The Job starts each `pre-commit` command with `uv run --frozen`. A new branch keeps `--locked` and `npm ci`. A stale lock is the work of the agent, whose shell can lock again and commit. `--frozen` does not resolve, so a seed that fits makes the sync offline in both modes. Closes #6557 Change: `openspec/changes/archive/2026-11-20-6557-bootstrap-stale-lock/`
The runner image of the implement and fix-checks Jobs installed the dev group into
/app/.venv, first on PATH, so a check could run an image tool and not the checkout's. The owner asked for no dev dependency in the image and one uv command that builds the coder environment.The image now holds the runtime and the
reviewextra only, withUV_COMPILE_BYTECODE=0.bootstrap_checkoutinrunner_tools.pyrunsuv sync --group dev(--lockedon a new branch, offline from the uv seed of #4814 when it fits) andnpm ci --ignore-scriptsfor a rootpackage-lock.json. The implement Job calls it before the hooks and fix-checks before its model fix, so tier 1 still repairs a stale lock. The stage Job runs in the Service image and waits for #6417. The agent shell and the checks get the checkout tools first on PATH, no token child does. The smoke test bootstraps a copy of the checkout.Closes #6517
Change:
openspec/changes/archive/2026-11-20-6517-runner-dev-bootstrap/