From 60dc2bd4742b61fc03ece02f211be5ded779c874 Mon Sep 17 00:00:00 2001 From: Jose Santos Date: Thu, 5 Mar 2026 15:31:49 -0600 Subject: [PATCH 1/2] Update Copilot setup workflow for containerized runner - 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/workflows/copilot-setup-steps.yml | 42 ++++++++++++++++++++--- 1 file changed, 38 insertions(+), 4 deletions(-) diff --git a/.github/workflows/copilot-setup-steps.yml b/.github/workflows/copilot-setup-steps.yml index 82d38336..369655eb 100644 --- a/.github/workflows/copilot-setup-steps.yml +++ b/.github/workflows/copilot-setup-steps.yml @@ -16,7 +16,7 @@ jobs: contents: read pull-requests: read - timeout-minutes: 600 + timeout-minutes: 59 steps: - name: Checkout repository @@ -24,13 +24,47 @@ jobs: - name: Create task venv for Copilot run: | - python3 -m venv $GITHUB_WORKSPACE/.venv - source $GITHUB_WORKSPACE/.venv/bin/activate + cd "$GITHUB_WORKSPACE" + mkdir -p "${RUNNER_WORKDIR}/.home" "${RUNNER_WORKDIR}/.pip-cache" "${RUNNER_WORKDIR}/.tmp" "${RUNNER_WORKDIR}/.uv-cache" "${RUNNER_WORKDIR}/.cache" + echo "UV_CACHE_DIR=${RUNNER_WORKDIR}/.uv-cache" >> "$GITHUB_ENV" + /opt/venv/bin/python -m venv --system-site-packages .venv + OPT_SITE=$(/opt/venv/bin/python -c "import site; print(site.getsitepackages()[0])") + VENV_PY_VER=$(/opt/venv/bin/python -c 'import sys; print(f"{sys.version_info.major}.{sys.version_info.minor}")') + VENV_SITE=".venv/lib/python${VENV_PY_VER}/site-packages" + echo "import site; site.addsitedir('$OPT_SITE')" > "$VENV_SITE/opt-venv.pth" + source .venv/bin/activate python -m pip install --upgrade pip + python -m pip install -e . --cache-dir "${RUNNER_WORKDIR}/.pip-cache" + + - name: Install IntelliKit Python packages + run: | + source "$GITHUB_WORKSPACE/.venv/bin/activate" + # accordo and nexus require kerneldb which needs libdwarf-dev; skipped until added to container + # pip install --cache-dir "${RUNNER_WORKDIR}/.pip-cache" "git+https://github.com/AMDResearch/intellikit.git#subdirectory=accordo" + # pip install --cache-dir "${RUNNER_WORKDIR}/.pip-cache" "git+https://github.com/AMDResearch/intellikit.git#subdirectory=nexus" + pip install --cache-dir "${RUNNER_WORKDIR}/.pip-cache" "git+https://github.com/AMDResearch/intellikit.git#subdirectory=linex" + pip install --cache-dir "${RUNNER_WORKDIR}/.pip-cache" "git+https://github.com/AMDResearch/intellikit.git#subdirectory=metrix" + + - name: Install uv for MCP servers + run: | + source "$GITHUB_WORKSPACE/.venv/bin/activate" + pip install --cache-dir "${RUNNER_WORKDIR}/.pip-cache" uv + + - name: Clone IntelliKit for MCP servers + run: | + git clone --depth 1 https://github.com/AMDResearch/intellikit.git "$GITHUB_WORKSPACE/.intellikit" + + - name: Install IntelliKit agent skills + run: | + cd "$GITHUB_WORKSPACE" + mkdir -p .github/agents/skills + curl -sSL https://raw.githubusercontent.com/AMDResearch/intellikit/main/install/skills/install.sh | \ + bash -s -- --target agents --base-url https://raw.githubusercontent.com/AMDResearch/intellikit/main + cp -r .agents/skills/* .github/agents/skills/ 2>/dev/null || true - name: Make venv default for subsequent steps run: | - echo "$GITHUB_WORKSPACE/.venv/bin" >> $GITHUB_PATH + echo "$GITHUB_WORKSPACE/.venv/bin" >> "$GITHUB_PATH" - name: Verify ROCm and GPU visibility run: | From d0edae47be8c40be1e6d249ccdad9db68ae4b13a Mon Sep 17 00:00:00 2001 From: JoseSantosAMD <87447437+JoseSantosAMD@users.noreply.github.com> Date: Thu, 5 Mar 2026 16:41:42 -0600 Subject: [PATCH 2/2] Update copilot-setup-steps.yml revert timeout --- .github/workflows/copilot-setup-steps.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/copilot-setup-steps.yml b/.github/workflows/copilot-setup-steps.yml index 369655eb..3ae45f2c 100644 --- a/.github/workflows/copilot-setup-steps.yml +++ b/.github/workflows/copilot-setup-steps.yml @@ -16,7 +16,7 @@ jobs: contents: read pull-requests: read - timeout-minutes: 59 + timeout-minutes: 600 steps: - name: Checkout repository