Skip to content

Update Copilot setup workflow for containerized runner - #425

Merged
JoseSantosAMD merged 6 commits into
mainfrom
JoseSantosAMD/fix_venv
Mar 25, 2026
Merged

Update Copilot setup workflow for containerized runner#425
JoseSantosAMD merged 6 commits into
mainfrom
JoseSantosAMD/fix_venv

Conversation

@JoseSantosAMD

Copy link
Copy Markdown
Collaborator
  • 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

Motivation

Technical Details

Test Plan

Test Result

Submission Checklist

- 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
@github-actions github-actions Bot added in-progress We are working on it iris Iris project issue labels Mar 5, 2026
Comment thread .github/workflows/copilot-setup-steps.yml Outdated
Comment thread .github/workflows/copilot-setup-steps.yml
Comment thread .github/workflows/copilot-setup-steps.yml Outdated
Jose Santos and others added 3 commits March 16, 2026 13:20
- 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
mawad-amd marked this pull request as ready for review March 23, 2026 20:29
@mawad-amd
mawad-amd requested a review from neoblizz as a code owner March 23, 2026 20:29
Copilot AI review requested due to automatic review settings March 23, 2026 20:29
@mawad-amd
mawad-amd requested a review from BKP as a code owner March 23, 2026 20:29

@mawad-amd mawad-amd left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good. Thanks Jose!

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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/venv using --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 thread .github/workflows/copilot-setup-steps.yml
Comment thread .github/workflows/copilot-setup-steps.yml
Comment thread .github/workflows/copilot-setup-steps.yml
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"

Copilot AI Mar 23, 2026

Copy link

Choose a reason for hiding this comment

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

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.

Copilot uses AI. Check for mistakes.
Comment thread .github/workflows/copilot-setup-steps.yml
Comment thread .github/workflows/copilot-setup-steps.yml
Comment thread .github/workflows/copilot-setup-steps.yml
Comment thread .github/workflows/copilot-setup-steps.yml
@JoseSantosAMD
JoseSantosAMD merged commit 1f4d052 into main Mar 25, 2026
28 of 31 checks passed
@JoseSantosAMD
JoseSantosAMD deleted the JoseSantosAMD/fix_venv branch March 25, 2026 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in-progress We are working on it iris Iris project issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants