Skip to content

Commit 9ceb00f

Browse files
chore: Remove upgrade test (#3541)
As discussed, removing the upgrade test since it doesn't provide that much utility as we are already testing upgrades from restoring docker volumes from cache
1 parent 0ce2cd7 commit 9ceb00f

File tree

1 file changed

+0
-71
lines changed

1 file changed

+0
-71
lines changed

.github/workflows/test.yml

-71
Original file line numberDiff line numberDiff line change
@@ -33,77 +33,6 @@ jobs:
3333
- name: Unit Tests
3434
run: ./unit-test.sh
3535

36-
upgrade-test:
37-
if: github.repository_owner == 'getsentry'
38-
runs-on: ubuntu-22.04
39-
name: "Sentry upgrade test"
40-
env:
41-
REPORT_SELF_HOSTED_ISSUES: 0
42-
steps:
43-
- name: Get latest self-hosted release version
44-
run: |
45-
LATEST_TAG=$(curl -s https://api.github.com/repos/getsentry/self-hosted/releases/latest | jq -r '.tag_name')
46-
echo "LATEST_TAG=$LATEST_TAG" >> $GITHUB_ENV
47-
48-
- name: Get Compose
49-
uses: getsentry/self-hosted/get-compose-action@master
50-
51-
- name: Checkout latest release
52-
uses: actions/checkout@v4
53-
with:
54-
ref: ${{ env.LATEST_TAG }}
55-
56-
- name: Restore DB Volumes Cache
57-
id: restore_cache
58-
uses: BYK/docker-volume-cache-action/restore@be89365902126f508dcae387a32ec3712df6b1cd
59-
with:
60-
key: db-volumes-v6-${{ env.LATEST_TAG }}
61-
restore-keys: |
62-
db-volumes-v6-${{ env.LATEST_TAG }}
63-
db-volumes-v6-
64-
volumes: |
65-
sentry-postgres
66-
sentry-clickhouse
67-
sentry-kafka
68-
69-
- name: Install ${{ env.LATEST_TAG }}
70-
env:
71-
# Remove SKIP_DB_MIGRATIONS after releasing 25.1.1 or 25.2.0
72-
SKIP_DB_MIGRATIONS: ${{ steps.restore_cache.outputs.cache-hit == 'true' && '1' || '' }}
73-
SKIP_SENTRY_MIGRATIONS: ${{ steps.restore_cache.outputs.cache-hit == 'true' && '1' || '' }}
74-
SKIP_SNUBA_MIGRATIONS: ${{ steps.restore_cache.outputs.cache-hit == 'true' && '1' || '' }}
75-
run: |
76-
# This is to compensate for a bug in upgrade-clickhouse where
77-
# if we have sentry-clickhouse volume without the rest, it fails
78-
# We may get sentry-clickhouse from the cache step above
79-
source install/create-docker-volumes.sh
80-
./install.sh
81-
82-
- name: Save DB Volumes Cache
83-
if: steps.restore_cache.outputs.cache-hit != 'true'
84-
uses: BYK/docker-volume-cache-action/save@be89365902126f508dcae387a32ec3712df6b1cd
85-
with:
86-
key: ${{ steps.restore_cache.outputs.cache-primary-key }}
87-
volumes: |
88-
sentry-postgres
89-
sentry-clickhouse
90-
sentry-kafka
91-
92-
- name: Checkout current ref
93-
uses: actions/checkout@v4
94-
95-
- name: Install current ref
96-
run: |
97-
# This is for the cache restore on Kafka to work in older releases
98-
docker run --rm -v "sentry-kafka:/data" busybox chown -R 1000:1000 /data
99-
./install.sh
100-
101-
- name: Inspect failure
102-
if: failure()
103-
run: |
104-
docker compose ps
105-
docker compose logs
106-
10736
integration-test:
10837
if: github.repository_owner == 'getsentry'
10938
runs-on: ubuntu-22.04

0 commit comments

Comments
 (0)