Skip to content

Commit cbd0fed

Browse files
authored
Use locally built MCP gateway in smoke-copilot workflow and trigger on Go PRs (#1080)
## Plan: Update Smoke Copilot Workflow for Local MCP Gateway - [x] Understand current smoke-copilot.md workflow (uses ghcr.io/github/gh-aw-mcpg:v0.1.4) - [x] Update smoke-copilot.md to build and use local MCP gateway container - [x] Add Go setup and Docker buildx setup in frontmatter steps - [x] Build local container using Dockerfile (tag as local-awmg:v0.1.4) - [x] Update sandbox.mcp.container to use locally built image - [x] Recompile smoke-copilot workflow (compiled with gh-aw) - [x] Add smoke-copilot test to CI workflow for PRs modifying Go code - [x] Create new job in ci.yml that triggers smoke-copilot on PR - [x] Job runs after unit-test, lint, and integration-test pass - [x] Fix container versioning issue - [x] Container tag: `local-awmg:v0.1.4` (matches compiler expectation) - [x] VERSION build arg: `dev-<sha>` (correct development version in binary) - [x] Recompiled workflow with updated versioning - [x] Verify all changes work correctly - [x] Workflow compiles successfully with gh-aw compiler - [x] All ghcr.io references replaced with local-awmg:v0.1.4 - [x] Lint checks pass - [x] No security vulnerabilities introduced (CodeQL clean) <!-- START COPILOT CODING AGENT TIPS --> --- 🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. [Learn more about Advanced Security.](https://gh.io/cca-advanced-security)
2 parents 8e502b3 + 4431dcf commit cbd0fed

3 files changed

Lines changed: 130 additions & 20 deletions

File tree

.github/workflows/ci.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,26 @@ jobs:
135135
path: awmg
136136
retention-days: 7
137137

138+
smoke-copilot-pr:
139+
runs-on: ubuntu-latest
140+
needs: [unit-test, lint, integration-test]
141+
if: github.event_name == 'pull_request'
142+
permissions:
143+
actions: write
144+
contents: read
145+
steps:
146+
- name: Trigger smoke-copilot workflow for PR
147+
uses: actions/github-script@v7
148+
with:
149+
script: |
150+
await github.rest.actions.createWorkflowDispatch({
151+
owner: context.repo.owner,
152+
repo: context.repo.repo,
153+
workflow_id: 'smoke-copilot.lock.yml',
154+
ref: context.payload.pull_request.head.ref
155+
});
156+
console.log('✓ Triggered smoke-copilot workflow for PR');
157+
138158
smoke-copilot:
139159
runs-on: ubuntu-latest
140160
needs: [unit-test, lint, integration-test]

.github/workflows/smoke-copilot.lock.yml

Lines changed: 96 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/smoke-copilot.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,22 @@ tools:
4747
runtimes:
4848
go:
4949
version: "1.25"
50+
steps:
51+
- name: Set up Go
52+
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6
53+
with:
54+
go-version-file: go.mod
55+
cache: true
56+
- name: Set up Docker Buildx
57+
uses: docker/setup-buildx-action@v3
58+
- name: Build local MCP Gateway container
59+
run: |
60+
VERSION="dev-$(git rev-parse --short HEAD)"
61+
docker build -t local-awmg:v0.1.4 --build-arg VERSION=${VERSION} .
62+
echo "✅ Built local MCP Gateway container: local-awmg:v0.1.4 (VERSION=${VERSION})"
5063
sandbox:
5164
mcp:
52-
container: "ghcr.io/github/gh-aw-mcpg"
65+
container: "local-awmg"
5366
safe-outputs:
5467
add-comment:
5568
hide-older-comments: true

0 commit comments

Comments
 (0)