Skip to content

fix: install uv+deps in agent sandbox, use make commands (#747)#770

Merged
microsasa merged 2 commits intomainfrom
fix/747-agent-environment
Apr 5, 2026
Merged

fix: install uv+deps in agent sandbox, use make commands (#747)#770
microsasa merged 2 commits intomainfrom
fix/747-agent-environment

Conversation

@microsasa
Copy link
Copy Markdown
Owner

Summary

Agents couldn't run tests, lint, or type checks because copilot-setup-steps.yml only installed gh-aw — no uv, no Python deps.

Changes

copilot-setup-steps.yml

  • Add astral-sh/setup-uv@v5
  • Add uv sync --group dev (installs all runtime + dev deps)

issue-implementer.md / review-responder.md / ci-fixer.md

  • Replace hardcoded uv sync && uv run ruff check --fix . && uv run ruff format . && uv run pyright && uv run pytest ... with make fix && make check
  • Agents now use the same Makefile targets as CI and humans
  • If Makefile targets evolve, agents stay in sync automatically

Verification

  • All three workflows recompiled clean (gh aw compile)
  • Lock files unchanged (body is runtime-imported, frontmatter unchanged)
  • Agents use --allow-all-tools so make is available in sandbox

Closes #747

- 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>
Copilot AI review requested due to automatic review settings April 5, 2026 17:51
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 uv in the Copilot agent setup workflow and sync Python dependencies.
  • Update agent workflow instruction docs to run make fix && make check instead of hardcoded uv 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.

Comment thread .github/workflows/copilot-setup-steps.yml Outdated
Comment thread .github/workflows/copilot-setup-steps.yml Outdated
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

@microsasa microsasa merged commit d5b9a02 into main Apr 5, 2026
9 checks passed
@microsasa microsasa deleted the fix/747-agent-environment branch April 5, 2026 18:25
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.

[aw][code health] copilot-setup-steps.yml doesn't install uv or Python deps — agent cannot run tests or type checks

2 participants