Skip to content

Commit 0dd8810

Browse files
committed
Merge branch 'main' into add-buildargs-to-protocol-builds
2 parents f4f7c6c + 4d73318 commit 0dd8810

File tree

195 files changed

+5986
-2422
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

195 files changed

+5986
-2422
lines changed

.github/workflows/claude.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
with:
3333
fetch-depth: 1
3434

35-
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6
35+
- uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6
3636
with:
3737
go-version-file: 'go.mod'
3838

@@ -41,6 +41,6 @@ jobs:
4141

4242
- name: Run Claude Code
4343
id: claude
44-
uses: anthropics/claude-code-action@8a1c4371755898f67cd97006ba7c97702d5fc4bf # v1
44+
uses: anthropics/claude-code-action@6902c227aaa9536481b99d56f3014bbbad6c6da8 # v1
4545
with:
4646
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}

.github/workflows/e2e-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
1515

1616
- name: Set up Go
17-
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6
17+
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6
1818
with:
1919
go-version-file: 'go.mod'
2020
cache: true
@@ -60,7 +60,7 @@ jobs:
6060
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
6161

6262
- name: Set up Go
63-
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6
63+
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6
6464
with:
6565
go-version-file: 'go.mod'
6666
cache: true

.github/workflows/image-build-and-publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
2121

2222
- name: Set up Go
23-
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6
23+
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6
2424
with:
2525
go-version-file: go.mod
2626

@@ -150,7 +150,7 @@ jobs:
150150
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
151151

152152
- name: Set up Go
153-
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6
153+
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6
154154
with:
155155
go-version-file: go.mod
156156

@@ -260,7 +260,7 @@ jobs:
260260
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
261261

262262
- name: Set up Go
263-
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6
263+
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6
264264
with:
265265
go-version-file: go.mod
266266

@@ -359,7 +359,7 @@ jobs:
359359
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
360360

361361
- name: Set up Go
362-
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6
362+
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6
363363
with:
364364
go-version-file: go.mod
365365

.github/workflows/lint-helm-charts.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
with:
2121
python-version: 3.13
2222

23-
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6
23+
- uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6
2424
with:
2525
go-version-file: 'go.mod'
2626

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
1515

1616
- name: Set up Go
17-
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6
17+
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6
1818
with:
1919
go-version-file: 'go.mod'
2020
cache: true # Caches go modules

.github/workflows/operator-ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
1616

1717
- name: Set up Go
18-
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6
18+
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6
1919
with:
2020
go-version-file: 'go.mod'
2121
cache: true
@@ -36,7 +36,7 @@ jobs:
3636
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
3737

3838
- name: Set up Go
39-
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6
39+
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6
4040
with:
4141
go-version-file: 'go.mod'
4242
cache: true
@@ -57,7 +57,7 @@ jobs:
5757
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
5858

5959
- name: Set up Go
60-
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6
60+
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6
6161
with:
6262
go-version-file: 'go.mod'
6363
cache: true
@@ -78,7 +78,7 @@ jobs:
7878
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
7979

8080
- name: Set up Go
81-
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6
81+
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6
8282
with:
8383
go-version-file: 'go.mod'
8484
cache: true
@@ -111,7 +111,7 @@ jobs:
111111
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
112112

113113
- name: Set up Go
114-
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6
114+
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6
115115
with:
116116
go-version-file: 'go.mod'
117117
cache: true
@@ -167,7 +167,7 @@ jobs:
167167
uses: ko-build/setup-ko@d006021bd0c28d1ce33a07e7943d48b079944c8d # v0.9
168168

169169
- name: Set up Go
170-
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6
170+
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6
171171
with:
172172
go-version-file: 'go.mod'
173173
cache: true
@@ -203,5 +203,5 @@ jobs:
203203
chainsaw test --test-dir test/e2e/chainsaw/operator/multi-tenancy/test-scenarios --config .chainsaw.yaml
204204
chainsaw test --test-dir test/e2e/chainsaw/operator/multi-tenancy/cleanup --config .chainsaw.yaml
205205
chainsaw test --test-dir test/e2e/chainsaw/operator/single-tenancy/setup --config .chainsaw.yaml
206-
chainsaw test --test-dir test/e2e/chainsaw/operator/single-tenancy/test-scenarios --config .chainsaw.yaml
206+
chainsaw test --test-dir test/e2e/chainsaw/operator/single-tenancy/test-scenarios --parallel 10 --config .chainsaw.yaml
207207
chainsaw test --test-dir test/e2e/chainsaw/operator/single-tenancy/cleanup --config .chainsaw.yaml

.github/workflows/releaser.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,13 @@ jobs:
6666
fetch-depth: 0
6767

6868
- name: Setup Go
69-
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6
69+
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6
7070
with:
7171
go-version-file: 'go.mod'
7272
cache: true
7373

7474
- name: Install Syft
75-
uses: anchore/sbom-action/download-syft@8e94d75ddd33f69f691467e42275782e4bfefe84 # v0.20.9
75+
uses: anchore/sbom-action/download-syft@fbfd9c6c189226748411491745178e0c2017392d # v0.20.10
7676

7777
- name: Install Cosign
7878
uses: sigstore/cosign-installer@faadad0cce49287aee09b3a48701e75088a2c6ad # v4.0.0
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
name: E2E Tests Lifecycle
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
paths:
7+
- 'cmd/vmcp/**'
8+
- 'cmd/thv-operator/**'
9+
- 'pkg/**'
10+
- 'test/e2e/thv-operator/**'
11+
- '.github/workflows/test-e2e-lifecycle.yml'
12+
13+
permissions:
14+
contents: read
15+
16+
jobs:
17+
e2e-test-lifecycle:
18+
name: E2E Test Lifecycle
19+
runs-on: ubuntu-latest
20+
timeout-minutes: 20
21+
env:
22+
YARDSTICK_IMAGE: ghcr.io/stackloklabs/yardstick/yardstick-server:0.0.2
23+
defaults:
24+
run:
25+
shell: bash
26+
strategy:
27+
fail-fast: false
28+
matrix:
29+
version: [
30+
"kindest/node:v1.32.8",
31+
"kindest/node:v1.33.4",
32+
"kindest/node:v1.34.0"
33+
]
34+
35+
steps:
36+
- name: Checkout code
37+
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
38+
39+
- name: Set up Helm
40+
uses: azure/setup-helm@1a275c3b69536ee54be43f2070a358922e12c8d4 # v4.3.1
41+
42+
- name: Setup Ko
43+
uses: ko-build/setup-ko@d006021bd0c28d1ce33a07e7943d48b079944c8d # v0.9
44+
45+
- name: Set up Go
46+
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6
47+
with:
48+
go-version-file: 'go.mod'
49+
cache: true
50+
51+
- name: Install Task
52+
uses: arduino/setup-task@v2
53+
with:
54+
version: 3.44.1
55+
repo-token: ${{ secrets.GITHUB_TOKEN }}
56+
57+
- name: Create KIND Cluster with port mappings
58+
uses: helm/kind-action@92086f6be054225fa813e0a4b13787fc9088faab # [email protected]
59+
with:
60+
cluster_name: toolhive
61+
version: v0.29.0
62+
config: test/e2e/thv-operator/kind-config.yaml
63+
node_image: ${{ matrix.version }}
64+
65+
- name: Setup cluster
66+
run: |
67+
kind get kubeconfig --name toolhive > kconfig.yaml
68+
export KUBECONFIG=kconfig.yaml
69+
task operator-install-crds
70+
task operator-deploy-local
71+
72+
- name: Build and load test images
73+
run: |
74+
# Build and load vmcp image
75+
echo "Building vmcp image..."
76+
VMCP_IMAGE=$(KO_DOCKER_REPO=kind.local ko build --local -B ./cmd/vmcp | tail -n 1)
77+
echo "Loading vmcp image ${VMCP_IMAGE} into kind..."
78+
kind load docker-image --name toolhive ${VMCP_IMAGE}
79+
80+
# Pull and load test server image
81+
echo "Pulling and loading yardstick test server image..."
82+
docker pull ${{ env.YARDSTICK_IMAGE }}
83+
kind load docker-image --name toolhive ${{ env.YARDSTICK_IMAGE }}
84+
85+
- name: Run VirtualMCP Lifecycle E2E tests
86+
run: |
87+
export KUBECONFIG=kconfig.yaml
88+
task thv-operator-e2e-test-run
89+
90+
- name: Cleanup cluster
91+
if: always()
92+
run: |
93+
kind delete cluster --name toolhive

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
1515

1616
- name: Set up Go
17-
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6
17+
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6
1818
with:
1919
go-version-file: 'go.mod'
2020
cache: true # This caches go modules based on go.sum

.github/workflows/verify-docgen.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212

1313
steps:
1414
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
15-
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6
15+
- uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6
1616
with:
1717
go-version-file: go.mod
1818
- name: Install swag

0 commit comments

Comments
 (0)