Skip to content

Commit cb70895

Browse files
authored
Separate checkout dirs for testing Fleet in Rancher (#4927)
* Clone rancher/rancher from outside rancher/fleet clone This may prevent errors about mismatched main modules when running Rancher's provisioning tests. * Wait for Traefik readiness when registering downstream cluster This prevents registration errors.
1 parent 24f71f4 commit cb70895

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/e2e-test-fleet-in-rancher.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,22 +52,25 @@ jobs:
5252
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5353
with:
5454
fetch-depth: 0
55+
path: fleet
5556

5657
-
5758
name: Install Go
5859
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
5960
with:
60-
go-version-file: 'go.mod'
61+
go-version-file: "fleet/go.mod"
6162
check-latest: true
6263

6364
-
6465
name: Install Ginkgo CLI
65-
run: go install github.com/onsi/ginkgo/v2/ginkgo
66+
run: |
67+
cd fleet
68+
go install github.com/onsi/ginkgo/v2/ginkgo
6669
6770
-
6871
name: Determine cache key
6972
id: cache-key
70-
run: ./.github/scripts/determine-cache-key.sh
73+
run: "./fleet/.github/scripts/determine-cache-key.sh"
7174
-
7275
name: Cache crust-gather CLI
7376
id: cache-crust
@@ -241,11 +244,13 @@ jobs:
241244
-
242245
name: Register Rancher's downstream clusters
243246
run: |
247+
until kubectl get service -n kube-system traefik -o jsonpath='{.status.loadBalancer.ingress[0].ip}'; do sleep 3; done
244248
ip=$(kubectl get service -n kube-system traefik -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
245249
246250
export PATH=~/.local/bin:$PATH
247251
export public_hostname=$ip.sslip.io
248252
253+
cd fleet
249254
./.github/scripts/wait-for-loadbalancer.sh
250255
./.github/scripts/register-downstream-clusters.sh
251256

0 commit comments

Comments
 (0)