forked from apache/skywalking
-
Notifications
You must be signed in to change notification settings - Fork 0
576 lines (549 loc) · 20.3 KB
/
skywalking.yaml
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: CI
on:
pull_request:
paths-ignore:
- "*.md"
- "*.txt"
- "skywalking-ui"
- ".asf.yaml"
- ".dlc.yaml"
- ".licenserc.yaml"
- "docs/menu.yml"
- ".github/workflows/codeql.yaml"
- "dist-material/release-docs"
- "*/component-libraries.yml"
schedule:
- cron: '0 18 * * *' # TimeZone: UTC 0
concurrency:
group: skywalking-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
SW_AGENT_JDK_VERSION: 8
MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120
jobs:
license-header:
if: (github.event_name == 'schedule' && github.repository == 'apache/skywalking') || (github.event_name != 'schedule')
name: License header
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Check license header
uses: apache/skywalking-eyes@831233e32ab3a2fbc28fe934f4983c4edae6e722
code-style:
if: (github.event_name == 'schedule' && github.repository == 'apache/skywalking') || (github.event_name != 'schedule')
name: Code style
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Check code style
run: ./mvnw clean checkstyle:check
sanity-check:
if: (github.event_name == 'schedule' && github.repository == 'apache/skywalking') || (github.event_name != 'schedule')
name: Sanity check results
needs: [ license-header, code-style ]
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Check results
run: |
if [[ ${{ needs.license-header.result }} != 'success' ]]; then
exit -1
fi
if [[ ${{ needs.code-style.result }} != 'success' ]]; then
exit -1
fi
dist-tar:
if: (github.event_name == 'schedule' && github.repository == 'apache/skywalking') || (github.event_name != 'schedule')
name: Build dist tar
needs: [ sanity-check ]
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Cache maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-maven-
- name: Build distribution tar
run: |
./mvnw clean install -B -q \
-Dmaven.test.skip \
-Dmaven.javadoc.skip \
-Dcheckstyle.skip
- uses: actions/upload-artifact@v2
name: Upload distribution tar
with:
name: dist
path: dist
docker:
if: (github.event_name == 'schedule' && github.repository == 'apache/skywalking') || (github.event_name != 'schedule')
name: Docker images
needs: [ dist-tar ]
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
matrix:
java-version: [ 8, 11, 17 ]
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions/download-artifact@v2
name: Download distribution tar
with:
name: dist
path: dist
- name: Set up Java
uses: actions/setup-java@v2
with:
distribution: temurin
java-version: ${{ matrix.java-version }}
- name: Build and save docker images
env:
SW_OAP_BASE_IMAGE: eclipse-temurin:${{ matrix.java-version }}-jre
run: |
make docker.all || make docker.all
docker save -o docker-images-skywalking-oap.tar skywalking/oap:latest
docker save -o docker-images-skywalking-ui.tar skywalking/ui:latest
- name: Upload docker images
uses: actions/upload-artifact@v2
with:
name: docker-images-${{ matrix.java-version }}
path: docker-images-skywalking-*.tar
dependency-license:
if: (github.event_name == 'schedule' && github.repository == 'apache/skywalking') || (github.event_name != 'schedule')
name: Dependency licenses
needs: [ dist-tar ]
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Cache maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-maven-
- uses: actions/download-artifact@v2
with:
name: dist
path: dist
- name: Check Dependencies Licenses
run: tools/dependencies/check-LICENSE.sh
unit-test:
if: (github.event_name == 'schedule' && github.repository == 'apache/skywalking') || (github.event_name != 'schedule')
name: Unit test
needs: [ sanity-check ]
runs-on: ${{ matrix.os }}-latest
timeout-minutes: 30
strategy:
matrix:
os: [ ubuntu, macos, windows ]
java-version: [ 8 ]
include:
- os: ubuntu
java-version: 11
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Cache maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-maven-
- uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java-version }}
distribution: adopt
- name: Unit test
run: ./mvnw clean verify -q -B -D"checkstyle.skip" || ./mvnw clean verify -q -B -D"checkstyle.skip"
integration-test:
if: (github.event_name == 'schedule' && github.repository == 'apache/skywalking') || (github.event_name != 'schedule')
name: Integration test
needs: [ sanity-check ]
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
matrix:
java-version: [ 8, 11 ]
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Cache maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-maven-
- uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java-version }}
distribution: adopt
- name: Integration test
run: |
./mvnw clean verify -q -B -Dcheckstyle.skip -DskipUTs -DskipITs=false || \
./mvnw clean verify -q -B -Dcheckstyle.skip -DskipUTs -DskipITs=false
e2e-test:
if: (github.event_name == 'schedule' && github.repository == 'apache/skywalking') || (github.event_name != 'schedule')
name: E2E test
needs: [ docker ]
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
test:
- name: Cluster ZK/ES
config: test/e2e-v2/cases/cluster/zk/es/e2e.yaml
- name: Agent NodeJS Backend
config: test/e2e-v2/cases/nodejs/e2e.yaml
- name: Agent Golang
config: test/e2e-v2/cases/go/e2e.yaml
- name: Agent NodeJS Frontend
config: test/e2e-v2/cases/browser/e2e.yaml
- name: Agent PHP
config: test/e2e-v2/cases/php/e2e.yaml
- name: Agent Python
config: test/e2e-v2/cases/python/e2e.yaml
- name: Agent Lua
config: test/e2e-v2/cases/lua/e2e.yaml
- name: Storage H2
config: test/e2e-v2/cases/storage/h2/e2e.yaml
- name: Storage MySQL
config: test/e2e-v2/cases/storage/mysql/e2e.yaml
- name: Storage TiDB
config: test/e2e-v2/cases/storage/tidb/e2e.yaml
- name: Storage InfluxDB
config: test/e2e-v2/cases/storage/influxdb/e2e.yaml
- name: Storage PostgreSQL
config: test/e2e-v2/cases/storage/postgres/e2e.yaml
- name: Storage IoTDB
config: test/e2e-v2/cases/storage/iotdb/e2e.yaml
- name: Storage ES 6.3.2
config: test/e2e-v2/cases/storage/es/e2e.yaml
env: ES_VERSION=6.3.2
- name: Storage ES 7.0.0
config: test/e2e-v2/cases/storage/es/e2e.yaml
env: ES_VERSION=7.0.0
- name: Storage ES 7.8.0
config: test/e2e-v2/cases/storage/es/e2e.yaml
env: ES_VERSION=7.8.0
- name: Storage ES 7.10.1
config: test/e2e-v2/cases/storage/es/e2e.yaml
env: ES_VERSION=7.10.1
- name: Storage ES 7.14.0
config: test/e2e-v2/cases/storage/es/e2e.yaml
env: ES_VERSION=7.14.0
- name: Storage ES 7.15.0
config: test/e2e-v2/cases/storage/es/e2e.yaml
env: ES_VERSION=7.15.0
- name: Storage ES 8.0.0
config: test/e2e-v2/cases/storage/es/e2e.yaml
env: ES_VERSION=8.0.0
- name: Storage OpenSearch 1.1.0
config: test/e2e-v2/cases/storage/opensearch/e2e.yaml
env: OPENSEARCH_VERSION=1.1.0
- name: Storage OpenSearch 1.2.0
config: test/e2e-v2/cases/storage/opensearch/e2e.yaml
env: OPENSEARCH_VERSION=1.2.0
- name: Alarm H2
config: test/e2e-v2/cases/alarm/h2/e2e.yaml
- name: Alarm ES
config: test/e2e-v2/cases/alarm/es/e2e.yaml
- name: Alarm MySQL
config: test/e2e-v2/cases/alarm/mysql/e2e.yaml
- name: Alarm InfluxDB
config: test/e2e-v2/cases/alarm/influxdb/e2e.yaml
- name: Alarm PostgreSQL
config: test/e2e-v2/cases/alarm/postgres/e2e.yaml
- name: Alarm IoTDB
config: test/e2e-v2/cases/alarm/iotdb/e2e.yaml
- name: TTL TiDB
config: test/e2e-v2/cases/ttl/tidb/e2e.yaml
- name: TTL InfluxDB
config: test/e2e-v2/cases/ttl/influxdb/e2e.yaml
- name: TTL PostgreSQL
config: test/e2e-v2/cases/ttl/postgresql/e2e.yaml
- name: TTL IotDB
config: test/e2e-v2/cases/ttl/iotdb/e2e.yaml
- name: TTL ES 6.3.2
config: test/e2e-v2/cases/ttl/es/e2e.yaml
env: ES_VERSION=6.3.2
- name: TTL ES 7.15.0
config: test/e2e-v2/cases/ttl/es/e2e.yaml
env: ES_VERSION=7.15.0
- name: TTL ES 8.0.0
config: test/e2e-v2/cases/ttl/es/e2e.yaml
env: ES_VERSION=8.0.0
- name: Event H2
config: test/e2e-v2/cases/event/h2/e2e.yaml
- name: Event ES
config: test/e2e-v2/cases/event/es/e2e.yaml
- name: Event MySQL
config: test/e2e-v2/cases/event/mysql/e2e.yaml
- name: Event InfluxDB
config: test/e2e-v2/cases/event/influxdb/e2e.yaml
- name: Event IoTDB
config: test/e2e-v2/cases/event/iotdb/e2e.yaml
- name: Log H2
config: test/e2e-v2/cases/log/h2/e2e.yaml
- name: Log MySQL
config: test/e2e-v2/cases/log/mysql/e2e.yaml
- name: Log InfluxDB
config: test/e2e-v2/cases/log/influxdb/e2e.yaml
- name: Log PostgreSQL
config: test/e2e-v2/cases/log/postgres/e2e.yaml
- name: Log IoTDB
config: test/e2e-v2/cases/log/iotdb/e2e.yaml
- name: Log ES 6.3.2
config: test/e2e-v2/cases/log/es/e2e.yaml
env: ES_VERSION=6.3.2
- name: Log ES 7.0.0
config: test/e2e-v2/cases/log/es/e2e.yaml
env: ES_VERSION=7.0.0
- name: Log ES 7.8.0
config: test/e2e-v2/cases/log/es/e2e.yaml
env: ES_VERSION=7.8.0
- name: Log ES 7.10.1
config: test/e2e-v2/cases/log/es/e2e.yaml
env: ES_VERSION=7.10.1
- name: Log ES 7.14.0
config: test/e2e-v2/cases/log/es/e2e.yaml
env: ES_VERSION=7.14.0
- name: Log ES 7.15.0
config: test/e2e-v2/cases/log/es/e2e.yaml
env: ES_VERSION=7.15.0
- name: Log ES 8.0.0
config: test/e2e-v2/cases/log/es/e2e.yaml
env: ES_VERSION=8.0.0
- name: Log FluentBit ES 6.3.2
config: test/e2e-v2/cases/log/fluent-bit/e2e.yaml
env: ES_VERSION=6.3.2
- name: Log FluentBit ES 7.0.0
config: test/e2e-v2/cases/log/fluent-bit/e2e.yaml
env: ES_VERSION=7.0.0
- name: Log FluentBit ES 7.8.0
config: test/e2e-v2/cases/log/fluent-bit/e2e.yaml
env: ES_VERSION=7.8.0
- name: Log FluentBit ES 7.10.1
config: test/e2e-v2/cases/log/fluent-bit/e2e.yaml
env: ES_VERSION=7.10.1
- name: Log FluentBit ES 7.14.0
config: test/e2e-v2/cases/log/fluent-bit/e2e.yaml
env: ES_VERSION=7.14.0
- name: Log FluentBit ES 7.15.0
config: test/e2e-v2/cases/log/fluent-bit/e2e.yaml
env: ES_VERSION=7.15.0
- name: Profiling H2
config: test/e2e-v2/cases/profile/h2/e2e.yaml
- name: Profiling ES
config: test/e2e-v2/cases/profile/es/e2e.yaml
- name: Profiling MySQL
config: test/e2e-v2/cases/profile/mysql/e2e.yaml
- name: Profiling InfluxDB
config: test/e2e-v2/cases/profile/influxdb/e2e.yaml
- name: Profiling IoTDB
config: test/e2e-v2/cases/profile/iotdb/e2e.yaml
- name: Kafka Basic
config: test/e2e-v2/cases/kafka/simple-so11y/e2e.yaml
- name: Kafka Profiling
config: test/e2e-v2/cases/kafka/profile/e2e.yaml
- name: Kafka Meter
config: test/e2e-v2/cases/kafka/meter/e2e.yaml
- name: Kafka Log
config: test/e2e-v2/cases/kafka/log/e2e.yaml
- name: Istio Metrics Service 1.8.2
config: test/e2e-v2/cases/istio/metrics/e2e.yaml
env: ISTIO_VERSION=1.8.2
- name: Istio Metrics Service 1.9.1
config: test/e2e-v2/cases/istio/metrics/e2e.yaml
env: ISTIO_VERSION=1.9.1
- name: Istio Metrics Service 1.10.3
config: test/e2e-v2/cases/istio/metrics/e2e.yaml
env: ISTIO_VERSION=1.10.3
- name: Istio Metrics Service 1.11.4
config: test/e2e-v2/cases/istio/metrics/e2e.yaml
env: ISTIO_VERSION=1.11.4
- name: Istio Metrics Service 1.12.0
config: test/e2e-v2/cases/istio/metrics/e2e.yaml
env: ISTIO_VERSION=1.12.0
- name: Istio Metrics Service 1.13.1
config: test/e2e-v2/cases/istio/metrics/e2e.yaml
env: ISTIO_VERSION=1.13.1
- name: Satellite
config: test/e2e-v2/cases/satellite/native-protocols/e2e.yaml
- name: Auth
config: test/e2e-v2/cases/simple/auth/e2e.yaml
- name: SSL
config: test/e2e-v2/cases/simple/ssl/e2e.yaml
- name: mTLS
config: test/e2e-v2/cases/simple/mtls/e2e.yaml
- name: Virtual Gateway
config: test/e2e-v2/cases/gateway/e2e.yaml
- name: Meter
config: test/e2e-v2/cases/meter/e2e.yaml
- name: VM Zabbix
config: test/e2e-v2/cases/vm/zabbix/e2e.yaml
- name: VM Prometheus
config: test/e2e-v2/cases/vm/prometheus-node-exporter/e2e.yaml
- name: So11y
config: test/e2e-v2/cases/so11y/e2e.yaml
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions/download-artifact@v2
name: Download docker images
with:
name: docker-images-8
path: docker-images
- name: Load docker images
run: find docker-images -name "*.tar" -exec docker load -i {} \;
- name: Prepare test services
shell: bash
run: ./mvnw -B -f test/e2e-v2/java-test-service/pom.xml clean package
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: '1.16'
- name: Set env var
run: |
echo "${{ matrix.test.env }}" >> $GITHUB_ENV
- name: ${{ matrix.test.name }}
uses: apache/skywalking-infra-e2e@main
with:
e2e-file: $GITHUB_WORKSPACE/${{ matrix.test.config }}
e2e-test-istio:
if: (github.event_name == 'schedule' && github.repository == 'apache/skywalking') || (github.event_name != 'schedule')
name: E2E test
needs: [ docker ]
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
analyzer: [ k8s-mesh, mx-mesh ]
istio_version: [ 1.7.1, 1.8.2, 1.9.1, 1.10.3, 1.11.4, 1.12.0, 1.13.1 ]
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions/download-artifact@v2
name: Download docker images
with:
name: docker-images-8
path: docker-images
- name: Load docker images
run: find docker-images -name "*.tar" -exec docker load -i {} \;
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: '1.16'
- name: ${{ matrix.test.name }}
uses: apache/skywalking-infra-e2e@main
env:
ISTIO_VERSION: ${{ matrix.istio_version }}
ALS_ANALYZER: ${{ matrix.analyzer }}
with:
e2e-file: $GITHUB_WORKSPACE/test/e2e-v2/cases/istio/als/e2e.yaml
e2e-test-java-versions:
if: (github.event_name == 'schedule' && github.repository == 'apache/skywalking') || (github.event_name != 'schedule')
name: E2E test
needs: [ docker ]
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
java-version: [ 8, 11, 17 ]
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions/download-artifact@v2
name: Download docker images
with:
name: docker-images-${{ matrix.java-version }}
path: docker-images
- name: Load docker images
run: find docker-images -name "*.tar" -exec docker load -i {} \;
- uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java-version }}
distribution: adopt
- name: Prepare test services
shell: bash
run: ./mvnw -B -f test/e2e-v2/java-test-service/pom.xml clean package
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: '1.16'
- name: Java version ${{ matrix.java-version }}
uses: apache/skywalking-infra-e2e@main
env:
SW_AGENT_JDK_VERSION: ${{ matrix.java-version }}
with:
e2e-file: $GITHUB_WORKSPACE/test/e2e-v2/cases/simple/jdk/e2e.yaml
required:
if: always()
name: Required
needs:
- dependency-license
- unit-test
- integration-test
- e2e-test
- e2e-test-istio
- e2e-test-java-versions
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Merge Requirement
run: |
if [[ ${{ needs.dependency-license.result }} != 'success' ]]; then
exit -1
fi
if [[ ${{ needs.unit-test.result }} != 'success' ]]; then
exit -1
fi
if [[ ${{ needs.integration-test.result }} != 'success' ]]; then
exit -1
fi
if [[ ${{ needs.e2e-test.result }} != 'success' ]]; then
exit -1
fi
if [[ ${{ needs.e2e-test-istio.result }} != 'success' ]]; then
exit -1
fi
if [[ ${{ needs.e2e-test-java-versions.result }} != 'success' ]]; then
exit -1
fi