fix: install uv+deps in agent sandbox, use make commands (#747)#770
Merged
fix: install uv+deps in agent sandbox, use make commands (#747)#770
Conversation
- copilot-setup-steps.yml: add setup-uv and uv sync --group dev - issue-implementer: replace hardcoded uv run chain with make fix && make check - review-responder: same - ci-fixer: same Agents can now run the full CI suite locally. Using Makefile targets ensures agents stay in sync with CI as commands evolve. Closes #747 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
This PR updates the GitHub Copilot agent sandbox setup so agents can run the repo’s Python toolchain (ruff/pyright/pytest/bandit) by installing uv and syncing dependencies, and it aligns agent instructions with the repo’s Makefile targets.
Changes:
- Install
uvin the Copilot agent setup workflow and sync Python dependencies. - Update agent workflow instruction docs to run
make fix && make checkinstead of hardcodeduv run ...command chains.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
.github/workflows/copilot-setup-steps.yml |
Installs uv and runs dependency sync so agent sandboxes can execute project tooling. |
.github/workflows/issue-implementer.md |
Switches pre-commit verification instructions to make fix + make check. |
.github/workflows/review-responder.md |
Switches post-fix verification instructions to make fix + make check. |
.github/workflows/ci-fixer.md |
Switches post-fix verification instructions to make fix + make check. |
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Agents couldn't run tests, lint, or type checks because
copilot-setup-steps.ymlonly installedgh-aw— nouv, no Python deps.Changes
copilot-setup-steps.yml
astral-sh/setup-uv@v5uv sync --group dev(installs all runtime + dev deps)issue-implementer.md / review-responder.md / ci-fixer.md
uv sync && uv run ruff check --fix . && uv run ruff format . && uv run pyright && uv run pytest ...withmake fix && make checkVerification
gh aw compile)--allow-all-toolssomakeis available in sandboxCloses #747