6
6
7
7
env :
8
8
TELEPRESENCE_REGISTRY : ghcr.io/telepresenceio
9
- DTEST_REGISTRY : ghcr.io/telepresenceio
10
9
11
10
jobs :
12
11
build_images :
13
- if : github.event.label.name == 'ok to test'
12
+ if : github.event.label.name == 'ok to test' || github.event.label.name == 'compatibility test'
14
13
runs-on : ubuntu-latest
15
14
outputs :
16
15
telepresenceVersion : ${{ steps.version.outputs.version }}
17
16
telepresenceSemver : ${{ steps.version.outputs.semver }}
18
17
steps :
19
- - name : Remove label
18
+ - name : Remove ok to test label
19
+ if : github.event.label.name == 'ok to test'
20
20
uses :
buildsville/[email protected]
21
21
with :
22
22
token : ${{ secrets.GITHUB_TOKEN }}
23
23
labels : ok to test
24
24
type : remove
25
+ - name : Remove compatibility test label
26
+ if : github.event.label.name == 'compatibility test'
27
+ uses :
buildsville/[email protected]
28
+ with :
29
+ token : ${{ secrets.GITHUB_TOKEN }}
30
+ labels : compatibility test
31
+ type : remove
25
32
- uses : actions/checkout@v4
26
33
with :
27
34
fetch-depth : 0
55
62
run : docker logout
56
63
57
64
run_tests :
58
- if : github.event.label.name == 'ok to test'
65
+ if : github.event.label.name == 'ok to test' || github.event.label.name == 'compatibility test'
59
66
strategy :
60
67
fail-fast : false
61
68
matrix :
81
88
- name : Build client
82
89
run : make build
83
90
- name : Run integration tests
91
+ if : github.event.label.name == 'ok to test'
92
+ uses : nick-fields/retry/@v3
93
+ with :
94
+ max_attempts : 3
95
+ shell : bash
96
+ timeout_minutes : 90
97
+ command : |
98
+ set -ex
99
+ if [[ ${RUNNER_OS} == "Windows" ]]; then
100
+ export PATH="$PATH:/C/Program Files/SSHFS-Win/bin:$HOME/kubectl-plugins"
101
+ fi
102
+ make check-integration
103
+ - name : Compatibility with older manager and agent
104
+ if : github.event.label.name == 'compatibility test'
105
+ env :
106
+ DEV_MANAGER_VERSION : " 2.21.3"
107
+ uses : nick-fields/retry/@v3
108
+ with :
109
+ max_attempts : 3
110
+ shell : bash
111
+ timeout_minutes : 90
112
+ command : |
113
+ set -ex
114
+ if [[ ${RUNNER_OS} == "Windows" ]]; then
115
+ export PATH="$PATH:/C/Program Files/SSHFS-Win/bin:$HOME/kubectl-plugins"
116
+ fi
117
+ make check-integration
118
+ - name : Compatibility with older client
119
+ if : github.event.label.name == 'compatibility test'
84
120
env :
85
- SCOUT_DISABLE : " 1 "
121
+ DEV_CLIENT_VERSION : " 2.21.3 "
86
122
uses : nick-fields/retry/@v3
87
123
with :
88
124
max_attempts : 3
@@ -93,13 +129,13 @@ jobs:
93
129
if [[ ${RUNNER_OS} == "Windows" ]]; then
94
130
export PATH="$PATH:/C/Program Files/SSHFS-Win/bin:$HOME/kubectl-plugins"
95
131
fi
96
- DEV_TELEPRESENCE_VERSION=${TELEPRESENCE_VERSION} DTEST_KUBECONFIG="${HOME}/.kube/config" make check-integration
132
+ make check-integration
97
133
- uses : ./.github/actions/upload-logs
98
134
env :
99
135
LOG_SUFFIX : " ${{ runner.os }}-${{ runner.arch }}-${{ matrix.clusters.distribution }}-${{ matrix.clusters.version }}"
100
136
if : always()
101
137
purge_images :
102
- if : github.event.label.name == 'ok to test'
138
+ if : github.event.label.name == 'ok to test' || github.event.label.name == 'compatibility test'
103
139
runs-on : ubuntu-latest
104
140
permissions :
105
141
packages : write
0 commit comments