forked from vectordotdev/vector
-
Notifications
You must be signed in to change notification settings - Fork 0
133 lines (127 loc) · 3.67 KB
/
integration-test.yml
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
name: Integration Test Suite
on:
workflow_dispatch:
push:
branches:
- master
paths:
- ".github/workflows/integration-test.yml"
- ".cargo/**"
- "benches/**"
- "lib/**"
- "proto/**"
- "scripts/**"
- "skaffold/**"
- "src/**"
- "tests/**"
- "build.rs"
- "Cargo.lock"
- "Cargo.toml"
- "Makefile"
- "rust-toolchain"
pull_request:
types: [opened, synchronize, reopened, labeled]
concurrency:
# For pull requests, cancel running workflows, for master, run all
#
# `github.event.number` exists for pull requests, otherwise fall back to SHA
# for master
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
cancel-in-progress: true
env:
AWS_ACCESS_KEY_ID: "dummy"
AWS_SECRET_ACCESS_KEY: "dummy"
CONTAINER_TOOL: "docker"
DD_ENV: "ci"
DD_API_KEY: ${{ secrets.DD_API_KEY }}
RUST_BACKTRACE: full
RUST_TEST_THREADS: 1
TEST_LOG: vector=debug
VERBOSE: true
CI: true
PROFILE: debug
jobs:
test-integration:
name: Integration - Linux, ${{ matrix.test }}
runs-on: [linux, test-runner]
if: |
!github.event.pull_request
|| contains(github.event.pull_request.labels.*.name, 'ci-condition: integration tests enable')
strategy:
fail-fast: false
matrix:
include:
- test: 'amqp'
- test: 'apex'
- test: 'aws'
# Database container currently fails to start due to failing to validate the license
#- test: 'axiom'
- test: 'azure'
- test: 'clickhouse'
- test: 'datadog-agent'
- test: 'datadog-logs'
- test: 'datadog-metrics'
- test: 'datadog-traces'
- test: 'dnstap'
- test: 'docker-logs'
- test: 'elasticsearch'
- test: 'eventstoredb'
- test: 'fluent'
- test: 'gcp'
- test: 'humio'
- test: 'http-client'
- test: 'influxdb'
- test: 'kafka'
- test: 'logstash'
- test: 'loki'
- test: 'mongodb'
- test: 'nats'
- test: 'nginx'
- test: 'opentelemetry'
- test: 'postgres'
- test: 'prometheus'
- test: 'pulsar'
- test: 'redis'
- test: 'shutdown'
- test: 'splunk'
env:
SPLUNK_VERSION: 7.3.9
- test: 'splunk'
timeout-minutes: 20
steps:
- uses: actions/checkout@v3
- run: make ci-sweep
- run: sudo npm -g install @datadog/datadog-ci
- run: make test-integration-${{ matrix.test }}
env:
TEST_DATADOG_API_KEY: ${{ secrets.CI_TEST_DATADOG_API_KEY }}
SPLUNK_VERSION: ${{ matrix.env.SPLUNK_VERSION }}
- name: Upload test results
run: scripts/upload-test-results.sh
if: always()
- run: make test-integration-${{ matrix.test }}-cleanup
if: ${{ always() }}
env:
TEST_DATADOG_API_KEY: ${{ secrets.CI_TEST_DATADOG_API_KEY }}
SPLUNK_VERSION: ${{ matrix.env.SPLUNK_VERSION }}
test-integration-check:
name: test-integration-check
runs-on: ubuntu-20.04
needs:
- test-integration
steps:
- name: validate
run: echo "OK"
master-failure:
name: master-failure
if: failure() && github.ref == 'refs/heads/master'
needs:
- test-integration-check
runs-on: ubuntu-20.04
steps:
- name: Discord notification
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
uses: Ilshidur/[email protected]
with:
args: "Master integration tests failed: <https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}>"