@@ -94,15 +94,24 @@ jobs:
94
94
path : |
95
95
/var/lib/docker/volumes/sentry-postgres/_data
96
96
/var/lib/docker/volumes/sentry-clickhouse/_data
97
+ /var/lib/docker/volumes/sentry-kafka/_data
97
98
98
99
- name : Install ${{ env.LATEST_TAG }}
99
- run : ./install.sh
100
+ env :
101
+ SKIP_DB_MIGRATIONS : ${{ steps.restore_cache.outputs.cache-hit == 'true' && '1' || '' }}
102
+ run : |
103
+ # This is for the cache restore on Kafka to work in older releases
104
+ docker run --rm -v "sentry-kafka:/data" busybox chown -R 1000:1000 /data
105
+ ./install.sh
100
106
101
107
- name : Prepare Docker Volume Caching
102
108
run : |
103
109
# Set permissions for docker volumes so we can cache and restore
104
110
sudo chmod o+x /var/lib/docker
105
111
sudo chmod -R o+rx /var/lib/docker/volumes
112
+ # Set tar ownership for it to be able to read
113
+ # From: https://github.com/actions/toolkit/issues/946#issuecomment-1726311681
114
+ sudo chown root /usr/bin/tar && sudo chmod u+s /usr/bin/tar
106
115
107
116
- name : Save DB Volumes Cache
108
117
if : steps.restore_cache.outputs.cache-hit != 'true'
@@ -112,12 +121,22 @@ jobs:
112
121
path : |
113
122
/var/lib/docker/volumes/sentry-postgres/_data
114
123
/var/lib/docker/volumes/sentry-clickhouse/_data
124
+ /var/lib/docker/volumes/sentry-kafka/_data
115
125
116
126
- name : Checkout current ref
117
127
uses : actions/checkout@v4
118
128
119
129
- name : Install current ref
120
- run : ./install.sh
130
+ run : |
131
+ # This is for the cache restore on Kafka to work in older releases
132
+ docker run --rm -v "sentry-kafka:/data" busybox chown -R 1000:1000 /data
133
+ ./install.sh
134
+
135
+ - name : Inspect failure
136
+ if : failure()
137
+ run : |
138
+ docker compose ps
139
+ docker compose logs
121
140
122
141
integration-test :
123
142
if : github.repository_owner == 'getsentry'
@@ -192,19 +211,24 @@ jobs:
192
211
path : |
193
212
/var/lib/docker/volumes/sentry-postgres/_data
194
213
/var/lib/docker/volumes/sentry-clickhouse/_data
214
+ /var/lib/docker/volumes/sentry-kafka/_data
195
215
196
216
- name : Install self-hosted
197
- uses : nick-fields/retry@v3
198
- with :
199
- timeout_minutes : 10
200
- max_attempts : 3
201
- command : ./install.sh
217
+ env :
218
+ SKIP_DB_MIGRATIONS : ${{ steps.restore_cache.outputs.cache-hit == 'true' && '1' || '' }}
219
+ run : |
220
+ # This is for the cache restore on Kafka to work in older releases
221
+ docker run --rm -v "sentry-kafka:/data" busybox chown -R 1000:1000 /data
222
+ ./install.sh
202
223
203
224
- name : Prepare Docker Volume Caching
204
225
run : |
205
226
# Set permissions for docker volumes so we can cache and restore
206
227
sudo chmod o+x /var/lib/docker
207
228
sudo chmod -R o+rx /var/lib/docker/volumes
229
+ # Set tar ownership for it to be able to read
230
+ # From: https://github.com/actions/toolkit/issues/946#issuecomment-1726311681
231
+ sudo chown root /usr/bin/tar && sudo chmod u+s /usr/bin/tar
208
232
209
233
- name : Save DB Volumes Cache
210
234
if : steps.restore_cache.outputs.cache-hit != 'true'
@@ -214,6 +238,7 @@ jobs:
214
238
path : |
215
239
/var/lib/docker/volumes/sentry-postgres/_data
216
240
/var/lib/docker/volumes/sentry-clickhouse/_data
241
+ /var/lib/docker/volumes/sentry-kafka/_data
217
242
218
243
- name : Integration Test
219
244
run : |
0 commit comments