Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Skip DB ops during install completely on cache hit #3496

Merged
merged 10 commits into from
Dec 31, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
some fixes
BYK committed Dec 31, 2024
commit 5dae37a86792c3a9af3ad0d57a161194f6bac8fe
8 changes: 0 additions & 8 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -34,8 +34,6 @@ x-sentry-defaults: &sentry_defaults
<<: *depends_on-default
smtp:
<<: *depends_on-default
seaweed:
<<: *depends_on-default
snuba-api:
<<: *depends_on-default
symbolicator:
@@ -210,11 +208,6 @@ services:
interval: 10s
timeout: 10s
retries: 30
seaweed:
image: chrislusf/seaweedfs:3.80
command: ['server', '-s3']
volumes:
- "sentry-seaweed:/data"
snuba-api:
<<: *snuba_defaults
# Kafka consumer responsible for feeding events into Clickhouse
@@ -548,4 +541,3 @@ volumes:
sentry-kafka-log:
sentry-smtp-log:
sentry-clickhouse-log:
sentry-seaweed:
10 changes: 5 additions & 5 deletions install/set-up-and-migrate-database.sh
Original file line number Diff line number Diff line change
@@ -12,12 +12,12 @@ if [[ -n "${SKIP_DB_MIGRATIONS:-}" ]]; then

# Using django ORM to provide broader support for users with external databases
$dcr web shell -c "
from django.db import connection
from django.db import connection

with connection.cursor() as cursor:
cursor.execute('ALTER TABLE IF EXISTS sentry_groupedmessage DROP CONSTRAINT IF EXISTS sentry_groupedmessage_project_id_id_515aaa7e_uniq;')
cursor.execute('DROP INDEX IF EXISTS sentry_groupedmessage_project_id_id_515aaa7e_uniq;')
"
with connection.cursor() as cursor:
cursor.execute('ALTER TABLE IF EXISTS sentry_groupedmessage DROP CONSTRAINT IF EXISTS sentry_groupedmessage_project_id_id_515aaa7e_uniq;')
cursor.execute('DROP INDEX IF EXISTS sentry_groupedmessage_project_id_id_515aaa7e_uniq;')
"

if [[ -n "${CI:-}" || "${SKIP_USER_CREATION:-0}" == 1 ]]; then
$dcr web upgrade --noinput --create-kafka-topics