-
Notifications
You must be signed in to change notification settings - Fork 1
161 lines (155 loc) · 5.81 KB
/
compat-drilldown.yaml
File metadata and controls
161 lines (155 loc) · 5.81 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
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
name: Logs Drilldown Compatibility
on:
push:
branches: [main]
paths-ignore:
- "CHANGELOG.md"
- "docs/observability.md"
- "charts/loki-vl-proxy/Chart.yaml"
- "README.md"
pull_request:
branches: [main]
workflow_dispatch:
schedule:
- cron: "45 3 * * 1"
jobs:
drilldown-matrix-source:
runs-on: ubuntu-latest
outputs:
drilldown_versions: ${{ steps.matrix.outputs.drilldown_versions }}
grafana_runtime_profiles: ${{ steps.matrix.outputs.grafana_runtime_profiles }}
grafana_pr_runtime_profiles: ${{ steps.matrix.outputs.grafana_pr_runtime_profiles }}
steps:
- uses: actions/checkout@v4
- id: matrix
run: |
{
echo "drilldown_versions=$(jq -c '.stack.logs_drilldown_contract.matrix_versions' test/e2e-compat/compatibility-matrix.json)"
echo "grafana_runtime_profiles=$(jq -c '.stack.grafana.runtime_profiles' test/e2e-compat/compatibility-matrix.json)"
echo "grafana_pr_runtime_profiles=$(jq -c '.stack.grafana.runtime_profiles | map(select((.run_on_pr // false) == true))' test/e2e-compat/compatibility-matrix.json)"
} >> "$GITHUB_OUTPUT"
drilldown-pinned-runtime:
if: github.event_name != 'schedule'
needs: drilldown-matrix-source
runs-on: ubuntu-latest
env:
LOKI_IMAGE: grafana/loki:3.7.1
VICTORIALOGS_IMAGE: victoriametrics/victoria-logs:v1.49.0
GRAFANA_IMAGE: grafana/grafana:12.4.2
PROXY_IMAGE: loki-vl-proxy:compat-drilldown
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.26.2"
cache: true
- uses: docker/setup-buildx-action@v3
- uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
tags: ${{ env.PROXY_IMAGE }}
load: true
cache-from: type=gha,scope=compat-proxy
cache-to: type=gha,mode=max,scope=compat-proxy
- name: Start pinned stack
working-directory: test/e2e-compat
run: |
docker compose up -d --no-build
../../scripts/ci/wait_e2e_stack.sh 180
- name: Run Drilldown compatibility score
run: go test -v -tags=e2e -run '^TestDrilldownTrackScore$' ./test/e2e-compat/
- name: Tear down pinned stack
if: always()
working-directory: test/e2e-compat
run: docker compose down -v
drilldown-previous-family-smoke:
if: github.event_name != 'schedule'
needs: drilldown-matrix-source
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include: ${{ fromJson(needs.drilldown-matrix-source.outputs.grafana_pr_runtime_profiles) }}
env:
LOKI_IMAGE: grafana/loki:3.7.1
VICTORIALOGS_IMAGE: victoriametrics/victoria-logs:v1.49.0
GRAFANA_IMAGE: grafana/grafana:${{ matrix.version }}
PROXY_IMAGE: loki-vl-proxy:compat-drilldown
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.26.2"
cache: true
- uses: docker/setup-buildx-action@v3
- uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
tags: ${{ env.PROXY_IMAGE }}
load: true
cache-from: type=gha,scope=compat-proxy
cache-to: type=gha,mode=max,scope=compat-proxy
- name: Start Grafana PR smoke stack (${{ matrix.profile }} / ${{ matrix.version }})
working-directory: test/e2e-compat
run: |
docker compose up -d --no-build
../../scripts/ci/wait_e2e_stack.sh 180
- name: Run Grafana PR smoke profile
run: go test -v -tags=e2e -run '${{ matrix.test_regex }}' ./test/e2e-compat/
- name: Tear down Grafana PR smoke stack
if: always()
working-directory: test/e2e-compat
run: docker compose down -v
drilldown-contract-matrix:
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
needs: drilldown-matrix-source
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
drilldown_version: ${{ fromJson(needs.drilldown-matrix-source.outputs.drilldown_versions) }}
steps:
- uses: actions/checkout@v4
- name: Check Drilldown app contracts
run: bash scripts/compat/check-drilldown-contracts.sh "${{ matrix.drilldown_version }}"
drilldown-grafana-runtime-matrix:
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
needs: drilldown-matrix-source
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include: ${{ fromJson(needs.drilldown-matrix-source.outputs.grafana_runtime_profiles) }}
env:
LOKI_IMAGE: grafana/loki:3.7.1
VICTORIALOGS_IMAGE: victoriametrics/victoria-logs:v1.49.0
GRAFANA_IMAGE: grafana/grafana:${{ matrix.version }}
PROXY_IMAGE: loki-vl-proxy:compat-drilldown
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.26.2"
cache: true
- uses: docker/setup-buildx-action@v3
- uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
tags: ${{ env.PROXY_IMAGE }}
load: true
cache-from: type=gha,scope=compat-proxy
cache-to: type=gha,mode=max,scope=compat-proxy
- name: Start Grafana runtime stack (${{ matrix.profile }})
working-directory: test/e2e-compat
run: |
docker compose up -d --no-build
../../scripts/ci/wait_e2e_stack.sh 180
- name: Run Grafana runtime compatibility profile
run: go test -v -tags=e2e -run '${{ matrix.test_regex }}' ./test/e2e-compat/
- name: Tear down Grafana runtime stack
if: always()
working-directory: test/e2e-compat
run: docker compose down -v