-
Notifications
You must be signed in to change notification settings - Fork 14
72 lines (60 loc) · 2.02 KB
/
pr-test-in-kind.yml
File metadata and controls
72 lines (60 loc) · 2.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# Tests a PR in a `kind` cluster
name: PR Test in kind
on:
push:
paths:
- ".github/workflows/pr-test-in-kind.yml"
- Makefile
- cmd/dual-pods-controller/**
- cmd/test-requester/**
- cmd/test-server/**
- pkg/**
- test/e2e/**
pull_request:
branches:
- main
jobs:
debug:
name: print relevant info
runs-on: ubuntu-latest
steps:
- run: |
echo "github.actor=${{ github.actor }}"
echo "github.action_ref=${{ github.action_ref }}"
echo "github.event_name=${{ github.event_name }}"
echo "github.head_ref=$GITHUB_HEAD_REF"
echo "github.ref=${{ github.ref }}"
echo "github.ref_name=${{ github.ref_name }}"
echo "github.repository=${{ github.repository }}"
echo "github.repository_owner=${{ github.repository_owner }}"
echo "github.triggering_actor=${{ github.triggering_actor }}"
echo "GITHUB_ACTION_REF=$GITHUB_ACTION_REF"
run-test:
runs-on: ubuntu-latest
steps:
- name: Install ko
uses: ko-build/setup-ko@d006021bd0c28d1ce33a07e7943d48b079944c8d
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0
- name: Doit
run: test/e2e/run.sh
- name: show all pods
if: always()
run: kubectl get pods -A -o wide
- name: show test pods
if: always()
run: kubectl get pods -L dual-pods.llm-d.ai/dual,dual-pods.llm-d.ai/sleeping
- name: show ReplicaSets
if: always()
run: kubectl get rs -A
- name: show dual-pods controller log
if: always()
run: kubectl logs deploy/fma-dual-pods-controller
- name: show GPU allocations
if: always()
run: kubectl get cm gpu-allocs -o yaml
- name: show YAML of test pods
if: always()
run: kubectl get pods -o yaml