Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Commit 70b4692

Browse files
authored
fix: Update GCS bucket name for staging (#969)
1 parent b71179e commit 70b4692

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

codecov/settings_base.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,10 @@
115115

116116
DATABASE_ROUTERS = ["codecov.db.DatabaseRouter"]
117117

118+
# GCS
119+
GCS_BUCKET_NAME = "codecov"
120+
121+
118122
# Password validation
119123
# https://docs.djangoproject.com/en/2.1/ref/settings/#auth-password-validators
120124

codecov/settings_staging.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@
7272
COOKIE_SAME_SITE = "None"
7373
SESSION_COOKIE_SAMESITE = "None"
7474

75+
GCS_BUCKET_NAME = "codecov-staging"
76+
7577
CSRF_TRUSTED_ORIGINS = [
7678
get_config("setup", "trusted_origin", default="https://*.codecov.dev")
7779
]

utils/test_results.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import polars as pl
2+
from django.conf import settings
23
from shared.storage.exceptions import FileNotInStorageError
34

45
from services.redis_configuration import get_redis_connection
@@ -57,7 +58,9 @@ def get_results(
5758
storage_service = StorageService()
5859
key = storage_key(repoid, branch, interval_start, interval_end)
5960
try:
60-
result = storage_service.read_file(bucket_name="codecov", path=key)
61+
result = storage_service.read_file(
62+
bucket_name=settings.GCS_BUCKET_NAME, path=key
63+
)
6164
# cache to redis
6265
TaskService().cache_test_results_redis(repoid, branch)
6366
except FileNotInStorageError:

0 commit comments

Comments
 (0)