Update Copilot setup workflow for containerized runner - #425
Merged
Conversation
- Use /opt/venv as base Python with --system-site-packages for the task venv, bridging packages via site.addsitedir() in a .pth file so editable installs (e.g. triton) are discovered correctly - Export UV_CACHE_DIR via $GITHUB_ENV (other env vars are set by runner-container.env) - Create cache directories under $RUNNER_WORKDIR - Install iris in editable mode (pip install -e .) - Add IntelliKit Python packages (linex, metrix) - Clone IntelliKit repo for MCP servers and install agent skills - Install uv for MCP server dependency management - Reduce timeout from 600 to 59 minutes Made-with: Cursor
mawad-amd
reviewed
Mar 5, 2026
revert timeout
mawad-amd
reviewed
Mar 5, 2026
mawad-amd
reviewed
Mar 5, 2026
- Updated pip install commands to use --no-cache-dir for all package installations, improving consistency and reducing potential cache-related issues. - Added PYTHONPATH environment variable to ensure proper package discovery in the virtual environment. - Cleaned up unnecessary cache directory creation and related comments.
Co-authored-by: Muhammad Awad <112003944+mawad-amd@users.noreply.github.com>
mawad-amd
approved these changes
Mar 23, 2026
mawad-amd
left a comment
Collaborator
There was a problem hiding this comment.
Looks good. Thanks Jose!
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the GitHub Actions workflow used to prepare a Copilot task environment on a containerized runner, shifting to a base /opt/venv Python and adding IntelliKit tooling and agent-skill installation steps.
Changes:
- Create a task venv from
/opt/venvusing--system-site-packages, then install the repo in editable mode. - Install multiple IntelliKit subpackages, install
uv, clone IntelliKit, and install agent skills via a remote script. - Adjust environment setup (
GITHUB_PATH,PYTHONPATH) for subsequent steps.
Comment on lines
+33
to
+40
| - name: Install IntelliKit Python packages | ||
| run: | | ||
| source "$GITHUB_WORKSPACE/.venv/bin/activate" | ||
| pip install --no-cache-dir "git+https://github.com/AMDResearch/intellikit.git#subdirectory=accordo" | ||
| pip install --no-cache-dir "git+https://github.com/AMDResearch/intellikit.git#subdirectory=linex" | ||
| pip install --no-cache-dir "git+https://github.com/AMDResearch/intellikit.git#subdirectory=metrix" | ||
| pip install --no-cache-dir "git+https://github.com/AMDResearch/intellikit.git#subdirectory=nexus" | ||
| pip install --no-cache-dir "git+https://github.com/AMDResearch/intellikit.git#subdirectory=rocm_mcp" |
There was a problem hiding this comment.
Installing multiple subdirectories via separate git+https URLs will typically re-clone/fetch the repo repeatedly, slowing the job and increasing flakiness due to network variability. A more efficient approach is to git clone once (you already do later) and then install the needed subprojects from local paths, or otherwise restructure to avoid repeated network fetches.
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.
Made-with: Cursor
Motivation
Technical Details
Test Plan
Test Result
Submission Checklist